From a862b66612664c66ccb8ccf4c35589da286a490d Mon Sep 17 00:00:00 2001 From: "tristan.champomier" Date: Wed, 2 Jun 2021 01:32:40 +0200 Subject: [PATCH] Added Steam community profile. Used printTabCommProfiles() in AddCom and AdminNode coordination objects. --- .../qware/object_coordination/adminnode/actionadmin.mxt | 4 ++-- .../qware/object_coordination/adminnode/updateadmin.mxt | 2 +- lib/object_coordination/adminnode/adminnode.php | 6 ++++-- lib/package/package.template.php | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/data/template/qware/object_coordination/adminnode/actionadmin.mxt b/data/template/qware/object_coordination/adminnode/actionadmin.mxt index 367c61f..c7c6bc9 100755 --- a/data/template/qware/object_coordination/adminnode/actionadmin.mxt +++ b/data/template/qware/object_coordination/adminnode/actionadmin.mxt @@ -54,11 +54,11 @@
-
+
- +
diff --git a/data/template/qware/object_coordination/adminnode/updateadmin.mxt b/data/template/qware/object_coordination/adminnode/updateadmin.mxt index dc5f0e8..e2a985e 100755 --- a/data/template/qware/object_coordination/adminnode/updateadmin.mxt +++ b/data/template/qware/object_coordination/adminnode/updateadmin.mxt @@ -87,7 +87,7 @@
- +
diff --git a/lib/object_coordination/adminnode/adminnode.php b/lib/object_coordination/adminnode/adminnode.php index 211991d..c3a28f5 100755 --- a/lib/object_coordination/adminnode/adminnode.php +++ b/lib/object_coordination/adminnode/adminnode.php @@ -172,7 +172,8 @@ Class AdminNode extends CoordinationObj $GLOBALS["SYSTEM_TEMPLATE"]->MxImage("screenTemplate", $GLOBALS['SYSTEM_TEMPLATE_PATH'].$GLOBALS['SYSTEM_TEMPLATE_DIR']."preview.png", getMessage("PreviewTemplate")); $GLOBALS["SYSTEM_TEMPLATE"]->MxImage("pictoObject", $GLOBALS['CONF_DATA_PATH']."data/image/icons/node/defaultnode.png", getMessage("PreviewPicto")); $GLOBALS["SYSTEM_TEMPLATE"]->MxImage("imageCommunity", $imgCommunity); - $GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("ctype", "text", "node_ctype", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeType"), ENT_QUOTES)."\"", getMessage("txtNodeType")); +// $GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("ctype", "text", "node_ctype", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeType"), ENT_QUOTES)."\"", getMessage("txtNodeType")); + printTabCommProfiles($selected='', $MxBlocName="COMMPROFILES", $name="NodeEntry_type"); $GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("ctypereg", "text", "node_ctypereg", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeTypereg"), ENT_QUOTES)."\"", getMessage("txtNodeTypereg")); $GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("domain", "text", "node_domain", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeDomain"), ENT_QUOTES)."\"", getMessage("txtNodeDomain")); /* fin template */ @@ -382,7 +383,8 @@ Class AdminNode extends CoordinationObj $GLOBALS['SYSTEM_TEMPLATE']->MxSelect("ToHidde.template", "template_name", $Node->getTemplate(), $tabTemplate, '', '', 'id="template"', "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeTemplate"), ENT_QUOTES)."\"", getMessage("txtNodeTemplate")); $GLOBALS["SYSTEM_TEMPLATE"]->MxImage("ToHidde.pictoObject", $GLOBALS['CONF_DATA_PATH']."data/image/icons/node/".$nodeIcone, getMessage("PreviewPicto")); $GLOBALS["SYSTEM_TEMPLATE"]->MxImage("ToHidde.screenTemplate", $GLOBALS['SYSTEM_TEMPLATE_PATH'].$GLOBALS['SYSTEM_TEMPLATE_DIR']."preview.png", getMessage("PreviewTemplate")); - $GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("ToHidde.ctype", "text", "node_ctype", htmlentitiesconv($Node->getCType()), "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeType"), ENT_QUOTES)."\"", getMessage("txtNodeType")); +// $GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("ToHidde.ctype", "text", "node_ctype", htmlentitiesconv($Node->getCType()), "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeType"), ENT_QUOTES)."\"", getMessage("txtNodeType")); + printTabCommProfiles($selected=htmlentitiesconv($Node->getCType()), $MxBlocName="ToHidde.COMMPROFILES", $name="node_ctype"); $GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("ToHidde.ctypereg", "text", "node_ctypereg", htmlentitiesconv($Node->getCTypereg()), "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeTypereg"), ENT_QUOTES)."\"", getMessage("txtNodeTypereg")); $GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("ToHidde.domain", "text", "node_domain", htmlentitiesconv($Node->getDomain()), "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeDomain"), ENT_QUOTES)."\"", getMessage("txtNodeDomain")); $GLOBALS['SYSTEM_TEMPLATE']->MxText("ToHidde.node_haspublic_value", ($Node->getHasPublic()!="on")?"":" checked"); diff --git a/lib/package/package.template.php b/lib/package/package.template.php index c8b7218..eb024c7 100755 --- a/lib/package/package.template.php +++ b/lib/package/package.template.php @@ -689,7 +689,7 @@ function printTabUser($tabUser, $selected, $MxBlocName="USER", $name="user_id", function printTabCommProfiles($selected='', $MxBlocName="COMMPROFILES", $name="commprofile_id", $opt='', $default='Profil par défaut', $attr='') { global $SYSTEM_TEMPLATE; - $arrayCommProfiles = array("blog"=>"Blog", "asso"=>"Association", "vitrine"=>"Vitrine", "ecommerce"=>"E-commerce"); + $arrayCommProfiles = array("blog"=>"Blog", "asso"=>"Association", "steam"=>"Steam", "vitrine"=>"Vitrine", "ecommerce"=>"E-commerce"); asort($arrayCommProfiles); // reset($arrayCommProfiles);