1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <{include file="admin/header.html"}>
- <{include file="admin/nav.html"}>
- <div class="container">
- <form id="myform" method="post" action="<{$web_cfg.domain}>?c=admin_Lottery&a=UpLettersData" enctype="multipart/form-data" >
- <table class="table">
- <tr>
- <td>活动名称:</td>
- <td><{$eventsAndPrizeData.events.events_name}></td>
- </tr>
- <tr>
- <td>字母名称:</td>
- <td><{$letters_data.ABC_name}>
- <input type="hidden" id="letters_data_id" value="<{$letters_data.id}>" name="letters_data_id">
- </td>
- </tr>
- <tr style="display: none;">
- <td>图片[1]:</td>
- <td>
- <{if $letters_data.img_1!='null'}>
- <img src="<{$letters_data.img_1}>"></img>
- <{else}>
- 未上传
- <{/if}>
- <input type="hidden" name='old_img_1' value="<{$letters_data.img_1}>" >
- <input type="file" accept="image/jpeg,image/png,image/bmp" name="image[1]" multiple="multiple">
- </td>
- </tr>
- <tr style="display: none;">
- <td>图片[2]:</td>
- <td>
- <{if $letters_data.img_2!='null'}>
- <img src="<{$letters_data.img_2}>"></img>
- <{else}>
- 未上传
- <{/if}>
- <input type="hidden" name='old_img_2' value="<{$letters_data.img_2}>" >
- <input type="file" accept="image/jpeg,image/png,image/bmp" name="image[2]" multiple="multiple">
- </tr>
- <tr>
- <td>库存总数:</td>
- <td><input type="text" name="num" id="num" style="width:150px;" value="<{$letters_data.num}>"></td>
- </tr>
- <tr>
- <td>已抽中数:</td>
- <td><{$letters_data.winning_num}></td>
- </tr>
- <tr>
- <td>剩余数量:</td>
- <td><{$letters_data.num-$letters_data.winning_num}></td>
- </tr>
- </table>
- <a id="ti_sut" class="btn btn-primary" style="padding:1px;" href="javascript:;">修改</a>
- </div>
- <script type="text/javascript">
- KISSY.use("node, io, json,jquery", function(S, Node, IO, JSON, jQuery){
- $('#ti_sut').click(function(){
- var id=$("#letters_data_id").val();
- var num = $('#num').val();
- if(id=='' || num==''){
- alert('请填写完整的参数');
- return ;
- }
- $("#myform").submit();
- });
- });
- </script>
- <{include file="admin/bottom.html"}>
|