<? PHP
Session_start ();
Session_register ("u_name ");
Require_once ("../config/DB. Inc. php ");
Require_once ("../config. Inc. php ");
Require_once ("../config/function. php ");
Require_once ("../config/set. php ");
?>
<! Doctype HTML public "-// W3C // dtd html 4.01 transitional // en" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> chain small technology second-hand Management System </title>
<Script language = "JavaScript">
<! --
Function dlcheck ()
{
If (document. dlform. dluser. value = "")
{
Alert ("Enter the user name !!! ");
Document. dlform. dluser. Focus ();
Return false;
}
If (document. dlform. dlcode. value = "")
{
Alert ("the user name or password is incorrect !!! ");
Document. dlform. dluser. value = "";
Document. dlform. dluser. Focus ();
Return false;
}
}
// -->
</SCRIPT>
<Style type = "text/CSS">
<! --
. Style1 {
Font-size: 36px;
Font-weight: bold;
}
Body {font-size: 14px ;}
-->
</Style>
</Head>
<Style>
. Title1 {font-size: 25px; font-family: ""; color = Red ;}
. Title2 {color: red; font-size: 20px; font-family: "";}
Font {font-size: 15px ;}
TD {font-size: 15px ;}
Input, textarea, select {
Font-size: 14px;
Color: black;
Background-color: # cccccc;
Border: 1px solid #006666;
}
. Inputb {
Font-size: 14px;
Color: blue;
Background-color: # cccccc;
Border: 1px solid #006666;
}
. Textareab {
Font-size: 14px;
Color: black;
Background-color: # cccccc;
Border: 1px solid #006666;
Text-Decoration: none;
}
</Style>
<Body>
<? PHP
If ($ _ Get [action] = 'unlogin ')
{
Session_unregister ("u_name ");
}
If ($ _ Get [action] = 'login ')
{
If ($ user === _ post [dluser]) & ($ code ==$ _ post [dlcode])
{
$ _ Session [u_name] =$ _ post [dluser];
} Else {
Echo '<script language = "JavaScript"> alert ("this user does not exist or has no permission to operate !!! "); Location =" index. php? Action = unlogin "; exit (0); </SCRIPT> ';
Exit (0 );}
}
If (! Isset ($ _ session [u_name])
{
?>
<Form action = "index. php? Action = login "method =" Post "name =" dlform "onsubmit =" Return dlcheck () ">
<Table cellspacing = 0 bordercolordark = # ffffff cellpadding = 2 width = 230 align = center bordercolorlight = #7a8fa3 border = 1>
<Tr class = bold bgcolor = # f0f7ff>
<TD width = "307" Height = 23 bgcolor = "#00 CCFF"> <p align = center> User:
<Input type = "text" name = "dluser" maxlength = "20"> </P> </TD>
</Tr>
<Tr class = bold bgcolor = # f0f7ff>
<TD width = "307" Height = 23 bgcolor = "#00 CCFF"> <p align = center> password:
<Input type = "password" name = "dlcode" maxlength = "20"> </P> </TD>
</Tr>
<Tr class = bold bgcolor = # f0f7ff>
<TD width = "307" Height = 23 bgcolor = "#00 CCFF"> <p align = center>
<Input type = "Submit" name = "dlsubmit" value = ""> <input type = "reset" name = "dlreset" value = "reset"> </P> </TD>
</Tr>
</Table> </form>
<? PHP
} Else {
?>
<Table cellspacing = 0 bordercolordark = # ffffff cellpadding = 2 width = 780 align = center bordercolorlight = #7a8fa3 border = 1>
<Tr class = bold bgcolor = #99 CCFF>
<TD Height = 23 colspan = "3"> <p align = center class = "style1"> blockchain technology second-hand Management System </P> </TD>
</Tr>
<Tr class = bold bgcolor = #99 CCFF>
<TD Height = 23 colspan = "2"> <p align = right> <a href = "index. php? Action = unlogin "> logout </a> </P> </TD>
</Tr>
<Tr>
<TD width = "100" Height = 23 valign = "TOP">
<Table width = 100 border = 1 align = center cellpadding = 2 cellspacing = 0 bordercolorlight = #7a8fa3 bordercolordark = # ffffff>
<Tr class = bold bgcolor = # f0f7ff>
<TD width = "98%" Height = 23 bgcolor = "#99 CCFF"> <p align = center> <a href = "index. php? Action = 2s_diqu "> region Settings </a> </TD>
</Tr>
<Tr>
<TD> & nbsp; </TD>
</Tr>
<Tr class = bold bgcolor = # f0f7ff>
<TD width = "98%" Height = 23 bgcolor = "#99 CCFF"> <p align = center> <a href = "index. php? Action = 2s_shangpin "> item category Settings </a> </TD>
</Tr>
<Tr>
<TD> & nbsp; </TD>
</Tr>
<Tr class = bold bgcolor = # f0f7ff>
<TD width = "98%" Height = 23 bgcolor = "#99 CCFF"> <p align = center> <a href = "index. php? Action = 2s_zhanghao "> account management </a> </TD>
</Tr>
<Tr>
<TD> & nbsp; </TD>
</Tr>
<Tr class = bold bgcolor = # f0f7ff>
<TD bgcolor = "#99 CCFF"> <Div align = "center"> <a href = "index. php? Action = 2s_qingchu "> clear invalid data </a> </div> </TD>
</Tr>
<Tr>
<TD> & nbsp; </TD>
</Tr>
<Tr class = bold bgcolor = # f0f7ff>
<TD bgcolor = "#99 CCFF"> <Div align = "center"> <a href = "index. php? Action = 2s_gonggao "> announcement </a> </div> </TD>
</Tr>
<Tr>
<TD> & nbsp; </TD>
</Tr>
<Tr class = bold bgcolor = # f0f7ff>
<TD bgcolor = "#99 CCFF"> <Div align = "center"> <a href = "index. php? Action = 2s_selfset "> recommendation information Settings </a> </div> </TD>
</Tr>
<Tr>
<TD> & nbsp; </TD>
</Tr>
<Tr class = bold bgcolor = # f0f7ff>
<TD bgcolor = "#99 CCFF"> <Div align = "center"> & nbsp; </div> </TD>
</Tr>
<Tr>
<TD> & nbsp; </TD>
</Tr>
<Tr class = bold bgcolor = # f0f7ff>
<TD bgcolor = "#99 CCFF"> & nbsp; </TD>
</Tr>
<Tr>
<TD> & nbsp; </TD>
</Tr>
<Tr class = bold bgcolor = # f0f7ff>
<TD bgcolor = "#99 CCFF"> & nbsp; </TD>
</Tr>
<Tr>
<TD> & nbsp; </TD>
</Tr>
<Tr class = bold bgcolor = # f0f7ff>
<TD bgcolor = "#99 CCFF"> & nbsp; </TD>
</Tr>
<Tr>
<TD> & nbsp; </TD>
</Tr>
</Table> </TD>
<TD width = "666" Height = 23 valign = "TOP">
<? PHP
If (isset ($ _ session [u_name])
{
If ($ _ Get [action] = 'login' | $ _ Get [action] = '2s _ diqu ')
{
Include ("2s_diqu.php ");
} Elseif ($ _ Get [action] = '2s _ shangpin ')
{
Include ("2s_shangpin.php ");
} Elseif ($ _ Get [action] = '2s _ zhanghao ')
{
Include ("2s_zhanghao.php ");
} Elseif ($ _ Get [action] = '2s _ qingchu ')
{
Include ("2s_qingchu.php ");
} Elseif ($ _ Get [action] = '2s _ xxxx ')
{
Include ("2s_xxxx.php ");
} Elseif ($ _ Get [action] = '2s _ tingyong ')
{
Include ("2s_tingyong.php ");
} Elseif ($ _ Get [action] = '2s _ chaxun ')
{
Include ("2s_chaxun.php ");
} Elseif ($ _ Get [action] = '2s _ gonggao ')
{
Include ("2s_gonggao.php ");
} Elseif ($ _ Get [action] = '2s _ selfset ')
{
Include ("2s_selfset.php ");
} Else
Echo "Please go to this page through normal channels! ";
Exit ();
}}
?>
</TD>
</Tr>
</Table>
</Body>
</Html>