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

125 lines
5.6KB

  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 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. '七月', '八月', '九月', '十月', '十一月', '十二月'],
  38. firstDay: 1
  39. }
  40. }, function (start) {
  41. $(this).val(start.format("YYYY-MM-DD HH:mm"));
  42. });
  43. })
  44. </script>
  45. </head>
  46. <body>
  47. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  48. <tr>
  49. <td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="ad_main.php">广告管理</a> &gt; 修改广告</td>
  50. </tr>
  51. <tr>
  52. <td>
  53. <table width="100%" cellspacing="4" cellpadding="4" class="table table-borderless">
  54. <form action="ad_edit.php" method="post" enctype="multipart/form-data" name="form1">
  55. <input type='hidden' name='aid' value='<?php echo $aid?>'>
  56. <input type='hidden' name='dopost' value='saveedit'>
  57. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token']; ?>">
  58. <tr>
  59. <td height="26">广告位标识:</td>
  60. <td colspan="2"><?php echo $row['tagname']; ?></td>
  61. </tr>
  62. <tr>
  63. <td height="26">广告分类:</td>
  64. <td colspan="2">
  65. <select name='clsid' id="clsid" style='width:160px'>
  66. <option value='0'>默认分类</option>
  67. <?php echo $option; ?>
  68. </select></td>
  69. </tr>
  70. <tr>
  71. <td height="26">广告投放范围:</td>
  72. <td colspan="2"><?php
  73. $tl = new TypeLink(0);
  74. $typeOptions = $tl->GetOptionArray($row['typeid'],0,0);
  75. echo "<select name='typeid' style='width:260px'>";
  76. echo "<option value='0' selected>投放在没有同名标识的所有栏目</option>";
  77. echo $typeOptions;
  78. echo "</select>";
  79. ?>
  80. <br>
  81. (如果在所选栏目找不到指定标识的广告内容,系统会自动搜索父栏目)</td>
  82. </tr>
  83. <tr>
  84. <td height="26">广告位名称:</td>
  85. <td colspan="2"><input name="adname" type="text" id="adname" value="<?php echo $row['adname']?>" class="iptxt" style="width:260px"></td>
  86. </tr>
  87. <tr>
  88. <td height="26">时间限制:</td>
  89. <td colspan="2">
  90. <label><input class="np" name="timeset" type="radio" value="0" <?php if($row['timeset']==0) echo " checked='1' "; ?> />
  91. 永不过期</label>
  92. <label><input class="np" type="radio" name="timeset" value="1" <?php if($row['timeset']==1) echo " checked='1' "; ?> />
  93. 在设内时间内有效</label>
  94. </td>
  95. </tr>
  96. <tr>
  97. <td height="26">投放时间:</td>
  98. <td colspan="2">从
  99. <input name="starttime" type="text" id="starttime" value="<?php echo GetDateTimeMk($row['starttime'])?>" class='iptxt datepicker' style="width:160px">
  100. <input name="endtime" type="text" id="endtime" value="<?php echo GetDateTimeMk($row['endtime'])?>" class='iptxt datepicker' style="width:160px">
  101. </td>
  102. </tr>
  103. <tr>
  104. <td height="80">正常显示内容:</td>
  105. <td width="70%"><textarea name="normbody" rows="10" id="normbody" style="width:80%;height:100px"><?php echo dede_htmlspecialchars(stripslashes($row['normbody']))?></textarea>
  106. </td>
  107. <td width="10%"></td>
  108. </tr>
  109. <tr>
  110. <td height="80">过期显示内容:</td>
  111. <td><textarea name="expbody" rows="10" id="expbody" style="width:80%;height:100px"><?php echo dede_htmlspecialchars($row['expbody'])?></textarea></td>
  112. <td></td>
  113. </tr>
  114. <tr>
  115. <td colspan="3" align="center" class="py-3"><button type="submit" class="btn btn-success btn-sm">保存</button></td>
  116. </tr>
  117. </form>
  118. </table>
  119. </td>
  120. </tr>
  121. </table>
  122. </body>
  123. </html>