예제 #1
0
 function init($module, $lang, $categorie, $sscategorie, $type, $sort, $order, $page, $search)
 {
     $getColumn = Query::selectAll();
     $output = Adds::debut($module, $lang, $categorie, $sscategorie, $sort, $order, $page, $search);
     for ($i = 0; $i < Db::num_fields($getColumn); $i++) {
         $column = Db::fetch_field($getColumn);
         $column = $column->name;
         $field = Utils::findField($column);
         @(!(include_once 'controller/fields/' . $field . '.class.php'));
         if (class_exists($field)) {
             $getValue = new $field($lang, "", $column, $type);
             $add = $getValue->add;
             if ($this->exclusion($sscategorie, $column)) {
                 $output .= Adds::add($add);
             }
         }
     }
     $output .= Adds::fin($module, $lang);
     return $output;
 }
예제 #2
0
 public function init($mySql, $queries, $lang, $module, $module_dispatch, $categorie, $ss_categorie)
 {
     $HelperOther = new HelperOther();
     $Adds = new Adds();
     $getColumn = $queries->selectAll($mySql, $module_dispatch);
     $layout = $Adds->debut($lang, $module, $module_dispatch, $categorie, $ss_categorie);
     for ($i = 0; $i < $mySql->num_fields($getColumn); $i++) {
         $column = $mySql->fetch_field($getColumn);
         $column = $column->name;
         $add = "";
         $field = $HelperOther->findField($column);
         @(!(include_once 'controller/fields/' . $field . '.class.php'));
         if (class_exists($field)) {
             $getValue = new $field($lang, $module_dispatch, $add, $column, ADD);
             $add = $getValue->add;
             $layout .= $Adds->add($add);
         }
     }
     $layout .= $Adds->fin($lang, $module_dispatch);
     return $layout;
 }