NOTICE: Undefined offset: 0 in /www/wwwroot/huafeichang/sadefeng.com/protected/cache/template/0005c063565bc4035293a05e4ae4f838.1615606484.news_list.html.php on line 47

42.           <div class="inews newslist" style="width:100%;">
43.                    
44.                  <?php if (!empty($news_list)) : ?>
45.                   <?php $_foreach_v_counter 0$_foreach_v_total count($news_list);?><?php foreach( $news_list as $v ) : ?><?php $_foreach_v_index $_foreach_v_counter;$_foreach_v_iteration $_foreach_v_counter 1;$_foreach_v_first = ($_foreach_v_counter == 0);$_foreach_v_last = ($_foreach_v_counter == $_foreach_v_total 1);$_foreach_v_counter++;?>
46.                    <a title="<?php echo htmlspecialchars($v['title'], ENT_QUOTES"UTF-8"); ?>" href="<?php echo url(array('c'=>'news''a'=>'view''id'=>$v['id'], ));?>"><strong><?php echo htmlspecialchars($v['title'], ENT_QUOTES"UTF-8"); ?></strong>  </a>
47.                  <?php endforeach; ?>
48.                 <?php else : ?>
49.                    <h3 style=" padding:20px; margin-top:50px; text-align:center;color:#999"> ( ^_^ )  暂 无 数 据  . . .</h3>
50.                 <?php endif; ?> 
51.                   
52.          </div>
374.              if(isset($conditions[0]) && $sql $conditions[0]) unset($conditions[0]);
375.              foreach($conditions as $key => $condition)
376.              {
377.                  if(substr($key01) != ":")
378.                  {
379.                      unset($conditions[$key]);
380.                      $conditions[":".$key] = $condition;
381.                  }
382.                  $join[] = "`{$key}` = :{$key}";
383.              }
384.              if(!$sql$sql join(" AND ",$join);
66.      }
67. 
42.              /*添加关键词链接*/
43.              //$key_model = new key_model();
44.              
45.              /*$ks = vcache::instance()->key_model('key_list');            
46.              foreach($ks as $k=>$v){                 
47.                  $news['content'] = preg_replace('/'.$v['title'].'/i','<a href="'.$v['url'].'" target="_blank" >'.$v['title'].'</a>',$news['content'],1);
48.              }*/
49.              
50.              
51.              $this->news $news;
52.              
182.      public function __construct(){$this->init();}
183.      public function __get($name){return $this->_data[$name];}
184.      public function __set($name$value){$this->_data[$name] = $value;}
185.      
186.      public function display($tpl_name)
187.      {
188.          if(!$this->_v$this->_v = new View(VIEW_DIRAPP_DIR.DS.'protected'.DS.'cache'.DS.'template');
189.          $this->_v->assign($this->_data);
190.          echo $this->_v->render($tpl_name);
191.      }
192.  }
4.  define('INCL_DIR'APP_DIR.DS.'protected'.DS.'include');
5.  require(INCL_DIR.DS.'core.php');