nicolas2 577
| Posté : 29-03-2020 18:49
et pour le bug du sélecteur
Function Add_Body() {
global $hlpfile, $f_meta_nom, $f_titre,  ;$adminimg;
!include! ("header.php");
GraphicAdmin($hlpfile);
adminhead($f_meta_nom, $f_titre, $adminimg);
echo '
<hr />
<h3 class="mb-2">'.adm_translate("Corps de& nbsp;message").'</h3>
<form id="lnlbody" action="admin.php" met hod="post" name="adminForm">
<fieldset>
<div class="for m-group row">
<l abel class="col-form-label col-sm-4" for="html">'.adm_transla te("Format de données").'</label>
<d iv class="col-sm-8">
  ; <input class="form-control" id="html" type="numb er" min="0" max="1" step="1" value="1" name="html"&nbs p;required="required" />
  ; <span class="help-block"> <code>html</cod e> ==> [1] / <code>text</code>  ;==> [0]</span>
</ div>
</div>
<div class="for m-group row">
<l abel class="col-form-label col-sm-12" for="xtext">'.adm_trans late("Texte").'</label>
<d iv class="col-sm-12">
  ; <textarea class="tin form-control" id="xtext"&nb sp;rows="30" name="xtext" ></textarea>
</ div>
</div>';
global $tiny_mce_relurl;
$tiny_mce_relurl="false";
echo aff_editeur("xtext", "false");
echo '
<div class="for m-group row">
<i nput type="hidden" name="op" value="lnl_Add_Body_Submit" /& gt;
<b utton class="btn btn-primary col-sm-12 col-md-6" type= "submit"><i class="fa fa-plus-square fa-lg"></i>& amp;nbsp;'.adm_translate("Ajouter").' '.adm_translate("corps de message").'</button>
<a href="admin.php?op=lnl" class="btn btn-secondary col-sm-12 col-md-6">'.adm_translate("Retour en arrière").'</a>
< br /> </div>
</fieldset>
</form>';
$fv_parametres='
html: {
validators: {
regexp: {
regex p:/[0-1]$/,
messa ge: "0 | 1"
}
}
},
';
$arg1='
var formulid = ["lnlbody"];
';
adminfoot('fv',$fv_parametres,$arg1,'');
}
par
Function Add_Body() {
global $hlpfile, $f_meta_nom, $f_titre,  ;$adminimg;
!include! ("header.php");
GraphicAdmin($hlpfile);
adminhead($f_meta_nom, $f_titre, $adminimg);
echo '
<hr />
<h3 class="mb-2">'.adm_translate("Corps de& nbsp;message").'</h3>
<form id="lnlbody" action="admin.php" met hod="post" name="adminForm">
<fieldset>
<div class="for m-group">
<l abel class="col-form-label" for="html">'.adm_translate("Format&nbs p;de données").'</label>
<d iv>
  ; <input class="form-control" id="html" type="numb er" min="0" max="1" value="1" name="html" required="re quired" />
  ; <span class="help-block"> <code>html</cod e> ==> [1] / <code>text</code>  ;==> [0]</span>
</ div>
</div>
<div class="for m-group">
<l abel class="col-form-label" for="xtext">'.adm_translate("Texte").' </label>
<d iv>
  ; <textarea class="tin form-control" id="xtext"&nb sp;rows="30" name="xtext" ></textarea>
</ div>
</div>';
global $tiny_mce_relurl;
$tiny_mce_relurl="false";
echo aff_editeur("xtext", "false");
echo '
<div class="for m-group">
<i nput type="hidden" name="op" value="lnl_Add_Body_Submit" /& gt;
<b utton class="btn btn-primary" type="submit"><i class= "fa fa-plus-square fa-lg"></i> '.adm_translate("Ajo uter").' '.adm_translate("corps de message").'</button>
<a href="admin.php?op=lnl" class="btn btn-secondary">'.adm_tran slate("Retour en arrière").'</a>
</div>
</fieldset>
</form>';
$fv_parametres='
html: {
validators: {
regexp: {
regex p:/[0-1]$/,
messa ge: "0 | 1"
}
}
},
';
$arg1='
var formulid = ["lnlbody"];
';
adminfoot('fv',$fv_parametres,$arg1,'');
}
et la le sélecteur Format de données marche |