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

124 lines
5.8KB

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