/*
* This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
var profils_created=0;
var regs={ "title" : "", "photo":"", "profiles" : [] };
var profiles_list_id=[];
const authorized_profile_id="azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN-_.";
const authorized_profile_label="azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN-_.";
var reg_tmpid;
function check_profil_id(id)
{
var i;
if(id.length<1)
{
alert("Veuillez remplir le champ ID");
return false;
}
for(i=0; i");
o.append($("
"+k+"
"));
o.append($("
"+v+"
"));
o.append($("
"));
o.insertBefore("#input_0_prof_tr");
$('#input_0_prof_id').val("");
$('#input_0_prof_label').val("");
profiles_list_id.push(n);
}
function construct_reglages()
{
//build_form_profils_input().insertBefore("#input_0_profils_list_add")
}
function regs_open(data)
{
var i;
reg_tmpid=0;
for(i=0; i