Fixed template lcube6 for default admin right delete template of coordination objects
This commit is contained in:
parent
6e2343348c
commit
ef544fec86
@ -1,8 +1,22 @@
|
||||
<div class="tab-content container px-2 py-2 border">
|
||||
<form name="configObject" method="POST" mXattribut="action:urlAction">
|
||||
<div class="tab-content container-fluid px-2 py-2 w-100 border">
|
||||
<form id="configObject" name="configObject" role="form" class="form text-center px-0" method="post" mXattribut="action:urlAction">
|
||||
<input type="hidden" name="urlReturn" mXattribut="value:urlReturn" class="hidden">
|
||||
<div class="card w-100 mb-0">
|
||||
<div class="card-header">
|
||||
<h3><mx:text id="TxtDeleteRight"/><mx:text id="ObjectName"/> (<mx:text id="ObjectType"/>)</h3>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <div class="tab-content container px-2 py-2 border"> -->
|
||||
<!-- <form name="configObject" method="POST" mXattribut="action:urlAction"> -->
|
||||
<div class="fieldset">
|
||||
<div class="legend"><mx:text id="TxtDeleteRight"/><mx:text id="ObjectName"/> (<mx:text id="ObjectType"/>)</div>
|
||||
<input type="hidden" name="urlReturn" mXattribut="value:urlReturn" class="hidden">
|
||||
<!-- <div class="legend"><mx:text id="TxtDeleteRight"/><mx:text id="ObjectName"/> (<mx:text id="ObjectType"/>)</div> -->
|
||||
<!-- <input type="hidden" name="urlReturn" mXattribut="value:urlReturn" class="hidden"> -->
|
||||
<div class="field">
|
||||
<strong><mx:text id="TxtMethodName"/> :</strong>
|
||||
<p><mx:text id="MethodName"/></p>
|
||||
@ -24,5 +38,5 @@
|
||||
<input type="submit" mXattribut="name:BtnYes" mXattribut="value:BtnYes" class="next"/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- </form> -->
|
||||
<!-- </div> -->
|
||||
|
@ -1,55 +1,49 @@
|
||||
<script type="text/javascript">window.parent.document.title = "----------";</script>
|
||||
|
||||
<div class="tabe">
|
||||
<ul>
|
||||
<li id="startTabe" class="WindowTabeData"><a mXattribut="class:ClassTabeView"> </a></li>
|
||||
<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">
|
||||
<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"><a mXattribut="class:ClassTabeView"> </a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<form id="configObject" method="post" mXattribut="action:urlAction">
|
||||
<fieldset class="framebox">
|
||||
<div class="box">
|
||||
<!-- pour les infos courantes de l'interface -->
|
||||
<!-- <div class="legend">
|
||||
<h2><mx:text id="TabeBTabeNameView"/></h2>
|
||||
<p><mx:text id="ObjectName"/> (<mx:text id="ObjectType"/>) <mx:text id="nbRight"/> <mx:text id="TxtNbRight"/></p>
|
||||
</div> -->
|
||||
<div class="tabe">
|
||||
<ul>
|
||||
<li id="startTabe" class="WindowTabeData"><a mXattribut="class:ClassTabeView"> </a></li>
|
||||
<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="TabeB">
|
||||
</ul>
|
||||
<div class="tab-content container-fluid px-2 py-2 w-75 border">
|
||||
<ul class="nav container-fluid nav-tabs border-bottom-0">
|
||||
<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>
|
||||
<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"><a mXattribut="class:ClassTabeView"> </a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="fieldset">
|
||||
<!-- <div class="legend">
|
||||
<mx:text id="deleteObject"/>
|
||||
<mx:text id="ObjectName"/>
|
||||
</div> -->
|
||||
<input type="hidden" name="contentType" mXattribut="value:contentType" class="hidden"/>
|
||||
<input type="hidden" name="objectId" mXattribut="value:objectId" class="hidden"/>
|
||||
<div class="field"><strong><mx:text id="resumeLanguage"/> :</strong>
|
||||
<p><mx:text id="resumeValue" id="resume"/></p>
|
||||
</div>
|
||||
<div class="field"><strong><mx:text id="keyword"/> :</strong>
|
||||
<p><mx:text id="keyWordValue" id="keyword"/></p>
|
||||
</div>
|
||||
<div class="action">
|
||||
<input type="button" name="return" value="<mx:text id="BtnNo"/>" class="back" onclick="javascript:window.location.href='<mx:text id="urlReturn"/>'"/>
|
||||
<input type="submit" name="BtnYes" mXattribut="value:BtnYes" class="next"/>
|
||||
</ul>
|
||||
<div class="tab-content container-fluid px-2 py-2 w-100 border">
|
||||
<form id="configObject" name="configObject" role="form" class="form text-center px-0" method="post" mXattribut="action:urlAction">
|
||||
<input type="hidden" name="contentType" mXattribut="value:contentType" class="hidden"/>
|
||||
<input type="hidden" name="objectId" mXattribut="value:objectId" class="hidden"/>
|
||||
<div class="card w-100 mb-0">
|
||||
<div class="card-header">
|
||||
<h3><mx:text id="deleteObject"/><mx:text id="ObjectName"/></h3>
|
||||
</div>
|
||||
<div class="card-title">
|
||||
<h3>#TODO: Details about tool deletion</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row mb-2">
|
||||
<strong><mx:text id="resumeLanguage"/> :</strong>
|
||||
<div class="input-group col-xs-12 col-sm-8 col-lg-6 p-0 m-0">
|
||||
<mx:text id="resumeValue" id="resume"/>
|
||||
</div>
|
||||
<strong><mx:text id="keyword"/> :</strong>
|
||||
<div class="input-group col-xs-12 col-sm-8 col-lg-6 p-0 m-0">
|
||||
<mx:text id="keyWordValue" id="keyword"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer border-0 bg-white text-center">
|
||||
<input type="button" name="BtnReturn" class="btn btn-outline-secondary btn-lg btn-sm" aria-pressed="true" value="<mx:text id="BtnReturn"/>" onclick="history.back();"/>
|
||||
<input type="submit" name="BtnValid" class="btn btn-outline-secondary btn-lg btn-sm" aria-pressed="true" mXattribut="value:BtnValid"/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
@ -1255,12 +1255,34 @@ Class AdminObject extends CoordinationObj
|
||||
*/
|
||||
function rightDeleteAdmin()
|
||||
{
|
||||
/* On inclus la template (voir package.template.php) */
|
||||
withBlocPath("AdminObject", "rightDeleteAdmin");
|
||||
|
||||
/* Ajout du fichier AdminObject.ini pour les traductions */
|
||||
addMessageFile("adminobject.ini");
|
||||
addMessageFile("object.ini");
|
||||
|
||||
/* gestion du lib en fonction de la langue courante */
|
||||
$currentCode=$GLOBALS["SYSTEM_USER_SESSION"]->langue->getCode();
|
||||
$defaultCode=$GLOBALS["SYSTEM_DEFAULT_LANGUAGE_CODE"];
|
||||
/* -- fin récupération des codes par defaut */
|
||||
|
||||
mxPageTitle("");
|
||||
|
||||
// $arrayCallCss = array();
|
||||
// $arrayCallCss[] = "data/css/dataTables.bootstrap4/1.10.22/dataTables.bootstrap4.min.css";
|
||||
// $arrayCallCss[] = "data/css/bootstrap-toggle/2.2.2/bootstrap-toggle.min.css";
|
||||
// mxCallCss($arrayCallCss);
|
||||
//
|
||||
// $arrayCallJs = array();
|
||||
// $arrayCallJs[] = "data/javascript/jquery.dataTables/1.10.22/jquery.dataTables.min.js";
|
||||
// $arrayCallJs[] = "data/javascript/dataTables.bootstrap4/1.10.22/dataTables.bootstrap4.min.js";
|
||||
// $arrayCallJs[] = "data/javascript/bootstrap-toggle/2.2.2/bootstrap-toggle.min.js";
|
||||
// mxCallJs($arrayCallJs);
|
||||
//
|
||||
// $arrayRawJs[] = "\$(document).ready(function(){\$(\"#tabAdminObject\").dataTable({\"bPaginate\": true,\"sPaginationType\":\"full_numbers\",\"bAutoWidth\": true,\"bSort\": true,\"aaSorting\": [[ 1, \"asc\" ]],\"iDisplayLength\": 10,\"aLengthMenu\": [[5, 10, 25, -1], [5, 10, 25, \"All\"]],\"oLanguage\":{\"sUrl\": \"data/message/".$currentCode."/datatables_adminobject.txt\"}});});";
|
||||
// mxRawJs($arrayRawJs);
|
||||
|
||||
/* On inclus la template (voir package.template.php) */
|
||||
withBlocPath("AdminObject", "rightDeleteAdmin");
|
||||
|
||||
$this->tabeCreate();
|
||||
|
||||
/* Récuperation du radio sélectionné */
|
||||
@ -1295,11 +1317,6 @@ Class AdminObject extends CoordinationObj
|
||||
/* Récupération des objets de la communautée dans SYSTEM_CONTROL */
|
||||
$tabObject =$GLOBALS["SYSTEM_MANAGER"]["COORDINATION_OBJ"]->createInstanceFromNodeIds($arrayOfNodes);
|
||||
|
||||
/* gestion du lib en fonction de la langue courante */
|
||||
$currentCode=$GLOBALS["SYSTEM_USER_SESSION"]->langue->getCode();
|
||||
$defaultCode=$GLOBALS["SYSTEM_DEFAULT_LANGUAGE_CODE"];
|
||||
/* -- fin récupération des codes par defaut */
|
||||
|
||||
// Verification de l'administrabilitée de l'objets
|
||||
$isValid=false;
|
||||
for ($i=0; $i<count($tabObject); $i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user