add_event_vote.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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=AddEventVote" enctype="multipart/form-data" >
  5. <input type="hidden" name="events_id" value='<{$events_id}>'>
  6. <table class="table">
  7. <tr>
  8. <td>标题:</td>
  9. <td><input type="text" name='title' value='<{$voteOneData.title}>'></td>
  10. </tr>
  11. <tr>
  12. <td>图片:</td>
  13. <td>
  14. <input type="file" accept="image/jpeg,image/png,image/bmp" name="image[]" multiple="multiple">
  15. </td>
  16. </tr>
  17. <tr>
  18. <td>作弊数:</td>
  19. <td><input type="text" name="add_num" id="add_num" style="width:150px;" value=""></td>
  20. </tr>
  21. </table>
  22. <button id="ti_sut" class="btn btn-primary" style="padding:1px;" href="javascript:;">修改</button>
  23. </div>
  24. <script type="text/javascript">
  25. KISSY.use("node", function(S, Node){
  26. $('#ti_sut').click(function(){
  27. var title = S.trim($('input[name=title]').val());
  28. if (title == '') {
  29. alert('请填写标题');return false;
  30. }
  31. });
  32. });
  33. </script>
  34. <{include file="admin/bottom.html"}>