?? exchange_credit2point.php
字號:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
include admintpl('header');
?>
<script LANGUAGE="javascript">
<!--
function CheckForm() {
if (document.myform.username.value=="")
{
alert("請輸入用戶名!")
document.myform.username.focus()
return false
}
if (!isint(document.myform.credit.value))
{
alert("請輸入積分!")
document.myform.credit.value = "";
document.myform.credit.focus()
return false
}
return true;
}
//-->
</script>
<body>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
<tr>
<td></td>
</tr>
</table>
<?=$menu?>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
<tr>
<td></td>
</tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
<tr>
<th colspan=2>積分換點(diǎn)數(shù)</th>
</tr>
<form name="myform" method="post" action="?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&save=1" onSubmit='return CheckForm();'>
<tr>
<td class="tablerow" width="20%">當(dāng)前兌換比例</td>
<td class="tablerow" >1分可兌換<font color="red"><?=$_PHPCMS['credit2point']?></font>點(diǎn)<input type="hidden" name="money2point" value="<?=$_PHPCMS['money2point']?>"><input type="hidden" name="type" value="積分換點(diǎn)數(shù)"></td>
</tr>
<tr>
<td class="tablerow" >用戶名</td>
<td class="tablerow" ><input type="text" name="username" value="<?=$username?>" size=20> <input type="button" name="submit" value=" 檢查用戶名 " onclick="javascript:openwinx('?mod=<?=$mod?>&file=member&action=user_exists&username='+myform.username.value,'user_exists','450','160')"></td>
</tr>
<tr>
<td class="tablerow" >積分</td>
<td class="tablerow" ><input type="text" name="credit" value="<?=$credit?>" size=20> 分</td>
</tr>
<tr>
<td class="tablerow" >可兌換點(diǎn)數(shù)</td>
<td class="tablerow" ><input type="text" name="point" size=20 onclick="myform.point.value=Math.floor(myform.credit.value*<?=$_PHPCMS['credit2point']?>)" readonly> <input type="button" name="submit" value=" 計算點(diǎn)數(shù) " onclick="myform.point.value=Math.floor(myform.credit.value*<?=$_PHPCMS['credit2point']?>)"></td>
</tr>
<tr>
<td class="tablerow" >操作說明</td>
<td class="tablerow" ><textarea name="note" cols="60" rows="5"><?=$note?></textarea></td>
</tr>
<tr>
<td class="tablerow" ></td>
<td class="tablerow" > <input type="submit" name="submit" value=" 確定 "> <input type="reset" name="submit" value=" 重置 "></td>
</tr>
</form>
</table>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -