Fixed issue #71
This commit is contained in:
parent
c42e882ffa
commit
0b3701f9eb
@ -257,13 +257,13 @@
|
||||
<h3><mx:text id="lblTextComResume"/></h3>
|
||||
</div>
|
||||
<div class="card-body text-left">
|
||||
<textarea class="form p-0 m-0" id="contentResumeInfos" name="contentResumeInfos" rows="12"></textarea>
|
||||
<mx:formField id="contentResumeInfos" id="contentResumeInfos"/>
|
||||
</div>
|
||||
<div class="card-header">
|
||||
<h3><mx:text id="lblTextComComplete"/></h3>
|
||||
</div>
|
||||
<div class="card-body text-left">
|
||||
<textarea class="form p-0 m-0" id="contentTextInfos" name="contentTextInfos" rows="12"></textarea>
|
||||
<mx:formField id="contentTextInfos" id="contentTextInfos"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -103,10 +103,14 @@ var $tabForbidden=array("adminentrynode", "admingroup", "adminnode", "home", "ad
|
||||
}
|
||||
@closedir($handle);
|
||||
asort($tabIcone);
|
||||
|
||||
|
||||
# Affichage des champs de formulaire pour l'inscription
|
||||
if(!$tabPOST)
|
||||
{
|
||||
printTabCommProfiles($selected='', $MxBlocName="COMMPROFILES", $name="NodeEntry_type");
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("NodeEntry_typereg", "text", "NodeEntry_typereg","", "class=\"form\"", getMessage("txtNodeTypereg"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("NodeEntry_domain", "text", "NodeEntry_domain","", "class=\"form\" required=\"true\"", getMessage("txtNodeDomain"));
|
||||
|
||||
$titre = array(getMessage("mr"),getMessage("mrs"), getMessage("miss"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxSelect("user_title", "user_title", "", $titre, getMessage("user_title"), "", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("tipSelectTitle"), ENT_QUOTES)."\"");
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_first_name", "text", "user_first_name", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("tipFirstName"), ENT_QUOTES)."\"", getMessage("user_first_name"));
|
||||
@ -127,9 +131,16 @@ var $tabForbidden=array("adminentrynode", "admingroup", "adminnode", "home", "ad
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_jabber", "text", "user_jabber", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("tipJabber"), ENT_QUOTES)."\"", getMessage("user_jabber"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_facebook", "text", "user_facebook", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("tipFacebook"), ENT_QUOTES)."\"", getMessage("user_facebook"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_mastodon", "text", "user_mastodon", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("tipMastodon"), ENT_QUOTES)."\"", getMessage("user_mastodon"));
|
||||
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("contentResumeInfos", "textarea", "contentResumeInfos", "", "class=\"form p-0 m-0\"");
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("contentTextInfos", "textarea", "contentTextInfos", "", "class=\"form p-0 m-0\"");
|
||||
}
|
||||
else // On raffiche les données saisies par l'utilisateur
|
||||
{
|
||||
printTabCommProfiles($selected='', $MxBlocName="COMMPROFILES", $name="NodeEntry_type");
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("NodeEntry_typereg", "text", "NodeEntry_typereg",$_POST['NodeEntry_typereg'], "class=\"form\"", getMessage("txtNodeTypereg"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("NodeEntry_domain", "text", "NodeEntry_domain",$_POST['NodeEntry_domain'], "class=\"form\" required=\"true\"", getMessage("txtNodeDomain"));
|
||||
|
||||
$titre = array(getMessage("mr"),getMessage("mrs"), getMessage("miss"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxSelect("user_title", "user_title", $_POST['user_title'], $titre, getMessage("user_title"), "", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("tipSelectTitle"), ENT_QUOTES)."\"");
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_first_name", "text", "user_first_name", $_POST['user_first_name'], "class=\"form\" title=\"".htmlspecialchars(getMessage("tipFirstName"), ENT_QUOTES)."\"", getMessage("user_first_name"));
|
||||
@ -138,7 +149,7 @@ var $tabForbidden=array("adminentrynode", "admingroup", "adminnode", "home", "ad
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_password", "password", "user_password", "", "class=\"form\" required=\"true\" title=\"".htmlspecialchars(getMessage("tipPassword"), ENT_QUOTES)."\"", getMessage("user_password"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_password2", "password", "user_password2", "", "class=\"form\" required=\"true\" title=\"".htmlspecialchars(getMessage("tipPassword2"), ENT_QUOTES)."\"", getMessage("user_password"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_mail", "text", "user_mail", $_POST['user_mail'], "class=\"form\" required=\"true\" title=\"".htmlspecialchars(getMessage("tipCourriel"), ENT_QUOTES)."\"", getMessage("user_mail"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_birthdate", "text", "user_birthdate", "", "class=\"form\" required=\"true\" title=\"".htmlspecialchars(getMessage("tipBirthDate"), ENT_QUOTES)."\"", getMessage("user_birthdate"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_birthdate", "text", "user_birthdate", $_POST['user_birthdate'], "class=\"form\" required=\"true\" title=\"".htmlspecialchars(getMessage("tipBirthDate"), ENT_QUOTES)."\"", getMessage("user_birthdate"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_postal_code", "text", "user_postal_code", $_POST['user_postal_code'], "class=\"form\" title=\"".htmlspecialchars(getMessage("tipPostalCode"), ENT_QUOTES)."\"", getMessage("user_postal_code"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_postal_address", "text", "user_postal_address", $_POST['user_postal_address'], "class=\"form\" title=\"".htmlspecialchars(getMessage("tipPostalAddress"), ENT_QUOTES)."\"", getMessage("user_postal_address"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_city", "text", "user_city", $_POST['user_city'], "class=\"form\" title=\"".htmlspecialchars(getMessage("tipCity"), ENT_QUOTES)."\"", getMessage("user_city"));
|
||||
@ -150,6 +161,9 @@ var $tabForbidden=array("adminentrynode", "admingroup", "adminnode", "home", "ad
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_jabber", "text", "user_jabber", $_POST['user_jabber'], "class=\"form\" title=\"".htmlspecialchars(getMessage("tipJabber"), ENT_QUOTES)."\"", getMessage("user_jabber"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_facebook", "text", "user_facebook", $_POST['user_facebook'], "class=\"form\" title=\"".htmlspecialchars(getMessage("tipFacebook"), ENT_QUOTES)."\"", getMessage("user_facebook"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("user_mastodon", "text", "user_mastodon", $_POST['user_mastodon'], "class=\"form\" title=\"".htmlspecialchars(getMessage("tipMastodon"), ENT_QUOTES)."\"", getMessage("user_mastodon"));
|
||||
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("contentResumeInfos", "textarea", "contentResumeInfos", $_POST['contentResumeInfos'], "class=\"form p-0 m-0\"");
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("contentTextInfos", "textarea", "contentTextInfos", $_POST['contentTextInfos'], "class=\"form p-0 m-0\"");
|
||||
}
|
||||
|
||||
/* Récupération de toutes les langues actives */
|
||||
@ -187,10 +201,6 @@ var $tabForbidden=array("adminentrynode", "admingroup", "adminnode", "home", "ad
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("txtNodeType", getMessage("txtNodeType"));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("txtNodeTypereg", getMessage("txtNodeTypereg"));
|
||||
$GLOBALS['SYSTEM_TEMPLATE']->MxText("txtNodeDomain", getMessage("txtNodeDomain"));
|
||||
|
||||
printTabCommProfiles($selected='', $MxBlocName="COMMPROFILES", $name="NodeEntry_type");
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("NodeEntry_typereg", "text", "NodeEntry_typereg","", "class=\"form\"", getMessage("txtNodeTypereg"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("NodeEntry_domain", "text", "NodeEntry_domain","", "class=\"form\" required=\"true\"", getMessage("txtNodeDomain"));
|
||||
|
||||
/* pour chaque classe et en fonction de la langue */
|
||||
for ($i=0; $i<count($GLOBALS["SYSTEM_REGISTER"]["COORDINATION_OBJ"]); $i++)
|
||||
@ -268,7 +278,7 @@ function execAdmin()
|
||||
{
|
||||
foreach($_POST as $cle=>$val)
|
||||
{
|
||||
if($val=="" && ($cle !="user_title" && $cle !="user_firt_name" && $cle !="user_last_name" && $cle !="user_postal_code" && $cle !="user_postal_address" && $cle !="user_city" && $cle !="state" && $cle !="NodeEntry_type" && $cle !="NodeEntry_typereg" && $cle !="user_tel" && $cle !="user_fax" && $cle !="user_mastodon" && $cle !="user_jabber" && $cle !="user_facebook" && $cle !="user_msn" && $cle !="user_website" && $cle="contentResumeInfos" && $cle="contentTextInfos"))
|
||||
if($val=="" && ($cle !="user_title" && $cle !="user_first_name" && $cle !="user_last_name" && $cle !="user_postal_code" && $cle !="user_postal_address" && $cle !="user_city" && $cle !="state" && $cle !="NodeEntry_type" && $cle !="NodeEntry_typereg" && $cle !="user_tel" && $cle !="user_fax" && $cle !="user_mastodon" && $cle !="user_jabber" && $cle !="user_facebook" && $cle !="user_msn" && $cle !="user_website" && $cle="contentResumeInfos" && $cle="contentTextInfos" && $cle !="MAX_FILE_SIZE" && $cle !="uploadFileLogo" && $cle !="uploadFileFavicon" && $cle !="uploadFile" && $cle !="files"))
|
||||
{
|
||||
$chaine .= getMessage($cle).", ";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user