国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
5.2KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>修改投票</title>
  7. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/static/web/css/admin.css">
  10. <link rel="stylesheet" href="/static/web/css/daterangepicker.css">
  11. <script src="/static/web/js/jquery.min.js"></script>
  12. <script src="/static/web/js/bootstrap.min.js"></script>
  13. <script src="/static/web/js/moment.min.js"></script>
  14. <script src="/static/web/js/daterangepicker.js"></script>
  15. <script src="/static/web/js/admin.main.js"></script>
  16. </head>
  17. <body>
  18. <ol class="breadcrumb">
  19. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  20. <li class="breadcrumb-item"><a href="vote_main.php">投票管理</a></li>
  21. <li class="breadcrumb-item active">修改投票</li>
  22. </ol>
  23. <div class="card shadow-sm">
  24. <div class="card-header">修改投票</div>
  25. <div class="card-body">
  26. <form name="form1" action="vote_edit.php" method="post">
  27. <input type="hidden" name="dopost" value="saveedit">
  28. <input type="hidden" name="aid" value="<?php echo $aid?>">
  29. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
  30. <div class="table-responsive">
  31. <table class="table table-borderless">
  32. <tbody>
  33. <tr>
  34. <td width="260">投票名称</td>
  35. <td><input type="text" name="votename" id="votename" value="<?php echo $row['votename']?>"></td>
  36. </tr>
  37. <tr>
  38. <td>投票总人数</td>
  39. <td><input type="text" name="totalcount" id="totalcount" value="<?php echo $row['totalcount']?>"></td>
  40. </tr>
  41. <tr>
  42. <td>开始时间</td>
  43. <td><input type="text" name="starttime" id="starttime" class="datepicker1" value="<?php echo GetDateMk($row['starttime'])?>"></td>
  44. </tr>
  45. <tr>
  46. <td>结束时间</td>
  47. <td><input type="text" name="endtime" id="endtime" class="datepicker1" value="<?php echo GetDateMk($row['endtime'])?>"></td>
  48. </tr>
  49. <tr>
  50. <td>是否允许游客投票</td>
  51. <td>
  52. <label><input type="radio" name="isallow" value="0" <?php if ($row['isallow']==0) echo 'checked';?>> 是</label>  
  53. <label><input type="radio" name="isallow" value="1" <?php if ($row['isallow']==1) echo 'checked';?>> 否</label>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td>是否允许查看投票</td>
  58. <td>
  59. <label><input type="radio" name="view" value="0" <?php if ($row['view']==0) echo 'checked';?>> 是</label>  
  60. <label><input type="radio" name="view" value="1" <?php if ($row['view']==1) echo 'checked';?>> 否</label>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td>投票时间间隔</td>
  65. <td><input type="text" name="spec" value="<?php echo $row['spec'] ?>">(N天后可再次投票,0表示此ip地址只能投一次)</td>
  66. </tr>
  67. <tr>
  68. <td>是否多选</td>
  69. <td>
  70. <label><input type="radio" name="ismore" value="0" <?php if ($row['ismore']==0) echo 'checked';?>> 单选</label>
  71. <label><input type="radio" name="ismore" value="1" <?php if ($row['ismore']==1) echo 'checked';?>> 多选</label>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td>投票项</td>
  76. <td><textarea name="votenote" id="votenote" class="admin-textarea-xl"><?php echo $row['votenote']?></textarea></td>
  77. </tr>
  78. <tr>
  79. <td>是否启用</td>
  80. <td>
  81. <label><input type="radio" name="isenable" value="0" <?php if ($row['isenable']==0) echo 'checked';?>> 是</label>  
  82. <label><input type="radio" name="isenable" value="1" <?php if ($row['isenable']==1) echo 'checked';?>> 否</label>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td colspan="2" align="center">
  87. <button type="submit" class="btn btn-success btn-sm">保存</button>
  88. <button type="reset" class="btn btn-outline-success btn-sm">重置</button>
  89. </td>
  90. </tr>
  91. </tbody>
  92. </table>
  93. </div>
  94. </form>
  95. </div>
  96. </div>
  97. <script>
  98. $(document).ready(function() {
  99. $('.datepicker1').daterangepicker({
  100. "singleDatePicker": true,
  101. "autoApply": true,
  102. "showDropdowns": true,
  103. "linkedCalendars": false,
  104. "timePicker": true,
  105. "timePicker24Hour": true,
  106. "showCustomRangeLabel": false,
  107. ranges: {
  108. '今日': [moment(), moment()],
  109. '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
  110. '本月': [moment().startOf('month'), moment().startOf('month')],
  111. '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')]
  112. },
  113. "locale": {
  114. format: 'YYYY-MM-DD HH:mm',
  115. applyLabel: '确定',
  116. cancelLabel: '取消',
  117. daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
  118. monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  119. firstDay: 1
  120. }
  121. }, function(start) {
  122. $(this).val(start.format("YYYY-MM-DD HH:mm"));
  123. });
  124. });
  125. </script>
  126. </body>
  127. </html>