<!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>
<title>vodcms.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../../images/admin/public.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->basedir;?>js/datepicker.css" rel="stylesheet" type="text/css" />
<link href="../../images/admin/style.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->basedir;?>js/jquery.js" language="javascript"></script>
<script src="<?php echo $this->basedir;?>js/ui.datepicker.js"></script>
<script language="javascript">
$(document).ready(function() {
     $("#ta tr").mouseover(function(){
      $(this).addClass("double");
     });
     $("#ta tr").mouseout(function(){
      $(this).removeClass("double");
     });
	// $("#ta tr:even").addClass("double");
	 $('#mostrar').click(function(){$('#sh').toggle();});
	 /*全选*/
	 $("#checkall").click(function() {
	 	$("input[@name='movid[]']").each(function() {
			$(this).attr("checked", $('#checkall').attr('checked'));
		});
	});
    $('#lifetime').datepicker()
});
</script>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr align="center" valign="top">
    <td width="*" align="center" valign="top">
	<!-- ######### begin ######### -->
      <div class="Block">
        <div class="BlockBar">编辑用户资料页面</div>
		<form action="<?php echo $this->installdir;?>user/modify/" method="post">
		<table width="98%" border="0" align="center" cellpadding="4" id="ta" cellspacing="1" class="tab">
		  <tr class="row">
		    <td width="19%" class="align-right">用户编号：</td>
		    <td width="81%"><?php echo $this->modify['uid'];?></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">用户名：</td>
		    <td><?php echo $this->modify['username'];?></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">登录密码：</td>
		    <td><input type="text" name="password" id="password" /></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">性别：</td>
		    <td><input type="radio" name="gender"  class="checkbox" value="1" id="radiobutton" <?php if ($this->modify['gender'] == 1) echo 'checked="checked"';?> />
		      <label for="radiobutton">男</label>
		      <input type="radio" name="gender"  class="checkbox" value="2" id="radio" <?php if ($this->modify['gender'] == 2) echo 'checked="checked"';?> />
		      <label for="radio">女</label>
		      <input type="radio" name="gender" class="checkbox" value="0" id="radio2" <?php if ($this->modify['gender'] == 0) echo 'checked="checked"';?> />
		     <label for="radio2"> 保密</label></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">联系邮箱：</td>
		    <td><label for="textfield"></label>
		      <input name="email" type="text" id="textfield" value="<?php echo $this->modify['email'];?>" /></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">消费模式：</td>
		    <td>
		      <select name="usertype" id="usertype">
		        <option value="0" <?php echo $this->modify['usertype'] ? '' : 'selected="selected"';?> >扣点消费</option>
		        <option value="1" <?php echo $this->modify['usertype'] ? 'selected="selected"' : '';?> >计时消费</option>
		      </select>      </td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">用户组：</td>
		    <td>
		      <select name="usergroup" id="groupid">
		        <option value="0" <?php if ($this->modify['usergroup']==0) echo 'selected="selected"';?> >游客</option>
		        <?php echo $this->groupOption;?>
		      </select></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">剩余影币：</td>
		    <td>
		      <input name="point" type="text" id="label2" value="<?php echo $this->modify['point'];?>" /></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">包月到期：</td>
		    <td>
		      <input name="lifetime" type="text" class="time" id="lifetime" value="<?php echo ($this->modify['lifetime'] < time()) ? date('Y-m-d') :date('Y-m-d',$this->modify['lifetime']);?>" /></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">注册时间：</td>
		    <td><?php echo date("Y-m-d H:i:s",$this->modify['regdate']);?></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">登录次数：</td>
		    <td><?php echo intval($this->modify['logins']);?></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">付费次数：</td>
		    <td><?php echo intval($this->modify['payment']);?></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">最近登录：</td>
		    <td><?php echo date("Y-m-d H:i:s",$this->modify['logintime']);?></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">最后点播时间：</td>
		    <td><?php echo date("Y-m-d H:i:s", $this->modify['playtime']);?></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">今日点播数：</td>
		    <td><input name="plays" type="text" id="plays" value="<?php echo $this->modify['plays'];?>" /></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">绑定IP：</td>
		    <td>
		      <input name="bindip" type="text" id="label4" value="<?php echo $this->modify['bindip'];?>" />
		      *为空为不绑定IP</td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">帐户状态：</td>
		    <td><input name="locked" type="radio" class="checkbox" id="radio3" value="1" <?php echo $this->modify['locked'] ? 'checked' : '';?> />
		      <label for="radio3">锁定中</label>
		      <input name="locked" type="radio" class="checkbox" id="radio4" value="0" <?php if($this->modify['locked']==1) echo'checked';?> />
		      <label for="radio5">解锁中
		      <input name="locked" type="radio" class="checkbox" id="radio5" value="2" <?php if($this->modify['locked']==2) echo'checked';?> />
		      未激活</label></td>
		  </tr>
		  <tr class="row">
		    <td class="align-right">&nbsp;</td>
		    <td>
		      <input type="submit" value=" 提 交 " class="btn" />
		      <input type="hidden" value="<?php echo $this->modify['uid'];?>" name="uid" />
		      <input type="button" name="Submit2" value=" 返回列表 " onclick="history.back()" class="btn"/></td>
		  </tr>
		</table></form>
      </div>
      <div id="App-Version-Prompt" style="display:none;">
        <div class="space"></div>
        <div class="Block">
          <div class="BlockBar">版本更新信息</div>
          <div class="BlockContent" id="App-Version-Prompt-Body" style="padding:20px 5px 20px 5px; text-align:center; background:#FFFFCC;">loading...</div>
        </div>
      </div>
      <!-- ########## end ########## -->
    </td>
    <td width="5"></td>
    <td width="150" align="center" valign="top">
    <?php
	echo $this->render('menu');
	?>
     </td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>

