性久久久久久,性色av浪潮av色欲av,国产日韩精品在线观看,亚洲色成人网一二三区

歡迎您光臨深圳塔燈網(wǎng)絡科技有限公司!
電話圖標 余先生:13699882642

網(wǎng)站百科

為您解碼網(wǎng)站建設的點點滴滴

PhpCms模板風格:模板制作_PHPCms教程

發(fā)表日期:2019-12 文章編輯:小燈 瀏覽次數(shù):3853

默認模板存放在 ./templates/default/phpcms/ 目錄里。
header.html、index.html、footer.html 三個模板文件。這可是模板的靈魂??!完整頁面模板就是header index footer了.

打開 header.html如下:
  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={CHARSET}" />
  5. <title>{$head[title]}</title>
  6. <meta content="{$head[keywords]}" name="keywords" />
  7. <meta content="{$head[description]}" name="description" />
  8. <base href="{SITE_URL}" />
  9. <link href="favicon.ico" rel="shortcut icon" />
  10. <link href="{SKIN_PATH}{$mod}.css" rel="stylesheet" type="text/css" />
  11. <script language="JavaScript" src="data/config.js"></script>
  12. <script language="JavaScript" src="images/js/jquery.min.js"></script>
  13. <script language="JavaScript" src="images/js/css.js"></script>
  14. <script language="JavaScript" src="images/js/common.js"></script>
  15. <script language="JavaScript" src="images/js/login.js"></script>
  16. <script language="JavaScript" src="images/js/validator.js"></script>
  17. </head>
  18. <body onload="menu_selected('{php echo $catid ? $catid : $mod;}')">
  19. <div id="top">
  20. {if isset($MODULE['search'])}
  21. {php $types = include PHPCMS_ROOT.$MODULE['search']['path'].'include/type.inc.php';}
  22. <div class="f_r">
  23. <form name="site_search" action="{$MODULE[search][url]}" target="_blank">
  24. <input type="hidden" name="type" value="all"/>
  25. <input type="text" name="q" size="20"/>
  26. <select>
  27. <option value="all">全部</option>
  28. {loop $types $k $name}
  29. <option value="{$k}">{$name}</option>
  30. {/loop}
  31. </select>
  32. <input type="submit" name="s" id="button" value="搜索" />
  33. </form>
  34. </div>
  35. {/if}
  36. <div class="f_l">
  37. <div id="div_login" style="display:block">
  38. <form action="{$MODULE[member][url]}login.php" method="post" name="login" onsubmit="return loginSubmit(this, {$PHPCMS[uc]});">
  39. 用戶名:<input type="text" name="username" size="12"/>
  40. 密碼:<input type="password" name="password" size="12"/>
  41. <input type="submit" name="dosubmit" value="登錄" />
  42. <input type="button" name="register" value="注冊" onclick="redirect('{$MODULE[member][url]}register.php')"/>
  43. <input type="hidden" name="cookietime" value="0"/>
  44. </form>
  45. </div>
  46. <div id="div_logined" style="display:none">
  47. <span id="logined_username" class="b"></span>,<a href="{$MODULE[member][url]}">會員中心</a> |
  48. <a href="{if $PHPCMS['uc']}{$MODULE[member][url]}logout.php{else}javascript:logout('{$MODULE[member][url]}logout.php?action=ajax');{/if}">退出登錄</a>
  49. </div>
  50. </div>
  51. </div>
  52. <div id="head">
  53. <div id="logo">
  54. <a href="{SITE_URL}"><img src="images/logo.gif" alt="{$PHPCMS[sitename]}" /></a>
  55. <a href="{SITE_URL}rss.php" target="_blank"><img src="images/rss.jpg" alt="rss信息聚合" /></a></div>
  56. <div class="ad" id="topbanner"><script language="javascript" src="data/js.php?id=1"></script></div>
  57. </div>
  58. <div id="menu">
  59. <ul>
  60. <li><a href="" id="menu_phpcms"><span>首頁</span></a></li>
  61. {tag_一級欄目}
  62. <li><a href="{$MODULE[special][url]}" id="menu_special"><span>專題</span></a></li>
  63. <li><a href="{$MODULE[ask][url]}" id="menu_ask"><span>問吧</span></a></li>
  64. <li><a href="{$MODULE[search][url]}" id="menu_search"><span>搜索</span></a></li>
  65. </ul>
  66. </div>
