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

129 lines
5.3KB

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