<tr class="noborder"> <td class="vatop rowform"><input id="prize_name" name="prize_name" type="text" class="txt" value="<?php echo $output['awards_info']['prize_name']; ?> " /></td> </tr> <tr> <td colspan="2" class="required"><span style="color:red;margin-left:0;">*</span><label for="class_sort" class="">中奖率<?php echo $lang['nc_colon']; ?> </label></td> </tr> <tr class="noborder"> <td class="vatop"> <input id="win_rate" name="win_rate" type="text" class="txt" value="<?php echo floattostr($output['awards_info']['win_rate']); ?> " /><span>格式:0.01</span> </td> </tr> <tr> <td colspan="2" class="required"><span style="color:red;margin-left:0;">*</span><label for="class_sort" class="">奖品数量<?php echo $lang['nc_colon']; ?> </label></td> </tr> <tr class="noborder"> <td class="vatop "><input id="prize_amount" name="prize_amount" type="text" class="txt" value="<?php echo $output['awards_info']['prize_amount']; ?> " /></td>
if (!empty($output['awards_list']) && is_array($output['awards_list'])) { ?> <?php foreach ($output['awards_list'] as $k => $v) { ?> <tr class="hover"> <td ><?php echo $v['awards_name']; ?> </td> <td ><?php echo $v['prize_name']; ?> </td> <td ><?php echo floattostr($v['win_rate']); ?> </td> <td ><?php echo $v['prize_amount']; ?> </td> <td ><?php echo $v['win_amount']; ?> </td> <td class="w96"><a href="index.php?act=lottery&op=edit_awards&awards_id=<?php echo $v['awards_id']; ?> ">编辑</a></td> </tr>