<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<form action="$basename" method="post">
<input type="hidden" name="action" value="submit" />
<h2>積分兌換公式</h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3 tac s3">
<td width="8%">ID</td>
<td>積分Ⅰ</td>
<td>兌換</td>
<td>積分Ⅰ</td>
<td width="7%">啟用</td>
<td width="5%">刪</td>
</tr>
<!--
EOT;
$i=0;
foreach($jf as $key=>$value){
$i++;
$ifcheck = $value[4] ? 'checked' : '';print <<<EOT
-->
<tr class="tr3 tac">
<td>$i</td>
<td>$value[2] 個 $value[0]</td>
<td>兌換</td>
<td>$value[3] 個 $value[1]</td>
<td><input type="checkbox" name="ifopen[]" value="$key" $ifcheck /></td>
<td><input type="checkbox" name="selid[]" value="$key" /></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table><br /><center><input type="submit" name="hello" class="btn" value="提 交"></center><br/>
</form>

<form action="$basename" method="post">
<input type="hidden" name="action" value="add">
<h2>添加兌換公式</h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3 tac">
<td><input class="input" type="text" name="cchange[2]" size="6" /> 個</td>
<td><select name="cchange[0]">$creditlist</select></td>
<td>兌換</td>
<td><input class="input" type="text" name="cchange[3]" size="6" /> 個</td>
<td><select name="cchange[1]">$creditlist</select></td>
</tr>
</tr></table>
<br /><center><input type="submit" name="hello" class="btn" value="提 交"></center><br/>
</form>
<!--
EOT;
include_once PrintEot('adminbottom');
?>-->