<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo _conf( 'WEB_SITE_SEO_TOP_WORD' ) ?><?php echo $top_title ?> - <?php echo _conf( 'WEB_SITE_NAME' ) ?></title>
<meta name="keywords" content="<?php echo _conf( 'WEB_SITE_SEO_META_KEYWORD' ) ?>">
<meta name="description" content="<?php echo _conf( 'WEB_SITE_SEO_META_DESCRIP' ) ?>">
<?php echo _conf('WEB_SITE_SEO_HEADER_CODE'); ?>
<link href="res/css/douya.css" rel="stylesheet" type="text/css">
</head>

<body>

<?php  
	include_once( ROOT . 'res/tpl/header.tpl.html' );
?>
<table border="0" width="98%" id="table1" cellspacing="5" cellpadding="5" height="400px" align="center">
	<tr>
		<td>
		<!-- main -->
		<form action="/?a=settings_save" method="POST" name="settings_form">
		<table cellpadding="5"><tr><td class="m" valign="top" align="right">名　号: </td>
    <td valign="top">
	<?php if( _conf('DZ_ON') ): ?>
	<input name="dy_nickname" type="text" size="10" maxlength="15" value="<?php echo $user['dy_nickname'] ?>" readOnly/>
	<span class="explain">为于Discuz数据同步，名号不允许修改</span>
	<?php else: ?>
	<input name="dy_nickname" type="text" size="10" maxlength="15" value="<?php echo $user['dy_nickname'] ?>"/>
	<?php endif;?>
	<br/><br/></td></tr>
    <tr><td class="m" valign="top" align="right">头　像:</td>
    <td valign="top">
	<?php if( file_exists( $user_icon = get_user_icon_path( $_SESSION['dy_uid'] ) ) ): ?>
	<p><img class="pil" src="<?php echo show_user_icon( $_SESSION['dy_uid'] ) ?>" align="left" valign="middle"/>　　<a href="?a=user_icon">更新</a></p>
	<?php else: ?>
	<a href="?a=user_icon">放你的头像上来</a>
    <?php endif; ?><br/><br/></td></tr>
    <tr><td class="m" valign="top" align="right">常居地:</td>
    <td valign="top">
	<?php if( !is_empty($user['dy_city']) &&  $user['dy_city'] != 0 ): ?>
	<a href="?a=location&city=<?php echo $user['dy_city'] ?>" ><?php echo $user['dy_city_name'] ?></a>&nbsp;<a href="?a=location&city=<?php echo $user['dy_city'] ?>" >搬家</a>
	<?php else: ?>
	 <a href="?a=location">到同城<?php echo _conf( 'WEB_SITE_NAME' ) ?>找我的居住城市</a>
    <?php endif; ?>
   <br/><br/></td></tr>
<tr><td class="m" valign="top" align="right">blog地址: </td>
    <td valign="top">http://<input name="dy_blog" type="text" size="47" maxlength="90" value="<?php echo $user['dy_blog'] ?>"/><br/><br/></td></tr>
    <tr><td class="m" valign="top" align="right">自我介绍: </td>
    <td valign="top"><textarea name="dy_desp" rows="12" cols="49"><?php echo $user['dy_desp'] ?></textarea></td></tr>
   <tr><td valign="top" class="m" align="right">username: </td>
        <td valign="top"><?php if( is_empty( $user['dy_username'] ) ): ?>
		<input name="dy_username" type="text" size="15" maxlength="15" value="<?php echo $user['dy_username'] ?>"/> (永久有效)
        <?php else: ?>
		<?php echo $user['dy_username'] ?>
		<?php endif; ?>
		</td></tr>
		
		<tr><td valign="top" class="m" align="right">隐私: </td>
        <td valign="top"><input type="checkbox" name="dy_ismailok" value="0" <?php if( $user['dy_ismailok'] == 0 ) echo 'checked' ?>/>别给我发email通知我有新的站内邮件</td></tr>
    
    <tr><td/><td>
	<input name="id" type="hidden" value="<?php echo $user['id'] ?>">
     <input name="dy_submit" type="submit" class="dbutton"  value="更新我的设置" tabindex="8"/>
     <input name="dy_cancel" type="reset" class="dbutton" value="撤消" tabindex="9"/>
    </td></tr></table>
		</form><?php echo $vf_js; ?>
		
		</td>
		<td width="300px" class=top>
		<!-- right -->
		<?php if( is_empty( $user['dy_username'] )): ?>
		<p class="title_1">永久username　· · · </p>
    <div class="info_box" >
        你现在在<?php echo _conf( 'WEB_SITE_NAME' ) ?>的个人主页是:<br/>
        &nbsp;&nbsp;<?php echo _conf( 'WEB_SITE_ROOT_URL' ) ?>?a=people&uid=<?php echo $user['id'] ?>。<br/><br/>
        你可以自选一个username代替你现在的数字用户ID (<?php echo $user['id'] ?>)。这样你可以拥有个性化的URL指向你的在<?php echo _conf( 'WEB_SITE_NAME' ) ?>的个人主页和收藏页。比如，如果你用"datou"作username, <br/>
        &nbsp;&nbsp;<?php echo _conf( 'WEB_SITE_ROOT_URL' ) ?>?a=people&username=datou <br/>
        是你的个人主页，　<br/>
        &nbsp;&nbsp;<?php echo _conf( 'WEB_SITE_ROOT_URL' ) ?>?a=collection&username=datou <br/>
        是你的收藏页。</span><br/><br/>
        <b>username只可以设一次，以后不可更改。</b><span class="pl">这是为了避免别人联接到你的主页时产生坏链接。如果现在你不是百分之百的确定，可以暂时留为空，等以后再说。<br/><br/>
        username最长15个字符，可以包含英文字母、数字、和三个符号(. - _)。第一个字符必须为英文字母。大小写有区分，比如datou和DaTou是不同的两个成员。
        </p></div>
		<?php endif; ?>
		</td>
	</tr>
</table>
<?php  
	include_once( ROOT . 'res/tpl/footer.tpl.html' );
?>
</body>

</html>