<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/} 
