up_event_vote.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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=UpEventVote" enctype="multipart/form-data" >
  5. <table class="table">
  6. <tr>
  7. <td>标题:</td>
  8. <input type="hidden" name="vote_id" value='<{$voteOneData.id}>'>
  9. <input type="hidden" name="events_id" value='<{$voteOneData.events_id}>'>
  10. <td><input type="text" name='title' value='<{$voteOneData.title}>'></td>
  11. </tr>
  12. <tr>
  13. <td>图片:</td>
  14. <td>
  15. <{if $letters_data.img_url!='null'}>
  16. <img src="<{$voteOneData.img_url}>"></img>
  17. <{else}>
  18. 未上传
  19. <{/if}>
  20. <input type="hidden" name='old_img_url' value="<{$voteOneData.img_url}>" >
  21. <input type="file" accept="image/jpeg,image/png,image/bmp" name="image[]" multiple="multiple">
  22. </td>
  23. </tr>
  24. <tr>
  25. <td>作弊数:</td>
  26. <td><input type="text" name="add_num" id="add_num" style="width:150px;" value="<{$voteOneData.add_num}>"></td>
  27. </tr>
  28. </table>
  29. <a id="ti_sut" class="btn btn-primary" style="padding:1px;" href="javascript:;">修改</a>
  30. </div>
  31. <script type="text/javascript">
  32. KISSY.use("node, io, json,jquery", function(S, Node, IO, JSON, jQuery){
  33. $('#ti_sut').click(function(){
  34. $("#myform").submit();
  35. });
  36. });
  37. </script>
  38. <{include file="admin/bottom.html"}>