mobile_nav_ico.tpl.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php include mymps_tpl('inc_head');?>
  2. <style>
  3. .vtop{ background-color:#ffffff}
  4. .smalltxt{ font-size:12px!important; color:#999!important; font-weight:100!important}
  5. .altbg1{ background-color:#f1f5f8; width:45%;}
  6. .ico{ width:28px; height:28px;}
  7. </style>
  8. <div id="<?=MPS_SOFTNAME?>" style=" padding-bottom:0">
  9. <div class="mpstopic-category">
  10. <div class="panel-tab">
  11. <ul class="clearfix tab-list">
  12. <li><a href="?">基本设置</a></li>
  13. <!--<li><a href="?type=nav">文字导航设置</a></li>-->
  14. <li><a href="?type=nav_ico" class="current">图标导航设置(首页)</a></li>
  15. <li><a href="?type=gg">幻灯片广告设置</a></li>
  16. </ul>
  17. </div>
  18. </div>
  19. </div>
  20. <?php if($type == 'nav_ico'){?>
  21. <div id="<?=MPS_SOFTNAME?>">
  22. <table border="0" cellspacing="0" cellpadding="0" class="vbm">
  23. <tr class="firstr">
  24. <td colspan="2">技巧提示</td>
  25. </tr>
  26. <tr bgcolor="#ffffff">
  27. <td id="menu_tip">
  28. <li>图标导航显示在首页文字主导航下方,以图标形式展示,图标尺寸建议44×44</li>
  29. <li>您可以<a href="?type=restore" style="color:red; text-decoration:underline; font-weight:bold; font-size:18px">点此恢复默认图标导航&raquo;</a></li>
  30. </td>
  31. </tr>
  32. </table>
  33. </div>
  34. <?php }?>
  35. <form method="post" action="?">
  36. <input type="hidden" name="type" value="<?=$type?>">
  37. <input name="return_url" value="<?php echo GetUrl();?>" type="hidden">
  38. <div id="<?=MPS_SOFTNAME?>">
  39. <table border="0" cellspacing="0" cellpadding="0" class="vbm">
  40. <tr class="firstr">
  41. <td colspan="8"><b>手机版导航设置</b></td>
  42. </tr>
  43. <tr style="font-weight:bold; background-color:#F5F8FF">
  44. <td width="50"><input class="checkbox" name="chkall" type="checkbox" onclick="AllCheck('prefix', this.form, 'delids')"/> 删?</td>
  45. <td>启用</td>
  46. <td>图标路径(<font color="red">*</font>)</td>
  47. <td>文字(<font color="red">*</font>)</td>
  48. <td>文字颜色</td>
  49. <td>链接地址(<font color="red">*</font>)</td>
  50. <td>显示顺序</td>
  51. </tr>
  52. <?php if(!$rows_num){?>
  53. <tr bgcolor="#ffffff">
  54. <td colspan="9"><br />目前并无手机图标导航,<a href="?type=restore" style="text-decoration:underline">点此应用默认手机图标导航&raquo;</a><br /><br /></td>
  55. </tr>
  56. <?php }else{foreach($url as $k =>$value){?>
  57. <tr bgcolor="#ffffff">
  58. <td bgcolor="white"><input class="checkbox" type='checkbox' name='delids[]' value='<?=$value[id]?>' id="<?=$value[id]?>"></td>
  59. <td bgcolor="white" width="60px">
  60. <input name="isviewids[<?=$value[id]?>]" value="2" type="checkbox" class="checkbox" <?php if($value['isview'] == '2'){echo 'checked';}?>></td>
  61. <td bgcolor="white">
  62. <? if($value[ico]){?><img class="ico" src="<?=$mymps_global[SiteUrl]?><?=$value[ico]?>"> <? }?><input name="navico[<?=$value[id]?>]" value="<?=$value[ico]?>" type="text" class="text" style="width:280px"/>
  63. </td>
  64. <td bgcolor="white">
  65. <input name="navtitle[<?=$value[id]?>]" value="<?=$value[title]?>" type="text" class="text" style="width:80px"/>
  66. </td>
  67. <td bgcolor="white">
  68. <select name="showcolor[<?=$value[id]?>]">
  69. <option value="">默认颜色</option>
  70. <?=get_color_options($value[color])?>
  71. </select>
  72. </td>
  73. <td bgcolor="white">
  74. <input name="navurl[<?=$value[id]?>]" value="<?=$value[url]?>" type="text" class="text" style="width:200px"/>
  75. </td>
  76. <td bgcolor="white"><input name="displayorder[<?=$value[id]?>]" value="<?=$value[displayorder] ? $value[displayorder] : 0?>" type="text" class="txt"/></td>
  77. </tr>
  78. <?php }}?>
  79. <tbody id="secqaabody" bgcolor="white">
  80. <tr bgcolor="#f5fbff">
  81. <td bgcolor="white" align="center">新增<a href="###" onclick="newnode = $('secqaabodyhidden').firstChild.cloneNode(true); $('secqaabody').appendChild(newnode)">[+]</a></td>
  82. <td bgcolor="white"><select name="newisview[]">
  83. <?=get_ifview_options(2)?>
  84. </select></td>
  85. <td bgcolor="white"><input name="newico[]" value="" type="text" class="text" style="width:280px"></td>
  86. <td bgcolor="white"><input name="newtitle[]" value="" type="text" class="text" style="width:80px;"/></td>
  87. <td bgcolor="white">
  88. <select name="newshowcolor[]">
  89. <option value="">默认颜色</option>
  90. <?=get_color_options()?>
  91. </select>
  92. </td>
  93. <td bgcolor="white"><input name="newurl[]" value="" type="text" class="text" style="width:200px"/></td>
  94. <td bgcolor="white"><input name="newdisplayorder[]" value="" type="text" class="txt"/></td>
  95. </tr>
  96. </tbody>
  97. <tbody id="secqaabodyhidden" style="display:none">
  98. <tr bgcolor="#f5fbff">
  99. <td align="center" bgcolor="white">&nbsp;</td>
  100. <td bgcolor="white"><select name="newisview[]">
  101. <?=get_ifview_options(2)?>
  102. </select></td>
  103. <td bgcolor="white"><input name="newico[]" value="" type="text" class="text" style="width:280px"></td>
  104. <td bgcolor="white"><input name="newtitle[]" value="" type="text" class="text" style="width:80px;"/></td>
  105. <td bgcolor="white">
  106. <select name="newshowcolor">
  107. <option value="">默认颜色</option>
  108. <?=get_color_options($navurl[color])?>
  109. </select>
  110. </td>
  111. <td bgcolor="white"><input name="newurl[]" value="" type="text" class="text" style="width:200px"/></td>
  112. <td bgcolor="white"><input name="newdisplayorder[]" value="" type="text" class="txt"/></td>
  113. </tr>
  114. </tbody>
  115. </table>
  116. </div>
  117. <center><input name="<?=CURSCRIPT?>_submit" type="submit" value="提 交" class="mymps large"/></center>
  118. </form>
  119. <div class="pagination"><?=page2()?></div>
  120. <?php mymps_admin_tpl_global_foot();?>