<?php $title = '修改资料 - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<style type="text/css">.red {color:red;}</style>
<div class="lind"><a href="javascript:history.go(-1);">返回上级</a> <?php echo memberLink();?> <a href="<?php echo url('system',array('s'=>'member','c'=>'my','a'=>'progress'));?>">进度</a> <a href="<?php echo url('type');?>">书库</a></div>
<form action="<?php echo url('system',array('s'=>'member','c'=>'setting','a'=>'info'));?>" method="post">
用户名:<?php echo $this->filter($member['username']);?>
<br/>
SID:<?php echo $member['iorange'];?>
<br/>
性别:
<?php echo iHtml::select('gender', $member['gender'], array(0=>gender(0), 1 => gender(1), 2 => gender(2)));?>
<br/>
生日:
<?php list($year, $month, $day) = explode('-',$member['birth']);?>
<select name="birth_year">
<?php $years = getBirthYear();?>
<option value="0000">年份</option>
<?php foreach ($years as $y):?>
	<option value="<?php echo $y;?>"<?php if ($y == $year):?> selected<?php endif;?>><?php echo $y;?></option>
<?php endforeach;?>
</select>
<?php echo iHtml::monthSelect('birth_month', $month)?>

<?php echo iHtml::dateSelect('birth_day', $day)?>
<br/>
血型:
<?php echo iHtml::select('bloodtype', $member['bloodtype'], array(1 => 'A型', 2 => 'B型', 3 => 'O型', 4 => 'AB型', 0 => '其它'));?>
<br/>
星座:
<?php echo iHtml::select('stellation', $member['stellation'], array('' => '选择星座', 1 => '巨蟹座', 2 => '水瓶座', 3 => '双鱼座', 4 => '牧羊座', 5 => '金牛座', 6 => '双子座', 7 => '狮子座', 8 => '处女座', 9 => '天秤座', 10 => '天蝎座', 11 => '射手座', 12 => '摩羯座'));?>
<br/>
生肖:
<?php echo iHtml::select('sx', $member['sx'], array(0 => '选择生肖', 1 => '鼠', 2 => '牛', 3 => '虎', 4 => '兔', 5 => '龙', 6 => '蛇', 7 => '马', 8 => '羊', 9 => '猴', 10 => '鸡', 11 => '狗', 12 => '猪'));?>
<br/>
省份:<select name="province" value="<?php echo $member['province'];?>">
<?php $province = Members::getProvince();?>
<option value="0">选择省份</option>
<?php foreach ($province as $key => $p):?>
	<option value="<?php echo $key;?>"<?php if ($key == $member['province']):?> selected<?php endif;?>><?php echo $p;?></option>
<?php endforeach;?>
</select>
<br/>
城市:<input name='city' type='text' size="14" value="<?php echo $member['city'];?>" />
<br/>
QQ:<input name='qq' type='text' size="14" value="<?php echo $member['qq'];?>" />
<br/>

阅读页显示书评:
<?php echo iHtml::select('viewcomment', $member['viewcomment'], array(1 => '显示', 0 => '不显示'));?>
<br/>
我最爱的小说:<input name="book" type="text" size="14" value="<?php echo $member['book'];?>" />(限30个字)
<br/>
E-mail:<input name='email' type='text' size="14" value="<?php echo $member['email'];?>" />
<br/>
阅读字数:<input name='size' type='text' size="10" value="<?php echo $member['size'];?>" />
<br/>
个性签名:
<textarea name="sign" rows="3"><?php echo $member['sign'];?></textarea>
<br/>
<br/>
【隐私设置】
<br/>
加我为好友时身份验证: 
<?php echo iHtml::select('fstatus', $member['fstatus'], array(0 => '允许任何人加我为好友', 1 => '需要身份验证才能加我为好友', 2 => '不允许任何人加我为好友'));?>
<br/>
个人空间:
<?php echo iHtml::select('zstatus', $member['zstatus'], array(0 => '任何人可见', 1 => '仅好友可见', 2 => '仅自己可见'));?>
<br/>
允许被搜索:
<?php echo iHtml::select('issearch', $member['issearch'], array(1 => '允许', 0 => '不允许'));?>(是否允许好友功能搜索，选择‘否’将不会被搜索到)
<br/>
公开书架:
<?php echo iHtml::select('bookshelf', $member['bookshelf'], array(1 => '公开', 0 => '保密'));?>
<br/>
<input type="hidden" name="save" value="1" />
<input type="submit" value="保存资料" />
</form>

<div class="kind">【SID说明】</div>
SID为每个用户的登录密钥，注册时自动生成,
假设用户的SID为<span class="red"><?php echo $member['iorange'];?></span>，那么可以保存类似下面的链接为书签,通过该地址进入本站,系统会自动帮你登录

,例:<?php echo setting('basehost') . setting('path') . 'index.php?sid=' . $member['iorange'];?>
<br/>
由于SID直接关涉到您的个人信息，所以请用户不要将SID透露给其他人知道,并请注意保密您的手机号码信息.<?php echo setting('webname');?>承诺不会以任何方式将您的信息泄露,请用户自觉注意个人信息的保密

<?php include_once tpl('globalFooter');?>