<?php

/*
'**************************************************************************************************
' 程序名称: CCTVAI开源音乐管理系统
' 官方网站: http://www.cctvai.com
' 联系 Q Q: 1542367792
' QQ交流群：136687984
' 版本：(终结版)
' 备注：未经书面授权，不得向任何第三方提供本软件系统！
' 功能，模板，插件，扩展，定制请联系QQ：1542367792
'**************************************************************************************************
*/
error_reporting(0);
include "../include/cctvai.conn.php";
include "../include/cctvai.inc.php";
include "source/function_common.php";
$error="会员注册功能已关闭！";
if(cd_userreg=="no"){exit(include _cctvai_root_ . "/include/error/content_error.php");}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head> 
  <meta http-equiv="Content-Type" content="text/html;charset=gb2312" /> 
  <title>注册账号</title> 
  <link rel="stylesheet" type="text/css" href="<?php echo cd_webpath?>user/static/space/css/common.css" /> 
  <link rel="stylesheet" type="text/css" href="<?php echo cd_webpath?>user/static/space/css/passport.css" /> 
  <script type="text/javascript" src="<?php echo cd_webpath?>user/static/space/js/lib.js"></script> 
  <link href="<?php echo cd_webpath?>plug/asynctips/asynctips.css" rel="stylesheet" type="text/css" /> 
  <script type="text/javascript" src="<?php echo cd_webpath?>plug/asynctips/jquery.min.js"></script> 
  <script type="text/javascript" src="<?php echo cd_webpath?>plug/asynctips/asyncbox.v1.4.5.js"></script> 
  <script type="text/javascript" src="<?php echo cd_webpath?>user/static/space/js/city.js"></script> 
  <script type="text/javascript">
