?? member_edit.php
字號:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
include admintpl('header');
?>
<body>
<script type="text/javascript" src="<?=$rootpath?>/include/js/MyCalendar.js"></script>
<script LANGUAGE="javascript">
<!--
function CheckForm() {
if (document.myform.username.value=="")
{
alert("請輸入用戶名!")
document.myform.username.focus()
return false
}
if (document.myform.password.value!="" && document.myform.pwdconfirm.value!=document.myform.password.value)
{
alert("兩次輸入的密碼不一致!")
document.myform.password.value = ""
document.myform.pwdconfirm.value = ""
document.myform.password.focus()
document.myform.password.select()
return false
}
if (document.myform.email.value=="")
{
alert("請輸入E-mail!")
document.myform.email.focus()
return false
}
document.myform.province.value=area.document.regionform.province.value;
document.myform.city.value=area.document.regionform.city.value;
}
//-->
</script>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
<tr>
<td></td>
</tr>
</table>
<?=$menu?>
<form name="myform" method="post" action="?mod=<?=$mod?>&file=<?=$file?>&action=edit&userid=<?=$userid?>&save=1" onSubmit='return CheckForm();'>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr align='center' height='24'>
<td id='TabTitle' class='title2' onclick='ShowTabs(0)'>基本資料</td>
<td id='TabTitle' class='title1' onclick='ShowTabs(1)'>詳細資料</td>
<td id='TabTitle' class='title1' onclick='ShowTabs(2)'>收費設置</td>
<td id='TabTitle' class='title1' onclick='ShowTabs(3)'>自定義選項</td>
<td> </td>
</tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
<tbody id='Tabs' style='display:'>
<th colspan=2>基本資料</th>
<tr>
<td width="20%" class="tablerow">用戶名:
</td>
<td width="80%" class="tablerow"><input name="username" type="text" id="username" size="15" value="<?=$username?>" disabled> 3到20個字符,不得包含非法字符!
</td>
</tr>
<tr>
<td class="tablerow">密碼(至少6位):</td>
<td class="tablerow"><input name="password" type="password" id="password" size="15"> 4到20個字符</td>
</tr>
<tr>
<td class="tablerow">確認密碼:</td>
<td class="tablerow"><input name="pwdconfirm" type="password" id="pwdconfirm" size="15"></td>
</tr>
<tr>
<td class="tablerow">密碼提示問題:</td>
<td class="tablerow"><input name="question" type="text" id="question" size="20" value="<?=$question?>"></td>
</tr>
<tr>
<td class="tablerow">問題答案:</td>
<td class="tablerow"><input name="answer" type="text" id="answer" size="20"></td>
</tr>
<tr>
<td class="tablerow">Email地址:</td>
<td class="tablerow"><input name="email" type="text" id="email" size="20" maxlength="50" value="<?=$email?>"></td>
</tr>
<tr>
<td class="tablerow">用戶組:</td>
<td class="tablerow"><?=$groupid?></td>
</tr>
<tr>
<td class="tablerow">用戶狀態:</td>
<td class="tablerow"><input type='radio' name='locked' value='0' <?php if($locked==0){ ?> checked <?php } ?>>正常 <input type='radio' name='locked' value='1' <?php if($locked==1){ ?> checked <?php } ?>>鎖定</td>
</tr>
</tbody>
<tbody id='Tabs' style='display:none'>
<th colspan=2>詳細資料</th>
<tr>
<td class="tablerow">真實姓名:</td>
<td class="tablerow"><input name="truename" type="text" id="truename" size="20" maxlength="50" value="<?=$truename?>"></td>
</tr>
<tr>
<td class="tablerow">性別:</td>
<td class="tablerow">
<input name="gender" type="radio" style="border:0px" value="1" <?php if($gender==1){ ?> checked <?php } ?>> 男
<input name="gender" type="radio" style="border:0px" value="0" <?php if($gender==0){ ?> checked <?php } ?>> 女</td>
</tr>
<tr>
<td class="tablerow">生日:</td>
<td class="tablerow">
<input name="byear" type="text" size="4" value="<?=$byear?>">
年
<select name="bmonth" id="bmonth">
<option value="00"></option>
<?php for($i=1;$i<13;$i++){
$k = $i<10 ? "0".$i : $i;
?>
<option value="<?=$k?>" <?php if($k==$bmonth){ ?>selected <?php } ?>><?=$k?></option>
<?php } ?>
</select>
月
<select name="bday" id="bday">
<option value="00"></option>
<?php for($i=1;$i<32;$i++){
$k = $i<10 ? "0".$i : $i;
?>
<option value="<?=$k?>" <?php if($k==$bday){ ?>selected <?php } ?>><?=$k?></option>
<?php } ?>
</select>
日</td>
</tr>
<tr>
<td class="tablerow">證件類別:</td>
<td class="tablerow">
<select name="idtype">
<option value="身份證" <?php if($idtype=="身份證"){ ?> selected <?php } ?>>身份證</option>
<option value="學生證" <?php if($idtype=="學生證"){ ?> selected <?php } ?>>學生證</option>
<option value="軍人證" <?php if($idtype=="軍人證"){ ?> selected <?php } ?>>軍人證</option>
<option value="護照" <?php if($idtype=="護照"){ ?> selected <?php } ?>>護照</option>
</select>
</td>
</tr>
<tr>
<td class="tablerow">證件號碼:</td>
<td class="tablerow"><input type=text name="idcard" size=22 maxlength=18 value="<?=$idcard?>"></td>
</tr>
<tr>
<td class="tablerow">所在地:</td>
<td class="tablerow">
<iframe name='area' id='area' src='<?=PHPCMS_PATH?>/region.php?province=<?=$province?>&city=<?=$city?>' width='300' height='60' frameborder='0' scrolling='no'></iframe>
<input name='province' type='hidden' value="<?=$province?>">
<input name='city' type='hidden' value="<?=$city?>">
</td>
</tr>
<tr>
<td class="tablerow">所屬行業:</td>
<td class="tablerow">
<select name="industry">
<option value="">請選擇 </option>
<option value="金融業" <?php if($industry=="金融業"){ ?> selected <?php } ?>>金融業</option>
<option value="服務業" <?php if($industry=="服務業"){ ?> selected <?php } ?>>服務業</option>
<option value="信息產業" <?php if($industry=="信息產業"){ ?> selected <?php } ?>>信息產業</option>
<option value="制造業" <?php if($industry=="制造業"){ ?> selected <?php } ?>>制造業</option>
<option value="傳播業" <?php if($industry=="傳播業"){ ?> selected <?php } ?>>傳播業</option>
<option value="教育" <?php if($industry=="教育"){ ?> selected <?php } ?>>教育</option>
<option value="政府機構" <?php if($industry=="政府機構"){ ?> selected <?php } ?>>政府機構</option>
<option value="醫療保健" <?php if($industry=="醫療保健"){ ?> selected <?php } ?>>醫療保健</option>
<option value="房地產" <?php if($industry=="房地產"){ ?> selected <?php } ?>>房地產</option>
<option value="其它" <?php if($industry=="其它"){ ?> selected <?php } ?>>其它</option>
</select>
</td>
</tr>
<tr>
<td class="tablerow">教育水平:</td>
<td class="tablerow">
<select name="edulevel" size=1>
<option value="">請選擇 </option>
<option value="博士" <?php if($edulevel=="博士"){ ?> selected <?php } ?>>博士</option>
<option value="碩士" <?php if($edulevel=="碩士"){ ?> selected <?php } ?>>碩士</option>
<option value="大學" <?php if($edulevel=="大學"){ ?> selected <?php } ?>>大學</option>
<option value="高中" <?php if($edulevel=="高中"){ ?> selected <?php } ?>>高中</option>
<option value="初中" <?php if($edulevel=="初中"){ ?> selected <?php } ?>>初中</option>
<option value="小學" <?php if($edulevel=="小學"){ ?> selected <?php } ?>>小學</option>
</select>
</td>
</tr>
<tr>
<td class="tablerow">從事職業:</td>
<td class="tablerow">
<select name="occupation">
<option value="">請選擇 </option>
<option value="學生" <?php if($occupation=="學生"){ ?> selected <?php } ?>>學生</option>
<option value="職員" <?php if($occupation=="職員"){ ?> selected <?php } ?>>職員</option>
<option value="經理" <?php if($occupation=="經理"){ ?> selected <?php } ?>>經理</option>
<option value="專業人士" <?php if($occupation=="專業人士"){ ?> selected <?php } ?>>專業人士</option>
<option value="公務員" <?php if($occupation=="公務員"){ ?> selected <?php } ?>>公務員</option>
<option value="私營主" <?php if($occupation=="私營主"){ ?> selected <?php } ?>>私營主</option>
<option value="待業" <?php if($occupation=="待業"){ ?> selected <?php } ?>>待業</option>
<option value="退休" <?php if($occupation=="退休"){ ?> selected <?php } ?>>退休</option>
<option value="其它" <?php if($occupation=="其它"){ ?> selected <?php } ?>>其它</option>
</select>
</td>
</tr>
<tr>
<td class="tablerow">收入水平:</td>
<td class="tablerow">
<select name="income">
<option value="">請選擇 </option>
<option value="6000以上" <?php if($income=="6000以上"){ ?> selected <?php } ?>>6000以上</option>
<option value="4001-6000" <?php if($income=="4001-6000"){ ?> selected <?php } ?>>4001-6000</option>
<option value="2001-4000" <?php if($income=="2001-4000"){ ?> selected <?php } ?>>2001-4000</option>
<option value="1001-2000" <?php if($income=="1001-2000"){ ?> selected <?php } ?>>1001-2000</option>
<option value="501-1000" <?php if($income=="501-1000"){ ?> selected <?php } ?>>501-1000</option>
<option value="500以下" <?php if($income=="500以下"){ ?> selected <?php } ?>>500以下</option>
</select>
</td>
</tr>
<tr>
<td class="tablerow">電話:</td>
<td class="tablerow"><input name="telephone" type="text" id="telephone" size="20" value="<?=$telephone?>"></td>
</tr>
<tr>
<td class="tablerow">手機:</td>
<td class="tablerow"><input name="mobile" type="text" id="mobile" size="20" value="<?=$mobile?>"></td>
</tr>
<tr>
<td class="tablerow">地址:</td>
<td class="tablerow"><input name="address" type="text" id="address" size="50" value="<?=$address?>"> </td>
</tr>
<tr>
<td class="tablerow">郵編:</td>
<td class="tablerow"><input name="postid" type="text" id="postid" size="10" value="<?=$postid?>"> </td>
</tr>
<tr>
<td class="tablerow">主頁:</td>
<td class="tablerow"><input name="homepage" type="text" id="homepage" size="20" value="<?=$homepage?>"></td>
</tr>
<tr>
<td class="tablerow">QQ號碼:</td>
<td class="tablerow"><input name="qq" type="text" id="qq" size="20" maxlength="20" value="<?=$qq?>"></td>
</tr>
<tr>
<td class="tablerow">MSN帳號:</td>
<td class="tablerow"><input name="msn" type="text" id="msn" size="20" maxlength="50" value="<?=$msn?>"></td>
</tr>
<tr>
<td class="tablerow">ICQ號碼:</td>
<td class="tablerow"><input name="icq" type="text" id="icq" size="20" maxlength="20" value="<?=$icq?>"></td>
</tr>
<tr>
<td class="tablerow">Skype帳號:</td>
<td class="tablerow"><input name="skype" type="text" id="skype" size="20" maxlength="50" value="<?=$skype?>"></td>
</tr>
<tr>
<td class="tablerow">支付寶帳號:</td>
<td class="tablerow"><input name="alipay" type="text" id="alipay" size="20" maxlength="50" value="<?=$alipay?>"></td>
</tr>
<tr>
<td class="tablerow">貝寶帳號:</td>
<td class="tablerow"><input name="paypal" type="text" id="paypal" size="20" maxlength="50" value="<?=$paypal?>"></td>
</tr>
<tr>
<td class="tablerow">頭像地址:</td>
<td class="tablerow"><input name="userface" type="text" id="userface" size="50" maxlength="50" value="<?=$userface?>"></td>
</tr>
<tr>
<td class="tablerow">頭像大?。?lt;/td>
<td class="tablerow">寬度:<input name="facewidth" type="text" id="facewidth" size="4" maxlength="3" value="<?=$facewidth?>"> px 高度:<input name="faceheight" type="text" id="faceheight" size="4" maxlength="3" value="<?=$faceheight?>"> px</td>
</tr>
<tr>
<td class="tablerow">簽名信息:</td>
<td class="tablerow"><textarea name='sign' cols='35' rows='5' id='sign'><?=$sign?></textarea></td>
</tr>
</tbody>
<tbody id='Tabs' style='display:none'>
<th colspan=2>收費設置</th>
<tr>
<td class="tablerow">計費方式:</td>
<td class="tablerow"><input name='chargetype' type='radio' value='0' <?php if($chargetype==0){ ?> checked <?php } ?>>扣點數<font color='#0000FF'>(推薦)</font>: 每閱讀一篇收費文章,扣除相應點數。<br>
<input type='radio' name='chargetype' value='1' <?php if($chargetype==1){ ?> checked <?php } ?>>有效期:在有效期內,用戶可以任意閱讀收費內容</td>
</tr>
<tr>
<td class="tablerow">用戶點數:</td>
<td class="tablerow"><input name="point" type="text" id="point" size="10" value="<?=$point?>">點</td>
</tr>
<tr>
<td class="tablerow">有效期限:</td>
<td class="tablerow">開始日期:<script language=javascript>var dateFrom=new MyCalendar("begindate","<?=$begindate?>","選擇,年,月,日,上一年,下一年,上個月,下個月,一,二,三,四,五,六"); dateFrom.display();</script> 截止日期:<script language=javascript>var dateFrom=new MyCalendar("enddate","<?=$enddate?>","選擇,年,月,日,上一年,下一年,上個月,下個月,一,二,三,四,五,六"); dateFrom.display();</script></td>
</tr>
</tbody>
<tbody id='Tabs' style='display:none'>
<th colspan=2>自定義選項</th>
</tbody>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<input type="submit" name="submit" value=" 修改 ">
<input type="reset" name="Submit" value=" 清除 "></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -