up_letters.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <{include file="admin/header.html"}>
  2. <{include file="admin/nav.html"}>
  3. <div class="container">
  4. <form id="myform" method="post" action="<{$web_cfg.domain}>?c=admin_Lottery&a=UpLettersData" enctype="multipart/form-data" >
  5. <table class="table">
  6. <tr>
  7. <td>活动名称:</td>
  8. <td><{$eventsAndPrizeData.events.events_name}></td>
  9. </tr>
  10. <tr>
  11. <td>字母名称:</td>
  12. <td><{$letters_data.ABC_name}>
  13. <input type="hidden" id="letters_data_id" value="<{$letters_data.id}>" name="letters_data_id">
  14. </td>
  15. </tr>
  16. <tr style="display: none;">
  17. <td>图片[1]:</td>
  18. <td>
  19. <{if $letters_data.img_1!='null'}>
  20. <img src="<{$letters_data.img_1}>"></img>
  21. <{else}>
  22. 未上传
  23. <{/if}>
  24. <input type="hidden" name='old_img_1' value="<{$letters_data.img_1}>" >
  25. <input type="file" accept="image/jpeg,image/png,image/bmp" name="image[1]" multiple="multiple">
  26. </td>
  27. </tr>
  28. <tr style="display: none;">
  29. <td>图片[2]:</td>
  30. <td>
  31. <{if $letters_data.img_2!='null'}>
  32. <img src="<{$letters_data.img_2}>"></img>
  33. <{else}>
  34. 未上传
  35. <{/if}>
  36. <input type="hidden" name='old_img_2' value="<{$letters_data.img_2}>" >
  37. <input type="file" accept="image/jpeg,image/png,image/bmp" name="image[2]" multiple="multiple">
  38. </tr>
  39. <tr>
  40. <td>库存总数:</td>
  41. <td><input type="text" name="num" id="num" style="width:150px;" value="<{$letters_data.num}>"></td>
  42. </tr>
  43. <tr>
  44. <td>已抽中数:</td>
  45. <td><{$letters_data.winning_num}></td>
  46. </tr>
  47. <tr>
  48. <td>剩余数量:</td>
  49. <td><{$letters_data.num-$letters_data.winning_num}></td>
  50. </tr>
  51. </table>
  52. <a id="ti_sut" class="btn btn-primary" style="padding:1px;" href="javascript:;">修改</a>
  53. </div>
  54. <script type="text/javascript">
  55. KISSY.use("node, io, json,jquery", function(S, Node, IO, JSON, jQuery){
  56. $('#ti_sut').click(function(){
  57. var id=$("#letters_data_id").val();
  58. var num = $('#num').val();
  59. if(id=='' || num==''){
  60. alert('请填写完整的参数');
  61. return ;
  62. }
  63. $("#myform").submit();
  64. });
  65. });
  66. </script>
  67. <{include file="admin/bottom.html"}>