MODPATH/database/classes/kohana/database/mysql.php [ 194 ]
189 {
190 // This benchmark is worthless
191 Profiler::delete($benchmark);
192 }
193
194 throw new Database_Exception(':error [ :query ]',
195 array(':error' => mysql_error($this->_connection), ':query' => $sql),
196 mysql_errno($this->_connection));
197 }
198
199 if (isset($benchmark))
-
MODPATH/database/classes/kohana/database/query.php [ 251 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(251) "SELECT a.id,a.kindname,a.pinyin,a.iswebsite,a.weburl FROM `sline_destinations` a LEFT JOIN sline_xiefly_kindlist b ON a.id=b.kin …"
2
bool FALSE
3
array(0)
246 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 247 } 248 } 249 250 // Execute the query 251 $result = $db->query($this->_type, $sql, $as_object, $object_params); 252 253 if (isset($cache_key) AND $this->_lifetime > 0) 254 { 255 // Cache the result array 256 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
DOCROOT/tools/classes/model/destinations.php [ 235 ] » Kohana_Database_Query->execute()
230 $sql = "SELECT * FROM `sline_destinations` "; 231 $sql.= "WHERE pid=$pid AND isopen=1 "; 232 $sql.= "ORDER BY displayorder ASC "; 233 $sql.= "LIMIT {$offset},{$row}"; 234 } 235 $arr = DB::query(1,$sql)->execute()->as_array(); 236 return $arr; 237 } 238 239 /** 240 * @function 首页导航目的地
-
DOCROOT/taglib/dest.php [ 71 ] » Model_Destinations::get_next(arguments)
0
integer 0
1
string(2) "30"
2
string(2) "36"
3
integer 104
66 * @param $row 67 * @param $pid 68 * @desc :根据pid返回相应子目的地,如果子目的地为空则返回同级目的地 69 */ 70 private static function get_next_same($typeid,$offset,$row,$pid) 71 { 72 73 74 if(empty($typeid)) return array(); 75 76 $py = DB::select('pinyin')->from('model')->where('id','=',$typeid)->execute()->get('pinyin');
-
APPPATH/cache/tplcache/default/xiefly/index.php [ 1 ] » Taglib_Dest::query(arguments)
0
array(6) ( "action" => string(5) "query" "flag" => string(4) "next" "typeid" => integer 104 "pid" => string(2) "36" "row" => string(2) "30" "return" => string(5) "nextd" )
1 <?php defined('SYSPATH') or die();?><!doctype html><html><head><meta charset="utf-8"><title><?php echo $seoinfo['seotitle'];?>-<?php echo $GLOBALS['cfg_webname'];?></title><?php if($seoinfo['keyword']) { ?><meta name="keywords" content="<?php echo $seoinfo['keyword'];?>" /><?php } ?><?php if($seoinfo['description']) { ?><meta name="description" content="<?php echo $seoinfo['description'];?>" /><?php } ?><?php echo Stourweb_View::template("pub/varname"); ?><?php echo Common::css_plugin('lines.css','line');?><?php echo Common::css('base.css,extend.css');?><?php echo Common::js('jquery.min.js,base.js,common.js,SuperSlide.min.js,template.js,delayLoading.min.js');?></head><body><?php echo Request::factory("pub/header")->execute()->body(); ?><div class="big"><div class="wm-1200"><div class="st-guide"><a href="<?php echo $cmsurl;?>"><?php echo $GLOBALS['cfg_indexname'];?></a> > <?php echo $channelname;?></div><!--面包屑--><div class="st-line-home-top"><div class="st-line-dh"><div class="st-dh-tit"><?php echo $channelname;?>导航</div><div class="st-dh-con"><h3><strong>旅游目的地</strong><p><?php require_once ("/var/www/html/htdocs/taglib/dest.php");$dest_tag = new Taglib_Dest();if (method_exists($dest_tag, 'query')) {$linedestlist = $dest_tag->query(array('action'=>'query','flag'=>'channel_nav','typeid'=>'1','row'=>'5','return'=>'linedestlist',));}?><?php $n=1; if(is_array($linedestlist)) { foreach($linedestlist as $row) { ?><a href="<?php echo $cmsurl;?>lines/<?php echo $row['pinyin'];?>/" target="_blank"><?php echo $row['kindname'];?></a><?php $n++;}unset($n); } ?></p></h3><div class="st-dh-item"><?php $n=1; if(is_array($linedestlist)) { foreach($linedestlist as $d) { ?><dl><dt><a href="<?php echo $cmsurl;?>lines/<?php echo $d['pinyin'];?>/" target="_blank"><?php echo $d['kindname'];?></a></dt><dd><?php require_once ("/var/www/html/htdocs/taglib/dest.php");$dest_tag = new Taglib_Dest();if (method_exists($dest_tag, 'query')) {$nextd = $dest_tag->query(array('action'=>'query','flag'=>'next','typeid'=>$typeid,'pid'=>$d['id'],'row'=>'30','return'=>'nextd',));}?><?php $n=1; if(is_array($nextd)) { foreach($nextd as $nd) { ?><a href="<?php echo $cmsurl;?>lines/<?php echo $nd['pinyin'];?>/"><?php echo $nd['kindname'];?></a><?php $n++;}unset($n); } ?></dd></dl><?php $n++;}unset($n); } ?></div></div><?php require_once ("/var/www/html/htdocs/taglib/attr.php");$attr_tag = new Taglib_Attr();if (method_exists($attr_tag, 'query')) {$data = $attr_tag->query(array('action'=>'query','typeid'=>$typeid,'flag'=>'grouplist','row'=>'3',));}?><?php $n=1; if(is_array($data)) { foreach($data as $row) { ?><div class="st-dh-con"><h3 class="bor_0"><strong><?php echo $row['attrname'];?></strong><p><?php require_once ("/var/www/html/htdocs/taglib/attr.php");$attr_tag = new Taglib_Attr();if (method_exists($attr_tag, 'query')) {$subdata = $attr_tag->query(array('action'=>'query','typeid'=>$typeid,'flag'=>'childitem','groupid'=>$row['id'],'row'=>'5','return'=>'subdata',));}?><?php $n=1; if(is_array($subdata)) { foreach($subdata as $r) { ?><a href="<?php echo $cmsurl;?>lines/all-0-0-0-0-0-<?php echo $r['id'];?>-1"><?php echo $r['attrname'];?></a><?php $n++;}unset($n); } ?></p></h3><div class="st-dh-item"><dl><dt><a target="_blank"><?php echo $row['attrname'];?></a></dt><dd><?php require_once ("/var/www/html/htdocs/taglib/attr.php");$attr_tag = new Taglib_Attr();if (method_exists($attr_tag, 'query')) {$subdata = $attr_tag->query(array('action'=>'query','typeid'=>$typeid,'flag'=>'childitem','groupid'=>$row['id'],'row'=>'200','return'=>'subdata',));}?><?php $n=1; if(is_array($subdata)) { foreach($subdata as $r) { ?><a href="<?php echo $cmsurl;?>lines/all-0-0-0-0-0-<?php echo $r['id'];?>-1"><?php echo $r['attrname'];?></a><?php $n++;}unset($n); } ?></dd></dl></div></div><?php $n++;}unset($n); } ?></div><!--线路分类导航--><div id="st-line-slideBox" class="st-line-slideBox"><div class="hd"><ul><?php require_once ("/var/www/html/htdocs/taglib/ad.php");$ad_tag = new Taglib_Ad();if (method_exists($ad_tag, 'getad')) {$linead = $ad_tag->getad(array('action'=>'getad','name'=>'LineRollingAd','pc'=>'1','return'=>'linead',));}?><?php $n=1; if(is_array($linead['aditems'])) { foreach($linead['aditems'] as $k => $v) { ?><li>$k</li><?php $n++;}unset($n); } ?></ul></div><div class="bd"><ul><?php $n=1; if(is_array($linead['aditems'])) { foreach($linead['aditems'] as $v) { ?><li><a href="<?php echo $v['adlink'];?>" target="_blank"><img src="<?php echo Product::get_lazy_img();?>" original-src="<?php echo Common::img($v['adsrc'],858,324);?>" /></a></li><?php $n++;}unset($n); } ?></ul></div><!--前/后按钮代码--><a class="prev" href="javascript:void(0)"></a><a class="next" href="javascript:void(0)"></a></div><!--线路首页焦点图--></div><div class="st-line-home-lsit"><?php require_once ("/var/www/html/htdocs/taglib/dest.php");$dest_tag = new Taglib_Dest();if (method_exists($dest_tag, 'query')) {$destlist = $dest_tag->query(array('action'=>'query','flag'=>'channel_nav','typeid'=>'1','row'=>'6','return'=>'destlist',));}?><?php $autoindex=0;?><?php $n=1; if(is_array($destlist)) { foreach($destlist as $dest) { ?><div class="st-cp-slideTab"><div class="st-tabnav"><h3><?php echo $dest['kindname'];?></h3><span data-id="<?php echo $dest['id'];?>" data-url="/lines/<?php echo $dest['pinyin'];?>/">热门<i></i></span><?php require_once ("/var/www/html/htdocs/taglib/dest.php");$dest_tag = new Taglib_Dest();if (method_exists($dest_tag, 'query')) {$nextdest = $dest_tag->query(array('action'=>'query','flag'=>'next','typeid'=>$typeid,'pid'=>$dest['id'],'row'=>'6','return'=>'nextdest',));}?><?php $n=1; if(is_array($nextdest)) { foreach($nextdest as $nr) { ?><span data-id="<?php echo $nr['id'];?>" data-url="/lines/<?php echo $nr['pinyin'];?>/"><?php echo $nr['kindname'];?><i></i></span><?php $n++;}unset($n); } ?><a href="/lines/<?php echo $dest['pinyin'];?>/" class="more">更多</a></div><div class="st-line-slidemenu"><div class="slidemenu-list"><dl><dt>热门目的地</dt><dd><?php require_once ("/var/www/html/htdocs/taglib/dest.php");$dest_tag = new Taglib_Dest();if (method_exists($dest_tag, 'query')) {$hotdest = $dest_tag->query(array('action'=>'query','flag'=>'hot','typeid'=>$typeid,'destid'=>$dest['id'],'row'=>'10','return'=>'hotdest',));}?><?php $n=1; if(is_array($hotdest)) { foreach($hotdest as $hr) { ?><a href="<?php echo $cmsurl;?>lines/<?php echo $hr['pinyin'];?>/"><?php echo $hr['kindname'];?></a><?php $n++;}unset($n); } ?></dd></dl></div><div class="slidemenu-adbg"><?php require_once ("/var/www/html/htdocs/taglib/ad.php");$ad_tag = new Taglib_Ad();if (method_exists($ad_tag, 'sortad')) {$pluginad = $ad_tag->sortad(array('action'=>'sortad','index'=>$autoindex,'pc'=>'1','adname'=>'LineIndex_LeftAd1,LineIndex_LeftAd2,LineIndex_LeftAd3,LineIndex_LeftAd4,LineIndex_LeftAd5,LineIndex_LeftAd6','return'=>'pluginad','row'=>'1',));}?><?php if(!empty($pluginad)) { ?><?php if(!empty($pluginad['adlink'])) { ?><a href="<?php echo $pluginad['adlink'];?>" target="_blank"><img src="<?php echo Product::get_lazy_img();?>" st-src="<?php echo Common::img($pluginad['adsrc'],279,610);?>" title="<?php echo $pluginad['adname'];?>" ></a><?php } else { ?><img src="<?php echo Product::get_lazy_img();?>" st-src="<?php echo Common::img($pluginad['adsrc'],279,610);?>" title="<?php echo $pluginad['adname'];?>" ><?php } ?><?php } ?></div></div><div class="st-tabcon"><ul class="st-cp-list"><?php $line_tag = new Taglib_Line();if (method_exists($line_tag, 'query')) {$linelist = $line_tag->query(array('action'=>'query','flag'=>'mdd','destid'=>$dest['id'],'row'=>'6','return'=>'linelist',));}?><?php $n=1; if(is_array($linelist)) { foreach($linelist as $line) { ?><li><div class="pic"><img src="<?php echo Product::get_lazy_img();?>" st-src="<?php echo Common::img($line['litpic'],283,193);?>" alt="<?php echo $line['title'];?>"/><div class="buy"><a href="<?php echo $line['url'];?>">立即预订</a></div></div><div class="js"><a class="tit" href="<?php echo $line['url'];?>" target="_blank"><?php echo $line['title'];?></a><p class="attr"><?php $n=1; if(is_array($line['iconlist'])) { foreach($line['iconlist'] as $ico) { ?><img src="<?php echo $ico['litpic'];?>" /><?php $n++;}unset($n); } ?></p><p class="num"><?php if($line['sellprice']) { ?><del>原价:<i class="currency_sy"><?php echo Currency_Tool::symbol();?></i><?php echo $line['sellprice'];?></del><?php } ?><?php if($line['price']) { ?><span><b><i class="currency_sy"><?php echo Currency_Tool::symbol();?></i><?php echo $line['price'];?></b>起</span><?php } else { ?><span><b>电询</b></span><?php } ?></p></div></li><?php $n++;}unset($n); } ?></ul></div></div><div class="st-list-sd"><?php require_once ("/var/www/html/htdocs/taglib/ad.php");$ad_tag = new Taglib_Ad();if (method_exists($ad_tag, 'sortad')) {$bottomad = $ad_tag->sortad(array('action'=>'sortad','index'=>$autoindex,'pc'=>'1','adname'=>'LineIndex_BottomAd1,LineIndex_BottomAd2,LineIndex_BottomAd3,LineIndex_BottomAd4,LineIndex_BottomAd5,LineIndex_BottomAd6','return'=>'bottomad',));}?><?php if(!empty($bottomad)) { ?><?php if(!empty($bottomad['adlink'])) { ?><a href="<?php echo $bottomad['adlink'];?>" target="_blank"><img src="<?php echo Common::img($bottomad['adsrc'],1200,110);?>" title="<?php echo $bottomad['adname'];?>"></a><?php } else { ?><img src="<?php echo Common::img($bottomad['adsrc'],1200,110);?>" title="<?php echo $bottomad['adname'];?>"><?php } ?><?php } ?></div><!--广告--><?php $autoindex++;?><?php $n++;}unset($n); } ?></div><!--列表结束--></div></div><?php echo Request::factory("pub/footer")->execute()->body(); ?><?php echo Request::factory("pub/flink")->execute()->body(); ?><script type="text/html" id="tpl_line"><ul class="st-cp-list"> {{each list as value i}} 2 3 <li><div class="pic"><img class="fl" src="{{value.litpic}}" alt="{{value.title}}" width="285" height="190" /><div class="buy"><a href="{{value.url}}">立即预订</a></div></div><div class="js"><a class="tit" href="{{value.url}}" target="_blank">{{value.title}}</a><p class="attr"> {{each value.iconlist as ico k}} 4 <img src="{{ico['litpic']}}" /> {{/each}} 5 </p><p class="num"> {{if value.sellprice}} 6 <del>原价:<i class="currency_sy"><?php echo Currency_Tool::symbol();?></i>{{value.sellprice}}</del> {{/if}}
-
APPPATH/classes/stourweb/view.php [ 153 ] » include(arguments)
0
string(63) "/var/www/html/htdocs/v5/cache/tplcache/default/xiefly/index.php"
148 * @param string $key variable name 149 * @param mixed $value referenced variable 150 * @return void 151 */ 152 public static function bind_global($key, & $value) 153 { 154 Stourweb_View::$_global_data[$key] =& $value; 155 } 156 157 // View filename 158 protected $_file;
-
APPPATH/classes/stourweb/view.php [ 839 ] » Stourweb_View->capture(arguments)
0
string(66) "/var/www/html/htdocs/plugins/xiefly/views/default/xiefly/index.php"
1
array(6) ( "cmsurl" => string(1) "/" "webname" => string(12) "航天国旅" "typeid" => integer 104 "channelname" => string(12) "团队疗养" "seoinfo" => array(5) ( "seotitle" => string(12) "携程机票" "keyword" => NULL "description" => NULL "shortname" => string(12) "携程机票" "url" => string(9) "/xieflys/" ) "templetdata" => array(5) ( "cmsurl" => string(1) "/" "webname" => string(12) "航天国旅" "typeid" => integer 104 "channelname" => string(12) "团队疗养" "seoinfo" => array(5) ( "seotitle" => string(12) "携程机票" "keyword" => NULL "description" => NULL "shortname" => string(12) "携程机票" "url" => string(9) "/xieflys/" ) ) )
-
APPPATH/classes/stourweb/controller.php [ 129 ] » Stourweb_View->render()
-
DOCROOT/plugins/xiefly/classes/controller/pc/xiefly.php [ 82 ] » Stourweb_Controller->display(arguments)
0
string(12) "xiefly/index"
-
{PHP internal call} » Controller_Pc_Xiefly->action_index()
-
SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Pc_Xiefly(7)
{ private _typeid => integer 104 private _cache_key => string(27) "http://www.htgl.cn/xieflys/" public _data => array(6) ( "cmsurl" => string(1) "/" "webname" => string(12) "航天国旅" "typeid" => integer 104 "channelname" => string(12) "团队疗养" "seoinfo" => array(5) ( "seotitle" => string(12) "携程机票" "keyword" => NULL "description" => NULL "shortname" => string(12) "携程机票" "url" => string(9) "/xieflys/" ) "templetdata" => array(5) ( "cmsurl" => string(1) "/" "webname" => string(12) "航天国旅" "typeid" => integer 104 "channelname" => string(12) "团队疗养" "seoinfo" => array(5) ( "seotitle" => string(12) "携程机票" "keyword" => NULL "description" => NULL "shortname" => string(12) "携程机票" "url" => string(9) "/xieflys/" ) ) ) public params => array(1) ( "" => string(1) "0" ) protected cmsurl => string(1) "/" public request => object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(29) "xieflys(/<action>_<aid>.html)" protected _regex => array(2) ( "aid" => string(3) "\d+" "action" => string(4) "show" ) protected _defaults => array(3) ( "action" => string(5) "index" "controller" => string(6) "xiefly" "directory" => string(2) "pc" ) protected _route_regex => string(54) "#^xieflys(?:/(?P<action>show)_(?P<aid>\d+)\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(6) "xiefly" protected _action => string(5) "index" protected _uri => string(7) "xieflys" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }111 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 112 array(':uri' => $request->uri())); 113 } 114 115 $method = $class->getMethod('action_'.$action); 116 $method->invoke($controller); 117 118 // Execute the "after action" method 119 $class->getMethod('after')->invoke($controller); 120 } 121 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(29) "xieflys(/<action>_<aid>.html)" protected _regex => array(2) ( "aid" => string(3) "\d+" "action" => string(4) "show" ) protected _defaults => array(3) ( "action" => string(5) "index" "controller" => string(6) "xiefly" "directory" => string(2) "pc" ) protected _route_regex => string(54) "#^xieflys(?:/(?P<action>show)_(?P<aid>\d+)\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(6) "xiefly" protected _action => string(5) "index" protected _uri => string(7) "xieflys" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1160 ] » Kohana_Request_Client->execute(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(29) "xieflys(/<action>_<aid>.html)" protected _regex => array(2) ( "aid" => string(3) "\d+" "action" => string(4) "show" ) protected _defaults => array(3) ( "action" => string(5) "index" "controller" => string(6) "xiefly" "directory" => string(2) "pc" ) protected _route_regex => string(54) "#^xieflys(?:/(?P<action>show)_(?P<aid>\d+)\.html)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(2) "pc" protected _controller => string(6) "xiefly" protected _action => string(5) "index" protected _uri => string(7) "xieflys" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}1155 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1156 ':uri' => $this->_uri, 1157 )); 1158 } 1159 1160 return $this->_client->execute($this); 1161 } 1162 1163 /** 1164 * Returns whether this request is the initial request Kohana received. 1165 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 170 ] » Kohana_Request->execute()
165 /** 166 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 167 * If no source is specified, the URI will be automatically detected. 168 */ 169 echo Request::factory() 170 ->execute() 171 ->send_headers(TRUE) 172 ->body(); 173 174 }