Fixed template lcube6 for tool configuration of adminobject object
This commit is contained in:
parent
e225955379
commit
e5ce80d988
@ -21,7 +21,7 @@ TxtListRight = "Liste des droits accordés"
|
||||
TxtTypeObject = "Type d'outil"
|
||||
|
||||
TxtNode = "(*) Dans l'espace : "
|
||||
TxtImage = "(*) Icône : "
|
||||
TxtImage = "Icône de l'outil"
|
||||
TxtPerm = "Permissions"
|
||||
TxtInstallObject = "Installation"
|
||||
|
||||
@ -53,7 +53,8 @@ deleteObject = "Voulez vous supprimer cet outil ? : "
|
||||
|
||||
nameObjectList = "Nom de l'outil"
|
||||
classObject = "Type de brique"
|
||||
resumeObject = "Resumé :"
|
||||
resumeObject = "Resumé de l'outil"
|
||||
keywordObject = "Mots clefs de l'outil"
|
||||
TxtTreeWay = "Espace"
|
||||
TxtRight = "Gestion des droits"
|
||||
TxtPartage = "Partage"
|
||||
|
@ -1,4 +1,4 @@
|
||||
<ul class="nav container nav-tabs border-bottom-0">
|
||||
<ul class="nav container-fluid nav-tabs w-75 border-bottom-0">
|
||||
<mx:bloc id="TabeB">
|
||||
<li mXattribut="class:TabeView">
|
||||
<a mXattribut="href:UrlTabeView" mXattribut="class:ClassTabeView">
|
||||
@ -9,7 +9,7 @@
|
||||
</mx:bloc id="TabeB">
|
||||
</ul>
|
||||
|
||||
<div class="tab-content container px-2 py-2 border">
|
||||
<div class="tab-content container-fluid px-2 py-2 w-75 border">
|
||||
<div class="card w-100">
|
||||
<form id="frmNode" name="frmNode" role="form" class="container form-inline" method="post" mXattribut="action:urlActionNode">
|
||||
<input type="hidden" name="user_id" mXattribut="value:user_id" class="hidden"/>
|
||||
@ -83,7 +83,7 @@
|
||||
</tr>
|
||||
</mx:bloc id="actionAdminObject">
|
||||
</tbody>
|
||||
<tfoot class="tfoot-default">
|
||||
<!--<tfoot class="tfoot-default">
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th><mx:text id="nameObjectList"/></th>
|
||||
@ -92,6 +92,6 @@
|
||||
<th><mx:text id="TxtRight"/></th>
|
||||
<th><mx:text id="ActionObject"/></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</tfoot>-->
|
||||
</table>
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<ul class="nav container nav-tabs border-bottom-0">
|
||||
<ul class="nav container-fluid nav-tabs w-75 border-bottom-0">
|
||||
<mx:bloc id="TabeB">
|
||||
<li mXattribut="class:TabeView">
|
||||
<a mXattribut="href:UrlTabeView" mXattribut="class:ClassTabeView">
|
||||
@ -9,20 +9,27 @@
|
||||
</mx:bloc id="TabeB">
|
||||
</ul>
|
||||
|
||||
<div class="tab-content container px-2 py-2 border">
|
||||
<form id="frmAddObject" method="post" mXattribut="action:urlAction">
|
||||
<div class="fieldset">
|
||||
<div class="legend"><mx:text id="TxtFormLegendAddObject"/></div>
|
||||
<div class="field"><label for="contentType"><mx:text id="TxtAddObject"/></label>
|
||||
<select name="contentType" id="contentType">
|
||||
<mx:bloc id="actionAdminClass">
|
||||
<option mXattribut="value:classValue"><mx:text id="className"/></option>
|
||||
</mx:bloc id="actionAdminClass">
|
||||
</select>
|
||||
</div>
|
||||
<div class="action">
|
||||
<input type="submit" name="BtnValid" mXattribut="value:BtnValid" class="save"/>
|
||||
</div>
|
||||
<div class="tab-content container-fluid px-2 py-2 w-75 border">
|
||||
<div class="card w-100">
|
||||
<form id="frmAddObject" name="frmAddObject" role="form" class="container form-inline" method="post" mXattribut="action:urlAction">
|
||||
<div class="card-body p-0 m-0 border-0">
|
||||
<div class="row justify-content-center">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-lg fa-indent"></i></span>
|
||||
</div>
|
||||
<select name="contentType" id="contentType">
|
||||
<mx:bloc id="actionAdminClass">
|
||||
<option mXattribut="value:classValue"><mx:text id="className"/></option>
|
||||
</mx:bloc id="actionAdminClass">
|
||||
</select>
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-input"><input type="submit" class="form btn btn-outline-secondary" MxAttribut="value:BtnValid" /></span>
|
||||
<span class="input-group-input"><input type="button" name="BtnReturn" class="form btn btn-outline-secondary" aria-pressed="true" value="<mx:text id="BtnReturn"/>" onclick="history.back();"/></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -1,82 +1,78 @@
|
||||
<script type="text/javascript">window.parent.document.title = "----------";</script>
|
||||
|
||||
<form id="configObject" method="post" mXattribut="action:urlAction">
|
||||
<input type="hidden" name="urlReturn" mXattribut="value:urlActionReturn"/>
|
||||
<input type="hidden" name="contentType" mXattribut="value:contentType"/>
|
||||
<input type="hidden" name="objectId" mXattribut="value:objectId"/>
|
||||
<div class="tabe">
|
||||
<ul>
|
||||
<li id="startTabe" class="WindowTabeData"></li>
|
||||
<ul class="nav container nav-tabs border-bottom-0">
|
||||
<mx:bloc id="TabeB">
|
||||
<li mXattribut="class:TabeView">
|
||||
<li mXattribut="class:TabeView">
|
||||
<a mXattribut="href:UrlTabeView" mXattribut="class:ClassTabeView">
|
||||
<i class="mr-1 fa fa-lg fa-<mx:text id="pictoTabe"/>"></i>
|
||||
<i class="mr-1 fa fa-lg fa-<mx:text id="pictoTabe"/>"></i>
|
||||
<mx:text id="TabeNameView"/>
|
||||
</a>
|
||||
</li>
|
||||
</mx:bloc id="TabeB">
|
||||
<li id="endTabe" class="WindowTabeData"></li>
|
||||
</ul>
|
||||
</div>
|
||||
<fieldset class="framebox">
|
||||
<div class="box">
|
||||
<div class="legend"><h2><mx:text id="TabeBTabeNameView"/></h2><p><mx:text id="configurationObject"/> (<mx:text id="TxtContentType"/>)</p></div>
|
||||
<div class="tabe">
|
||||
<ul>
|
||||
<li id="startTabe" class="WindowTabeData"></li>
|
||||
<mx:bloc id="TabeSecond">
|
||||
<li mXattribut="class:TabeView">
|
||||
<a mXattribut="href:UrlTabeView" mXattribut="class:ClassTabeView"><i class="mr-1 fa fa-lg fa-<mx:text id="pictoTabe"/>"></i><mx:text id="TabeNameView"/></a>
|
||||
</li>
|
||||
</mx:bloc id="TabeSecond">
|
||||
<li id="endTabe" class="WindowTabeData"></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="legend"><h2><mx:text id="TabeSecondTabeNameView"/></h2><p><mx:text id="TxtGeneral"/></p></div>
|
||||
<div class="fieldset">
|
||||
<div class="legend"><mx:text id="TxtFormLegend"/></div>
|
||||
<div>
|
||||
<div class="field"><label for="iconeN" class="require"><mx:text id="TxtImage"/></label><img name="pictoObject" id="pictoObject" src="data/template/default/media/picto/object/DefaultObject.gif" alt="picto"/><mx:select id="icone" class="selectsmall"/></div>
|
||||
<div class="field"><label for="nameInput" class="require"><mx:text id="nameObject"/></label>
|
||||
<mx:bloc id="blocName">
|
||||
<mx:image id="pictoLanguage"/><input type="text" mXattribut="value:namelanguagevalue" mXattribut="name:nameInput" id="nameInput"/>
|
||||
</mx:bloc id="blocName">
|
||||
</div>
|
||||
<div class="field"><label for="resume"><mx:text id="resumeLanguage"/> :</label><textarea class="textareacomm" name="resume" id="resume"><mx:text id="resumeValue"/></textarea></div>
|
||||
<div class="field"><label for="keyword"><mx:text id="keyword"/> :</label><textarea class="textareacomm" name="keyWord" id="keyword"><mx:text id="keyWordValue"/></textarea></div>
|
||||
<div class="field"><label for="node" class="require"><mx:text id="TxtNode"/></label><mx:select id="NODE" id="node"/></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fieldset">
|
||||
<legend><mx:text id="TxtConfiguration"/></legend>
|
||||
<div>
|
||||
<div class="require"><label class="labelverybig" for="nodeadmin"><mx:text id="TxtNodeAdmin"/></label><mx:select id="NODE_ADMIN" id="nodeadmin"/></div>
|
||||
<br/>
|
||||
<div class="require"><label class="labelverybig" for="group"><mx:text id="TxtGroupAdmin"/></label><mx:select id="GROUP_ADMIN" id="group"/></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fieldset">
|
||||
<legend><mx:text id="TxtTemplateAdmin"/></legend>
|
||||
<div>
|
||||
<div class="field"><label for="TEMPLATE_ADMIN"><mx:text id="TxtTemplateAdmin"/></label><mx:select id="TEMPLATE_ADMIN" /></div>
|
||||
<div class="field"><img name="pictoTemplate" id="pictoTemplate" src="data/template/default/preview.png" alt="Preview"/></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fieldset">
|
||||
<legend><mx:text id="briquesList"/></legend>
|
||||
</li>
|
||||
</mx:bloc id="TabeB">
|
||||
</ul>
|
||||
|
||||
<mx:bloc id="actionAdminClass">
|
||||
<div class="boxcheck"><label><mx:text id="className"/></label><mx:checker id="classId"/></div>
|
||||
</mx:bloc id="actionAdminClass">
|
||||
<div class="action">
|
||||
<input type="submit" name="BtnValid" mXattribut="value:BtnValid" class="save"/>
|
||||
<form id="configObject" method="post" mXattribut="action:urlAction">
|
||||
<input type="hidden" name="urlReturn" mXattribut="value:urlActionReturn"/>
|
||||
<input type="hidden" name="contentType" mXattribut="value:contentType"/>
|
||||
<input type="hidden" name="objectId" mXattribut="value:objectId"/>
|
||||
|
||||
<fieldset class="framebox">
|
||||
<div class="box">
|
||||
<div class="legend"><h2><mx:text id="TabeBTabeNameView"/></h2><p><mx:text id="configurationObject"/> (<mx:text id="TxtContentType"/>)</p></div>
|
||||
<div class="tabe">
|
||||
<ul>
|
||||
<li id="startTabe" class="WindowTabeData"></li>
|
||||
<mx:bloc id="TabeSecond">
|
||||
<li mXattribut="class:TabeView">
|
||||
<a mXattribut="href:UrlTabeView" mXattribut="class:ClassTabeView"><i class="mr-1 fa fa-lg fa-<mx:text id="pictoTabe"/>"></i><mx:text id="TabeNameView"/></a>
|
||||
</li>
|
||||
</mx:bloc id="TabeSecond">
|
||||
<li id="endTabe" class="WindowTabeData"></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="box">
|
||||
<div class="legend"><h2><mx:text id="TabeSecondTabeNameView"/></h2><p><mx:text id="TxtGeneral"/>2</p></div>
|
||||
<div class="fieldset">
|
||||
<div class="legend"><mx:text id="TxtFormLegend"/></div>
|
||||
<div>
|
||||
<div class="field"><label for="iconeN" class="require"><mx:text id="TxtImage"/></label><img name="pictoObject" id="pictoObject" src="data/template/default/media/picto/object/DefaultObject.gif" alt="picto"/><mx:select id="icone" class="selectsmall"/></div>
|
||||
<div class="field"><label for="nameInput" class="require"><mx:text id="nameObject"/></label>
|
||||
<mx:bloc id="blocName">
|
||||
<mx:image id="pictoLanguage"/><input type="text" mXattribut="value:namelanguagevalue" mXattribut="name:nameInput" id="nameInput"/>
|
||||
</mx:bloc id="blocName">
|
||||
</div>
|
||||
<div class="field"><label for="resume"><mx:text id="resumeLanguage"/> :</label><textarea class="textareacomm" name="resume" id="resume"><mx:text id="resumeValue"/></textarea></div>
|
||||
<div class="field"><label for="keyword"><mx:text id="keyword"/> :</label><textarea class="textareacomm" name="keyWord" id="keyword"><mx:text id="keyWordValue"/></textarea></div>
|
||||
<div class="field"><label for="node" class="require"><mx:text id="TxtNode"/></label><mx:select id="NODE" id="node"/></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fieldset">
|
||||
<legend><mx:text id="TxtConfiguration"/></legend>
|
||||
<div>
|
||||
<div class="require"><label class="labelverybig" for="nodeadmin"><mx:text id="TxtNodeAdmin"/></label><mx:select id="NODE_ADMIN" id="nodeadmin"/></div>
|
||||
<br/>
|
||||
<div class="require"><label class="labelverybig" for="group"><mx:text id="TxtGroupAdmin"/></label><mx:select id="GROUP_ADMIN" id="group"/></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fieldset">
|
||||
<legend><mx:text id="TxtTemplateAdmin"/></legend>
|
||||
<div>
|
||||
<div class="field"><label for="TEMPLATE_ADMIN"><mx:text id="TxtTemplateAdmin"/></label><mx:select id="TEMPLATE_ADMIN" /></div>
|
||||
<div class="field"><img name="pictoTemplate" id="pictoTemplate" src="data/template/default/preview.png" alt="Preview"/></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fieldset">
|
||||
<legend><mx:text id="briquesList"/></legend>
|
||||
|
||||
<mx:bloc id="actionAdminClass">
|
||||
<div class="boxcheck"><label><mx:text id="className"/></label><mx:checker id="classId"/></div>
|
||||
</mx:bloc id="actionAdminClass">
|
||||
<div class="action">
|
||||
<input type="submit" name="BtnValid" mXattribut="value:BtnValid" class="save"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info"><mx:text id="TxtField"/></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info"><mx:text id="TxtField"/></div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
@ -164,7 +164,7 @@ Class AdminObject extends CoordinationObj
|
||||
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("langCode", $currentCode);
|
||||
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("CurrentTemplate",$GLOBALS['SYSTEM_TEMPLATE_PATH'].$GLOBALS['SYSTEM_TEMPLATE_DIR']."media/picto/object/defaultobject.gif");
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("CurrentTemplate", $GLOBALS['CONF_DATA_PATH']."data/image/icons/object/defaultobject.gif");
|
||||
|
||||
if($optList==0)
|
||||
{
|
||||
@ -223,207 +223,201 @@ Class AdminObject extends CoordinationObj
|
||||
{
|
||||
$cpt_objet++;
|
||||
|
||||
//En fonction du choix d'affichage on va chercher les partages ou le chemin de création
|
||||
if($optList==1)
|
||||
{
|
||||
//On récupère l'instance de l'arbo des noeuds liée au noeud de la boucle
|
||||
$wayTreeNode = $GLOBALS['SYSTEM_MANAGER']['TREE_NODE']->createInstance($tabObject[$i]->getNode());
|
||||
|
||||
//On récupère le tableau des Libellés des Pères du noeud pour les afficher
|
||||
$tabFatherTreeWay = $wayTreeNode->getFatherLibelleArray($currentCode);
|
||||
$lib=$tabFatherTreeWay[0];
|
||||
|
||||
if ($lib=="")
|
||||
//En fonction du choix d'affichage on va chercher les partages ou le chemin de création
|
||||
if($optList==1)
|
||||
{
|
||||
$tabFatherTreeWay = $wayTreeNode->getFatherLibelleArray($defaultCode);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//On récupère l'instance de l'arbo des noeuds liée au noeud de la boucle
|
||||
$wayTreeNode = $GLOBALS['SYSTEM_MANAGER']['TREE_NODE']->createInstance($NodeSelect);
|
||||
//On récupère l'instance de l'arbo des noeuds liée au noeud de la boucle
|
||||
$wayTreeNode = $GLOBALS['SYSTEM_MANAGER']['TREE_NODE']->createInstance($tabObject[$i]->getNode());
|
||||
|
||||
//On récupère le tableau des Libellés des Pères du noeud pour les afficher
|
||||
$tabFatherTreeWay = $wayTreeNode->getFatherLibelleArray($currentCode);
|
||||
$lib=$tabFatherTreeWay[0];
|
||||
//On récupère le tableau des Libellés des Pères du noeud pour les afficher
|
||||
$tabFatherTreeWay = $wayTreeNode->getFatherLibelleArray($currentCode);
|
||||
$lib=$tabFatherTreeWay[0];
|
||||
|
||||
if ($lib=="")
|
||||
{
|
||||
$tabFatherTreeWay = $wayTreeNode->getFatherLibelleArray($defaultCode);
|
||||
}
|
||||
}
|
||||
|
||||
/* Récupération des droits */
|
||||
$tabRight=$GLOBALS["SYSTEM_MANAGER"]["RIGHT"]->getInstanceFromObjectId($tabObject[$i]->getId());
|
||||
$name =$tabObject[$i]->getName($currentCode);
|
||||
$name =( (isset($name)) && ($name!="") )?$name:$tabObject[$i]->getName($defaultCode);
|
||||
$treeWay = "";
|
||||
|
||||
for($n=(count($tabFatherTreeWay)-1);$n>=0;$n--)
|
||||
{
|
||||
if($n>0)
|
||||
{
|
||||
$treeWay .= "/ ".$tabFatherTreeWay[$n];
|
||||
if ($lib==""){ $tabFatherTreeWay = $wayTreeNode->getFatherLibelleArray($defaultCode); }
|
||||
}
|
||||
else
|
||||
{
|
||||
$treeWay .= "/ <b>".$tabFatherTreeWay[$n]."</b>";
|
||||
//On récupère l'instance de l'arbo des noeuds liée au noeud de la boucle
|
||||
$wayTreeNode = $GLOBALS['SYSTEM_MANAGER']['TREE_NODE']->createInstance($NodeSelect);
|
||||
|
||||
//On récupère le tableau des Libellés des Pères du noeud pour les afficher
|
||||
$tabFatherTreeWay = $wayTreeNode->getFatherLibelleArray($currentCode);
|
||||
$lib=$tabFatherTreeWay[0];
|
||||
|
||||
if ($lib==""){ $tabFatherTreeWay = $wayTreeNode->getFatherLibelleArray($defaultCode); }
|
||||
}
|
||||
}
|
||||
|
||||
$resume =$tabObject[$i]->getResume($currentCode);
|
||||
$resume =( (isset($resume)) && ($resume!=""))?$resume:$tabObject[$i]->getResume($defaultCode);
|
||||
/* Récupération des droits */
|
||||
$tabRight=$GLOBALS["SYSTEM_MANAGER"]["RIGHT"]->getInstanceFromObjectId($tabObject[$i]->getId());
|
||||
$name =$tabObject[$i]->getName($currentCode);
|
||||
$name =( (isset($name)) && ($name!="") )?$name:$tabObject[$i]->getName($defaultCode);
|
||||
$treeWay = "";
|
||||
|
||||
/* recuperation de l'icone */
|
||||
if (file_exists($GLOBALS['SYSTEM_TEMPLATE_PATH'].$GLOBALS['SYSTEM_TEMPLATE_DIR']."media/picto/object/".strtolower($tabObject[$i]->getIcone())) && ($tabObject[$i]->getIcone()!=""))
|
||||
{
|
||||
$img=$GLOBALS['SYSTEM_TEMPLATE_PATH'].$GLOBALS['SYSTEM_TEMPLATE_DIR']."media/picto/object/".strtolower($tabObject[$i]->getIcone());
|
||||
}else{
|
||||
$img=$GLOBALS['SYSTEM_TEMPLATE_PATH'].$GLOBALS['SYSTEM_TEMPLATE_DIR']."media/picto/object/defaultobject.gif";
|
||||
}
|
||||
for($n=(count($tabFatherTreeWay)-1);$n>=0;$n--)
|
||||
{
|
||||
if($n>0)
|
||||
{
|
||||
$treeWay .= "/ ".$tabFatherTreeWay[$n];
|
||||
}
|
||||
else
|
||||
{
|
||||
$treeWay .= "/ <b>".$tabFatherTreeWay[$n]."</b>";
|
||||
}
|
||||
}
|
||||
|
||||
/* gestion de la template */
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxImage("actionAdminObject.imgObject", $img, $name, " width=\"24px\"");
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.nameObject", $name);
|
||||
$resume =$tabObject[$i]->getResume($currentCode);
|
||||
$resume =( (isset($resume)) && ($resume!=""))?$resume:$tabObject[$i]->getResume($defaultCode);
|
||||
|
||||
$value =get_class($tabObject[$i]);
|
||||
addMessageFile($value);
|
||||
$name =getMessage("class".strtolower($value));
|
||||
$name =( (isset($name)) && ($name!="") )?$name:$value;
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.classObject", $name);
|
||||
//$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.resumeObject", $resume);
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.treeWay", $treeWay);
|
||||
|
||||
// Pour la Gestion des déroulés
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.TxtNbRight", getMessage("TxtNbRight"));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.objectId", htmlspecialchars($value));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.objectTextId", htmlspecialchars($value));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.js", "javascript:visible('".$tabObject[$i]->getId()."');");
|
||||
|
||||
for ($j=0; $j<count($tabRight); $j++)
|
||||
{
|
||||
$lib=getMessage("method".strtolower($tabRight[$j]->getMethodName()));
|
||||
if ($lib=="")
|
||||
$lib=$tabRight[$j]->getMethodName();
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.MethodName", $lib );
|
||||
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.TxtRightA", getMessage("TxtRightA"));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.TxtRightB", getMessage("TxtRightB"));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.TxtRightC", getMessage("TxtRightC"));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.TxtRightD", getMessage("TxtRightD"));
|
||||
/* recuperation de l'icone */
|
||||
if (file_exists($GLOBALS['CONF_DATA_PATH']."data/image/icons/object/".$tabObject[$i]->getIcone()) && ($tabObject[$i]->getIcone()!=""))
|
||||
{
|
||||
$img=$GLOBALS['CONF_DATA_PATH']."data/image/icons/object/".$tabObject[$i]->getIcone();
|
||||
}else{
|
||||
$img=$GLOBALS['CONF_DATA_PATH']."data/image/icons/object/defaultobject.gif";
|
||||
}
|
||||
|
||||
/* gestion de la template */
|
||||
if ( ($tabRight[$j]->getGroupId() != 0) && (!Is_null($tabRight[$j]->getGroupId())) )
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxImage("actionAdminObject.imgObject", $img, $name, " width=\"24px\"");
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.nameObject", $name);
|
||||
|
||||
$value =get_class($tabObject[$i]);
|
||||
addMessageFile($value);
|
||||
$name =getMessage("class".strtolower($value));
|
||||
$name =( (isset($name)) && ($name!="") )?$name:$value;
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.classObject", $name);
|
||||
//$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.resumeObject", $resume);
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.treeWay", $treeWay);
|
||||
|
||||
// Pour la Gestion des déroulés
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.TxtNbRight", getMessage("TxtNbRight"));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.objectId", htmlspecialchars($value));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.objectTextId", htmlspecialchars($value));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.js", "javascript:visible('".$tabObject[$i]->getId()."');");
|
||||
|
||||
for ($j=0; $j<count($tabRight); $j++)
|
||||
{
|
||||
$Group=$GLOBALS["SYSTEM_MANAGER"]["TREE_GROUP"]->createInstance( $tabRight[$j]->getGroupId() );
|
||||
|
||||
//On récupère le tableau des Libellés des Pères du noeud pour les afficher
|
||||
$tabWayTreeGroup = $Group->getFatherLibelleArray($currentCode);
|
||||
$lib=$tabWayTreeGroup[0];
|
||||
|
||||
$lib=getMessage("method".strtolower($tabRight[$j]->getMethodName()));
|
||||
if ($lib=="")
|
||||
{
|
||||
$tabWayTreeGroup = $Group->getFatherLibelleArray($defaultCode);
|
||||
}
|
||||
$lib=$tabRight[$j]->getMethodName();
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.MethodName", $lib );
|
||||
|
||||
$treeGroup = "";
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.TxtRightA", getMessage("TxtRightA"));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.TxtRightB", getMessage("TxtRightB"));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.TxtRightC", getMessage("TxtRightC"));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.TxtRightD", getMessage("TxtRightD"));
|
||||
|
||||
for($n=(count($tabWayTreeGroup)-1);$n>=0;$n--)
|
||||
/* gestion de la template */
|
||||
if ( ($tabRight[$j]->getGroupId() != 0) && (!Is_null($tabRight[$j]->getGroupId())) )
|
||||
{
|
||||
if($n>0)
|
||||
$Group=$GLOBALS["SYSTEM_MANAGER"]["TREE_GROUP"]->createInstance( $tabRight[$j]->getGroupId() );
|
||||
|
||||
//On récupère le tableau des Libellés des Pères du noeud pour les afficher
|
||||
$tabWayTreeGroup = $Group->getFatherLibelleArray($currentCode);
|
||||
$lib=$tabWayTreeGroup[0];
|
||||
|
||||
if ($lib=="")
|
||||
{
|
||||
$treeGroup .= "/ ".$tabWayTreeGroup[$n];
|
||||
$tabWayTreeGroup = $Group->getFatherLibelleArray($defaultCode);
|
||||
}
|
||||
else
|
||||
{
|
||||
$treeGroup .= "/ <b>".$tabWayTreeGroup[$n]."</b>";
|
||||
}
|
||||
}
|
||||
$lib = $treeGroup;
|
||||
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.GroupName", $lib);
|
||||
$treeGroup = "";
|
||||
|
||||
}else{
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.GroupName", "");
|
||||
}
|
||||
|
||||
if ( ($tabRight[$j]->getUserId() != 0) && (!Is_null($tabRight[$j]->getUserId())) )
|
||||
{
|
||||
$user=$GLOBALS["SYSTEM_MANAGER"]["USER"]->createInstance( $tabRight[$j]->getUserId() );
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.UserFirstName", $user->getFirstname() );
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.UserLastName", $user->getFirstname() );
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.UserLogin", $user->getLogin() );
|
||||
}else{
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.UserFirstName", "");
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.UserLastName", "" );
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.UserLogin", "" );
|
||||
}
|
||||
|
||||
if ( ($tabRight[$j]->getNodeId() != 0) && (!Is_null($tabRight[$j]->getNodeId())) )
|
||||
{
|
||||
//if($optList==0)
|
||||
//{
|
||||
$treeWay ="";
|
||||
$node=$GLOBALS["SYSTEM_MANAGER"]["TREE_NODE"]->createInstance( $tabRight[$j]->getNodeId() );
|
||||
|
||||
//On récupère le tableau des Libellés des Pères du noeud pour les afficher
|
||||
$tabWayTreeNode = $node->getFatherLibelleArray($currentCode);
|
||||
$lib=$tabWayTreeNode[0];
|
||||
|
||||
if ($lib=="")
|
||||
{
|
||||
$tabWayTreeNode = $node->getFatherLibelleArray($defaultCode);
|
||||
}
|
||||
|
||||
for($n=(count($tabWayTreeNode)-1);$n>=0;$n--)
|
||||
for($n=(count($tabWayTreeGroup)-1);$n>=0;$n--)
|
||||
{
|
||||
if($n>0)
|
||||
{
|
||||
$treeWay .= "/ ".$tabWayTreeNode[$n];
|
||||
$treeGroup .= "/ ".$tabWayTreeGroup[$n];
|
||||
}
|
||||
else
|
||||
{
|
||||
$treeWay .= "/ <b>".$tabWayTreeNode[$n]."</b>";
|
||||
$treeGroup .= "/ <b>".$tabWayTreeGroup[$n]."</b>";
|
||||
}
|
||||
}
|
||||
$lib = $treeWay;
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.NodeName", $lib);
|
||||
$lib = $treeGroup;
|
||||
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.GroupName", $lib);
|
||||
|
||||
}else{
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.GroupName", "");
|
||||
}
|
||||
|
||||
if ( ($tabRight[$j]->getUserId() != 0) && (!Is_null($tabRight[$j]->getUserId())) )
|
||||
{
|
||||
$user=$GLOBALS["SYSTEM_MANAGER"]["USER"]->createInstance( $tabRight[$j]->getUserId() );
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.UserFirstName", $user->getFirstname() );
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.UserLastName", $user->getFirstname() );
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.UserLogin", $user->getLogin() );
|
||||
}else{
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.UserFirstName", "");
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.UserLastName", "" );
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.UserLogin", "" );
|
||||
}
|
||||
|
||||
if ( ($tabRight[$j]->getNodeId() != 0) && (!Is_null($tabRight[$j]->getNodeId())) )
|
||||
{
|
||||
//if($optList==0)
|
||||
//{
|
||||
$treeWay ="";
|
||||
//}
|
||||
}else{
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.NodeName", "");
|
||||
$node=$GLOBALS["SYSTEM_MANAGER"]["TREE_NODE"]->createInstance( $tabRight[$j]->getNodeId() );
|
||||
|
||||
//On récupère le tableau des Libellés des Pères du noeud pour les afficher
|
||||
$tabWayTreeNode = $node->getFatherLibelleArray($currentCode);
|
||||
$lib=$tabWayTreeNode[0];
|
||||
|
||||
if ($lib=="")
|
||||
{
|
||||
$tabWayTreeNode = $node->getFatherLibelleArray($defaultCode);
|
||||
}
|
||||
|
||||
for($n=(count($tabWayTreeNode)-1);$n>=0;$n--)
|
||||
{
|
||||
if($n>0)
|
||||
{
|
||||
$treeWay .= "/ ".$tabWayTreeNode[$n];
|
||||
}
|
||||
else
|
||||
{
|
||||
$treeWay .= "/ <b>".$tabWayTreeNode[$n]."</b>";
|
||||
}
|
||||
}
|
||||
$lib = $treeWay;
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.NodeName", $lib);
|
||||
$treeWay ="";
|
||||
//}
|
||||
}else{
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.RIGHT.NodeName", "");
|
||||
}
|
||||
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxBloc("actionAdminObject.RIGHT", "loop");
|
||||
|
||||
}
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.nbRight", count($tabRight));
|
||||
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxBloc("actionAdminObject.RIGHT", "loop");
|
||||
|
||||
/* Test si l'objet est accessible ou non et si n'est pas propriétaire */
|
||||
if ( ($myTree->isSon($tabObject[$i]->node) || $tabObject[$i]->node==$myTree->getId()) && ($tabObject[$i]->getId() != $this->getId() ) )
|
||||
{
|
||||
/* on est bien sur l'arbre propriétaire-> on peut modifier la configuration de l'objet */
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.UPDATE.urlUpdateObject", formatUrl($this->getId(), "AdminObject", "updateObjectAdmin","","&ListNode=".$NodeSelect."&optList=".$optList."&objectId=".$tabObject[$i]->getId()));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.UPDATE.BtnModify", getMessage("BtnModify"));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.DELETE.urlDeleteObject", formatUrl($this->getId(), "AdminObject", "deleteObjectAdmin","","&ListNode=".$NodeSelect."&optList=".$optList."&objectId=".$tabObject[$i]->getId()));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.DELETE.BtnDelete", getMessage("BtnDelete"));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.BtnView", getMessage("BtnView"));
|
||||
}else{
|
||||
/* on est pas sur l'arbre propriétaire-> on ne peut pas modifier la configuration de l'objet */
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxBloc("actionAdminObject.UPDATE", "delete");
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxBloc("actionAdminObject.DELETE", "delete");
|
||||
}
|
||||
/* --Fin test du droit de modif */
|
||||
if ( ($myTree->isSon($tabObject[$i]->node)) || ($tabObject[$i]->node==$myTree->getId()) || ($myTree->isFather($tabObject[$i]->node)) )
|
||||
{
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.PERMISSION.urlRightObject", formatUrl($this->getId(), "AdminObject", "rightAdmin","","&ListNode=".$NodeSelect."&optList=".$optList."&objectId=".$tabObject[$i]->getId()));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.PERMISSION.BtnRight", getMessage("BtnRight"));
|
||||
}else{
|
||||
/* on est pas sur l'arbre propriétaire-> on ne peut pas modifier la configuration de l'objet */
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxBloc("actionAdminObject.PERMISSION", "delete");
|
||||
}
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxBloc("actionAdminObject", "loop");
|
||||
}
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("actionAdminObject.nbRight", count($tabRight));
|
||||
|
||||
/* Test si l'objet est accessible ou non et si n'est pas propriétaire */
|
||||
if ( ($myTree->isSon($tabObject[$i]->node) || $tabObject[$i]->node==$myTree->getId()) && ($tabObject[$i]->getId() != $this->getId() ) )
|
||||
{
|
||||
/* on est bien sur l'arbre propriétaire-> on peut modifier la configuration de l'objet */
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.UPDATE.urlUpdateObject", formatUrl($this->getId(), "AdminObject", "updateObjectAdmin","","&ListNode=".$NodeSelect."&optList=".$optList."&objectId=".$tabObject[$i]->getId()));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.UPDATE.BtnModify", getMessage("BtnModify"));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.DELETE.urlDeleteObject", formatUrl($this->getId(), "AdminObject", "deleteObjectAdmin","","&ListNode=".$NodeSelect."&optList=".$optList."&objectId=".$tabObject[$i]->getId()));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.DELETE.BtnDelete", getMessage("BtnDelete"));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.BtnView", getMessage("BtnView"));
|
||||
}else{
|
||||
/* on est pas sur l'arbre propriétaire-> on ne peut pas modifier la configuration de l'objet */
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxBloc("actionAdminObject.UPDATE", "delete");
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxBloc("actionAdminObject.DELETE", "delete");
|
||||
}
|
||||
/* --Fin test du droit de modif */
|
||||
if ( ($myTree->isSon($tabObject[$i]->node)) || ($tabObject[$i]->node==$myTree->getId()) || ($myTree->isFather($tabObject[$i]->node)) )
|
||||
{
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.PERMISSION.urlRightObject", formatUrl($this->getId(), "AdminObject", "rightAdmin","","&ListNode=".$NodeSelect."&optList=".$optList."&objectId=".$tabObject[$i]->getId()));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("actionAdminObject.PERMISSION.BtnRight", getMessage("BtnRight"));
|
||||
}else{
|
||||
/* on est pas sur l'arbre propriétaire-> on ne peut pas modifier la configuration de l'objet */
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxBloc("actionAdminObject.PERMISSION", "delete");
|
||||
}
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxBloc("actionAdminObject", "loop");
|
||||
}
|
||||
}//Fin While
|
||||
|
||||
if ($cpt_objet==0)
|
||||
@ -446,13 +440,13 @@ Class AdminObject extends CoordinationObj
|
||||
function addObjectAdmin()
|
||||
{
|
||||
$this->autoRegister();
|
||||
|
||||
/* On inclus la template (voir package.template.php) */
|
||||
withBlocPath("adminobject", "addobjectadmin");
|
||||
|
||||
|
||||
/* Ajout du fichier AdminObject.ini */
|
||||
addMessageFile("adminobject.ini");
|
||||
addMessageFile("object.ini");
|
||||
|
||||
/* On inclus la template (voir package.template.php) */
|
||||
withBlocPath("adminobject", "addobjectadmin");
|
||||
|
||||
/* creation des onglets principaux */
|
||||
$this->tabeCreate();
|
||||
@ -508,6 +502,11 @@ Class AdminObject extends CoordinationObj
|
||||
{
|
||||
$this->autoRegister();
|
||||
|
||||
mxPageTitle("createNewObjectAdminTitlePage");
|
||||
|
||||
$arrayRawJs[] = "function imgPicto(){if(document.getElementById){if(document.getElementById(\"configObject\")){document.getElementById(\"pictoObject\").src=\"data/image/icons/object/\"+document.getElementById(\"configObject\").iconeN.options[(document.getElementById(\"configObject\").iconeN.selectedIndex)].value;}}else if(document.all){if(document.all[\"configObject\"]){document.all[\"pictoObject\"].src=\"data/image/icons/object/\"+document.all[\"configObject\"].iconeN.options[(document.all[\"configObject\"].iconeN.selectedIndex)].value;}}}imgPicto();";
|
||||
mxRawJs($arrayRawJs);
|
||||
|
||||
$nodeId=($this->getData("nodeId")!="")?$this->getData("nodeId"):eid();
|
||||
$tabAllowed=(is_array($this->getData("tabAllowed")))?$this->getData("tabAllowed"):$GLOBALS["SYSTEM_REGISTER"]["COORDINATION_OBJ"];
|
||||
$groupId=($this->getData("groupId")!="")?$this->getData("groupId"):1; /* Tous les Groupes par défaut */
|
||||
@ -592,6 +591,9 @@ Class AdminObject extends CoordinationObj
|
||||
function updateObjectAdmin()
|
||||
{
|
||||
$this->autoRegister();
|
||||
|
||||
$arrayRawJs[] = "function imgPicto(){if(document.getElementById){if(document.getElementById(\"configObject\")){document.getElementById(\"pictoObject\").src=\"data/image/icons/object/\"+document.getElementById(\"configObject\").iconeN.options[(document.getElementById(\"configObject\").iconeN.selectedIndex)].value;}}else if(document.all){if(document.all[\"configObject\"]){document.all[\"pictoObject\"].src=\"data/image/icons/object/\"+document.all[\"configObject\"].iconeN.options[(document.all[\"configObject\"].iconeN.selectedIndex)].value;}}}imgPicto();";
|
||||
mxRawJs($arrayRawJs);
|
||||
|
||||
/* Récuperation du radio sélectionné */
|
||||
$optList=(( (isset($_POST["optList"])) && ($_POST["optList"]!="") )?$_POST["optList"]:((isset($_GET["optList"]) && ($_GET["optList"]!=""))?$_GET["optList"]:0));
|
||||
|
Loading…
x
Reference in New Issue
Block a user