国内流行的内容管理系统(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.

117 lines
4.9KB

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