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

133 lines
6.4KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>投票管理</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <link rel="stylesheet" href="../static/web/css/daterangepicker.css">
  11. <script language="javascript" src="../static/web/js/jquery.min.js"></script>
  12. <script language="javascript" src="../static/web/js/bootstrap.bundle.min.js"></script>
  13. <script language="javascript" src="js/main.js"></script>
  14. <script type="text/javascript" src="../static/web/js/moment.min.js"></script>
  15. <script type="text/javascript" src="../static/web/js/daterangepicker.js"></script>
  16. <script language="javascript">
  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. '七月', '八月', '九月', '十月', '十一月', '十二月'],
  40. firstDay: 1
  41. }
  42. }, function (start) {
  43. $(this).val(start.format("YYYY-MM-DD HH:mm"));
  44. });
  45. })
  46. </script>
  47. </head>
  48. <body>
  49. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  50. <tr>
  51. <td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="vote_main.php">投票管理</a> &gt; 增加投票&nbsp;&nbsp;</td>
  52. </tr>
  53. <tr>
  54. <td height="200">
  55. <form name="form1" method="post" action="vote_edit.php">
  56. <input type="hidden" name="dopost" value="saveedit">
  57. <input type="hidden" name="aid" value="<?php echo $aid?>">
  58. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token']; ?>">
  59. <table width="100%" cellspacing="4" cellpadding="4" class="table table-borderless">
  60. <tr>
  61. <td width="260" height="26">投票名称:</td>
  62. <td height="26"><input name="votename" type="text" id="votename" value="<?php echo $row['votename']?>"></td>
  63. </tr>
  64. <tr>
  65. <td height="26">投票总人数:</td>
  66. <td height="26"><input name="totalcount" type="text" id="totalcount" value="<?php echo $row['totalcount']?>"></td>
  67. </tr>
  68. <tr>
  69. <td height="26">开始时间:</td>
  70. <td height="26"><input class="datepicker1" name="starttime" type="text" id="starttime" value="<?php echo GetDateMk($row['starttime'])?>"></td>
  71. </tr>
  72. <tr>
  73. <td height="26">结束时间:</td>
  74. <td height="26"><input class="datepicker1" name="endtime" type="text" id="endtime" value="<?php echo GetDateMk($row['endtime'])?>"></td>
  75. </tr>
  76. <tr>
  77. <td height="26">是否允许游客投票:</td>
  78. <td height="26">
  79. <label><input name="isallow" type="radio" class="np" value="0" <?php if($row['isallow']==0) echo " checked"; ?>>
  80. 是</label>  
  81. <label><input type="radio" name="isallow" class="np" value="1" <?php if($row['isallow']==1) echo " checked"; ?>>
  82. 否</label>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td height="26">是否允许查看投票:</td>
  87. <td height="26">
  88. <label><input name="view" type="radio" class="np" value="0" <?php if($row['view']==0) echo " checked"; ?>>
  89. 是</label>  
  90. <label><input type="radio" name="view" class="np" value="1" <?php if($row['view']==1) echo " checked"; ?>>
  91. 否</label>
  92. </td>
  93. </tr>
  94. <tr>
  95. <td height="26">投票时间间隔:</td>
  96. <td height="26"><input name="spec" type="text" value="<?php echo $row['spec'] ?>" class="spec">(N天后可再次投票,0 表示此IP地址只能投一次)</td>
  97. </tr>
  98. <tr>
  99. <td height="26">是否多选:</td>
  100. <td height="26">
  101. <label><input name="ismore" type="radio" class="np" value="0" <?php if($row['ismore']==0) echo " checked"; ?>>
  102. 单选</label>
  103. <label><input type="radio" name="ismore" class="np" value="1" <?php if($row['ismore']==1) echo " checked"; ?>>
  104. 多选</label>
  105. </td>
  106. </tr>
  107. <tr>
  108. <td height="26">投票项:<br>
  109. (请按相同的形式来增加或修改节点,其中属性:id不能重复)</td>
  110. <td height="26"><textarea name="votenote" rows="8" id="votenote" style="width:80%"><?php echo $row['votenote']?></textarea></td>
  111. </tr>
  112. <tr>
  113. <td height="26">是否启用:</td>
  114. <td height="26">
  115. <label><input name="isenable" type="radio" class="np" value="0" <?php if($row['isenable']==0) echo " checked"; ?>>
  116. 是</label>  
  117. <label><input type="radio" name="isenable" class="np" value="1" <?php if($row['isenable']==1) echo " checked"; ?>>
  118. 否</label>
  119. </td>
  120. </tr>
  121. <tr>
  122. <td colspan="2" align="center" class="py-3">
  123. <button type="submit" name="Submit" class="btn btn-success btn-sm">保存</button>
  124. <button type="button" onclick="history.back()" name="Submit" class="btn btn-success btn-sm">返回</button>
  125. </td>
  126. </tr>
  127. </table>
  128. </form>
  129. </td>
  130. </tr>
  131. </table>
  132. </body>
  133. </html>