Subversion Repositories DevTools

Rev

Rev 5356 | Rev 5962 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5356 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|				          INDEX						 |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
Response.Expires = 0
12
%>
13
<!--#include file="common/globals.asp"-->
14
<!--#include file="common/config.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<%
17
'------------ VARIABLE DEFINITION -------------
18
'------------ CONSTANTS DECLARATION -----------
19
'------------ VARIABLE INIT -------------------
20
objAccessControl.objOraSession = OraSession	' Create database link for orasession
21
objAccessControl.objOraDatabase = OraDatabase	' Create database link for oradatabase
22
'------------ CONDITIONS ----------------------
23
'----------------------------------------------
24
%>
25
<%
26
'----------------------------------------------------------------------------------------------------------------------------------------------
27
Sub Logon ()
28
	On Error Resume Next
29
 
30
	objEH.Try()
31
 
32
	Call objAccessControl.LogonUser ( Request("user_name"), Request("user_password") )
33
 
34
	objEH.Catch()
35
 
36
End Sub
37
'----------------------------------------------------------------------------------------------------------------------------------------------
38
Sub AccessManagerMessage ( nMessage )
39
	Dim sMessage
40
	On Error Resume Next
41
 
42
	objEH.Try()
43
		Select Case CInt( nMessage )
44
			Case 1
45
				Err.Raise 8, _
46
					"Application Access Denied !", "Please contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> to gain access to this application."
47
			Case 2
48
				Err.Raise 8, _
49
					"Page Access Denied !", "Please contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> to gain access to this page."
50
			Case 3
51
				Err.Raise 8, _
52
					"Application is Off-Line !", "This application is currently off-line for maintenance. <br>Contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> for further details."
53
 
54
			Case 4
55
				Err.Raise 8, _
56
					"You are Not Authorised !", "You are not authorised to perform this action. <br>Contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> for further details."
57
 
58
		End Select
59
	objEH.Catch()
60
 
61
End Sub
62
'----------------------------------------------------------------------------------------------------------------------------------------------
63
%>
64
<%
65
'------------ RUN BEFORE PAGE RENDER ----------
66
objPMod.PersistInQryString ( aPersistList )
67
 
68
' --- RUN onPostBack ---
69
If CBool(Request("action")) Then
70
 
71
	Call Logon ()
72
 
73
	If objEH.Finally Then
74
		If Request("rfile") <> "" Then
75
			Call OpenInWindow ( Request("rfile") &"?LOGIN=ok"& objPMod.ComposeURLWithout("rfile") )
76
		Else
77
			Call OpenInWindow ( "Default.asp" )
78
		End If
79
 
80
 
81
	End If
82
End If
83
 
84
Call AccessManagerMessage( Request("message") )
85
'----------------------------------------------
86
%>
87
<html>
88
<head>
89
<title>Production Manager</title>
90
<link rel="shortcut icon" href="<%=FavIcon%>"/>
91
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
92
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
93
<link href="scripts/deployment_manager.css" rel="stylesheet" type="text/css">
94
<script language="JavaScript" src="scripts/common.js"></script>
95
 
96
</head>
97
<body background="images/bg_lightgreen.gif" leftmargin="0" topmargin="0" onLoad="FormName.user_name.focus();">
98
<!-- HEADER ++++++++++++++++ -->
99
<!--#include file="_header.asp"-->
100
<!-- +++++++++++++++++++++++ -->
101
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
102
<form name="FormName" method="post" action="<%=SCRIPT_NAME%>" >
103
  <tr>
104
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
105
  </tr>
106
  <tr>
107
    <td align="center" valign="middle" bgcolor="#FFFFFF">
108
	<!-- LOGIN FROM ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
109
    <table width="570" border="0" cellspacing="0" cellpadding="0">
110
      <tr>
111
        <td align="right"><a href="<%=ACCESS_MANAGER_URL%>" title="Access Manager Home"><img src="icons/img_auth_by_access_manager.gif" width="103" height="26" hspace="2" vspace="3" border="0"></a></td>
112
      </tr>
113
    </table>
114
      <table width="570" border="0" cellspacing="0" cellpadding="1">
115
        <tr>
116
          <td background="images/bg_bage_2.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
117
            <tr>
118
              <td background="images/bg_form.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="10">
119
                <tr>
120
                  <td class="body_txt"><span class="body_h1"><img src="icons/i_user_lrg.gif" width="13" height="17" align="absmiddle">&nbsp;Log In</span> <br>
121
      Please enter your Username and Password. <br>
122
      <hr width="100%" size="1" noshade color="#ACA899">
123
      Forgot your <a href="mailto:<%=ADMIN_EMAIL%>?subject=Request for Password Reset" class="body_link">password</a> ? <br>
124
      New Members please <a href="mailto:<%=ADMIN_EMAIL%>?subject=Request for Production Manager Account" class="body_link">Register</a></td>
125
                </tr>
126
                <tr>
127
                  <td align="center" valign="top">
128
				  <table width="100"  border="0" cellspacing="2" cellpadding="0">
129
                      <tr>
130
                        <td width="10%" nowrap class="form_iname">Username</td>
131
                        <td width="1%"><input name="user_name" type="text" class="form_ivalue" size="20"></td>
132
                      </tr>
133
                      <tr>
134
                        <td nowrap class="form_iname">Password</td>
135
                        <td><input name="user_password" type="password" class="form_ivalue" size="20" <%If objAccessControl.isDevSystem Then Response.write"disabled"%>></td>
136
                      </tr>
137
                      <tr>
138
                        <td nowrap class="form_iname" valign="top">&nbsp;</td>
139
                        <td valign="top">&nbsp;</td>
140
                      </tr>
141
                  </table></td>
142
                </tr>
143
                <tr>
144
                  <td background="images/bg_login.gif">
145
				  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
146
                      <tr>
147
                        <td><%=ProgressBar()%></td>
148
                        <td align="right"><input name="btn" type="submit" class="form_btn" value="Login"></td>
149
                      </tr>
150
                  </table></td>
151
                </tr>
152
              </table>
153
			  </td>
154
            </tr>
155
          </table></td>
156
        </tr>
157
      </table>
158
	  <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
159
	  </td>
160
  </tr>
161
  <tr>
162
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
163
  </tr>
164
<%=objPMod.ComposeHiddenTags()%>
165
<input type="hidden" name="action" value="true">
166
</form>  
167
</table>
168
<!-- FOOTER ++++++++++++++++++++++ -->
169
<!--#include file="_footer.asp"-->
170
<!-- +++++++++++++++++++++++++++++ -->
171
</body>
172
</html>
173
<%
174
'------------ RUN AFTER PAGE RENDER -----------
175
Set objPMod = Nothing
176
'----------------------------------------------
177
%>
62 rsolanki 178
<!--#include file="common/globals_destructor.asp"-->