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

135 lines
6.0KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>更改广告</title>
  7. <!-- <link rel="stylesheet" href="../static/css/bootstrap.min.css"> -->
  8. <link href="css/base.css" rel="stylesheet" type="text/css">
  9. <link href="../static/css/daterangepicker.css" rel="stylesheet">
  10. <script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script>
  11. <script type="text/javascript" src="../static/js/moment.min.js"></script>
  12. <script type="text/javascript" src="../static/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 background="images/allbg.gif" leftmargin='8' topmargin='8'>
  46. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
  47. <tr>
  48. <td height="28" background="images/tbg.gif" style="padding-left:10px;">&nbsp;<b><a
  49. href="ad_main.php"><u>广告管理</u></a></b> &gt;&gt; 更改广告 </td>
  50. </tr>
  51. <tr>
  52. <td height="200" bgcolor="#FFFFFF" valign="top">
  53. <table width="100%" border="0" cellspacing="4" cellpadding="4">
  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="token" value="<?php echo make_hash();?>" />
  58. <tr>
  59. <td height="25" align="center">广告位标识:</td>
  60. <td colspan="2"><?php echo $row['tagname']; ?></td>
  61. </tr>
  62. <tr>
  63. <td height="25" align="center">广告分类:</td>
  64. <td colspan="2"><select name='clsid' style='width:150' id="clsid">
  65. <option value='0'>默认分类...</option>
  66. <?php echo $option;?>
  67. </select></td>
  68. </tr>
  69. <tr>
  70. <td width="15%" height="25" align="center">广告投放范围:</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:300px'>\r\n";
  75. echo "<option value='0' selected>投放在没有同名标识的所有栏目</option>\r\n";
  76. echo $typeOptions;
  77. echo "</select>";
  78. ?>
  79. <br>
  80. (如果在所选栏目找不到指定标识的广告内容,系统会自动搜索父栏目) </td>
  81. </tr>
  82. <tr>
  83. <td height="25" align="center">广告位名称:</td>
  84. <td colspan="2"><input name="adname" type="text" id="adname" size="30" value="<?php echo $row['adname']?>"
  85. class='iptxt' /></td>
  86. </tr>
  87. <tr>
  88. <td height="25" align="center">时间限制:</td>
  89. <td colspan="2"><input class="np" name="timeset" type="radio" value="0"
  90. <?php if($row['timeset']==0) echo " checked='1' "; ?> />
  91. 永不过期
  92. <input class="np" type="radio" name="timeset" value="1"
  93. <?php if($row['timeset']==1) echo " checked='1' "; ?> />
  94. 在设内时间内有效</td>
  95. </tr>
  96. <tr>
  97. <td height="25" align="center">投放时间:</td>
  98. <td colspan="2">从
  99. <input name="starttime" type="text" id="starttime" value="<?php echo GetDateTimeMk($row['starttime'])?>"
  100. class='iptxt datepicker' />
  101. <input name="endtime" type="text" id="endtime" value="<?php echo GetDateTimeMk($row['endtime'])?>"
  102. class='iptxt datepicker' /></td>
  103. </tr>
  104. <tr>
  105. <td height="80" align="center">正常显示内容:</td>
  106. <td width="76%"><textarea name="normbody" rows="10" id="normbody"
  107. style="width:80%;height:100"><?php echo dede_htmlspecialchars(stripslashes($row['normbody']))?></textarea>
  108. </td>
  109. <td width="9%">&nbsp;</td>
  110. </tr>
  111. <tr>
  112. <td height="80" align="center">过期显示内容:</td>
  113. <td><textarea name="expbody" rows="10" id="expbody"
  114. style="width:80%;height:100"><?php echo dede_htmlspecialchars($row['expbody'])?></textarea></td>
  115. <td>&nbsp;</td>
  116. </tr>
  117. <tr>
  118. <td height="53" align="center">&nbsp;</td>
  119. <td colspan="2"><input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22"
  120. border="0"></td>
  121. </tr>
  122. </form>
  123. </table>
  124. </td>
  125. </tr>
  126. </table>
  127. </body>
  128. </html>