advertisement_list.tpl.php 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php include mymps_tpl('inc_head');?>
  2. <div id="<?=MPS_SOFTNAME?>" style="padding-bottom:0">
  3. <div class="mpstopic-category">
  4. <div class="panel-tab">
  5. <ul class="clearfix tab-list">
  6. <li><a href="?part=intro" <?php if($part == 'intro'){?>class="current"<?php }?>>广告位详细介绍</a></li>
  7. <li><a href="?" <?php if($part == 'list'){?>class="current"<?php }?>>广告列表</a></li>
  8. </ul>
  9. <ul style="float:right; text-align:right">
  10. <select name="type" onChange="location.href='?type='+(this.options[this.selectedIndex].value)">
  11. <option value="">==按广告类型筛选==</option>
  12. <?php foreach($vbm_adv_type as $k=>$v){?>
  13. <option value="<?=$k?>" <?php if($k == $type) echo 'selected'; ?>><?=$v[name]?></option>
  14. <?php }?>
  15. </select>
  16. </ul>
  17. </div>
  18. </div>
  19. </div>
  20. <div id="<?=MPS_SOFTNAME?>">
  21. <table border="0" cellspacing="0" cellpadding="0" class="vbm">
  22. <tr bgcolor="#ffffff">
  23. <td>
  24. <form method="get" action="?">
  25. <input name="part" value="add" type="hidden"/>
  26. 新增广告 -> 广告标题:<input style="vertical-align: middle" class="text" type="text" name="title" value="" size="25" maxlength="50"> <?=get_adv_style()?>
  27. <?=get_adv_option();?>
  28. </form>
  29. </td>
  30. </tr>
  31. </table>
  32. </div>
  33. <form name='form1' method='post' action='adv.php'>
  34. <input name="forward_url" value="<?=GetUrl()?>" type="hidden">
  35. <input name="part" value="<?=$part?>" type="hidden"/>
  36. <div id="<?=MPS_SOFTNAME?>">
  37. <table border="0" cellspacing="0" cellpadding="0" class="vbm">
  38. <tr class="firstr">
  39. <td width="5%">
  40. <input name="chkall" type="checkbox" onclick="AllCheck('prefix', this.form, 'delids')" class="checkbox"/>删?</td>
  41. <td width="5%">可用</td>
  42. <td width="8%">显示顺序</td>
  43. <td width="15%">标题</td>
  44. <td width="12%">类型</td>
  45. <td width="5%">样式</td>
  46. <td width="8%">起始时间</td>
  47. <td width="8%">终止时间</td>
  48. <td width="10%">详情</td>
  49. </tr>
  50. <?php foreach($adv as $k =>$value){?>
  51. <tr bgcolor="white">
  52. <td><input class="checkbox" type='checkbox' name='delids[]' value='<?=$value[advid]?>' id="<?=$value[advid]?>"></td>
  53. <td><input class="checkbox" type="checkbox" name="available[<?=$value[advid]?>]" value="1" <?php if ($value['available'] == 1){echo 'checked';}?>/></td>
  54. <td><input name="displayorder[<?=$value[advid]?>]" value="<?=$value[displayorder]?>" type="text" class="txt"/></td>
  55. <td><input name="titlenew[<?=$value[advid]?>]" value="<?=$value[title]?>" type="text" class="text" style="width:100px"/></td>
  56. <td><a href="?cityid=<?=$cityid?>&type=<?=$value[type]?>"><?=$vbm_adv_type[$value[type]][name]?></a></td>
  57. <td>
  58. <?php
  59. $adv_style = ($charset == 'utf-8') ? utf8_unserialize($value[parameters]) : unserialize($value[parameters]);
  60. echo $vbm_adv_style[$adv_style[style]];
  61. ?></td>
  62. <td><em><?php echo $value[starttime] ? GetTime($value[starttime],'Y-m-d') : '-'; ?></em></td>
  63. <td><em><?php echo $value[endtime] ? GetTime($value[endtime],'Y-m-d') : '-'; ?></em></td>
  64. <td><a href="?part=edit&advid=<?=$value[advid]?>">编辑</a> <?php if(!in_array($value[type],array('couplead','floatad'))){?>&nbsp;&nbsp;<a href="
  65. javascript:setbg('广告预览',550,110,'../box.php?part=advertisementview&id=<?=$value[advid]?>')">预览</a><?php }?> <?php if($value[type] == 'normalad'){?> &nbsp;&nbsp;<a href="
  66. javascript:setbg('自定义广告调用',550,110,'../box.php?part=advertisement&id=<?=$value[advid]?>')">调用</a><?}?></td>
  67. </tr>
  68. <?php }?>
  69. </table>
  70. </div>
  71. <center>
  72. <input type="submit" value="提 交" class="mymps large" name="<?php echo CURSCRIPT; ?>_submit"/>
  73. </center>
  74. </form>
  75. <div class="pagination"><?php echo page2();?></div>
  76. <?php mymps_admin_tpl_global_foot();?>