public function actionDisplay($lang, $mySql, $queries, $module, $module_dispatch, $idUrl, $type, $categorie, $ss_categorie, $search, $sort, $order, $pagination) { $ActionDetail = new ActionDetail(); $ActionUpdate = new ActionUpdate(); $ActionDelete = new ActionDelete(); $ActionAdd = new ActionAdd(); $layout = ""; if ($type == DETAIL) { $layout .= $ActionDetail->init($mySql, $queries, $lang, $module_dispatch, $idUrl); } elseif ($type == DELETE) { $layout .= $ActionDelete->init($mySql, $queries, $lang, $module, $module_dispatch, $idUrl, $categorie, $ss_categorie, $search, $sort, $order, $pagination); } elseif ($type == UPDATE) { $layout .= $ActionUpdate->init($mySql, $queries, $lang, $module, $module_dispatch, $idUrl, $categorie, $ss_categorie, $search, $sort, $order, $pagination); } elseif ($type == ADD) { $layout .= $ActionAdd->init($mySql, $queries, $lang, $module, $module_dispatch, $categorie, $ss_categorie); } return $layout; }
} $var->module_output .= $HelperLayout->listeValeur($HelperOther->resizeValue($value, 150)); } } // Ajout des actions possibles $var->module_output .= $Listing->listeValeurAction($lang, $var->module, $var->categorie, $var->ss_categorie, $id, $var->sort, $pagination[2], $var->order, $var->search, $action_header); $i++; $entry = $mySql->fetch_assoc($getEntries); } // Pagination $var->module_output .= $Pagination->wrapper($lang, $module_dispatch, $pagination[2], $pagination[1], $var->categorie, $var->ss_categorie, $var->search, $var->sort, $var->order, false); // Affichage des actions disponibles $var->module_output .= $Action->actionDisplay($lang, $mySql, $queries, $var->module, $module_dispatch, $var->idUrl, $var->type, $var->categorie, $var->ss_categorie, $var->search, $var->sort, $var->order, $pagination[2]); } else { // Fin de listing $var->module_output .= $HelperData->noData($lang, $module_dispatch, $var->ss_categorie); if ($var->type == ADD) { $var->module_output .= $ActionAdd->init($mySql, $queries, $lang, $var->module, $module_dispatch, $var->categorie, $var->ss_categorie); } } } else { // Fin sous catégorie $var->module_output .= $HelperData->noSubCategory($lang, $module_dispatch, $var->categorie); } } else { // Fin catégorie $var->module_output .= $HelperData->noCategory($lang); } $var->module_output .= '</div> <!-- Fin du Main -->'; ?>