打開 index.html如下:
  1. <!--begin main-->
  2. <div id="main">
  3. <!--begin left-->
  4. <div id="main_l">
  5. <!--begin 焦點圖片,新聞-->
  6. ******************************中間部分代碼太長 此處省略處理******************************
  7. <!--begin 全站搜索-->
  8. <!--{if isset($MODULE['search'])}-->
  9. <script type="text/javascript">
  10. function set_type(type)
  11. {
  12. $('#type').val(type);
  13. $('#search_tag>span').removeClass('selected');
  14. $('#type_' type).addClass('selected');
  15. }
  16. </script>
  17. <form name="search" action="{$MODULE[search][url]}" target="_blank">
  18. <div class="search_tag_top mar_10">
  19. <p id="search_tag"> <span id="type_all" class="selected" onclick="set_type('all')">全部</span> {php $types = include PHPCMS_ROOT.$MODULE['search']['path'].'include/type.inc.php';}
  20. {loop $types $type $name} <span id="type_{$type}" onclick="set_type('{$type}')">{$name}</span> {/loop} </p>
  21. </div>
  22. <div class="cribox_bdr_1">
  23. <input type="hidden" name="type" value="all" id="type"/>
  24. <input type="text" name="q" size="50"/>
  25. <input type="submit" name="s" id="button" value="搜索" />
  26. </div>
  27. </form>
  28. <div class="cribox_btm"></div>
  29. <!--{/if}-->
  30. ******************************中間部分代碼太長 此處省略處理******************************
  31. <!--{if isset($MODULE['link'])}-->
  32. <h4><a href="{$MODULE[link][url]}"><img src="images/more.gif" alt="更多" /></a>友情鏈接</h4>
  33. <div class="pic_txt_list_1"> {tag_logo鏈接} </div>
  34. <div class="pic_txt_list_1"> {tag_文字鏈接} </div>
  35. <!--{/if}-->
  36. </div>
  37. <!--end right-->
  38. </div>
  39. <!--end main-->
打開 footer.html如下:
  1. <div id="foot">
  2. <a href="">網(wǎng)站首頁</a>{tag_關(guān)于我們}<br />
  3. <strong>{$PHPCMS['copyright']}</strong><br />
  4. <a href="http://www.miibeian.gov.cn/" target="_blank">{$PHPCMS[icpno]}</a>
  5. <a href="http://www.phpcms.cn/" class="copyright" target="_blank">Powered by Phpcms 2008</a>
  6. </div>
  7. </body>
  8. </html>

本頁內(nèi)容由塔燈網(wǎng)絡科技有限公司通過網(wǎng)絡收集編輯所得,所有資料僅供用戶參考了本站不擁有所有權(quán),如您認為本網(wǎng)頁中由涉嫌抄襲的內(nèi)容,請及時與我們聯(lián)系,并提供相關(guān)證據(jù),工作人員會在5工作日內(nèi)聯(lián)系您,一經(jīng)查實,本站立刻刪除侵權(quán)內(nèi)容。本文鏈接:http://caipiao93.cn/28170.html
相關(guān)
 八年  行業(yè)經(jīng)驗

多一份參考,總有益處

聯(lián)系深圳網(wǎng)站公司塔燈網(wǎng)絡,免費獲得網(wǎng)站建設方案及報價

咨詢相關(guān)問題或預約面談,可以通過以下方式與我們聯(lián)系

業(yè)務熱線:余經(jīng)理:13699882642

Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.