<%
Dim l_user As New ADXCalendar.ADXCalendarLogin(Session("account_id"), Session("DataConn_ConnectionString"))
Dim a_mod As ADXCalendar.ADXCalendarModules = Session("ADXCalendarModules")
Response.Write(" ")
%>
|
<%
If a_mod.Calendar_FacilityModule = True Then
'This calendar has the facility module and this user has access to it...
Response.Write(" ")
End If
Response.Write(" ")
If a_mod.Calendar_PrivateModule = True And (l_user.GetPrivilegeViewPrivateEvents = "x") Then
If Session("PrivateCalendarKeytext") = "##ODD##" Then
Response.Write(" ")
Else
Response.Write(" ")
End If
End If
Response.Write(" ")
%>
|
<%
'This is the object that will allow for testing on this page
Response.Write("")
'This determines if a navigation table needs a breaker image after it
Dim BreakerHTML As String = " "
Dim pbl As String = l_user.GetPrivilegePublic()
Dim prv As String = l_user.GetPrivilegePrivate()
Dim facEnabled As Boolean = a_mod.Calendar_FacilityModule()
If Session("AdministrationProccess") = "Import" Or Session("AdministrationProccess") = "Purge" Or (Session("EventProccess") <> "" and Session("EventProccess") <> "Notification") Then
'On
If (facEnabled AndAlso l_user.UserHasDepartmentPrivilege = True) Or (Not facEnabled AndAlso (pbl = "x" Or prv = "x")) Or l_user.GetPrivilegePurge = "x" Or l_user.GetPrivilegeImportData = "x" Or l_user.GetPrivilegeExport = "x" Or l_user.GetPrivilegeRegistration = "x" Or l_user.GetAdvancedRegistrationFormsOwned.Count > 0 Then
Response.Write(" ")
Response.Write(BreakerHTML)
End If
Else
'Off
If (facEnabled AndAlso l_user.UserHasDepartmentPrivilege = True) Or (Not facEnabled AndAlso (pbl = "x" Or prv = "x")) Or l_user.GetPrivilegePurge = "x" Or l_user.GetPrivilegeImportData = "x" Or l_user.GetPrivilegeExport = "x" Or l_user.GetPrivilegeRegistration = "x" Or l_user.GetAdvancedRegistrationFormsOwned.Count > 0 Then
Response.Write(" ")
Response.Write(BreakerHTML)
End If
End If
If Session("AccountProccess") <> "" Or Session("DepartmentProccess") <> "" Then
'On
Response.Write(" ")
Else
'Off
Response.Write(" ")
End If
Response.Write(BreakerHTML)
If Session("LocationProccess") <> "" Or Session("BuildingProccess") <> "" Or Session("RoomProccess") <> "" Or Session("RoomTypeProcess") <> "" Or Session("RoomSetupTypeProcess") <> "" Or Session("RoomFeatureProcess") <> "" Then
'On
'Check for facilities
If a_mod.Calendar_FacilityModule Then
Response.Write(" ")
Else
Response.Write(" ")
End If
Else
'Off
'Check for facilities
If a_mod.Calendar_FacilityModule Then
Response.Write(" ")
Else
Response.Write(" ")
End If
End If
Response.Write(BreakerHTML)
If a_mod.Calendar_FacilityModule Then
If Session("ResourceProcess") <> "" Then
'On
Response.Write(" ")
Else
'Off
Response.Write(" ")
End If
Response.Write(BreakerHTML)
End If
If Session("CategoryProccess") <> "" Or Session("SubCategoryProccess") <> "" Then
'On
Response.Write(" ")
Else
'Off
Response.Write(" ")
End If
If Session("EventProccess") = "Notification" Or Session("AdministrationProccess") = "GenerateCode" Or Session("MarketingProccess") <> "" Then
'On
Response.Write(BreakerHTML)
Response.Write(" ")
Else
If l_user.GetPrivilegeSendNotification = "x" Or l_user.GetPrivilegeTeaserScript = "x" Or l_user.GetPrivilegeTemplate = "x" Then
'Off
Response.Write(BreakerHTML)
Response.Write(" ")
Else
'This user does not have Marketing permissions
End If
End If
If l_user.GetPrivilegeViewReports() = "x" Then
Response.Write(BreakerHTML)
If Session("ReportsProccess") = "ShowReport" Then
Response.Write(" ")
Else
Response.Write(" ")
End If
End If
If Session("AdministrationProccess") = "Configure" Or Session("AdministrationProccess") = "LDAP" Or Session("AdministrationProccess") = "Registration" Then
'On
Response.Write(BreakerHTML)
Response.Write(" ")
Else
If l_user.GetPrivilegeConfiguration = "x" Or l_user.IsSuperuser = True or l_user.GetPrivilegeRegistrationForms = "x" Then
'Off
Response.Write(BreakerHTML)
Response.Write(" ")
Else
'This user does not have Configuration permissions
End If
End If
Response.Write(" | ")
%>
|