
<script language="javascript1.2">

function checkform( Obj )
{
	if( Obj.oldpassword.value == '' )
	{
		alert('修改资料必须输入密码!');
		Obj.oldpassword.focus();
		return false
	}
	if( Obj.password.value != Obj.repassword.value )
	{
		alert('修改密码，两次输入密码必须一致!');
		Obj.password.focus();
		return false
	}
}

</script>
<body>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" >
  <tr class=line_title>
    <td><strong>个人账户信息</strong></td>
  </tr>
  <tr> 
    <td><form name="form1" method="post" action="" onSubmit="return checkform( this );">
        <table style="BORDER-COLLAPSE: collapse" borderColor=#93C2DC cellPadding=2 width="100%" border=1>
          <tr> 
            <td colspan="2"><strong>修改密码</strong>&nbsp;</td>
          </tr>
          <tr> 
            <td>原密码</td>
            <td> 
              <input name="oldpassword" type="password" id="oldpassword2" maxlength="50" class=input>
              必须输入原来密码才能修改资料</td>
          </tr>
          <tr> 
            <td width="20%">新密码</td>
            <td width="80%"> 
              <input name="password" type="password" id="password2" class=input>
              不修改请留空</td>
          </tr>
          <tr> 
            <td>重复密码</td>
            <td> 
              <input name="repassword" type="password" id="repassword2" class=input> 
            </td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td><div align="right"> 
                <input type="submit" name="Submit" value="确定" class=pagebutton>
                <input name="action" type="hidden" id="action5" value="save">
                <input name="actionp" type="hidden" id="action" value="true">
              </div></td>
          </tr>
        </table>
      </form></td>
  </tr>
  <tr class=line_title> 
    <td><strong>新建/修改一个站点的信息</strong></td>
  </tr>
  <tr valign="top"> 
    <td> <form name="form2" method="post" action="">
        <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="oldpassword" type="password" id="oldpassword2" maxlength="50" class=input>
              必须输入原来密码才能修改资料,若是新建则不需要</td>
          </tr>
          <tr> 
            <td>站点名称*</td>
            <td> 
              <input name="sitename" type="text" id="sitename2" value="{/$UserData.sitename/}" maxlength="10" class=input> 
            </td>
          </tr>
          <tr> 
            <td>站点代码*</td>
            <td> 
              <input name="website" type="text" id="sitename2" value="{/$UserData.website/}" maxlength="10" onblur="if(/[^a-zA-Z]/g.test(this.value))alert('要求全为字母组成')" class=input>
              站点统计代码,字符[a-Z]</td>
          </tr>
          <tr> 
            <td>站点介绍*</td>
            <td> 
              <input name="sitedes" type="text" id="sitedes2" value="{/$UserData.sitedes/}" size="50" maxlength="125"  class=input> 
            </td>
          </tr>
          <tr> 
            <td>站点地址*</td>
            <td> 
              <input name="site" type="text" id="site2" 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>&nbsp;</td>
            <td><div align="right"><font color="#FFFFFF"> 
                <input name="id" type="hidden" id="action6" value="{/$UserData.id/}">
                <input name="action" type="hidden" id="action" value="{/$actionnew|default:save/}">
                </font> 
                <input type="submit" name="editsite" value="确定" class=pagebutton>
                <input type="submit" name="newsite" value="新建" class=pagebutton>
              </div></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td><div align="left">如果创建新的站点，请先点击‘新建’按钮，填写完信息然后点击‘确定’，无需密码。若修改，填写新的资料,输入密码后，直接点击‘确定‘</div></td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>
</form>
