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

112 lines
4.4KB

  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/moment.min.js"></script>
  13. <script src="../static/web/js/daterangepicker.js"></script>
  14. <script>
  15. $(document).ready(function () {
  16. $('.datepicker').daterangepicker({
  17. "singleDatePicker": true,
  18. "autoApply": true,
  19. "showDropdowns": true,
  20. "linkedCalendars": false,
  21. "timePicker": true,
  22. "timePicker24Hour": true,
  23. //"timePickerSeconds": true,
  24. "showCustomRangeLabel": false,
  25. ranges: {
  26. '今日': [moment(), moment()],
  27. '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
  28. '本月': [moment().startOf('month'), moment().startOf('month')],
  29. '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')]
  30. },
  31. "locale": {
  32. format: 'YYYY-MM-DD HH:mm',
  33. applyLabel: '确定',
  34. cancelLabel: '取消',
  35. daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
  36. monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  37. firstDay: 1
  38. }
  39. }, function (start) {
  40. $(this).val(start.format("YYYY-MM-DD HH:mm"));
  41. });
  42. })
  43. </script>
  44. </head>
  45. <body>
  46. <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3">
  47. <tr>
  48. <td bgcolor="#f5f5f5" colspan="2"><a href="ad_main.php">广告管理</a> &gt; 修改广告</td>
  49. </tr>
  50. <form action="ad_edit.php" method="post" enctype="multipart/form-data" name="form1">
  51. <input type="hidden" name="aid" value="<?php echo $aid?>">
  52. <input type="hidden" name="dopost" value="saveedit">
  53. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
  54. <tr>
  55. <td width="260">广告位标识:</td>
  56. <td><?php echo $row['tagname'];?></td>
  57. </tr>
  58. <tr>
  59. <td>广告分类:</td>
  60. <td>
  61. <select name="clsid" id="clsid" class="admin-input-sm">
  62. <option value="0">默认分类</option>
  63. <?php echo $option;?>
  64. </select>
  65. </td>
  66. </tr>
  67. <tr>
  68. <td>广告投放范围:</td>
  69. <td>
  70. <?php
  71. $tl = new TypeLink(0);
  72. $typeOptions = $tl->GetOptionArray($row['typeid'],0,0);
  73. echo "<select name='typeid' class='admin-input-md'>";
  74. echo "<option value='0' selected>投放在没有同名标识的所有栏目</option>";
  75. echo $typeOptions;
  76. echo "</select>";
  77. ?>(如果在所选栏目找不到指定标识的广告文档,系统会自动搜索父栏目)
  78. </td>
  79. </tr>
  80. <tr>
  81. <td>广告位名称:</td>
  82. <td><input type="text" name="adname" id="adname" value="<?php echo $row['adname']?>" class="admin-input-md"></td>
  83. </tr>
  84. <tr>
  85. <td>时间限制:</td>
  86. <td>
  87. <label><input type="radio" name="timeset" value="0" <?php if ($row['timeset']==0) echo "checked='1'";?>> 永不过期</label>
  88. <label><input type="radio" name="timeset" value="1" <?php if ($row['timeset']==1) echo "checked='1'";?>> 在设内时间内有效</label>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td>投放时间:</td>
  93. <td>
  94. 从:<input type="text" name="starttime" id="starttime" value="<?php echo GetDateTimeMk($row['starttime'])?>" class="admin-input-sm">
  95. 到:<input type="text" name="endtime" id="endtime" value="<?php echo GetDateTimeMk($row['endtime'])?>" class="admin-input-sm">
  96. </td>
  97. </tr>
  98. <tr>
  99. <td>正常显示文档:</td>
  100. <td><textarea name="normbody" id="normbody" class="admin-textarea-xl"><?php echo dede_htmlspecialchars(stripslashes($row['normbody']))?></textarea></td>
  101. </tr>
  102. <tr>
  103. <td>过期显示文档:</td>
  104. <td><textarea name="expbody" id="expbody" class="admin-textarea-xl"><?php echo dede_htmlspecialchars($row['expbody'])?></textarea></td>
  105. </tr>
  106. <tr>
  107. <td bgcolor="#f5f5f5" colspan="2" align="center"><button type="submit" class="btn btn-success btn-sm">保存</button></td>
  108. </tr>
  109. </form>
  110. </table>
  111. </body>
  112. </html>