Вы находитесь на странице: 1из 4

<%

/*Thisfunctionwillinitializeabunchofaccess_*ASPvariables.*/
LoadAccessInformation();
/*ThosevariablesarenowaccessibleforASPcode:
*-access_free
*-access_purchase
*-etc...(seedocumentationforcompletelist).
*/
varssl=GetHTTPProtocol()=="https";
%>
<?xmlversion="1.0"encoding="UTF-8"?>
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml"xml:lang="en"lang="en">
<!-****************************************************************
***************
IMPORTANT
--------DoNOTcopyandpastethiscodefromawebbrowser"ViewSource"Window.
Theactualcodecontainsserver-sidefunctioncallswhichdonotappearina
"ViewSource"situation.
PleaserefertothesuppliedtemplatesontheproductCD.
****************************************************************
***************
-->
<head>
<metahttp-equiv="content-type"content="text/html;charset=utf-8"/>
<metahttp-equiv="Expires"content="0"/>
<metahttp-equiv="Cache-Control"content="no-cache"/>
<metahttp-equiv="Pragma"content="no-cache"/>
<title>PublicAccess-LoginPage</title>
<linkrel="stylesheet"type="text/css"href="/style.css"/>
</head>
<bodyonload="javascript:setfocus();">
<!--Displaycompanylogo-->
<divid="main">
<!--Displayerrororwarningmessages-->
<divid="message"><%IncludeAsp("login_error_message.asp");%>
</div>
<!--Displayloginform-->
<divclass="boxed">
<Table>
<tr>
<td><h1align="center"font-family="Verdana">WelcometoDSWDGuestCaptivePortal</h1></td>
</tr>
</table>
<formaction="/goform/HtmlLoginRequest"method="post"id="loginForm"name="loginForm">
<inputtype="hidden"name="error_url"value="/
index.asp"/>

<inputtype="hidden"name="success_url"value=
"<%write(GetWebFullURL("http"));%>/transport.asp"/>
<inputtype="hidden"name="original_url"value
="<%GetOriginalUrl();%>"/>
<inputtype="hidden"name="subscription_url"v
alue="<%write(GetWebFullURL("https"));%>/subscribe.asp"/>
<inputtype="hidden"name="valid_fields"value
="access_typeusernamepassword"/>
<%ConditionalDisplay(!access_purchase&&!access_free,"begin");%>
<inputtype="hidden"id="access_type"name="ac
cess_type"value="login"/>
<%ConditionalDisplay(!access_purchase&&!access_free,"end");%>
<tablewidth="100%"border="0"cellspacing="0"ce
llpadding="4">
<%ConditionalDisplay(access_purchase,"begin");%>
<tr>
<td><inputtype="radio"id="
access_type"name="access_type"value="subscribe"/></td>
<td>Subscribetotheservice</
td>
</tr>
<%ConditionalDisplay(access_purchase,"end");%>
<%ConditionalDisplay(access_free,"begin");%>
<tr>
<td><inputtype="radio"id="
access_type"name="access_type"value="free_access"/></td>
<td>UseFreeAccessservice</t
d>
</tr>
<%ConditionalDisplay(access_free,"end");%>
<%ConditionalDisplay(access_purchase||access_free,"begin");%>
<tr>
<td><inputtype="radio"id="
access_type"name="access_type"value="login"checked="checked"/></td>
<td>ExistingUser</td>
</tr>
<%ConditionalDisplay(access_purchase||access_free,"end");%>
<tr>
<td></td>
<td>
<tableborder="0"wi
dth="100%"cellspacing="0"cellpadding="0">

<tr>
<tdrowspan="2"align="center"><imgsrc="/DSWD-Logo.png"alt="DSWDLogo"height="70"width="7
"/></td>
<tdalign="center"><labelfor="username">Username:</label></td>
<td><inputtype="text"name="username"maxlength="127"size="25"value="<%write(GetSessionV
ar("username"));%>"/></td>
</tr>
<tr>
<tdalign="center"><labelfor="password">Password:</label></td>
<td><inputtype="password"name="password"maxlength="127"size="25"/></td>
</tr>
<tr>
<td>

</td>
<td>
</td>
<tdalign="center"><inputtype="submit"name="login"id="loginButton"value="Proceed"/></td
>
</table>
</td>
</tr>
</table>
<hr/>
<tableborder="0"width="100%"cellspacing="0"c
ellpadding="4">
<tr>
<td>
</td>
<td>
</td>
<tdalign="right"><imgsrc="/ictms.jpg"alt="ICTMSLogo"height="30"width="30"/></td>
</tr>
</table>
</form>
</div>
<%ConditionalDisplay(!ssl,"begin");%>
<div>
<p><ahref="<%write(GetWebFullURL("https"));%>/index
.asp">Usethesecureversionofthisform</a></p>
</div>
<%ConditionalDisplay(!ssl,"end");%>
</div>
</body>
<scripttype="text/javascript"language="JavaScript"src="/prototype.js"></scr
ipt>
<scripttype="text/javascript"language="JavaScript"src="/sessionwindow.js"><
/script>
<scripttype="text/javascript"language="JavaScript"src="/setfocus.js"></scri
pt>
<scripttype="text/javascript"language="JavaScript">
<!-functionshowsessionpageifnotsubscribe()
{
varaction=$F('access_type');
varshowSessionPage=false;
if(typeof(action)=='string'){
if($F('access_type')!='subscribe'){
showSessionPage=true;
}
}else{
showSessionPage=true;
}
if(showSessionPage){
showsessionpage('<%write(GetWebFullURL("http"));%>
/session.asp');
}
}

if(navigator.platform!='iPod'&&navigator.platform!='iPad'&&navigator

form!='iPhone'){
document.loginForm.loginButton.onclick=showsessionpageifno
tsubscribe;
}
//-->
</script>
</html>

Вам также может понравиться