* * * This software is protected by copyright, please * read the file COPYRIGHT. * This program is distributed in the hope that it * will be useful, but without any warranty; without * even the implied warranty of merchantability or * fitness for a particular purpose. Please * read the file LICENCE. * * * @author Rooty * @since 2005/03/09 * @link www.rooty.me * @version 0.3 * @package package * @subpackage tabe * @copyright Copyright © 2004-2005, Initiance */ if ( !defined('SYSTEM_IN') ) { die("Hacking attempt"); } /** *function printTabeAdmin permet d'afficher les onglets d'administration pour chaque brique *

L'ordre ou indice des tableau doivent être correspondant

*

La syntaxe Mx doit être la suivante :
*<mx:bloc id="TabeB">
* <TD valign="bottom">
* <TABLE border="0" mXattribut="class:TabeView" mXattribut="cellpadding:TabeViewCell" cellspacing="0">
* <TR>
* <TD> * <TD> * </TR>
* </TABLE>
* </TD>
*</mx:bloc id="TabeB">
*

*

Les styles css utilisés sont:
*WindowTabeData *WindowTabeDataSelected *

* @param chaine nom du bloc modelixe * @param tableau libelles des onglets * @param tableau url des onglets * @param tableau picto des onglets * @param tableau tableau de tableau des action des onglets * @param chaine servant pour une selection d'un paramètre autre que la méthode * @param chaine nom du style css selectionné * @param chaine nom du style css / défaut * @return booleen */ function printTabeAdmin($MxBlocName, $tabTabe, $TabUrlTabe, $tabPictoTabe, $tabAction, $flag_param="*", $styleSelected="nav-item font-weight-bold active", $style="nav-item font-weight-bold") { global $SYSTEM_TEMPLATE; $selected = ""; if($flag_param == "*"){ $selected = $GLOBALS["SYSTEM_CONTROL"]->methodName; } else { $selected = $flag_param; } for ($i=0; $iMxAttribut($MxBlocName.".pictoTabe", $GLOBALS["SYSTEM_TEMPLATE_PATH"].$GLOBALS["SYSTEM_TEMPLATE_DIR"]."media/picto/".$tabPictoTabe[$i]); $GLOBALS['SYSTEM_TEMPLATE']->MxText($MxBlocName.".pictoTabe", $tabPictoTabe[$i]); $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut($MxBlocName.".UrlTabeView", $TabUrlTabe[$i]); $GLOBALS['SYSTEM_TEMPLATE']->MxText($MxBlocName.".TabeNameView", getMessage($tabTabe[$i])); $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut($MxBlocName.".TabeNameView", getMessage($tabTabe[$i])); /* Presentation */ $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut($MxBlocName.".ClassTabeView", "nav-link text-nowrap active"); $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut($MxBlocName.".TabeViewCell",2); $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut($MxBlocName.".TabeView", $styleSelected); /* Pour l'élément séléectionné, appel a la balise $MxBlocNameTabeNameView */ // $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut($MxBlocName."pictoTabe", $GLOBALS["SYSTEM_TEMPLATE_PATH"].$GLOBALS["SYSTEM_TEMPLATE_DIR"]."media/picto/".$tabPictoTabe[$i]); $GLOBALS['SYSTEM_TEMPLATE']->MxText($MxBlocName."pictoTabe", $tabPictoTabe[$i]); $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut($MxBlocName."UrlTabeView", $TabUrlTabe[$i]); $GLOBALS['SYSTEM_TEMPLATE']->MxText($MxBlocName."TabeNameView", getMessage($tabTabe[$i])); $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut($MxBlocName."TabeNameView", getMessage($tabTabe[$i])); } else { // $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut($MxBlocName.".pictoTabe", $GLOBALS["SYSTEM_TEMPLATE_PATH"].$GLOBALS["SYSTEM_TEMPLATE_DIR"]."media/picto/".$tabPictoTabe[$i]); $GLOBALS['SYSTEM_TEMPLATE']->MxText($MxBlocName.".pictoTabe", $tabPictoTabe[$i]); $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut($MxBlocName.".UrlTabeView", $TabUrlTabe[$i]); $GLOBALS['SYSTEM_TEMPLATE']->MxText($MxBlocName.".TabeNameView", getMessage($tabTabe[$i])); $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut($MxBlocName.".TabeNameView", getMessage($tabTabe[$i])); /* Presentation */ $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut($MxBlocName.".ClassTabeView", "nav-link text-nowrap"); $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut($MxBlocName.".TabeViewCell",1); $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut($MxBlocName.".TabeView", $style); } $GLOBALS['SYSTEM_TEMPLATE']->MxBloc($MxBlocName, "loop"); } return true; } ?>