Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 rsolanki 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
'------------ CONDITIONS ----------------------
21
'----------------------------------------------
22
%>
23
<%
24
'----------------------------------------------------------------------------------------------------------------------------------------------
25
Sub Logon ()
26
	On Error Resume Next
27
 
28
	objEH.Try()
29
 
30
	Call objAccessControl.LogonUser ( Request("user_name"), Request("user_password"), OraDatabase )
31
 
32
	objEH.Catch()
33
 
34
End Sub
35
'----------------------------------------------------------------------------------------------------------------------------------------------
36
Sub AccessManagerMessage ( nMessage )
37
	Dim sMessage
38
	On Error Resume Next
39
 
40
	objEH.Try()
41
		Select Case CInt( nMessage )
42
			Case 1
43
				Err.Raise 8, _
44
					"Application Access Denied !", "Please contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> to gain access to this application."
45
			Case 2
46
				Err.Raise 8, _
47
					"Page Access Denied !", "Please contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> to gain access to this page."
48
		End Select
49
	objEH.Catch()
50
 
51
End Sub
52
'----------------------------------------------------------------------------------------------------------------------------------------------
53
%>
54
<%
55
'------------ RUN BEFORE PAGE RENDER ----------
56
objPMod.PersistInQryString ( aPersistList )
57
 
58
' --- RUN onPostBack ---
59
If CBool(Request("action")) Then
60
	Call Logon ()
61
 
62
	If objEH.Finally Then
63
		If Request("rfile") <> "" Then
64
			Call OpenInWindow ( Request("rfile") &"?LOGIN=ok"& objPMod.ComposeURLWithout("rfile") )
65
		Else
66
			Call OpenInWindow ( "Default.asp" )
67
		End If
68
 
69
 
70
	End If
71
End If
72
 
73
Call AccessManagerMessage( Request("message") )
74
'----------------------------------------------
75
%>
76
<html>
77
<head>
78
<title>Access Manager</title>
79
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
80
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
81
<link href="scripts/access_manager.css" rel="stylesheet" type="text/css">
82
<script language="JavaScript" src="scripts/common.js"></script>
83
 
84
</head>
85
<body background="images/bg_lite_blue.gif" leftmargin="0" topmargin="0" onLoad="FormName.user_name.focus();">
86
<!-- HEADER ++++++++++++++++ -->
87
<!--#include file="_header.asp"-->
88
<!-- +++++++++++++++++++++++ -->
89
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
90
<form name="FormName" method="post" action="<%=SCRIPT_NAME%>" >
91
  <tr>
92
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
93
  </tr>
94
  <tr>
95
    <td align="center" valign="middle" bgcolor="#FFFFFF">
96
	<!-- LOGIN FROM ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
97
      <table width="570" border="0" cellspacing="0" cellpadding="1">
98
        <tr>
99
          <td background="images/bg_bage_2.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
100
            <tr>
101
              <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="10">
102
                <tr>
103
                  <td class="body_txt"><span class="body_h1"><img src="images/i_user_lrg.gif" width="13" height="17" align="absmiddle">&nbsp;Log In</span> <br>
104
      Please enter your Username and Password. <br>
105
      <hr width="100%" size="1" noshade color="#ACA899">
106
      Forgot your <a href="#" class="body_link">password</a> ? <br>
107
      New Members please <a href="#" class="body_link">Register</a></td>
108
                </tr>
109
                <tr>
110
                  <td align="center" valign="top">
111
				  <table width="100"  border="0" cellspacing="2" cellpadding="0">
112
                      <tr>
113
                        <td width="10%" nowrap class="form_iname">Username</td>
114
                        <td width="1%"><input name="user_name" type="text" class="form_ivalue" size="20"></td>
115
                      </tr>
116
                      <tr>
117
                        <td nowrap class="form_iname">Password</td>
118
                        <td><input name="user_password" type="password" class="form_ivalue" size="20"></td>
119
                      </tr>
120
                      <tr>
121
                        <td nowrap class="form_iname" valign="top">&nbsp;</td>
122
                        <td valign="top">&nbsp;</td>
123
                      </tr>
124
                  </table></td>
125
                </tr>
126
                <tr>
127
                  <td background="images/bg_drk_bage_pane.gif">
128
				  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
129
                      <tr>
130
                        <td><%=ProgressBar()%></td>
131
                        <td align="right"><input name="btn" type="submit" class="form_btn" value="Login"></td>
132
                      </tr>
133
                  </table></td>
134
                </tr>
135
              </table>			  </td>
136
            </tr>
137
          </table></td>
138
        </tr>
139
      </table>
140
	  <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
141
	  </td>
142
  </tr>
143
  <tr>
144
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
145
  </tr>
146
<%=objPMod.ComposeHiddenTags()%>
147
<input type="hidden" name="action" value="true">
148
</form>  
149
</table>
150
<!-- FOOTER ++++++++++++++++++++++ -->
151
<!--#include file="_footer.asp"-->
152
<!-- +++++++++++++++++++++++++++++ -->
153
</body>
154
</html>
155
<%
156
'------------ RUN AFTER PAGE RENDER -----------
157
Set objPMod = Nothing
158
'----------------------------------------------
159
%>
160
<!--#include file="common/globals_destructor.asp"-->