热搜词
发表于 2016-6-24 15:47:39 | 显示全部楼层 |阅读模式
destoon 6.0默认模板 head.htm页面搜索代码:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;charset={DT_CHARSET}"/>
  5. <title>{if $seo_title}{$seo_title}{else}{if $head_title}{$head_title}{$DT[seo_delimiter]}{/if}{if $city_sitename}{$city_sitename}{else}{$DT[sitename]}{/if}{/if}</title>
  6. {if $head_keywords}
  7. <meta name="keywords" content="{$head_keywords}"/>
  8. {/if}
  9. {if $head_description}
  10. <meta name="description" content="{$head_description}"/>
  11. {/if}
  12. {if $head_mobile}
  13. <meta http-equiv="mobile-agent" content="format=xhtml; url={$head_mobile}">
  14. <meta http-equiv="mobile-agent" content="format=html5; url={$head_mobile}">
  15. {/if}
  16. <meta name="generator" content="DESTOON B2B - www.destoon.com"/>
  17. <link rel="shortcut icon" type="image/x-icon" href="{DT_STATIC}favicon.ico"/>
  18. <link rel="bookmark" type="image/x-icon" href="{DT_STATIC}favicon.ico"/>
  19. {if $head_canonical}
  20. <link rel="canonical" href="{$head_canonical}"/>
  21. {/if}
  22. {if $EXT[archiver_enable]}
  23. <link rel="archives" title="{$DT[sitename]}" href="{$EXT[archiver_url]}"/>
  24. {/if}
  25. <link rel="stylesheet" type="text/css" href="{DT_SKIN}style.css"/>
  26. {if $moduleid>4}
  27. <link rel="stylesheet" type="text/css" href="{DT_SKIN}{$module}.css"/>
  28. {/if}
  29. {if $CSS}
  30. {loop $CSS $css}
  31. <link rel="stylesheet" type="text/css" href="{DT_SKIN}{$css}.css"/>
  32. {/loop}
  33. {/if}
  34. <!--[if lte IE 6]>
  35. <link rel="stylesheet" type="text/css" href="{DT_SKIN}ie6.css"/>
  36. <![endif]-->
  37. {if !DT_DEBUG}<script type="text/javascript">window.onerror=function(){return true;}</script>{/if}
  38. <script type="text/javascript" src="{DT_STATIC}lang/{DT_LANG}/lang.js"></script>
  39. <script type="text/javascript" src="{DT_STATIC}file/script/config.js"></script>
  40. <script type="text/javascript" src="{DT_STATIC}file/script/jquery.js"></script>
  41. <script type="text/javascript" src="{DT_STATIC}file/script/common.js"></script>
  42. <script type="text/javascript" src="{DT_STATIC}file/script/page.js"></script>
  43. {if $lazy}<script type="text/javascript" src="{DT_STATIC}file/script/jquery.lazyload.js"></script>{/if}
  44. {if $JS}
  45. {loop $JS $js}
  46. <script type="text/javascript" src="{DT_STATIC}file/script/{$js}.js"></script>
  47. {/loop}
  48. {/if}
  49. {php $searchid = ($moduleid > 3 && $MODULE[$moduleid]['ismenu'] && !$MODULE[$moduleid]['islink']) ? $moduleid : 5;}
  50. <script type="text/javascript">
  51. {if $head_mobile && $EXT[wap_goto]}
  52. GoMobile('{$head_mobile}');
  53. {/if}
  54. var searchid = {$searchid};
  55. {if $itemid && $DT[anticopy]}
  56. document.oncontextmenu=function(e){return false;};
  57. document.onselectstart=function(e){return false;};
  58. {/if}
  59. </script>
  60. <!--[以上为系统关键代码,除非您明确其含义,否则请勿修改或删除,否则会导致系统错误]-->
  61. <!--[模板中所有带id的元素,请勿修改或删除,否则会导致部分JS代码无法运行]-->
  62. <!--[以上类似的注释,在编译模板时,系统会自动移除,不会显示在实际的页面中]-->
  63. </head>
  64. <body>
  65. <div class="m">
  66.   <div id="search_module" style="display:none;" onmouseout="Dh('search_module');" onmouseover="Ds('search_module');"> {loop $MODULE $m}{if $m[ismenu] && !$m[islink]}<a href="javascript:void(0);" onclick="setModule('{$m[moduleid]}','{$m[name]}')">{$m[name]}</a>{/if}{/loop} </div>
  67. </div>
  68. <div class="m">
  69.   <div class="logo f_l"><a href="{$MODULE[1][linkurl]}"><img src="{if $MODULE[$moduleid][logo]}{DT_SKIN}image/logo_{$moduleid}.gif{elseif $DT[logo]}{$DT[logo]}{else}{DT_SKIN}image/logo.gif{/if}" alt="{$DT[sitename]}"/></a></div>
  70.   <form id="destoon_search" action="{$MODULE[$searchid][linkurl]}search.php" onsubmit="return Dsearch(1);">
  71.     <input type="hidden" name="moduleid" value="{$searchid}" id="destoon_moduleid"/>
  72.     <input type="hidden" name="spread" value="0" id="destoon_spread"/>
  73.     <div class="head_search" onmouseover="this.className='head_search_on';" onmouseout="this.className='head_search';">
  74.       <div>
  75.         <input name="kw" id="destoon_kw" type="text" class="search_i" value="{if $kw}{$kw}{else}请输入关键词{/if}" onfocus="if(this.value=='请输入关键词') this.value='';"{if $DT[search_tips]} onkeyup="STip(this.value);" autocomplete="off"{/if} x-webkit-speech speech/>
  76.         <input type="text" id="destoon_select" class="search_m" value="{$MODULE[$searchid][name]}" readonly onfocus="this.blur();" onclick="$('#search_module').fadeIn('fast');"/>
  77.         <input type="submit" value="搜索" class="search_s"/>
  78.       </div>
  79.     </div>
  80.   </form>
  81. </div>
  82. </body>
  83. </html>
复制代码


全部评论0
回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|管理员之家 ( 苏ICP备2023053177号-2 )

GMT+8, 2024-11-25 07:01 , Processed in 0.174762 second(s), 26 queries .

Powered by Discuz! X3.5

Cpoyright © 2001-2024 Discuz! Team