var site_domain="<?php echo cd_webpath?>";
var zone_domain="<?php echo cd_webpath?>user/";
var avatar_url="<?php echo cd_webpath?>user/regAvatar.php";
$ = function(em) {
    if (document.getElementById){ return document.getElementById(em); }
    else if (document.all){ return document.all[em]; }
    else if (document.layers){ return document.layers[em]; }
    else{ return null; }
}
function seccode() {
	var img = zone_domain+'source/ajax.php?ac=loginseccode&rand='+Math.random();
	document.writeln('<img id="img_seccode" src="'+img+'" align="absmiddle" />');
}
function updateseccode() {
	var img = zone_domain+'source/ajax.php?ac=loginseccode&rand='+Math.random();
	if($('img_seccode')) {
		$('img_seccode').src = img;
	}
}
</script> 
 </head> 
 <body> 
  <div class="header"> 
   <div class="header_con"> 
    <div class="logo"> 
    </div> 
    <div class="right"> 
     <a class="home" href="<?php echo cd_webpath?>">网站首页</a> 
     <p>|</p> 
     <a class="help" href="<?php echo cd_webpath?>user/">会员中心</a> 
    </div> 
   </div> 
  </div> 
  <div class="register_body"> 
   <div class="register_title">
    注册账号
   </div> 
   <div class="register_box"> 
    <div class="register_box_left"> 
     <form method="get" onsubmit="register();return false;"> 
      <ul> 
       <li> 
        <div class="title">
         登录邮箱
        </div> 
        <div class="input"> 
         <input type="text" id="ReI_1" class="input_normal" /> 
        </div> 
        <div id="Re_1">
         <div class="err_message">
          <span class="icon">请输入您的邮箱地址作为登录账号</span>
         </div>
        </div> </li> 
       <li> 
        <div class="title">
         设置密码
        </div> 
        <div class="input"> 
         <input type="password" id="ReI_2" class="input_normal" /> 
        </div> 
        <div id="Re_2">
         <div class="err_message">
          <span class="icon">请输入6位以上字符做为密码。</span>
         </div>
        </div> </li> 
       <li> 
        <div class="title">
         确认密码
        </div> 
        <div class="input"> 
         <input type="password" id="ReI_3" class="input_normal" /> 
        </div> 
        <div id="Re_3">
         <div class="err_message">
          <span class="icon">再次输入密码，以确认密码无误。</span>
         </div>
        </div> </li> 
       <li> 
        <div class="title">
         名字
        </div> 
        <div class="input"> 
         <input type="text" id="ReI_4" class="input_normal" /> 
        </div> 
        <div id="Re_4">
         <div class="err_message">
          <span class="icon">2-12字符，禁止空格数字或&lt; &gt; ' &quot; / \</span>
         </div>
        </div> </li> 
      
       <li> 
        <div class="title">
         邮箱
        </div> 
        <div class="input"> 
         <input type="text" id="ReI_11" class="input_normal" /> 
        </div> 
        <div id="Re_11">
         <div class="err_message">
          <span class="icon">请输入您常用的Email电子邮箱。</span>
         </div>
        </div> </li> 
       <li> 
        <div class="title">
         Q Q
        </div> 
        <div class="input"> 
         <input type="text" id="ReI_12" class="input_normal" /> 
        </div> 
        <div id="Re_12">
         <div class="err_message">
          <span class="icon">请输入您的QQ号码。</span>
         </div>
        </div> </li> 
       <li> 
        <div class="title">
         验证码
        </div> 
        <div class="input"> 
         <input id="ReI_13" class="input_normal" type="text" maxlength="4" autocomplete="off" style="width:70px;" /> 
        </div> 
        <div class="vcode"> 
         <div class="noleft"> 
          <script type="text/javascript">seccode();</script> 
         </div> 
         <div class="reloadCode"> 
          <a href="javascript:updateseccode()">看不清？换一张</a> 
         </div> 
        </div> 
        <div id="Re_13"></div> </li> 
       <li> 
        <div class="noleft"> 
         <input class="input_register" type="submit" value="立即注册" /> 
        </div> </li> 
      </ul> 
     </form> 
    </div> 
    <div class="register_box_right"> 
     <div class="title">
      已有账号？
     </div> 
     <div class="reg"> 
      <a href="<?php echo cd_webpath?>user/login.php">赶快登录吧&gt;&gt;</a> 
     </div> 
     <div class="qq"> 
      <div class="or">
       通过合作网站登录
      </div> 
	  <?php
	  error_reporting(0);
	  include "../plug/qqhl/conf.inc.php";
	  if(qqapp_open=="yes"){echo '<a href="' . cd_webpath . 'plug/qqhl/index.php"><img src="'.cd_webpath.'plug/qqhl/qq.png" alt="QQ登录"></a>';}
	  ?>
     </div> 
     <div class="current">
       当前有<p><?php global $db; echo $db->num_rows($db->query("select cd_id from ".tname('session')." ")); ?></p>个帅哥美女在线！
     </div> 
     <ul class="clearfix"> 
				<?php
						global $db;
        					$query = $db->query("select cd_uid,cd_uname from ".tname('session')." order by cd_logintime desc LIMIT 0,8");
        					while ($row = $db->fetch_array($query)) {
							echo '<li><a href="'.linkweburl($row['cd_uid'],$row['cd_uname']).'" target="_blank"><img src="'.linkuserphoto($row['cd_uid'],48).'" /></a></li>';
						}
				?>
     </ul> 
    </div> 
   </div> 
  </div> 
  <script type="text/javascript">
	getcity('','ReI_sheng','','ReI_shi');
	</script> 
  <div class="bottom"> 
   <div class="content">
<a href="mailto:<?php echo cd_webemail?>">本站所有音乐均来自互联网搜集，版权为原作者所有，如有侵犯权益，请联系我们删除！</a> - 
<a href="http://www.miitbeian.gov.cn/" target="_blank"><?php echo cd_webicp?></a> 
<br />Copyright &copy; 2015 
<a href="http://<?php echo cd_weburl?>" target="_blank"><?php echo cd_weburl?></a> .All Rights Reserved. 
<a href="http://<?php echo cd_weburl?>" target="_blank"><?php echo cd_webname?></a> 版权所有 
<?php
global $db;
$sql="Select cd_cnzz from " . tname('system') . "";
$row=$db->getrow($sql);
echo str_decode($row['cd_cnzz']);
?>
   </div> 
  </div>
 </body>
</html>