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