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


PHP Tpl::showTrace方法代码示例

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


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

示例1: urlShop

    	case '0':echo $nav['nav_url'];break;
    	case '1':echo urlShop('search', 'index', array('cate_id'=>$nav['item_id']));break;
    	case '2':echo urlShop('article', 'article',array('ac_id'=>$nav['item_id']));break;
    	case '3':echo urlShop('activity', 'index',array('activity_id'=>$nav['item_id']));break;
    }?>"><?php echo $nav['nav_title'];?></a>
    <?php }?>
    <?php }?>
    <?php }?>
  </p>
  <?php echo $output['setting_config']['icp_number']; ?><br />
  <?php echo html_entity_decode($output['setting_config']['statistics_code'],ENT_QUOTES); ?> </div>
<?php if (C('debug') == 1){?>
<div id="think_page_trace" class="trace">
  <fieldset id="querybox">
    <legend><?php echo $lang['nc_debug_trace_title'];?></legend>
    <div> <?php print_r(Tpl::showTrace());?> </div>
  </fieldset>
</div>
<?php }?>
<?php if($_GET['op'] != 'special_detail'){?>
<script language="javascript">
//返回顶部
backTop=function (btnId){
	var btn=document.getElementById(btnId);
	var d=document.documentElement;
	window.onscroll=set;
	btn.onclick=function (){
		btn.style.display="none";
		window.onscroll=null;
		this.timer=setInterval(function(){
			d.scrollTop-=Math.ceil(d.scrollTop*0.1);
开发者ID:noikiy,项目名称:shop-2,代码行数:31,代码来源:footer.php

示例2: print_r

<br /><?php 
echo $output['setting_config']['icp_number'];
?>
</div>
<?php 
if ($GLOBALS['setting_config']['debug'] == 1) {
    ?>
<div id="think_page_trace" class="trace">
  <fieldset id="querybox">
    <legend><?php 
    echo $lang['nc_debug_trace_title'];
    ?>
</legend>
    <div>
      <?php 
    print_r(Tpl::showTrace());
    ?>
    </div>
  </fieldset>
</div>
<?php 
}
?>
<script language="javascript">
var searchTxt = '<?php 
echo $lang['nc_searchdefault'];
?>
';
function searchFocus(e){
	if(e.value == searchTxt){
		e.value='';
开发者ID:dotku,项目名称:shopnc_cnnewyork,代码行数:31,代码来源:flea_footer.php

示例3: if

  <p><a href="<?php echo SHOP_SITE_URL;?>"><?php echo $lang['nc_index'];?></a>
    <?php if(!empty($output['nav_list']) && is_array($output['nav_list'])){?>
    <?php foreach($output['nav_list'] as $nav){?>
    <?php if($nav['nav_location'] == '2'){?>
    | <a  <?php if($nav['nav_new_open']){?>target="_blank" <?php }?>href="<?php switch($nav['nav_type']){
    	case '0':echo $nav['nav_url'];break;
    	case '1':echo urlShop('search', 'index', array('cate_id'=>$nav['item_id']));break;
    	case '2':echo urlShop('article', 'article',array('ac_id'=>$nav['item_id']));break;
    	case '3':echo urlShop('activity', 'index',array('activity_id'=>$nav['item_id']));break;
    }?>"><?php echo $nav['nav_title'];?></a>
    <?php }?>
    <?php }?>
    <?php }?>
  </p>
  Copyright 2007-2014 ejiao2o Inc.,All rights reserved.<br />
  Powered by <?php echo $GLOBALS['setting_config']['shopnc_version'];?>
  <?php echo $GLOBALS['setting_config']['icp_number']; ?><br />
  <?php echo html_entity_decode($GLOBALS['setting_config']['statistics_code'],ENT_QUOTES); ?> </div>
<?php if (C('debug') == 1){?>
<div id="think_page_trace" class="trace">
  <fieldset id="querybox">
    <legend><?php echo $lang['nc_debug_trace_title'];?></legend>
    <div>
      <?php print_r(Tpl::showTrace());?>
    </div>
  </fieldset>
</div>
<?php }?>
</body>
</html>
开发者ID:noikiy,项目名称:ejia,代码行数:30,代码来源:footer.php


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