www.gusucode.com > 站长俱乐部新闻发布系统精简版 1.01源码程序 > main_login_code.asp

    <% dim Heading_left_image, Heading_right_image %>
<!--#include file="admin/skins/styles.asp" -->
<html>
<head>
<title><%= Site_name %></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link href="admin/css/admin_import.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//form validation code
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

//form validation code  - edited by Andy
function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { 
    test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { 
        nm=val.id;
        if ((val=val.value)!="") {
        }
    else
        if (test.charAt(0) == 'R') errors += ''+nm+'\n';
    }
  }
  if (errors) alert('Please add the following:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
</script>
<style type="text/css">
/**************************************************************************
page settings
**************************************************************************/ 
body {
	background-color: <%= Body_bg %>;
	margin: 0px;
}

.over 
{ 
	background-color:"#84B6C6";
	margin: 5px;
	padding: 3px;
	font-family: Arial, Helvetica, sans-serif;
	font-style: normal;
	color: #FFFFFF;
 }

.out 
{  
	background-color:"#6BA6AD";
	margin: 5px;
	padding: 3px;
	font-family: Arial, Helvetica, sans-serif;
	font-style: normal;
	color: #FFFFFF;
 }

.over2 
{ 
	background-color:"#84B6C6";
 }

.out2 
{  
	background-color:"#6BA6AD";
}

.contentareaLogin {
	background-color:#F4F4F4;
	border-top-width: 0px;
	border-right-width: 2px;
	border-bottom-width: 1px;
	border-left-width: 0px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: none;
	border-top-color: #CCC;
	border-right-color: #CCC;
	border-bottom-color: #CCC;
	border-left-color: #CCC;
	padding:0px;
}

.content_titles {
	padding:8px;
	border-right-width: 0px;
	border-right-style: solid;
	border-right-color: #CCCCCC;
	border-top-width: 0px;
	border-top-style: none;
	padding-top: 12px;
}

.contentarea_image {
	background-color:#F4F4F4;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-bottom-style: solid;
	border-left-style: solid;
	border-bottom-color: #CCC;
	border-left-color: #CCC;
	
	
}

.ac_bannertile {
        <% if name="Skin" then %>
        background-image:url(admin/<%= Banner_bg %>);
        <% else %>
	background-image:url(images/banner_<% = Name %>_2.jpg);
        <% end if %>
}

.admin_header_left {
        <% if name="Skin" then %>
        border-bottom-color: <%= Content_border %>;
        <% else %>
	border-bottom-color: #CCCCCC;
        <% end if %>
	background-repeat: repeat-x;
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 1px;
	border-left-width: 0px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #CCCCCC;
	border-right-color: #CCCCCC;
	border-left-color: #CCCCCC;
}

.admin_header_icon {
	background-color:#fff;
        <% if name="Skin" then %>
        background-image:url(admin/skins/heading_Skin_2.gif);
        border-bottom-color: <%= Content_border %>;
        <% else %>
        background-image:url(admin/images/heading_bg.gif);
	border-bottom-color: #CCCCCC;
        <% end if %>
	background-repeat: repeat-x;
	padding-left: 5px;
	padding-right: 0px;
	padding-top: 3px;
	padding-bottom: 3px;
	font-family: Verdana;
	font-weight: normal;
	font-size: 13px;
	color: #999;
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 1px;
	border-left-width: 0px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #CCCCCC;
	border-right-color: #CCCCCC;
	border-left-color: #CCCCCC;
	width: 1%;
}

.admin_header_text {
	background-color:#fff;
        <% if name="Skin" then %>
        background-image:url(admin/skins/heading_Skin_2.gif);
        color:<%= Heading_Font_Color%>;
        border-bottom-color: <%= Content_border %>;
        <% else %>
        background-image:url(admin/images/heading_bg.gif);
        color: #fff;
	border-bottom-color: #CCCCCC;
        <% end if %>
	background-repeat: repeat-x;
	padding-left: 5px;
	padding-right: 1px;
	padding-top: 3px;
	padding-bottom: 2px;
	font-family: Verdana;
	font-weight: bold;
	font-size: 15px;
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 1px;
	border-left-width: 0px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #CCCCCC;
	border-right-color: #CCCCCC;
	border-left-color: #CCCCCC;
	vertical-align: middle;

}

.admin_header_text a:link, .admin_header_text a:visited {
	background-repeat: repeat-x;
	padding-left: 5px;
	padding-right: 1px;
	padding-top: 3px;
	padding-bottom: 2px;
	font-family: Verdana;
	font-weight: bold;
	font-size: 15px;
        <% if name="Skin" then %>
        color:<%= Heading_Font_Color%>;
        <% else %>
        color: #fff;
        <% end if %>
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 0px;
	border-left-width: 0px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #CCCCCC;
	border-right-color: #CCCCCC;
	border-bottom-color: #CCCCCC;
	border-left-color: #CCCCCC;	
	vertical-align: middle;
	text-decoration:none;
}

.admin_header_spacer {
	background-color:#fff;
        <% if name="Skin" then %>
        background-image:url(admin/skins/heading_Skin_2.gif);
        border-bottom-color: <%= Content_border %>;
        <% else %>
        background-image:url(admin/images/heading_bg.gif);
	border-bottom-color: #CCCCCC;
        <% end if %>
	background-repeat: repeat-x;
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 1px;
	border-left-width: 0px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #CCCCCC;
	border-right-color: #CCCCCC;
	border-left-color: #CCCCCC;
}

/**************************************************************************
top banner settings (default_bannner.asp)
**************************************************************************/ 
.ac_bannertile {
        <% if (name="Skin" or name="Acidcat_2") then %>
        background-image:url(admin/<%= Banner_bg %>);
        <% else %>
	background-image:url(images/banner_<% = Name %>_2.jpg);
        <% end if %>
}
</style>

<%
	dim Now
	Now = Date()
 %>

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="default_banner.asp" -->
<table width="100%" height="30%" border="0" cellpadding="10" cellspacing="0" bordercolor="#FFFFFF">
<tr>
        <td><img src="images/blank.gif" width="32" height="2"></td>
        <td width="82%">
	    <table width="100%" height="100%" border="0" cellpadding="10" cellspacing="0" bordercolor="#FFFFFF">
	    <tr><td><br /><br /><br /><br /><br /><br /></td></tr>
	    <tr>
	            <td height="100%" width="20%" ><img src="images/blank.gif" height="2"></td>
	            <td width="60%" >
	            <table cellspacing="0" class="ac_admin_main">
	                    <tr valign="baseline"><td colspan="3"><%= adminHeading(1,lang_admin_default_001,null,null,null) %></td></tr>
	                    <tr><td class="contentarea_image"><br /><br />&nbsp; &nbsp;<img src="admin/icons/door_48.gif"></td>
                        <td valign="top" colspan="1" class="contentareaLogin"><!--#include file="login_form.asp" --></td></tr>
	            </table>
	            </td>
	            <td width="20%" ><img src="images/blank.gif" height="12"></td>
	    </tr>
	    </table>
        </td>
        <td><img src="images/blank.gif" width="12" height="2"></td>
</tr>
</table>
<center><br>
<table><tr><td><ol>
<%
dim logoutVar
logoutVar = CStr(Request("referrer"))
if logoutVar = "admin"  then
        response.write("<a href=default.asp>" & lang_admin_users_add_form_004 & "</a>")
end if
%>
</ol></td></tr></table>
</center>
</body></html>