NxTIC/js/includes/input-html-phone-data-min.js

4 lines
30 KiB
JavaScript
Raw Normal View History

var pContactBuilder=new HTMLBuilder;pContactBuilder.setLayout("<h4 data-icon='o' class='new-contact color2'> \n\t<input type='hidden' data-name='uid' value='@uid'>\n\t<input type='hidden' data-name='call' value='@call'>\n\t<input type='hidden' data-name='sms' value='@sms'>\n\t<input type='hidden' data-name='countcall' value='@countcall'>\n\t<input type='hidden' data-name='countsms' value='@countsms'>\n\t<input type='text' data-name='number' placeholder='Num\u00e9ro de t\u00e9l\u00e9phone' value='@number' > \n\t<span class='select-container nobold'><select data-name='existing'>\n\t\t<option value='.' disabled selected>Contact existant</option>\n@existinglist\t\t<option value='2'>Jean</option>\n\t\t<option value='3'>Blaise</option>\n\t\t<option value='4'>Roger</option>\n\t\t<option value='5'>Marie</option>\n\t\t<option value='6'>Ad\u00e8le</option>\n\t</select></span>\n\tou\n\t<input type='text' data-name='username' placeholder='Pseudo' value='@username' > \n\t<input type='submit' class='primary sub-number' value='Enregistrer'>\n</h4>\n\n");
var pMiniFicheBuilder=new HTMLBuilder;pMiniFicheBuilder.setLayout("<article class='mini-fiche-relation'>\n\t<input type='hidden' data-name='uid' value='@uid'>\n\t<span data-space></span>\n\t<h4 data-icon='a' class='color2'>@name</h4>\n\t<h5 class='nobold color0'>\t\t<input type='checkbox' data-name='unknown' id='unknown_min_p_@uid' value='1'><label for='unknown_min_p_@uid'>Contact inconnu</label>\t</h5>\t<h5 class='nobold color0'>\t\t@countcall appels\t</h5>\t<h5 class='nobold color0'>\t\t@countsms sms\t</h5>\t<h5 class='nobold color0'>\n\t\t<input type='radio' name='sexe_mini_p_@uid' data-name='sexe' id='sexeH_mini_p_@uid' value='0'><label for='sexeH_mini_p_@uid'>Homme</label>\n\t\t&nbsp;&nbsp;&nbsp;<input type='radio' name='sexe_mini_p_@uid' data-name='sexe' id='sexeF_mini_p_@uid' value='1'><label for='sexeF_mini_p_@uid'>Femme</label>\n\t\t&nbsp;&nbsp;&nbsp;<input type='radio' name='sexe_mini_p_@uid' data-name='sexe' id='sexeI_mini_p_@uid' value='2'><label for='sexeI_mini_p_@uid'>Ind\u00e9termin\u00e9</label>\n\t</h5>\n\t<h5 class='nobold color0'>\n\t\t<span class='select-container'><select data-name='age'>\n\t\t\t<option value='.' disabled selected>Age:</option>\n\t\t\t<option value='0' >5 \u00e0 10 ans</option>\n\t\t\t<option value='2' >10 \u00e0 15 ans</option>\n\t\t\t<option value='3' >15 \u00e0 20 ans</option>\n\t\t\t<option value='4' >20 \u00e0 25 ans</option>\n\t\t\t<option value='5' >25 \u00e0 30 ans</option>\n\t\t\t<option value='6' >30 \u00e0 35 ans</option>\n\t\t\t<option value='7' >35 \u00e0 40 ans</option>\n\t\t\t<option value='8' >40 \u00e0 45 ans</option>\n\t\t\t<option value='9' >45 \u00e0 50 ans</option>\n\t\t\t<option value='10'>50 \u00e0 55 ans</option>\n\t\t\t<option value='11'>55 \u00e0 60 ans</option>\n\t\t\t<option value='12'>60 \u00e0 65 ans</option>\n\t\t\t<option value='13'>65 \u00e0 70 ans</option>\n\t\t\t<option value='14'>70 \u00e0 75 ans</option>\n\t\t\t<option value='15'>75 \u00e0 80 ans</option>\n\t\t\t<option value='16'>80 \u00e0 85 ans</option>\n\t\t\t<option value='17'>85 \u00e0 90 ans</option>\n\t\t\t<option value='18'>90 \u00e0 95 ans</option>\n\t\t\t<option value='19'>95 \u00e0 100 ans</option>\n\t\t</select></span>\n\t</h5>\n\t<h5 class='nobold color0'>\n\t\t<span class='select-container'><select data-name='studies'>\n\t\t\t<option value='.' disabled selected>Niveau d'\u00e9tudes maximal:</option>\n\t\t\t<option value='0'>Inconnu</option>\n\t\t\t<option value='1'>< BAC</option>\n\t\t\t<option value='2'>BAC</option>\n\t\t\t<option value='3'>BAC+2</option>\n\t\t\t<option value='4'>BAC+3</option>\n\t\t\t<option value='5'>BAC+5 et plus</option>\n\t\t\t<option value='6'>Dipl\u00f4me d'ing\u00e9nieur, d'une grande \u00e9cole, etc.</option>\n\t\t</select></span>\n\t</h5>\n\t<h4 data-icon='a'>Type de relation</h4>\n\t<h5 class='nobold color0'>\n\t\t&nbsp;&nbsp;&nbsp;<input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype0_mini_p_@uid' value='0'><label for='reltype0_mini_p_@uid'>P\u00e8re, m\u00e8re ou \u00e9quivalent</label><br>\n\t\t&nbsp;&nbsp;&nbsp;<input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype1_mini_p_@uid' value='1'><label for='reltype1_mini_p_@uid'>Fr\u00e8re ou soeur</label><br>\n\t\t&nbsp;&nbsp;&nbsp;<input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype2_mini_p_@uid' value='2'><label for='reltype2_mini_p_@uid'>Autre membre de la famille</label><br>\n\t\t&nbsp;&nbsp;&nbsp;<input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype3_mini_p_@uid' value='3'><label for='reltype3_mini_p_@uid'>Relation amoureuse</label><br>\n\t\t&nbsp;&nbsp;&nbsp;<input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype4_mini_p_@uid' value='4'><label for='reltype4_mini_p_@uid'>Coll\u00e8gue</label><br>\n\t\t&nbsp;&nbsp;&nbsp;<input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype5_mini_p_@uid' value='5'><label for='reltype5_mini_p_@uid'>Voisin</label><br>\n\t\t&nbsp;&nbsp;&nbsp;<input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='
var pFicheBuilder=new HTMLBuilder;pFicheBuilder.setLayout("<article class='fiche-relation'>\n\t<input type='hidden' data-name='contact' value='@contact'>\n\t<input type='hidden' data-name='uid' value='@uid'>\n\t<h4 data-icon='a' class='color2'>@name</h4>\n\t<h5 class='nobold color0'>\t\t@countcall appels\t</h5>\t<h5 class='nobold color0'>\t\t@countsms sms\t</h5>\t<h5 class='nobold color0'>\n\t\t<input type='radio' name='sexe_p_@uid' data-name='sexe' id='sexeH_p_@uid' value='0'><label for='sexeH_p_@uid'>Homme</label>\n\t\t&nbsp;&nbsp;&nbsp;<input type='radio' name='sexe_p_@uid' data-name='sexe' id='sexeF_p_@uid' value='1'><label for='sexeF_p_@uid'>Femme</label>\n\t\t&nbsp;&nbsp;&nbsp;<input type='radio' name='sexe_p_@uid' data-name='sexe' id='sexeI_p_@uid' value='2'><label for='sexeI_p_@uid'>Ind\u00e9termin\u00e9</label>\n\t</h5>\n\t<h5 class='nobold color0'>\n\t\t<span class='select-container'><select data-name='age'>\n\t\t\t<option value='.' disabled selected>Age:</option>\n\t\t\t<option value='0' >5 \u00e0 10 ans</option>\n\t\t\t<option value='1' >10 \u00e0 15 ans</option>\n\t\t\t<option value='2' >15 \u00e0 20 ans</option>\n\t\t\t<option value='3' >20 \u00e0 25 ans</option>\n\t\t\t<option value='4' >25 \u00e0 30 ans</option>\n\t\t\t<option value='5' >30 \u00e0 35 ans</option>\n\t\t\t<option value='6' >35 \u00e0 40 ans</option>\n\t\t\t<option value='7' >40 \u00e0 45 ans</option>\n\t\t\t<option value='8' >45 \u00e0 50 ans</option>\n\t\t\t<option value='9' >50 \u00e0 55 ans</option>\n\t\t\t<option value='10'>55 \u00e0 60 ans</option>\n\t\t\t<option value='11'>60 \u00e0 65 ans</option>\n\t\t\t<option value='12'>65 \u00e0 70 ans</option>\n\t\t\t<option value='13'>70 \u00e0 75 ans</option>\n\t\t\t<option value='14'>75 \u00e0 80 ans</option>\n\t\t\t<option value='15'>80 \u00e0 85 ans</option>\n\t\t\t<option value='16'>85 \u00e0 90 ans</option>\n\t\t\t<option value='17'>90 \u00e0 95 ans</option>\n\t\t\t<option value='18'>95 \u00e0 100 ans</option>\n\t\t</select></span>\n\t</h5>\n\t<h5 class='nobold color0'>\n\t\t<span class='select-container'><select data-name='job'>\n\t\t\t<option value='.' disabled selected>Derni\u00e8re profession exerc\u00e9e:</option>\n\t\t\t<option value='0'>Inconnue</option>\n\t\t\t<option value='.' disabled>Agriculateur exploitants</option>\n\t\t\t\t<option value='10'>Agriculteurs exploitants (Agriculteurs, mara\u00eechers, viticulteurs\u2026)</option>\n\t\t\t<option value='.' disabled>Artisans, commer\u00e7ants et chefs d'entreprises</option>\n\t\t\t\t<option value='21'>Artisans (Ma\u00e7ons, \u00e9lectriciens, couturiers, boulangers, garagistes, coiffeurs\u2026)</option>\n\t\t\t\t<option value='22'>Commer\u00e7ants et assimil\u00e9s (Commer\u00e7ants en d\u00e9tail ou en gros, buralistes, cafetiers, agents immobiliers\u2026)</option>\n\t\t\t\t<option value='23'>Chefs d'entreprise de 10 salari\u00e9s ou plus</option>\n\t\t\t<option value='.' disabled>Cadres et professions intellectuelles sup\u00e9rieures</option>\n\t\t\t\t<option value='31'>Professions lib\u00e9rales et assimil\u00e9s (M\u00e9decins, avocats, notaires, architectes lib\u00e9raux\u2026)</option>\n\t\t\t\t<option value='32'>Cadres de la fonction publique, professions intellectuelles et artistiques (Personnels administratifs</option>\n\t\t\t\t\t<option class='pad' value='32'>de cat\u00e9gorie A, professeurs de l\u2019enseignement secondaire ou sup\u00e9rieur, m\u00e9decins hospitaliers, artistes\u2026)</option>\n\t\t\t\t<option value='36'>Cadres d'entreprise (Cadres administratifs, cadres commerciaux, ing\u00e9nieurs\u2026)</option>\n\t\t\t<option value='.' disabled>Professions Interm\u00e9diaires</option>\n\t\t\t\t<option value='41'>Professions interm\u00e9diaires de l'enseignement, de la sant\u00e9, de la fonction publique et assimil\u00e9s </option>\n\t\t\t\t\t<option class='pad' value='41'>(Personnels administratifs de cat\u00e9gorie B, instituteurs, infirmiers, travailleurs sociaux\u2026)</option>\n\t\t\t\t<option value='46'>Professions interm\u00e9diaires administratives et commerciales des entreprises (Comptable