當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Smarty_Internal_Config類代碼示例

本文整理匯總了PHP中Smarty_Internal_Config的典型用法代碼示例。如果您正苦於以下問題:PHP Smarty_Internal_Config類的具體用法?PHP Smarty_Internal_Config怎麽用?PHP Smarty_Internal_Config使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Smarty_Internal_Config類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: content_514451f1dd0be0_99450555

    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: content_50f016267a6924_50871058

    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

示例3: content_51014a7a65b4b6_87213168

    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

示例4: content_50c03244688ee2_36834851

    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: content_50f115cb6373b5_14465069

    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: content_56248ad307a125_96282819

    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: content_52354819662ea6_55748610

    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: content_522ded0739f632_86830241

    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: content_514268a2b8f329_17806916

    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: content_50fe9bf1ce2261_35673625

    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: content_5589b897dfc3a0_12669424

    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: content_513f1a00358262_97987507

    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: content_513f1b104cd4f2_48398648

    function content_513f1b104cd4f2_48398648($_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>

<div style="margin-top:10px">
	<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#666666">
	<form action="UpdateProduct.php?action=editFirstClass&classID=<?php 
        echo $_smarty_tpl->tpl_vars['classID']->value;
        ?>
" method="post" name="add">
	  <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 bgcolor="#FFFFFF" >
			<td class="td">
			序號:<input type="text" name="classOrder" size="10" value="<?php 
        echo $_smarty_tpl->tpl_vars['classOrder']->value;
        ?>
"/>
			類名:<input type="text" name="className" size="30" value="<?php 
        echo $_smarty_tpl->tpl_vars['cnClassName']->value;
        ?>
"/>&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="submit" name="Submit" value=" 保 存 ">
			</td>
		  </tr>
		</table></td>
	  </tr></form>
	</table>
</div>
<div style="margin-top:10px">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#666666" class="c_c">
  <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" width="100%"><table width="50%" border="0" align="left" cellpadding="5" cellspacing="0" >
      <tr bgcolor="#FFFFFF" ><td class="td" align="center">序號</td><td class="td">類名</td><td class="td" align="center">操作</td></tr>
	  <?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['classList']->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;
            ?>
	  <tr bgcolor="#FFFFFF" onMouseOver="style.backgroundColor='#EEEEEE'" onMouseOut="style.backgroundColor='#ffffff'" >
	  <td class="td" align="center"><?php 
            echo $_smarty_tpl->tpl_vars['item']->value['classOrder'];
            ?>
</td>
	  <td class="td"><?php 
            echo $_smarty_tpl->tpl_vars['item']->value['cnClassName'];
            ?>
</td>
	  <td class="td" align="center">
	  <a href="firstclass.php?action=updateClass&classID=<?php 
            echo $_smarty_tpl->tpl_vars['item']->value['id'];
            ?>
">修改</a> | 
	  <a href="UpdateProduct.php?action=deleteFirstClass&classID=<?php 
            echo $_smarty_tpl->tpl_vars['item']->value['id'];
            ?>
">刪除</a></td></tr>	
	  <?php 
        }
        ?>
 
    </table></td>
  </tr>
</table>
</div>
</body>
</html>
<?php 
    }
開發者ID:boxiansoft,項目名稱:chuhan,代碼行數:92,代碼來源:9c8b5bc41a826f98b3fecc805811525ce710574c.file.FirstClass.tpl.php

示例14: content_50fdf050056ef3_68337486

    function content_50fdf050056ef3_68337486($_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);
        ?>

<link rel="stylesheet" type="text/css" href="./JsCss/style.css" />
<script type="text/javascript" src="./JsCss/jquery.blockUI.js"></script>
<script type="text/javascript">
$(function(){
$('#LogOn').click(function(){   //給box_btn綁定一個鼠標點擊的事件
        $.blockUI({   //當點擊事件發生時調用彈出層
        message: $('#LogOnBox'),    //要彈出的元素box
        css: {    //彈出元素的CSS屬性
	backgroundColor: '#000', 
        width: '400px',
        background: '#ffffff'
            }
        });
    $('.blockOverlay').attr('title','單擊關閉').click($.unblockUI); 
    });
});
</script>
</head>
<body>
<div id="page">
<header id="branding" role="banner">
	<hgroup>
		<h1 style="font-family: seigetsuRegular" id="site-title"><a>&nbsp&nbsp1012</a></h1>
		<h2 id="site-description">這是一個圈套</h2>	
	</hgroup>
	<img style="width:50px;height:50px;position: absolute;
top:16.3%;left:6%;" src="Image/logo3_50.png" alt="LOGO" />

<nav id="access" role="navigation">
	<div class="menu"><ul><li class="current_page_item"><a href="index.php" title="首頁">首頁</a></li><li class="page_item page-item-2"></li></ul></div>
	<div class="menu"><ul><li class="current_page_item"><a href="introduction.php" title="簡介"><?php 
        echo $_smarty_tpl->tpl_vars['op1']->value;
        ?>
