header_search.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <script>var mobiledomain='{$mayimobile[mobiledomain]}';var wwwdomain='{$mymps_global[SiteUrl]}';</script>
  2. {if $mod=='post'}<script src="{$mayimobile[mobiledomain]}/template/js/jq.js"></script>{else}<script src="{$mayimobile[mobiledomain]}/template/js/jq_min.211.js"></script>{/if}
  3. <script src="{$mayimobile[mobiledomain]}/template/js/common.js"></script>
  4. <div class="header">
  5. <a rel="nofollow" href="javascript:void(0);" onClick="return window.history.go(-1);" class="back left8">返回</a>
  6. <div class="search left8" id="search_ico" onClick="showNewPage('搜索',searchHtml,newPageSearch);">搜索</div>
  7. <a rel="nofollow" href="{$mayimobile[mobiledomain]}/index.php?mod=member" class="my left8" id="login_ico">我的</a>
  8. <div class="type" id="nav_ico">导航</div>
  9. <div id="ipageTitle" style="display:none;">{$mymps_global[SiteName]}</div>
  10. <div class="login_inner" id="login_inner"></div>
  11. </div>
  12. {if $mod=='information' }
  13. <script>var infoid = '{$row[id]}';</script>
  14. <script src="{$mayimobile[mobiledomain]}/template/js/info.js"></script>
  15. <div id="sharepic" ><img src="{$mayimobile[mobiledomain]}/template/images/mymps_share.png" ></div>
  16. <div id="contactbar">
  17. <a rel="nofollow" href="{$mayimobile[mobiledomain]}" style="width:14%;" class="bottom_index{echo $mod == 'index' ? '_on' : '';}">首页</a>
  18. <a rel="nofollow" style="width:14%;" id="head_share" class="bottom_fxshare{echo $mod == 'history' ? '_on' : '';}">分享</a>
  19. <a rel="nofollow" style="width:14%;" id="head_shoucang" class="bottom_schidden{echo $row[ifshoucang] == '1' ? '_on' : '';}">收藏</a>
  20. {if $row[usecoin] != 0 && $iflogin == 0}
  21. <a rel="nofollow" style="width:29%;" id="head_comment" class="bottom_fdxems" > <i class="bottom_fdxemsicon">短信咨询</i> </a>
  22. <a rel="nofollow" style="width:29%;" class="bottom_ddhtel"><i class="bottom_ddhtelicon">拨打电话</i></a>
  23. {elseif $viewid!=$id && $row[usecoin] > 0 && $iflogin == 1}
  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. {elseif $row[usecoin]<=0 || $viewid == $id}
  27. <a rel="nofollow" href="sms:{$row[tel]}" style="width:29%;" id="head_comment" class="bottom_fdxems" > <i class="bottom_fdxemsicon">短信咨询</i> </a>
  28. <a rel="nofollow" href="tel:{$row[tel]}" style="width:29%;" class="bottom_ddhtel"><i class="bottom_ddhtelicon">拨打电话</i></a>
  29. {/if}
  30. </div>
  31. {elseif $mod=='store'}
  32. <script src="{$mayimobile[mobiledomain]}/template/js/info.js"></script>
  33. <div id="sharepic" ><img src="{$mayimobile[mobiledomain]}/template/images/mymps_share.png" ></div>
  34. <div id="contactbar">
  35. <a rel="nofollow" href="{$uri[corp]}" style="width:16%;" class="bottom_store{echo $mod == 'corp' ? '_on' : '';}">商家</a>
  36. <a rel="nofollow" href="{$mayimobile[mobiledomain]}/index.php?mod=register&action=store" style="width:16%;" class="bottom_addstore">商家入驻</a>
  37. <a rel="nofollow" id="head_share" style="width:16%;" class="bottom_schidden{echo $mod == 'post' ? '_on' : '';}">分享</a>
  38. <a rel="nofollow" href="tel:{$store[tel]}" style="width:52%;" class="bottom_ddhtel"><i class="bottom_ddhtelicon">拨打电话</i></a>
  39. </div>
  40. {else}
  41. <div id="contactbar">
  42. <a rel="nofollow" href="{$mayimobile[mobiledomain]}" class="bottom_index{echo $mod == 'index' ? '_on' : '';}" >首页</a>
  43. <a rel="nofollow" href="{$uri[corp]}" class="bottom_store{echo $mod == 'corp' ? '_on' : '';}">商家</a>
  44. <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>
  45. <a rel="nofollow" href="{$mayimobile[mobiledomain]}/index.php?mod=history" class="bottom_history{echo $mod == 'history' ? '_on' : '';}">历史</a>
  46. <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>
  47. </div>
  48. {/if}
  49. {if !in_array($mod,array('index','post','information','member'))}
  50. <div class="nav_APP" id="nav_APP">
  51. <ul class="cfix" id="nav_APP_data2">
  52. <li><a href="{$mayimobile[mobiledomain]}">首页<s class="s" style="background-image:url({$mymps_global[SiteUrl]}/m/template/images/home.gif);"></s></a></li>
  53. <!--{php $navigation = get_mobile_nav(2);}-->
  54. <!--{loop $navigation $mymps}-->
  55. <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>
  56. <!--{/loop}-->
  57. </ul><span class="arrow-up"></span>
  58. </div>
  59. {/if}
  60. <script>
  61. window['siteUrl'] = '{$mayimobile[mobiledomain]}';
  62. <!--{if $mod=='index'}-->
  63. $('.header .back').hide();
  64. $('#search_ico').removeClass("left8");
  65. $('#search_ico').addClass("right8");
  66. $('#nav_ico').hide();
  67. <!--{elseif $mod=='post'||$mod=='information'||$mod=='member'}-->
  68. $('#search_ico').hide();
  69. $('#nav_ico').hide();
  70. $('#login_ico').removeClass("left8");
  71. $('#login_ico').addClass("right8");
  72. <!--{else}-->
  73. $('.header .back').show();
  74. $('#login_ico').hide();
  75. $('#search_ico').hide();
  76. <!--{/if}-->
  77. <!--{if $iflogin==1}-->
  78. $('#login_ico').addClass('ico_ok');
  79. <!--{/if}-->
  80. if (window['current']) {
  81. $('#ipageTitle').html(window['current']).show()
  82. } else {
  83. $('#ipageTitle').show()
  84. }
  85. $(function(){
  86. $('#nav_ico').click(function(e){
  87. e.preventDefault();
  88. $('#nav_APP').fadeToggle('fast');
  89. });
  90. if(!window['ipageTitle']){
  91. $('#ipageTitle').show();
  92. }else{
  93. $('#ipageTitle').html(window['ipageTitleTxt']).show();
  94. }
  95. });
  96. </script>
  97. <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>
  98. <div id="sharepic" ><img src="{$mayimobile[mobiledomain]}/template/images/timg.png" ></div>