<?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";
$avatar=cd_webpath."upload/userpic/".$CcTvAi_com_userid."_200x200.jpg";
?>
<!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" />
<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>
</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 id="modifyAvatar" class="profile" style="float: none;">
		<div class="title">添加头像</div>
		<div class="avatar_box">
			<div class="avatarTitle">当前头像<span>设置头像</span></div>
			<div class="myAvatar" id="avatar"><img class="avatar-160" width="160" height="160" src="<?php echo linkuserphoto(0,200);?>"></div>
							<div class="myAvatarUpload">
		 <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="432" height="316" id="tmp" align="middle">
		 <param name="allowScriptAccess" value="always" />
		 <param name="allowFullScreen" value="false" />
		 <param name="wmode" value="opaque" />
		 <param name="movie" value="<?php echo cd_webpath?>user/static/swf/avatar.swf"/>
		 <param name="quality" value="high" />
		 <param name="bgcolor" value="#ffffff" />
		 <embed src="<?php echo cd_webpath?>user/static/swf/avatar.swf" quality="high" wmode="opaque" bgcolor="#ffffff" width="432" height="316" name="browse" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer_cn"/>
		 </object>
</div>
			<div class="style" id="next"><a href="javascript:;" onclick="asyncbox.tips('请先上传头像！', 'wait', 1000);">下一步</a></div>
		</div>
	</div>
  <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> 
	<script type="text/javascript">
	function UploadPicSucceed() {
		$("#avatar").html('<img class="avatar-160" width="160" height="160" src="<?php echo $avatar; ?>">');
		$("#next").html('<a href="<?php echo rewrite_url('space.php?do=home');?>">下一步</a>');
		asyncbox.tips('头像保存成功！', 'success', 1000);
	}
	</script>
</body>
</html>