</a></li><li class="page_item page-item-2"></li></ul></div>
	<div class="menu"><ul><li class="current_page_item"><a href="Tutorial.php" title="教程"><?php 
        echo $_smarty_tpl->tpl_vars['op2']->value;
        ?>
</a></li><li class="page_item page-item-2"></li></ul></div>
	<div class="menu"><ul><li class="current_page_item"><a href="Account.php" title="賬戶"><?php 
        echo $_smarty_tpl->tpl_vars['op3']->value;
        ?>
</a></li><li class="page_item page-item-2"></li></ul></div>
	<div class="menu"><ul><li class="current_page_item"><a href="History.php" title="曆史"><?php 
        echo $_smarty_tpl->tpl_vars['op4']->value;
        ?>
</a></li><li class="page_item page-item-2"></li></ul></div>
	<div class="menu"><ul><li class="current_page_item"><a href="Help.php" title="幫助"><?php 
        echo $_smarty_tpl->tpl_vars['op5']->value;
        ?>
</a></li><li class="page_item page-item-2"></li></ul></div>
	<div class="menu"><ul><li class="current_page_item"><a href="Wiki.php" title="百科"><?php 
        echo $_smarty_tpl->tpl_vars['op6']->value;
        ?>
</a></li><li class="page_item page-item-2"></li></ul></div>
	<div class="menu"><ul><li class="current_page_item"><a href="BBS.php" title="論壇"><?php 
        echo $_smarty_tpl->tpl_vars['op7']->value;
        ?>
</a></li><li class="page_item page-item-2"></li></ul></div>
	<div class="menu"><ul><li class="current_page_item"><a href="About.php" title="關於"><?php 
        echo $_smarty_tpl->tpl_vars['op8']->value;
        ?>
</a></li><li class="page_item page-item-2"></li></ul></div>
	<?php 
        if ($_smarty_tpl->tpl_vars['Authority']->value) {
            ?>
	<div class="menu"><ul><li class="current_page_item"><a href="Admin.php" title="後台">後台</a></li><li class="page_item page-item-2"></li></ul></div>
	<?php 
        }
        ?>
	<?php 
        if ($_smarty_tpl->tpl_vars['LogOn']->value == 1) {
            ?>
	<div id="access2" class="menu"><ul><li class="current_page_item"><a href="UnLogOn.php" title="退出" >退出</a></li><li class="page_item page-item-2"></li></ul></div>
	<?php 
        } else {
            ?>
	<div id="access2" class="menu"><ul><li class="current_page_item"><a href="Register.php" title="注冊" >注冊</a></li><li class="page_item page-item-2"></li></ul></div>
	<?php 
        }
        ?>
</nav>
<br />
<br />
<br />
<br />
<br />
<br />
<div class="IndexInfo">

<?php 
//.........這裏部分代碼省略.........
開發者ID:yunsite,項目名稱:1012-game-engine,代碼行數:101,代碼來源:5180b57018fe7b1a251116656a987810a5971729.file.index.tpl.php

示例15: content_50f015c58f4048_51335489

    function content_50f015c58f4048_51335489($_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 rel="stylesheet" type="text/css" href="Css/css.css">

<script type="text/javascript" language="javascript">

function showSmallMenu(menu)
{
document.getElementById(menu).style.display='block';

//moved()'
}

function trance(url)
{
	window.location.href=url;
}

function hiddenSmallMenu(menu)
{
document.getElementById(menu).style.display='none';

//init(menu);
}

</script>
</head>

<body>
<div class="main1015 f_n">
	<div class="main984 f_n">
		<div class="leftProduct">
			<?php 
        echo $_smarty_tpl->getSubTemplate("Common/Logo.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('name' => "Logo"), 0);
        ?>
	
		</div>
		
		<div class="rightTop">
			<?php 
        echo $_smarty_tpl->getSubTemplate("Common/Menu2.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('name' => "Menu2"), 0);
        ?>

		</div>
		
		<div class="productRight">
			<div class="topmenuProduct">
				<div class="daohang"><a href="Index.php">首頁</a> > 分類展示區</div>
				
					<div class="productClassProduct" id="productClassProduct" >
					    <?php 
        $_smarty_tpl->tpl_vars['arrClass'] = new Smarty_variable('', null, 0);
        ?>
						<?php 
        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sc'])) {
            unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sc']);
        }
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['name'] = 'sc';
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['smallClass']->value) ? count($_loop) : max(0, (int) $_loop);
        unset($_loop);
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['show'] = true;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['loop'];
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['step'] = 1;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['loop'] - 1;
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['show']) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['loop'];
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['total'] == 0) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['show'] = false;
            }
        } else {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['total'] = 0;
        }
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['show']) {
            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['iteration']++) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['iteration'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['iteration'] == 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sc']['total'];
                ?>
							<!--<?php 
//.........這裏部分代碼省略.........
開發者ID:boxiansoft,項目名稱:chuhan,代碼行數:101,代碼來源:8ae0c92aa0a6382644fba5db246f7b869b21d012.file.Product.tpl.php


注:本文中的Smarty_Internal_Config類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。