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

136 lines
6.6KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>投票管理</title>
  6. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/admin.css">
  9. <link rel="stylesheet" href="../static/web/css/daterangepicker.css">
  10. <script language="javascript" src="../static/web/js/jquery.min.js"></script>
  11. <script language="javascript" src="../static/web/js/bootstrap.bundle.min.js"></script>
  12. <script language="javascript" src="js/main.js"></script>
  13. <script type="text/javascript" src="../static/web/js/moment.min.js"></script>
  14. <script type="text/javascript" src="../static/web/js/daterangepicker.js"></script>
  15. <script language="javascript">
  16. $(document).ready(function () {
  17. $('.datepicker1').daterangepicker({
  18. "singleDatePicker": true,
  19. "autoApply": true,
  20. "showDropdowns": true,
  21. "linkedCalendars": false,
  22. "timePicker": true,
  23. "timePicker24Hour": true,
  24. //"timePickerSeconds": true,
  25. "showCustomRangeLabel": false,
  26. ranges: {
  27. '今日': [moment(), moment()],
  28. '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
  29. '本月': [moment().startOf('month'), moment().startOf('month')],
  30. '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')]
  31. },
  32. "locale": {
  33. format: 'YYYY-MM-DD HH:mm',
  34. applyLabel: '确定',
  35. cancelLabel: '取消',
  36. daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
  37. monthNames: ['一月', '二月', '三月', '四月', '五月', '六月',
  38. '七月', '八月', '九月', '十月', '十一月', '十二月'],
  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 width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table maintable mt-3">
  49. <tr>
  50. <td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="vote_main.php">投票管理</a> &gt; 增加投票&nbsp;&nbsp;</td>
  51. </tr>
  52. <tr>
  53. <td height="200" bgcolor="#ffffff">
  54. <form name="form1" method="post" action="vote_edit.php">
  55. <input type="hidden" name="dopost" value="saveedit">
  56. <input type="hidden" name="aid" value="<?php echo $aid?>">
  57. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token']; ?>">
  58. <table width="100%" border="0" cellspacing="4" cellpadding="4" class="table table-borderless">
  59. <tr>
  60. <td width="15%" align="center">投票名称:</td>
  61. <td width="85%"><input name="votename" type="text" id="votename" value="<?php echo $row['votename']?>"></td>
  62. </tr>
  63. <tr>
  64. <td align="center">投票总人数:</td>
  65. <td><input name="totalcount" type="text" id="totalcount" value="<?php echo $row['totalcount']?>"></td>
  66. </tr>
  67. <tr>
  68. <td align="center">开始时间:</td>
  69. <td><input class="datepicker1" name="starttime" type="text" id="starttime" value="<?php echo GetDateMk($row['starttime'])?>"></td>
  70. </tr>
  71. <tr>
  72. <td align="center">结束时间:</td>
  73. <td><input class="datepicker1" name="endtime" type="text" id="endtime" value="<?php echo GetDateMk($row['endtime'])?>"></td>
  74. </tr>
  75. <tr>
  76. <td align="center">是否允许游客投票:</td>
  77. <td>
  78. <label><input name="isallow" type="radio" class="np" value="0" <?php if($row['isallow']==0) echo " checked"; ?>>
  79. 是</label>  
  80. <label><input type="radio" name="isallow" class="np" value="1" <?php if($row['isallow']==1) echo " checked"; ?>>
  81. 否</label></td>
  82. </tr>
  83. <tr>
  84. <td align="center">是否允许查看投票:</td>
  85. <td>
  86. <label><input name="view" type="radio" class="np" value="0" <?php if($row['view']==0) echo " checked"; ?>>
  87. 是</label>  
  88. <label><input type="radio" name="view" class="np" value="1" <?php if($row['view']==1) echo " checked"; ?>>
  89. 否</label>
  90. </td>
  91. </tr>
  92. <tr>
  93. <td align="center">投票时间间隔:</td>
  94. <td><input name="spec" type="text" value="<?php echo $row['spec'] ?>" class="spec">(N天后可再次投票,0 表示此IP地址只能投一次)</td>
  95. </tr>
  96. <tr>
  97. <td align="center">是否多选:</td>
  98. <td>
  99. <label><input name="ismore" type="radio" class="np" value="0" <?php if($row['ismore']==0) echo " checked"; ?>>
  100. 单选</label>
  101. <label><input type="radio" name="ismore" class="np" value="1" <?php if($row['ismore']==1) echo " checked"; ?>>
  102. 多选</label>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td align="center">投 票 项:<br>
  107. (请按相同的形式来增加或修改节点,其中属性:id不能重复)</td>
  108. <td><textarea name="votenote" rows="8" id="votenote" style="width:80%"><?php echo $row['votenote']?></textarea></td>
  109. </tr>
  110. <tr>
  111. <td align="center">是否启用:</td>
  112. <td>
  113. <label><input name="isenable" type="radio" class="np" value="0"
  114. <?php if($row['isenable']==0) echo " checked"; ?>>
  115. 是</label>  
  116. <label><input type="radio" name="isenable" class="np" value="1"
  117. <?php if($row['isenable']==1) echo " checked"; ?>>
  118. 否</label>
  119. </td>
  120. </tr>
  121. <tr>
  122. <td align="center" class="py-3">
  123. <button type="submit" name="Submit" class="btn btn-success">保存投票数据</button>
  124. <button type="button" onclick="history.back()" name="Submit" class="btn btn-success">返回</button>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td colspan="2"></td>
  129. </tr>
  130. </table>
  131. </form>
  132. </td>
  133. </tr>
  134. </table>
  135. </body>
  136. </html>