Html 什么';“的意思是什么;{#…};tpl文件中的标签?
下面代码中所有{#…}标记的含义是什么Html 什么';“的意思是什么;{#…};tpl文件中的标签?,html,css,tags,Html,Css,Tags,下面代码中所有{#…}标记的含义是什么 {include file="header.tpl" title="install" showheader="no"} <div class="install" style="text-align:center;padding:5% 0 0 0;"> <div style="text-align:left;width:500px;margin:0 auto;padding:25px 25px 15px 25px;backgro
{include file="header.tpl" title="install" showheader="no"}
<div class="install" style="text-align:center;padding:5% 0 0 0;">
<div style="text-align:left;width:500px;margin:0 auto;padding:25px 25px 15px 25px;background:white;border:1px solid;">
<h1>{#installcollabtive#}</h1>
<div style="padding:16px 0 16px 0;">
<h2>{#installstep#} 3</h2>
<em>{#createadmin#}</em><br /><br />
<form class = "main" name = "adminuser" method = "post" enctype="multipart/form-data" action = "install.php?action=step3">
<fieldset>
<div class = "row"><label for = "username">{#name#}:</label><input type = "text" name = "name" id = "username" /></div>
<div class = "row"><label for = "pass">{#password#}:</label><input type = "password" name = "pass" id = "pass" /></div>
</fieldset>
<br />
<div class="row-butn-bottom">
<label> </label>
<button type="submit" onfocus="this.blur();">{#continue#}</button>
</div>
</fieldset>
</form>
</div>
</div>
</div> {*Install end*}
</body>
</html>
{include file=“header.tpl”title=“install”showheader=“no”}
{#安装协作}
{#安装步骤}3
{#createadmin}
{#姓名}:
{#密码}:
{继续}
{*安装结束*}
任何帮助都将不胜感激,非常感谢 通过将从配置文件加载的变量包含在
#散列标记#
中或使用smarty变量$smarty.config
来引用这些变量。后面的语法对于嵌入引用的属性值很有用
配置文件示例:
pageTitle = "This is mine"
bodyBgColor = '#eeeeee'
tableBorderSize = 3
tableBgColor = "#bbbbbb"
rowBgColor = "#cccccc"
演示#hash#
方法的模板:
{config_load file='foo.conf'}
<html>
<title>{#pageTitle#}</title>
<body bgcolor="{#bodyBgColor#}">
<table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}">
<tr bgcolor="{#rowBgColor#}">
<td>First</td>
<td>Last</td>
<td>Address</td>
</tr>
</table>
</body>
</html>
{config_load file='foo.conf'}
<html>
<title>{$smarty.config.pageTitle}</title>
<body bgcolor="{$smarty.config.bodyBgColor}">
<table border="{$smarty.config.tableBorderSize}" bgcolor="{$smarty.config.tableBgColor}">
<tr bgcolor="{$smarty.config.rowBgColor}">
<td>First</td>
<td>Last</td>
<td>Address</td>
</tr>
</table>
</body>
</html>
你在用opencart吗?不,我在用Collaborative(一种项目管理软件),非常感谢,我知道了。在我的例子中,它引用了语言配置。