8_header_search.tpl.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <? if(!defined('IN_MYMPS')) exit('Access Denied');
  2. /*Mymps分类信息系统
  3. 官方网站:http://www.mymps.com.cn*/?>
  4. <script>var mobiledomain='<?=$mayimobile['mobiledomain']?>';var wwwdomain='<?=$mymps_global['SiteUrl']?>';</script>
  5. <? if($mod=='post') { ?><script src="<?=$mayimobile['mobiledomain']?>/template/js/jq.js"></script><?php } else { ?><script src="<?=$mayimobile['mobiledomain']?>/template/js/jq_min.211.js"></script><?php } ?>
  6. <script src="<?=$mayimobile['mobiledomain']?>/template/js/common.js"></script>
  7. <div class="header">
  8. <a rel="nofollow" href="javascript:void(0);" onClick="return window.history.go(-1);" class="back left8">返回</a>
  9. <div class="search left8" id="search_ico" onClick="showNewPage('搜索',searchHtml,newPageSearch);">搜索</div>
  10. <a rel="nofollow" href="<?=$mayimobile['mobiledomain']?>/index.php?mod=member" class="my left8" id="login_ico">我的</a>
  11. <div class="type" id="nav_ico">导航</div>
  12. <div id="ipageTitle" style="display:none;"><?=$mymps_global['SiteName']?></div>
  13. <div class="login_inner" id="login_inner"></div>
  14. </div>
  15. <? if($mod=='information' ) { ?>
  16. <script>var infoid = '<?=$row['id']?>';</script>
  17. <script src="<?=$mayimobile['mobiledomain']?>/template/js/info.js"></script>
  18. <div id="sharepic" ><img src="<?=$mayimobile['mobiledomain']?>/template/images/mymps_share.png" ></div>
  19. <div id="contactbar">
  20. <a rel="nofollow" href="<?=$mayimobile['mobiledomain']?>" style="width:14%;" class="bottom_index<? echo $mod == 'index' ? '_on' : '';; ?>">首页</a>
  21. <a rel="nofollow" style="width:14%;" id="head_share" class="bottom_fxshare<? echo $mod == 'history' ? '_on' : '';; ?>">分享</a>
  22. <a rel="nofollow" style="width:14%;" id="head_shoucang" class="bottom_schidden<? echo $row['ifshoucang'] == '1' ? '_on' : '';; ?>">收藏</a>
  23. <? if($row['usecoin'] != 0 && $iflogin == 0) { ?>
  24. <a rel="nofollow" style="width:29%;" id="head_comment" class="bottom_fdxems" > <i class="bottom_fdxemsicon">短信咨询</i> </a>
  25. <a rel="nofollow" style="width:29%;" class="bottom_ddhtel"><i class="bottom_ddhtelicon">拨打电话</i></a>
  26. <?php } elseif($viewid!=$id && $row['usecoin'] > 0 && $iflogin == 1) { ?>
  27. <a rel="nofollow" style="width:29%;" id="head_comment" class="bottom_fdxems" > <i class="bottom_fdxemsicon">短信咨询</i> </a>
  28. <a rel="nofollow" style="width:29%;" class="bottom_ddhtel"><i class="bottom_ddhtelicon">拨打电话</i></a>
  29. <?php } elseif($row['usecoin']<=0 || $viewid == $id) { ?>
  30. <a rel="nofollow" href="sms:<?=$row['tel']?>" style="width:29%;" id="head_comment" class="bottom_fdxems" > <i class="bottom_fdxemsicon">短信咨询</i> </a>
  31. <a rel="nofollow" href="tel:<?=$row['tel']?>" style="width:29%;" class="bottom_ddhtel"><i class="bottom_ddhtelicon">拨打电话</i></a>
  32. <?php } ?>
  33. </div>
  34. <?php } elseif($mod=='store') { ?>
  35. <script src="<?=$mayimobile['mobiledomain']?>/template/js/info.js"></script>
  36. <div id="sharepic" ><img src="<?=$mayimobile['mobiledomain']?>/template/images/mymps_share.png" ></div>
  37. <div id="contactbar">
  38. <a rel="nofollow" href="<?=$uri['corp']?>" style="width:16%;" class="bottom_store<? echo $mod == 'corp' ? '_on' : '';; ?>">商家</a>
  39. <a rel="nofollow" href="<?=$mayimobile['mobiledomain']?>/index.php?mod=register&action=store" style="width:16%;" class="bottom_addstore">商家入驻</a>
  40. <a rel="nofollow" id="head_share" style="width:16%;" class="bottom_schidden<? echo $mod == 'post' ? '_on' : '';; ?>">分享</a>
  41. <a rel="nofollow" href="tel:<?=$store['tel']?>" style="width:52%;" class="bottom_ddhtel"><i class="bottom_ddhtelicon">拨打电话</i></a>
  42. </div>
  43. <?php } else { ?>
  44. <div id="contactbar">
  45. <a rel="nofollow" href="<?=$mayimobile['mobiledomain']?>" class="bottom_index<? echo $mod == 'index' ? '_on' : '';; ?>" >首页</a>
  46. <a rel="nofollow" href="<?=$uri['corp']?>" class="bottom_store<? echo $mod == 'corp' ? '_on' : '';; ?>">商家</a>
  47. <a rel="nofollow" href="<?=$mayimobile['mobiledomain']?>/index.php?mod=post" class="" style="position:relative;"> <div class="pub_circle"></div> <i class="pub_iconfont"></i> <em>发布</em></a>
  48. <a rel="nofollow" href="<?=$mayimobile['mobiledomain']?>/index.php?mod=history" class="bottom_history<? echo $mod == 'history' ? '_on' : '';; ?>">历史</a>
  49. <a rel="nofollow" href="<?=$mayimobile['mobiledomain']?>/index.php?mod=member" class="bottom_member<? echo in_array($mod,array('login','member','register','forgetpass','shoucang','mypost')) ? '_on' : '';; ?>">我的</a>
  50. </div>
  51. <?php } if(!in_array($mod,array('index','post','information','member'))) { ?>
  52. <div class="nav_APP" id="nav_APP">
  53. <ul class="cfix" id="nav_APP_data2">
  54. <li><a href="<?=$mayimobile['mobiledomain']?>">首页<s class="s" style="background-image:url(<?=$mymps_global['SiteUrl']?>/m/template/images/home.gif);"></s></a></li><?php $navigation = get_mobile_nav(2); ?><?php if(is_array($navigation)){foreach($navigation as $mymps) { ?><li><a href="<?=$mymps['url']?>"><? echo cutstr($mymps['title'],8); ?><s class="s" style="background-image:url(<?=$mymps_global['SiteUrl']?><?=$mymps['ico']?>);"></s></a></li>
  55. <?php }} ?>
  56. </ul><span class="arrow-up"></span>
  57. </div>
  58. <?php } ?>
  59. <script>
  60. window['siteUrl'] = '<?=$mayimobile['mobiledomain']?>';
  61. <? if($mod=='index') { ?>
  62. $('.header .back').hide();
  63. $('#search_ico').removeClass("left8");
  64. $('#search_ico').addClass("right8");
  65. $('#nav_ico').hide();
  66. <?php } elseif($mod=='post'||$mod=='information'||$mod=='member') { ?>
  67. $('#search_ico').hide();
  68. $('#nav_ico').hide();
  69. $('#login_ico').removeClass("left8");
  70. $('#login_ico').addClass("right8");
  71. <?php } else { ?>
  72. $('.header .back').show();
  73. $('#login_ico').hide();
  74. $('#search_ico').hide();
  75. <?php } if($iflogin==1) { ?>
  76. $('#login_ico').addClass('ico_ok');
  77. <?php } ?>
  78. if (window['current']) {
  79. $('#ipageTitle').html(window['current']).show()
  80. } else {
  81. $('#ipageTitle').show()
  82. }
  83. $(function(){
  84. $('#nav_ico').click(function(e){
  85. e.preventDefault();
  86. $('#nav_APP').fadeToggle('fast');
  87. });
  88. if(!window['ipageTitle']){
  89. $('#ipageTitle').show();
  90. }else{
  91. $('#ipageTitle').html(window['ipageTitleTxt']).show();
  92. }
  93. });
  94. </script>
  95. <script>var searchHtml='<div class="searchbar2">'+'<form id="myform" action="<?=$mayimobile['mobiledomain']?>/index.php?" method="get">'+'<input name="mod" type="hidden" value="search">'+'<input type="text" name="keywords" id="keyword" class="s_ipt" value="" placeholder="输入关键字" />'+'<input type="submit" class="s_btn po_ab" value="搜索">'+'</form></div>';function newPageSearch(){$('#windowIframe .back').show();$('#myform').submit(function(){if($('#keyword').val()===''){MympsWindowMsg('index','0','请输入搜索关键字','','');return false;}else{$('#windowIframe .loading').show();}})}</script>
  96. <div id="sharepic" ><img src="<?=$mayimobile['mobiledomain']?>/template/images/timg.png" ></div>