當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。