首页 > CMS > PhpCMS > 正文

PhpCms模板风格:模板制作|PHPCms

2024-07-09 22:52:41
字体:
来源:转载
供稿:网友
默认模板存放在 ./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" src="/uploads/allimg/130309/1F43310V-0.jpg" />
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表