WARNING: Invalid argument supplied for foreach() in /home/eb5supermarket/public_html/main.php on line 40

550.      $msg "ERROR";
551.      if($errno == E_WARNING)$msg "WARNING";
552.      if($errno == E_NOTICE)$msg "NOTICE";
553.      if($errno == E_STRICT)$msg "STRICT";
554.      if($errno == 8192)$msg "DEPRECATED";
555.      err("$msg$errstr in $errfile on line $errline");
556.  }
557.  function err($msg){
558.      $msg htmlspecialchars($msg);
559.      $traces debug_backtrace();
560.      if(!empty($GLOBALS['err_handler'])){
35.  $lawyers_sql 'SELECT * FROM lawyers ORDER BY crown, last_name ASC LIMIT '.$offset.', '.$page_size;
36.  file_put_contents("testesttest.txt",$lawyers_sql);
37.  $lawyers mysqli_query($conn$lawyers_sql);
38. 
39. 
40.  foreach ($lawyers as $lawyer) {
41.    echo '<div class="lawyer">';
42.    echo '<div class="profile">';
43.    echo '<div class="fakeimg" style="background-image: url(&#39;'.$lawyer['photo_path'].'&#39;); background-repeat: no-repeat; background-size: cover;"></div>';
44.    echo '<div class="smallmedia">';
45. 
469.    <a href="#" style="text-decoration: none;"><button id="filterbtn" onClick="openFilter()" type="reset" value="reset"><class="fa fa-sliders"></i筛选 Filter</button></a>
470.    <div class="onlyforjspagination">
471.      <div class="main" id="results">
472. 
473.  <?php
474.  include "main.php";
475.  ?>
476. 
477.      </div>
478.      <div class="jspagination" id="jspagination"></div>
479.    </div>  
427.          $complied_file $this->compile($tempalte_name);
428. 
429.          @ob_start();
430.          extract($this->template_valsEXTR_SKIP);
431.          $_view_obj = & $this;
432.          include $complied_file;
433. 
434.          return ob_get_clean();
435.      }
436. 
437.      public function assign($mixed$val ''){
240.          $this->_auto_display false;
241. 
242.          if($return){
243.              return $this->_v->render($tpl_name);
244.          }else{
245.              echo $this->_v->render($tpl_name);
246.          }
247.      }
248.  }
249. 
250.  class Model{
1.  <?php
2.  class MainController extends Controller
3.  {
4.      public function actionIndex()
5.      {
6.          $this->display("index.php");
7.      }
8.    }
9.  ?>
84.  $GLOBALS['controller_name'] = $controller_name;
85.  $GLOBALS['action_name'] = $action_name;
86.  $GLOBALS['module'] = $__module;
87. 
88.  $controller_obj = new $controller_name();
89.  $controller_obj->$action_name();
90. 
91.  if($controller_obj->_auto_display){
92.      $auto_tpl_name = (empty($__module) ? '' $__module.DS).$__controller.'_'.$__action.'.html';
93.      if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
94.  }
4.  // 初始化缓存文件
5.  is_dir(APP_DIR.'/protected/tmp') OR mkdir(APP_DIR.'/protected/tmp'0777true);
6.  //载入自动composer加载器
7.  require(APP_DIR.'/protected/func.php');
8.  require(APP_DIR.'/protected/lib/vendor/autoload.php');
9.  require(APP_DIR.'/protected/lib/speed.php');
10. 
11. 
12. 
13.