当前位置: 首页>>代码示例>>PHP>>正文


PHP Smarty_Internal_Config::loadConfigVars方法代码示例

本文整理汇总了PHP中Smarty_Internal_Config::loadConfigVars方法的典型用法代码示例。如果您正苦于以下问题:PHP Smarty_Internal_Config::loadConfigVars方法的具体用法?PHP Smarty_Internal_Config::loadConfigVars怎么用?PHP Smarty_Internal_Config::loadConfigVars使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Smarty_Internal_Config的用法示例。


在下文中一共展示了Smarty_Internal_Config::loadConfigVars方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

    function content_514451f1dd0be0_99450555($_smarty_tpl)
    {
        $_config = new Smarty_Internal_Config("web.conf", $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars(null, 'local');
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="keywords" content="<?php 
        echo $_smarty_tpl->getConfigVariable('keywords');
        ?>
" />
<meta http-equiv="description" content="<?php 
        echo $_smarty_tpl->getConfigVariable('description');
        ?>
" />
<title><?php 
        echo $_smarty_tpl->getConfigVariable('title');
        ?>
</title>
<link media="screen" href="css/index.css" type="text/css" rel="stylesheet">
<script src="js/nav.js" type="text/javascript"></script>
<script src="js/Common.js" type="text/javascript"></script>
</head>

<body>
<?php 
        echo $_smarty_tpl->getSubTemplate("Common/Menu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('name' => "menu"), 0);
        ?>

<div class="main980 f_n"><img src="images/006.jpg" width="980" height="300" border="0" alt="上海楚瀚展览服务有限公司" /></div>

<div class="main980 f_n">
	<div class="indexCenter">
		<div class="productTitle">
			<div class="productTitleLeft">联系我们</div>
			<div class="productTitleRight">您现在的位置:<a href="/">首页</a>&nbsp;>&nbsp;联系我们</div>
		</div>
		<div class="contactDetail">
			<div class="contactLeft">
				<?php 
        echo $_smarty_tpl->tpl_vars['contact']->value;
        ?>

			</div>
			<div class="contactRight">
				<iframe width="510" height="450" src="Common/Map.html" frameborder="0"></iframe>
			</div>
		</div>
	</div>
</div>
<?php 
        echo $_smarty_tpl->getSubTemplate("Common/Bottom.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('name' => "bottom"), 0);
        ?>

</body>
</html>
<?php 
    }
开发者ID:boxiansoft,项目名称:chuhan,代码行数:60,代码来源:726646534ceba12ed6edd28f5d9a735f9b74b3e8.file.contact.tpl.php

示例2: dirname

    function content_51014a7a65b4b6_87213168($_smarty_tpl)
    {
        $_config = new Smarty_Internal_Config((string) dirname($_smarty_tpl->source->filepath) . "/CONFIGS", $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars(null, 'local');
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="zh-CN" lang="zh-CN">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        
        
        <link href="css/common.css" rel="stylesheet" type="text/css" />
        <link href="css/<?php 
        echo $_smarty_tpl->tpl_vars['name']->value;
        ?>
.css" rel="stylesheet" type="text/css" />
        <link rel="shortcut icon" href="images/favicon.ico" type="image/ico" />

        <script type="text/javascript" src="script/jquery-1.9.0.js"></script>
        <script type="text/javascript" src="script/<?php 
        echo $_smarty_tpl->tpl_vars['name']->value;
        ?>
.js"></script>
        <script type="text/javascript" src="script/common.js"></script>
        
        <title><?php 
        echo ($tmp = @$_smarty_tpl->tpl_vars['title']->value) === null || $tmp === '' ? '扬州大学党校网上测试平台' : $tmp;
        ?>
</title><?php 
    }
开发者ID:skydel,项目名称:universal-online-exam,代码行数:30,代码来源:b59a0469aaa37fc6e79198cc54a49b4f47adb8a6.file.head.tpl.cache.php

示例3:

    function content_50f016267a6924_50871058($_smarty_tpl)
    {
        $_config = new Smarty_Internal_Config("Admin.conf", $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars(null, 'local');
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
        echo $_smarty_tpl->getConfigVariable('title');
        ?>
</title>
</head>

<frameset rows="80,*" cols="*" frameborder="no" border="0" framespacing="0">
  <frame src="top.php" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
  <frameset rows="*" cols="200,*" framespacing="0" frameborder="no" border="0">
    <frame src="Left.php" name="leftmenu" id="mainFrame" title="mainFrame" scrolling="yes" />
    <frameset rows="50,*" cols="*" framespacing="0" frameborder="no" border="0">
    <frame src="menu.php" name="topmenu" id="mainFrame" title="mainFrame" />
    <frame src="right.php" name="right" scrolling="yes" noresize="noresize" id="right" title="right" />
  </frameset>
  </frameset>
</frameset><noframes></noframes>
<noframes>
</html>
<?php 
    }
开发者ID:boxiansoft,项目名称:chuhan,代码行数:29,代码来源:68cdca535101c553af78e1be664eb770c996bd71.file.index.tpl.php

示例4: array

    function content_50c03244688ee2_36834851($_smarty_tpl)
    {
        ?>
<?php 
        $_config = new Smarty_Internal_Config("test.conf", $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars("setup", 'local');
        ob_start();
        echo $_smarty_tpl->tpl_vars['title']->value;
        $_tmp1 = ob_get_clean();
        echo $_smarty_tpl->getSubTemplate("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('title' => $_tmp1), 0);
        ?>

<?php 
        echo $_smarty_tpl->getSubTemplate("bar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

<div id="page" class="hfeed">
<header id="branding" role="banner">
	<hgroup>
		<h1 style="font-family: seigetsuRegular" id="site-title"><a>世界第一总督大人</a></h1>
		<h2 id="site-description">Merlin君的魔术工房</h2>
	</hgroup>
<br />
<form align="center" action="../checklg.php" method="post">
用户名
<input type="text" name="user" maxlength="10" />
<br />
<br />
密码&nbsp&nbsp
<input type="password" name="password" maxlength="10" />
<br />
<br />

<button type="submit" class="button" >提交&nbsp&nbsp</button>
<button type="button" class="button" ><a href="index.php">返回&nbsp&nbsp</a></button>

</form>
<br />
<br />
<br />
<br />
</div>












<?php 
        echo $_smarty_tpl->getSubTemplate("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
    }
开发者ID:yunsite,项目名称:1012-game-engine,代码行数:57,代码来源:edd9efde59f539ea007f21c25df767a214d97c28.file.login.tpl.php

示例5:

    function content_50f115cb6373b5_14465069($_smarty_tpl)
    {
        $_config = new Smarty_Internal_Config("Admin.conf", $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars(null, 'local');
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>

<body>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#666666">
<form action="UpdateAdmin.php?action=editer&adminID=<?php 
        echo $_smarty_tpl->tpl_vars['adminID']->value;
        ?>
" method="post" name="updateAdmin">
  <tr>
	<td height="30" background="images/bg_list.gif"><div  style="padding-left:10px; font-weight:bold; color:#FFFFFF">管理员管理</div></td>
  </tr>
  <tr>
	<td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" >
	  <tr onMouseOut="style.backgroundColor='#ffffff'" bgcolor="#FFFFFF" >
		<td height="25" width="34%" class="td">管理员帐号</td>
		<td width="66%"  class="td"><input name="adminName" type="text" size="30" value="<?php 
        echo $_smarty_tpl->tpl_vars['adminName']->value;
        ?>
"/> 
		* (请勿使用中文!)</td>
	  </tr>
	  <tr onMouseOver="style.backgroundColor='#EEEEEE'" onMouseOut="style.backgroundColor='#ffffff'" bgcolor="#FFFFFF">
		<td width="34%" height="13" class="td">登录密码</td>
		<td class="td"><input name="adminPwd" type="text" size="30"  />
		  *</td>
	  </tr>
	  <tr onMouseOver="style.backgroundColor='#EEEEEE'" onMouseOut="style.backgroundColor='#ffffff'" bgcolor="#FFFFFF">
		<td width="34%" height="12" class="td">确认密码</td>
		<td class="td"><input name="adminPwd2" type="text" size="30"  />
		  * </td>
	  </tr>
	  <tr onMouseOver="style.backgroundColor='#EEEEEE'" onMouseOut="style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF">
		<td height="25" class="td">&nbsp;</td>
		<td class="td"><input type="submit" name="button" id="button" value="提交数据"  class="btn"/></td>
	  </tr>
	</table></td>
  </tr></form>
</table>
</body>
</html>
<?php 
    }
开发者ID:boxiansoft,项目名称:chuhan,代码行数:52,代码来源:ca9733124e30e7cb2b19e603991619a04d0f72df.file.AddAdmin.tpl.php

示例6: array

    function content_56248ad307a125_96282819($_smarty_tpl)
    {
        $_config = new Smarty_Internal_Config("hello.conf", $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars(null, 'local');
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>configs文件夹用法</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="css/bbs.css" type="text/css" rel="stylesheet" />
  </head>
  <body>
    <?php 
        echo $_smarty_tpl->getSubTemplate("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

    
    <table border="1" align="center" width="500">
      <tr>
        <td>
          &nbsp;公司名称:<?php 
        echo $_smarty_tpl->getConfigVariable('companyName');
        ?>

          <br><br>
          &nbsp;联系电话:<?php 
        echo $_smarty_tpl->getConfigVariable('tel');
        ?>

        </td>
      </tr>
    </table>
  </body>
</html>












<?php 
    }
开发者ID:denson7,项目名称:phpstudy,代码行数:49,代码来源:cd93148d3522f539cffbeba75f76ef0b04376cb1.file.configs.html.php

示例7:

    function content_52354819662ea6_55748610($_smarty_tpl)
    {
        $_config = new Smarty_Internal_Config('../config/config.conf', $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars(null, 'local');
        ?>
<body bgcolor='<?php 
        echo $_smarty_tpl->getConfigVariable('bgcolor');
        ?>
'>
title=<?php 
        echo $_smarty_tpl->getConfigVariable('title');
        ?>

</body><?php 
    }
开发者ID:yuxujian,项目名称:YuNote,代码行数:15,代码来源:720bdaad352afc4499890976e0b637639c416eb7.file.example3.tpl.php

示例8:

    function content_522ded0739f632_86830241($_smarty_tpl)
    {
        $_config = new Smarty_Internal_Config("Admin.conf", $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars(null, 'local');
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="css.css">
<script type="text/javascript" src="../js/datecontrol/WdatePicker.js"></script>
</head>

<body>
<table width="95%" border="1" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="30" style="background-image:url(images/bg_list.gif)"><div style="margin-left:10px; font-weight:bold; color:#ffffff; font-size:16px">学生信息导出</div></td>
  </tr>
  <tr>
    <td><form name="add" id="add" action="?action=export" method="post">
	<table width="100%" border="0" cellspacing="0" cellpadding="0"  align="center" style="border:1px solid #CCCCCC">
	  <tr><td height="5" colspan="2"></td></tr>
      <tr>
        <td height="25" width="15%" align="right">开始时间:</td>
        <td><input name="startDate" id="startDate" type="text" size="20" value="<?php 
        echo $_smarty_tpl->tpl_vars['startDate']->value;
        ?>
"  onclick="WdatePicker({el:'startDate'})" /></td>
      </tr>
	  <tr>
        <td height="25" width="15%" align="right">结束时间:</td>
        <td><input name="endDate" id="endDate" type="text" size="20" value="<?php 
        echo $_smarty_tpl->tpl_vars['endDate']->value;
        ?>
"  onclick="WdatePicker({el:'endDate'})" /></td>
      </tr>	  
	  <tr><td height="5" colspan="2"></td></tr>
	  <tr><td height="25"></td><td align="left"><input name="submit" type="submit" value="立即导出"/>&nbsp;&nbsp;&nbsp;&nbsp;<input name="" type="reset" value="重新填写"/></td></tr>
    </table></form></td>
  </tr>
</table>
</body>
</html>
<?php 
    }
开发者ID:boxiansoft,项目名称:calling,代码行数:46,代码来源:2a1c690e6af5839d685b4e3fff447642f8665de6.file.stuexport.tpl.php

示例9: array

    function content_514268a2b8f329_17806916($_smarty_tpl)
    {
        $_config = new Smarty_Internal_Config("web.conf", $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars(null, 'local');
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="keywords" content="<?php 
        echo $_smarty_tpl->getConfigVariable('keywords');
        ?>
" />
<meta http-equiv="description" content="<?php 
        echo $_smarty_tpl->getConfigVariable('description');
        ?>
" />
<title><?php 
        echo $_smarty_tpl->getConfigVariable('title');
        ?>
</title>
<link media="screen" href="css/index.css" type="text/css" rel="stylesheet">
<script src="js/nav.js" type="text/javascript"></script>
<script src="js/Common.js" type="text/javascript"></script>
</head>

<body>
<?php 
        echo $_smarty_tpl->getSubTemplate("Common/Menu.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('name' => "menu"), 0);
        ?>

<div class="main980 f_n"><img src="images/004.jpg" width="980" height="300" border="0" alt="上海楚瀚展览服务有限公司" /></div>

<div class="main980 f_n">
	<img src="images/service_bottom.png" width="980" height="912" border="0"/>
</div>

<?php 
        echo $_smarty_tpl->getSubTemplate("Common/Bottom.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('name' => "bottom"), 0);
        ?>

</body>
</html>
<?php 
    }
开发者ID:boxiansoft,项目名称:chuhan,代码行数:45,代码来源:d36f63777f5152ab9d86bfa39cf6b06e8d20d73d.file.service.tpl.php

示例10: array

    function content_50fe9bf1ce2261_35673625($_smarty_tpl)
    {
        $_config = new Smarty_Internal_Config("test.conf", $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars("setup", 'local');
        ob_start();
        echo $_smarty_tpl->tpl_vars['title']->value;
        $_tmp1 = ob_get_clean();
        echo $_smarty_tpl->getSubTemplate("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('title' => $_tmp1), 0);
        ?>

</head>
<body>

<form id="Register" align="center" action="CheckRegister.php" method="post">
<p>注册</p>
用户名
<input type="text" name="user" maxlength="20" />
<br />
<br />
密码&nbsp&nbsp
<input type="password" name="password" maxlength="15" />
<br />
<br />
邮箱&nbsp&nbsp
<input type="text" name="email" maxlength="30" />
<br />
<br />
二级密码&nbsp&nbsp
<input type="password" name="safe" maxlength="15" />
<br />
<br />


<button type="submit" class="button"  >提交&nbsp&nbsp</button>

</form>

<?php 
        echo $_smarty_tpl->getSubTemplate("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
    }
开发者ID:yunsite,项目名称:1012-game-engine,代码行数:40,代码来源:f0238df42a6ac0c349b69d0acd9e1e759861a197.file.Register.tpl.php

示例11: array

    function content_5589b897dfc3a0_12669424($_smarty_tpl)
    {
        $_config = new Smarty_Internal_Config("test.conf", $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars("setup", 'local');
        echo $_smarty_tpl->getSubTemplate("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('title' => 'foo'), 0);
        ?>


<div id="content">
<div id="result">
<?php 
        echo $_smarty_tpl->getSubTemplate("displayAlbums.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

</div>
<?php 
        echo $_smarty_tpl->getSubTemplate("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>



<?php 
    }
开发者ID:huicochea,项目名称:play_huico,代码行数:23,代码来源:4d0dcf427c150e44cead9626dc0a0d562ce42f6d.file.displayDefault.tpl.php

示例12:

    function content_513f1a00358262_97987507($_smarty_tpl)
    {
        $_config = new Smarty_Internal_Config("Admin.conf", $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars(null, 'local');
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>top</title>
<style>
body{
font-size:12px;
margin:0;
padding:0;
background:url(images/admin_top_bg.gif) repeat-x top;
}
div{
text-align:center;
font-size:20px;
line-height:80px;
vertical-align:middle;
color:#FFFFFF;
font-weight:bold;}
</style>
</head>

<body>
<div><?php 
        echo $_smarty_tpl->getConfigVariable('AdminTitle');
        ?>
<div>
</body>
</html>
<?php 
    }
开发者ID:boxiansoft,项目名称:chuhan,代码行数:36,代码来源:06dbce36a2f743f67127424aa2036b021e3102fd.file.top.tpl.php

示例13: unset

    function content_541c091571d682_82153415($_smarty_tpl)
    {
        if (!is_callable('smarty_function_html_options')) {
            include 'D:\\strony\\www\\smarty\\libs\\plugins\\function.html_options.php';
        }
        $_config = new Smarty_Internal_Config('konfiguracja.conf', $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars(null, 'local');
        ?>
<html>
	<head>
		<meta charset="utf-8"/>	
	</head>
	<body style="background-color: <?php 
        echo $_smarty_tpl->getConfigVariable('tlo');
        ?>
 color: <?php 
        echo $_smarty_tpl->getConfigVariable('tekst');
        ?>
">
		<table>
			<tr>
				<td><?php 
        echo $_smarty_tpl->tpl_vars['imie']->value;
        ?>
</td>
				<td><?php 
        echo $_smarty_tpl->tpl_vars['nazwisko']->value;
        ?>
</td>
			</tr>
		</table>
		<table border="1"> 
			<tr>
				<?php 
        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy'])) {
            unset($_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']);
        }
        $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['name'] = 'pracownicy';
        $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['pracownicy']->value) ? count($_loop) : max(0, (int) $_loop);
        unset($_loop);
        $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['show'] = true;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['loop'];
        $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['step'] = 1;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['loop'] - 1;
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['show']) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['loop'];
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['total'] == 0) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['show'] = false;
            }
        } else {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['total'] = 0;
        }
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['show']) {
            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['iteration']++) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['iteration'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['iteration'] == 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['pracownicy']['total'];
                ?>
					<td><?php 
                echo $_smarty_tpl->tpl_vars['pracownicy']->value[$_smarty_tpl->getVariable('smarty')->value['section']['pracownicy']['index']];
                ?>
</td>
				<?php 
            }
        }
        ?>
			</tr>
		</table><br/>
		<table border="1">
			<tr>
				<td>Imię</td>
				<td>Stanowisko</td>
			</tr>
			<?php 
        $_smarty_tpl->tpl_vars['pracownik'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['pracownik']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['pracownicy2']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['pracownik']->key => $_smarty_tpl->tpl_vars['pracownik']->value) {
            $_smarty_tpl->tpl_vars['pracownik']->_loop = true;
            ?>
	
				<tr>
					<td><?php 
            echo $_smarty_tpl->tpl_vars['pracownik']->value['imie'];
            ?>
</td>
					<td><?php 
            echo $_smarty_tpl->tpl_vars['pracownik']->value['stanowisko'];
            ?>
</td>
				</tr>
			<?php 
        }
        ?>
		</table>
//.........这里部分代码省略.........
开发者ID:browar86,项目名称:smarty,代码行数:101,代码来源:9517ba21275b5cc9c47ea59da531628b05fa41ef.file.index.tpl.php

示例14: array

    function content_50aaa21d7ba553_76691433($_smarty_tpl)
    {
        if (!is_callable('smarty_function_load_presentation_object')) {
            include './presentation/smarty_plugins\\function.load_presentation_object.php';
        }
        $_config = new Smarty_Internal_Config("site.conf", $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars(null, 'local');
        echo smarty_function_load_presentation_object(array('filename' => "store_front", 'assign' => "obj"), $_smarty_tpl);
        ?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
 "http://www.w3.org/TR/html4/strict.dtd"> 
<html> 
<head> 
<title><?php 
        echo $_smarty_tpl->tpl_vars['obj']->value->mPageTitle;
        ?>
</title> 
<link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['obj']->value->mSiteUrl;
        ?>
styles/tshirtshop.css" type="text/css"> 
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['obj']->value->mSiteUrl;
        ?>
js/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['obj']->value->mSiteUrl;
        ?>
js/script1.js"></script>
</head> 
<body class="yui-skin-sam"> 
    <div id="doc" class="yui-t2"> 
        <div id="bd"> 
           <div id="yui-main"> 
              <div class="yui-b">
                 <div id='header'class="yui-g"> 
                  <a href="<?php 
        echo $_smarty_tpl->tpl_vars['obj']->value->mSiteUrl;
        ?>
">
                    <img src="<?php 
        echo $_smarty_tpl->tpl_vars['obj']->value->mSiteUrl;
        ?>
images/images/title.png" alt="tshirtshop logo"/>
                  </a>
                 </div> 
                 <div id="contents" class="yui-g"> 
                      <?php 
        echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['obj']->value->mContentsCell, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

                 </div> 
            </div> 
          </div> 
            <div class="yui-b">
             <?php 
        echo $_smarty_tpl->getSubTemplate("search_box.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

             <?php 
        echo $_smarty_tpl->getSubTemplate("departments_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

             <?php 
        echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['obj']->value->mCategoriesCell, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

             <?php 
        echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['obj']->value->mCartSummaryCell, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
        ?>

            </div> 
        </div> 
       <div id="ft" role="contentinfo">created by naOy</div> 
    </div> 
</body> 
</html> 
<?php 
    }
开发者ID:naOyD,项目名称:tshirtshop_g,代码行数:80,代码来源:374e708bb5b8207e0027e4f65aa7f2a6a82859d1.file.store_front.tpl.php

示例15: diss

    function content_50f01612d90b41_11651389($_smarty_tpl)
    {
        $_config = new Smarty_Internal_Config("Admin.conf", $_smarty_tpl->smarty, $_smarty_tpl);
        $_config->loadConfigVars(null, 'local');
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="css.css">
<script type="text/javascript">
			function diss(menu){
			if(document.getElementById(menu).style.display=="block"){
			document.getElementById(menu).style.display='none';
			}
			else if(document.getElementById(menu).style.display=="none"){
			document.getElementById(menu).style.display='block';
			}
			}
			
			</script>
			

</head>

<body>
<div class="menu">
	<div class="leftmenulist">
		<div class="leftmenutext"><a href="../" target="_blank"><b>进入网站首页</b></a></div>
	</div>
	
	<div class="leftmenulist">
		<div class="leftmenutext"><a href="right.php" target='right'><b>返回后台首页</b></a></div>
	</div>
	
	<div class="leftmenulist">
		<div class="leftmenutext"><a href="AdminManage.php" target="right"><b>管理员管理</b></a></div>
	</div>
	
	<div class="leftmenulist">
		<div class="leftmenutext"><a href="#" onClick="diss('muss1')"><b>系统信息管理</b></a></div>
		<div id="muss1" class="leftmenutd" style="display:block;">	
			<?php 
        $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['item']->_loop = false;
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['aboutMenuList']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
            $_smarty_tpl->tpl_vars['item']->_loop = true;
            $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
            ?>
			<div><a href="ContactUs.php?contactID=<?php 
            echo $_smarty_tpl->tpl_vars['item']->value['id'];
            ?>
" target="right"><?php 
            echo $_smarty_tpl->tpl_vars['item']->value['cnTitle'];
            ?>
</a></div>
			<?php 
        }
        ?>
		</div>
	</div>
	
	<div class="leftmenulist">
		<div class="leftmenutext"><a href="#" onClick="diss('muss2')"><b>产品管理</b></a></div>
		<div id="muss2" class="leftmenutd" style="display:none;">
			<div><a href="FirstClass.php" target="right">类别管理</a></div>
			<div><a href="AddProduct.php" target="right">产品添加</a></div>
			<div><a href="ManageProducts.php" target="right">产品管理</a></div>
		</div>
	</div>
	
	<div class="leftmenulist">
		<div class="leftmenutext"><a href="#" onClick="diss('muss3')"><b>新闻管理</b></a></div>
		<div id="muss3" class="leftmenutd" style="display:none;">
			<div><a href="AddNews.php" target="right">新闻添加</a></div>
			<div><a href="ManageNews.php" target="right">新闻管理</a></div>
		</div>
	</div>
	<!--
	<div class="leftmenulist">
		<div class="leftmenutext"><a href="#" onClick="diss('muss4')"><b>留言管理</b></a></div>
		<div id="muss4" class="leftmenutd" style="display:none;">
			<div><a href="Message.php" target="right">留言管理</a></div>
		</div>
	</div>
	
	<div class="leftmenulist">
		<div class="leftmenutext"><a href="#" onClick="diss('muss6')"><b>FLASH管理</b></a></div>
		<div id="muss6" class="leftmenutd" style="display:none;">
			<div><a href="add_adv.php" target="right">FLASH添加</a></div>
			<div><a href="adv_manage.php" target="right">FLASH管理</a></div>
		</div>
	</div>-->
		
//.........这里部分代码省略.........
开发者ID:boxiansoft,项目名称:chuhan,代码行数:101,代码来源:7749b84f96352e475874a22df9be1ae0bf9fe6c0.file.Left.tpl.php


注:本文中的Smarty_Internal_Config::loadConfigVars方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。