login.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  6. <title>phpcmsV9 - <?php echo L('member','','member').L('manage_center');?></title>
  7. <link href="<?php echo CSS_PATH;?>reset.css" rel="stylesheet" type="text/css" />
  8. <link href="<?php echo CSS_PATH;?>table_form.css" rel="stylesheet" type="text/css" />
  9. <script type="text/javascript" src="<?php echo JS_PATH;?>jquery.min.js"></script>
  10. <script type="text/javascript" src="<?php echo JS_PATH;?>cookie.js"></script>
  11. <script type="text/javascript" src="<?php echo JS_PATH;?>member_common.js"></script>
  12. <script type="text/javascript" src="<?php echo JS_PATH;?>dialog.js"></script>
  13. <script type="text/javascript" src="<?php echo JS_PATH;?>formvalidator.js" charset="UTF-8"></script>
  14. <script type="text/javascript" src="<?php echo JS_PATH;?>formvalidatorregex.js" charset="UTF-8"></script>
  15. <script language="JavaScript">
  16. <!--
  17. $(function(){
  18. $.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
  19. $("#username").formValidator({onshow:"<?php echo L('input').L('username');?>",onfocus:"<?php echo L('between_2_to_20');?>"}).inputValidator({min:2,max:20,onerror:"<?php echo L('between_2_to_20');?>"}).regexValidator({regexp:"ps_username",datatype:"enum",onerror:"<?php echo L('username').L('format_incorrect');?>"});
  20. $("#password").formValidator({onshow:"<?php echo L('input').L('password');?>",onfocus:"<?php echo L('password').L('between_6_to_20');?>"}).inputValidator({min:6,max:20,onerror:"<?php echo L('password').L('between_6_to_20');?>"});
  21. });
  22. //-->
  23. </script>
  24. <link href="<?php echo CSS_PATH;?>dialog_simp.css" rel="stylesheet" type="text/css" />
  25. <style type="text/css">
  26. .submit,.pass-logo a,.form-login .input label,.item span{display:inline-block;zoom:1;*display:inline;}
  27. .blue,.blue a{color:#377abe}
  28. .log{line-height:24px; height:24px;float:right; font-size:12px}
  29. .log span{color:#ced9e7}
  30. .log a{color:#049;text-decoration: none;}
  31. .log a:hover{text-decoration: underline;}
  32. #header{ height:94px; background:url(<?php echo IMG_PATH;?>member/h.png) repeat-x}
  33. #header .logo{ padding-right:100px;float:left;background:url(<?php echo IMG_PATH;?>member/login-logo.png) no-repeat right 2px;}
  34. #header .content{width:920px; margin:auto; height:60px;padding:10px 0 0 0}
  35. #content{width:920px; margin:auto; padding:36px 0 0 0}
  36. .form-login{ width:440px; padding-left:40px}
  37. .form-login h2{font-size:25px;color:#494949;border-bottom: 1px dashed #CCC;padding-bottom:3px; margin-bottom:10px}
  38. .form-login .input{ padding:7px 0}
  39. .form-login .input label{ width:84px;font-size:14px; color:#888; text-align:right}
  40. .take,.reg{padding:0 0 0 84px}
  41. .take .submit{ margin-top:10px}
  42. .form-login .hr{background: url(<?php echo IMG_PATH;?>member/line.png) no-repeat left center; height:50px;}
  43. .form-login .hr hr{ display:none}
  44. .submit{padding-left:3px}
  45. .submit,.submit input{ background: url(<?php echo IMG_PATH;?>member/but.png) no-repeat; height:29px;cursor:hand;}
  46. .submit input{background-position: right top; border:none; padding:0 10px 0 7px; font-size:14px}
  47. .reg{ color:#666; line-height:24px}
  48. .reg .submit{background-position: left -35px; height:35px}
  49. .reg .submit input{background-position: right -35px; font-weight:700; color:#fff; height:35px}
  50. .col-1{position:relative; float:right; border:1px solid #c4d5df; zoom:1;background: url(<?php echo IMG_PATH;?>member/member_title.png) repeat-x; width:310px; margin: auto; height:304px}
  51. .col-1 span.o1,
  52. .col-1 span.o2,
  53. .col-1 span.o3,
  54. .col-1 span.o4{position:absolute;width:3px;height:3px; overflow:hidden;background: url(<?php echo IMG_PATH;?>fillet.png) no-repeat}
  55. .col-1 span.o1{background-position: left -6px; top:-1px; left:-1px}
  56. .col-1 span.o2{background-position: right -6px; top:-1px; right:-1px}
  57. .col-1 span.o3{background-position: left -9px; bottom:-1px; left:-1px}
  58. .col-1 span.o4{background-position: right -9px; bottom:-1px; right:-1px;}
  59. .col-1 .title{color:#386ea8; padding:5px 10px 3px}
  60. .col-1 div.content{padding:0px 10px 10px}
  61. .col-1 div.content h5{background: url(<?php echo IMG_PATH;?>member/ext-title.png) no-repeat 2px 10px; height:34px}
  62. .col-1 div.content h5 strong{ visibility: hidden}
  63. .pass-logo{ margin:auto; width:261px; padding-top:15px}
  64. .pass-logo p{border-top: 1px solid #e1e4e8; padding-top:15px}
  65. .item{padding:10px 0; vertical-align:middle; margin-bottom:10px}
  66. .item span{ color:#8c8686}
  67. .login-list li{ float:left;height:26px; margin-bottom:14px;width:123px;background:url(<?php echo IMG_PATH;?>member/mbg.png) no-repeat}
  68. .login-list li a{ display:block;background-repeat:no-repeat; background-position:6px 5px;height:26px; padding-left:36px; line-height:26px}
  69. .login-list li a:hover{text-decoration: none;}
  70. #footer{color:#666; line-height:24px;width:920px; margin:auto; text-align:center; padding:12px 0; margin-top:52px; border-top:1px solid #e5e5e5}
  71. #footer a{color:#666;}
  72. </style>
  73. </head>
  74. <body>
  75. <div id="header">
  76. <div class="content">
  77. <div class="logo"><a href="<?php echo $siteinfo['domain'];?>"><img src="<?php echo IMG_PATH;?>v9/member_logo.jpg"/></a></div>
  78. <span class="rt log"></span>
  79. </div>
  80. </div>
  81. <div id="content">
  82. <div class="col-left form-login" id="logindiv">
  83. <form method="post" action="" onsubmit="save_username();" id="myform" name="myform">
  84. <input type="hidden" name="forward" id="forward" value="<?php echo $forward;?>">
  85. <h2><?php echo L('member').L('login');?></h2>
  86. <div class="input">
  87. <label><?php echo L('username');?>:</label><input type="text" id="username" name="username" size="22" class="input-text">
  88. </div>
  89. <div class="input">
  90. <label><?php echo L('password');?>:</label><input type="password" id="password" name="password" size="22" class="input-text">
  91. </div>
  92. <div class="input">
  93. <label><?php echo L('checkcode');?>:</label><input type="text" id="code" name="code" size="8" class="input-text"><?php echo form::checkcode('code_img', '5', '14', 120, 26);?>
  94. </div>
  95. <div class="take">
  96. <input type="checkbox" name="cookietime" value="2592000" id="cookietime"> <?php echo L('remember');?><?php echo L('username');?>
  97. <a href="index.php?m=member&c=index&a=public_get_password_type&siteid=<?php echo $siteid;?>" class="blue"><?php echo L('forgetpassword');?></a><br />
  98. <div class="submit"><input type="submit" name="dosubmit" id="dosubmit" value="<?php echo L('login');?>"></div></div>
  99. <div class="hr"><hr /></div>
  100. <div class="reg"><?php echo L('no_phpcms_account');?><br />
  101. <div class="submit"><input type="button" name="register" value="<?php echo L('immediately').L('register');?>" onclick="redirect('<?php echo APP_PATH;?>index.php?m=member&c=index&a=register&siteid=<?php echo $siteid;?>')"></div></div>
  102. </form>
  103. </div>
  104. <div class="col-auto">
  105. <?php if($setting['connect_enable']) { ?>
  106. <div class="col-1">
  107. <div class="content">
  108. <h5><strong><?php echo L('use_passport');?></strong></h5>
  109. <div class="pass-logo">
  110. <ul class="item login-list clear blue">
  111. <?php if($setting['snda_akey'] || $setting['snda_skey']) { ?>
  112. <li style="margin-right:14px;"><a href="javascript:;" onclick="show_login('snda');return false;" style="background-image:url(<?php echo IMG_PATH;?>member/logo/snda_16_16.png)">盛大通行证</a></li>
  113. <?php } ?>
  114. <?php if($setting['sina_akey'] || $setting['sina_skey']) { ?>
  115. <li><a href="javascript:;" onclick="show_login('sina');return false;" style="background-image:url(<?php echo IMG_PATH;?>member/logo/sina_16_16.png)">新浪微博登录</a></li>
  116. <?php } ?>
  117. <?php if($setting['qq_akey'] || $setting['qq_skey']) { ?>
  118. <li style="margin-right:14px;"><a href="javascript:;" onclick="show_login('qq');return false;" style="background-image:url(<?php echo IMG_PATH;?>member/logo/qq_16_16.png)">腾讯微博登录</a></li>
  119. <?php } ?>
  120. <?php if($setting['qq_appkey'] || $setting['qq_appid']) { ?>
  121. <li style="margin-right:14px;"><a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=public_qq_loginnew" target="_blank" style="background-image:url(<?php echo IMG_PATH;?>member/logo/qq_16_16.png)">腾讯QQ登录</a></li>
  122. <?php } ?>
  123. </ul>
  124. <p>
  125. <span class="blue"><?php echo L('other_passport_introduce');?></span>
  126. <br />
  127. <?php echo L('other_passport_info');?>
  128. </p>
  129. </div>
  130. </div>
  131. <span class="o1"></span><span class="o2"></span><span class="o3"></span><span class="o4"></span>
  132. </div>
  133. <?php } else { ?>
  134. <div class="col-1">
  135. <script language="javascript" src="<?php echo APP_PATH;?>index.php?m=poster&c=index&a=show_poster&id=2"></script>
  136. </div>
  137. <?php } ?>
  138. </div>
  139. </div>
  140. <script language="JavaScript">
  141. <!--
  142. $(function(){
  143. $('#username').focus();
  144. })
  145. function save_username() {
  146. if($('#cookietime').attr('checked')==true) {
  147. var username = $('#username').val();
  148. setcookie('username', username, 3);
  149. } else {
  150. delcookie('username');
  151. }
  152. }
  153. var username = getcookie('username');
  154. if(username != '' && username != null) {
  155. $('#username').val(username);
  156. $('#cookietime').attr('checked',true);
  157. }
  158. function show_login(site) {
  159. if(site == 'sina') {
  160. art.dialog({lock:false,title:'<?php echo L('sina_login');?>',id:'protocoliframe', iframe:'index.php?m=member&c=index&a=public_sina_login',width:'500',height:'310',yesText:'<?php echo L('close');?>'}, function(){
  161. });
  162. } else if(site == 'snda') {
  163. art.dialog({lock:false,title:'<?php echo L('snda_login');?>',id:'protocoliframe', iframe:'index.php?m=member&c=index&a=public_snda_login',width:'500',height:'310',yesText:'<?php echo L('close');?>'}, function(){
  164. });
  165. } else if(site == 'qq') {
  166. art.dialog({lock:false,title:'<?php echo L('qq_login');?>',id:'protocoliframe', iframe:'index.php?m=member&c=index&a=public_qq_login',width:'500',height:'310',yesText:'<?php echo L('close');?>'}, function(){
  167. });
  168. }
  169. }
  170. //-->
  171. </script>
  172. <?php include template('member', 'footer'); ?>