<script language=JavaScript1.2>
function ismail(mail)
{
	return(new RegExp(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/).test(mail));
}
function isstr(website)
{
	return(/[^a-zA-Z]/g.test(website));
}
function regcheck(formct){
	if (!ismail(formct.email.value)){
		alert('email格式不对,请填写');
		return false;
	}
}
function sitecheck(formct){
	if (isstr(formct.website.value)){
		alert('站点代码格式不对,请填写');
		return false;
	}
}
</script>  
{/if $selectMode == "user"/} 
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" >
  <tr class=line_title> 
    <td>&nbsp;</td>
  </tr>
  <tr class=line_title> 
    <td><strong>个人账户信息</strong></td>
  </tr>
  <tr class=line_title> 
    <td><form name="formuser" method="post" action="" onSubmit='return regcheck(formuser)'>
        <table   style="BORDER-COLLAPSE: collapse" borderColor=#93C2DC cellPadding=2 width="100%" border=1>
          <tr > 
            <td width="20%"> 
              <div align="right">密码:</div></td>
            <td width="80%"><input name="password" type="password" class=input id="password"  maxlength="12">
              若不修改留空 
              ！</td>
          </tr>
          <tr > 
            <td> 
              <div align="right">用户权限:</div></td>
            <td><select name="group">
                <option value="{/$UserData.group/}">{/$UserData.groupname/}</option>
				<option value="superadmin">帐户管理员</option>
				<option value="admin">帐户管理员</option>
                <option value="guest">仅查看报告</option>
                </select>
              <strong>系统管理员</strong>拥有全部权限，<strong>管理员</strong>没有系统管理权限</td>
          </tr>
          <tr > 
            <td> 
              <div align="right">QQ:</div></td>
            <td><input name="qq" type="text" id="qq" value="{/$UserData.qq/}" class=input></td>
          </tr>
          <tr > 
            <td> 
              <div align="right">Email:</div></td>
            <td><input name="email" type="text" id="email" class=input  value="{/$UserData.email/}"></td>
          </tr>
          <tr > 
            <td height="33"> 
              <div align="right">Msn:</div></td>
            <td><input name="msn" type="text" id="msn" class=input   value="{/$UserData.msn/}"></td>
          </tr>
          <tr > 
            <td colspan=2 align=center><div align="right"><font color="#FFFFFF"> 
                <input type="button" name="Submit22" value=" 返回 " class=pagebutton onclick="window.history.go(-1)">
                <input name="managerid" type="hidden" id="managerid" value="{/$UserData.id/}">
                </font> 
                <input type="submit" name="Submit2" value=" 修改 " class=pagebutton>
                <input name="action" type="hidden" id="action24" value="updateuser">
              </div></td>
          </tr>
        </table>
      </form></td>
  </tr>
  </table>
  {//if/} {/if 
  $selectMode 
  == "site"/}
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" >
  <tr class=line_title>
    <td>&nbsp;</td>
  </tr>
  <tr class=line_title> 
    <td><strong>修改一个站点的信息</strong></td>
  </tr>
  <tr valign="top"> 
    <td height="219"> 
      <form action="" method="post" name="formedit" id="formedit"  onSubmit='return sitecheck(formedit)'>
        <table  style="BORDER-COLLAPSE: collapse" borderColor=#93C2DC cellPadding=2 width="100%" border=1>
          <tr> 
            <td width="20%"><strong>站点信息</strong></td>
            <td width="80%">&nbsp;</td>
          </tr>
          <tr> 
            <td>站点名称*</td>
            <td> 
              <input name="sitename" type="text" id="sitename" value="{/$UserData.sitename/}" maxlength="10" class=input> 
            </td>
          </tr>
          <tr> 
            <td>站点代码*</td>
            <td> 
              <input name="website" type="text" id="sitename" value="{/$UserData.website/}" maxlength="10"  class=input>
              站点统计代码,字符[a-Z]</td>
          </tr>
          <tr> 
            <td>站点介绍*</td>
            <td> 
              <input name="sitedes" type="text" id="sitedes" value="{/$UserData.sitedes/}" size="50" maxlength="125"  class=input> 
            </td>
          </tr>
          <tr> 
            <td>站点地址*</td>
            <td> 
              <input name="site" type="text" id="site" value="{/$UserData.site/}" size="50" maxlength="125"  class=input> 
            </td>
          </tr>
          <tr> 
            <td>网站类型*</td>
            <td> 
              <select name="sitetype"  class=input>
                <option selected>{/$UserData.sitetype/}</option>
                <option>影视</option>
                <option>音乐</option>
                <option>电子竞技</option>
                <option>文学艺术</option>
                <option>软件下载</option>
                <option>网址大全</option>
                <option>论坛与聊天</option>
                <option>硬件与网络</option>
                <option>娱乐休闲</option>
                <option>医疗健康</option>
                <option>体育运动</option>
                <option>社科文化</option>
                <option>教育与就业</option>
                <option>政法与军事</option>
                <option>媒体与资料</option>
                <option>个人主页</option>
                <option>商业经济</option>
                <option>在线服务</option>
                <option>其他</option>
                <!--FIXME-->
              </select> 
            </td>
          </tr>
          <tr> 
            <td height="27" colspan="2"> 
              <div align="right"><font color="#FFFFFF"> 
                <input name="action" type="hidden" id="action2" value="updatesite">
                <input name="websiteid" type="hidden" id="websiteid" value="{/$UserData.id/}">
                </font> 
                <input name="button" type="submit" class=pagebutton id="button" value=" 修改 ">
              </div>
              <div align="left"></div></td>
          </tr>
         
        </table>
      </form></td>
  </tr>
</table> {//if/} 
