国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

120 lines
4.8KB

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