4 content[200] =
"Le code doit être unique pour ce formulaire";
6 content[203] =
"Utiliser le % pour indiquer les postes comptables qui en dépendent ex: 70% pour reprendre tous les comptes commençant par 70";
7 content[204] =
"Filtrer en donnant une date, partie de la description ou de la déclaration";
21 if ( $(
'form_list_div') ) $(
'form_list_div').hide();
22 $(
'form_mod_div').innerHTML =
"";
23 $(
'form_mod_div').
show();
24 var querystring =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=mod_form' +
"&f_id=" + f_id;
25 var action =
new Ajax.Request(
29 parameters: querystring,
30 onFailure: error_get_predef,
31 onSuccess:
function(req) {
33 var answer = req.responseText;
34 $(
'form_mod_div').innerHTML = answer;
53 var querystring =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=add_row_definition';
55 var action =
new Ajax.Request(
59 parameters: querystring,
60 onFailure: error_get_predef,
61 onSuccess:
function(req) {
63 var answer = req.responseText;
64 var mytable = g(
"table_formulaire_definition_id").tBodies[0];
65 var nNumberRow = mytable.rows.length;
68 var count = parseFloat(mytable.rows[nNumberRow-1].cells[5].childNodes[1].value)+10;
70 var oRow = mytable.insertRow(nNumberRow);
71 oRow.innerHTML = answer;
72 mytable.rows[nNumberRow].cells[5].childNodes[1].value=count;
73 oRow.cells[1].childNodes[1].focus()
92 var querystring =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=add_param_detail' +
"&p_id=" +
p_id;
94 var action =
new Ajax.Request(
98 parameters: querystring,
99 onFailure: error_get_predef,
100 onSuccess:
function(req) {
101 remove_waiting_box();
102 removeDiv(
'param_detail_div');
103 var nTop = calcy(90);
105 var str_style =
"top:" + nTop +
"px;left:" + nLeft +
";width:70em;height:40em";
107 id:
'param_detail_div',
109 cssclass:
'inner_box',
112 $(
'param_detail_div').innerHTML = req.responseText;
113 req.responseText.evalScripts();
120 alert_box(
"add_param_detail" + e.message);
127 var querystring =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=modify_param_detail' +
"&fp_id=" + fp_id;
129 var action =
new Ajax.Request(
133 parameters: querystring,
134 onFailure: error_get_predef,
135 onSuccess:
function(req) {
136 remove_waiting_box();
137 removeDiv(
'param_detail_div');
138 var nTop = calcy(90);
140 var str_style =
"top:" + nTop +
"px;left:" + nLeft +
";width:70em;height:auto";
142 id:
'param_detail_div',
144 cssclass:
'inner_box',
147 $(
'param_detail_div').innerHTML = req.responseText;
148 req.responseText.evalScripts();
155 alert_box(
"add_param_detail" + e.message);
165 var querystring =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=rapav_search_code' +
"&f_id=" + f_id;
167 var action =
new Ajax.Request(
171 parameters: querystring,
172 onFailure: error_get_predef,
173 onSuccess:
function(req) {
174 remove_waiting_box();
175 removeDiv(
'search_code_div');
176 var nTop = calcy(80);
178 var str_style =
"top:" + nTop +
"px;left:" + nLeft +
";width:50em;height:auto;z-index:4";
180 id:
'search_code_div',
182 cssclass:
'inner_box',
185 $(
'search_code_div').innerHTML = req.responseText;
193 alert_box(
"add_param_detail" + e.message);
203 smoke.confirm(
"Confirmez-vous l'effacement ?",
function (event)
209 var querystring =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=delete_param_detail' +
"&fp_id=" + fp_id;
210 var action =
new Ajax.Request(
214 parameters: querystring,
215 onFailure: error_get_predef,
216 onSuccess:
function(req) {
217 remove_waiting_box();
218 $(
'tr_' + fp_id).
style.textDecoration =
"line-through";
219 $(
'tr_' + fp_id).style.color =
"red";
220 $(
'del_' + fp_id).innerHTML =
"";
221 $(
'mod_' + fp_id).innerHTML =
"";
247 if ($(
'form_definition_frm') )
249 var param=$(
'form_definition_frm').serialize(
true);
250 param[
'act']=
'save_definition';
251 param[
'gDossier']=dossier;
253 param[
'plugin_code']=plugin_code;
255 new Ajax.Request(
'ajax.php',
264 if ( $(
'form_list_div') ) $(
'form_list_div').hide();
265 $(
'form_mod_div').innerHTML =
"";
266 $(
'form_mod_div').
show();
267 var querystring =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=mod_param' +
"&f_id=" + f_id;
268 var action =
new Ajax.Request(
272 parameters: querystring,
273 onFailure: error_get_predef,
274 onSuccess:
function(req) {
275 remove_waiting_box();
276 var answer = req.responseText;
277 $(
'form_mod_div').innerHTML = answer;
285 alert_box(e.message);
295 var div = [
'new_account_tva_id',
'new_formula_id',
'new_compute_id',
'new_account_id',
'new_reconcile_id'];
296 for (var r = 0; r < div.length; r++) {
298 $(div[r] +
'_bt').
style.backgroundColor =
"inherit";
302 $(p_toshow +
'_bt').
style.backgroundColor =
"red";
305 alert_box(e.message);
316 var div = [
'new_formula_id',
'new_compute_id',
'new_account_id',
'new_attribute_id'];
317 for (var r = 0; r < div.length; r++) {
319 $(div[r] +
'_bt').
style.backgroundColor =
"inherit";
323 $(p_toshow +
'_bt').
style.backgroundColor =
"red";
326 alert_box(e.message);
337 var qs = $(p_form_id).serialize() +
'&act=save_param_detail';
338 var child=$(p_form_id)[
'child'];
340 var action =
new Ajax.Request(
345 onFailure: error_get_predef,
346 onSuccess:
function infodiv(req, json) {
348 remove_waiting_box();
349 var answer = req.responseXML;
350 var acode = answer.getElementsByTagName(
'code');
351 var ap_id = answer.getElementsByTagName(
'p_id');
352 var html = answer.getElementsByTagName(
'html');
354 if (acode.length == 0) {
355 var rec = req.responseText;
356 alert_box(
'erreur :' + rec);
358 var code = acode[0].firstChild.nodeValue;
359 var code_xml = getNodeText(html[0]);
360 var code_html = unescape_xml(code_xml);
363 var afpid = answer.getElementsByTagName(
'fp_id');
364 var fp_id = afpid[0].firstChild.nodeValue;
365 var
p_id = ap_id[0].firstChild.nodeValue;
366 var update = $(
'tr_' + fp_id);
367 if (update == undefined)
370 var mytable = g(
"table_" + p_id).tBodies[0];
371 var nNumberRow = mytable.rows.length;
372 var oRow = mytable.insertRow(nNumberRow);
373 oRow.id =
"tr_" + fp_id;
374 oRow.innerHTML = code_html;
376 $(update).innerHTML = code_html;
378 removeDiv(
'param_detail_div');
380 $(
'add_row'+
p_id).hide();
386 $(
'param_detail_info_div').innerHTML = code_html;
390 alert_box(
"save_param_detail " + e.message);
393 code_html.evalScripts();
396 alert_box(
"save_param_detail Impossible executer script de la reponse\n" + e.message);
405 alert_box(e.message);
415 $(
'declaration_list_div').hide();
416 $(
'declaration_display_div').innerHTML =
"";
417 $(
'declaration_display_div').
show();
418 var querystring =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=rapav_declaration_display' +
"&d_id=" +
d_id;
419 var action =
new Ajax.Request(
423 parameters: querystring,
424 onFailure: error_get_predef,
425 onSuccess:
function(req) {
426 remove_waiting_box();
427 var answer = req.responseText;
428 $(
'declaration_display_div').innerHTML = answer;
436 alert_box(e.message);
444 'Confirmez-vous l\'effacement ?',
448 var querystring =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=rapav_declaration_delete' +
"&d_id=" +
d_id;
449 var action =
new Ajax.Request(
453 parameters: querystring,
454 onFailure: error_get_predef,
455 onSuccess:
function(req) {
456 remove_waiting_box();
457 $(
'tr_' +
d_id).
style.textDecoration =
"line-through";
458 $(
'tr_' + d_id).style.color =
"red";
459 $(
'del_' +
d_id).innerHTML =
"";
460 $(
'mod_' +
d_id).innerHTML =
"";
469 alert_box(e.message);
483 var querystring =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=rapav_form_export' +
"&d_id=" +
d_id;
484 var action =
new Ajax.Request(
488 parameters: querystring,
489 onFailure: error_get_predef,
496 alert_box(e.message);
514 smoke.confirm(
"Confirmez-vous l'effacement de ce modèle ?",
518 var querystring =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=rapav_remove_doc_template' +
"&f_id=" + f_id;
519 var action =
new Ajax.Request(
523 parameters: querystring,
524 onFailure: error_get_predef,
525 onSuccess:
function () {
526 $(
'rapav_template').
style.textDecoration =
'line-through';
527 $(
'rapav_template').style.color =
'red';
528 $(
'rapav_template_ctl').innerHTML =
'';
529 $(
'rapav_new_file').
style.display =
'block';
536 alert_box(e.message);
553 var querystring =
'plugin_code=' + json.pc +
'&ac=' + json.ac +
'&gDossier=' + json.gDossier +
'&act=listing_modify' +
"&cin=" + json.cin +
'&cout=' + json.cout +
'&id=' + json.id;
555 var action =
new Ajax.Request(
559 parameters: querystring,
560 onFailure: error_get_predef,
561 onSuccess:
function(req) {
563 var answer = req.responseXML;
564 var a = answer.getElementsByTagName(
'ctl');
565 var html = answer.getElementsByTagName(
'code');
567 var rec = req.responseText;
568 throw 'cannot find ctl element';
570 remove_waiting_box();
571 var code_html = getNodeText(html[0]);
572 code_html = unescape_xml(code_html);
573 var position = fixed_position(35, 217)+
";width:auto";
574 add_div({
'id': json.cout,
'cssclass':
'inner_box',
'drag': 1,
'style': position});
575 $(json.cout).innerHTML = code_html;
577 alert_box(e.message);
585 alert_box(e.message);
596 var str = $(form_id)[
'name'].
value;
597 if (str.trim() ==
'') {
598 error_message(
'Le nom est obligatoire');
614 if ( ! confirm(
'Effacer ? ') ) {
return; }
616 var querystring =
'plugin_code=' + json.pc +
'&ac=' + json.ac +
'&gDossier=' + json.gDossier +
'&act=listing_remove_modele' +
"&cin=" + json.cin +
'&cout=' + json.cout +
'&id=' + json.id;
618 var action =
new Ajax.Request(
622 parameters: querystring,
623 onFailure: error_get_predef,
624 onSuccess:
function(req) {
626 var answer = req.responseXML;
627 var a = answer.getElementsByTagName(
'ctl');
628 var html = answer.getElementsByTagName(
'code');
630 var rec = req.responseText;
631 throw 'cannot find ctl element';
633 remove_waiting_box();
634 var code_html = getNodeText(html[0]);
635 code_html = unescape_xml(code_html);
636 $(json.cout).innerHTML = code_html;
638 alert_box(e.message);
646 alert_box(e.message);
665 var querystring =
'plugin_code=' + json.pc +
'&ac=' + json.ac +
'&gDossier=' + json.gDossier +
'&act=listing_display_definition' +
"&cin=" + json.cin +
'&cout=' + json.cout +
'&id=' + json.id;
667 var action =
new Ajax.Request(
671 parameters: querystring,
672 onFailure: error_get_predef,
673 onSuccess:
function(req) {
675 var answer = req.responseXML;
676 var a = answer.getElementsByTagName(
'ctl');
677 var html = answer.getElementsByTagName(
'code');
679 var rec = req.responseText;
680 throw 'cannot find ctl element';
682 remove_waiting_box();
683 var code_html = getNodeText(html[0]);
684 code_html = unescape_xml(code_html);
685 $(json.cout).innerHTML = code_html;
686 code_html.evalScripts();
688 alert_box(e.message);
696 alert_box(e.message);
703 var querystring =
'plugin_code=' + json.pc +
'&ac=' + json.ac +
'&gDossier=' + json.gDossier +
'&act=listing_detail_modify' +
"&cin=" + json.cin +
'&id=' + json.id;
705 var action =
new Ajax.Request(
709 parameters: querystring,
710 onFailure: error_get_predef,
711 onSuccess:
function(req) {
713 var answer = req.responseXML;
714 var a = answer.getElementsByTagName(
'ctl');
715 var html = answer.getElementsByTagName(
'code');
717 var rec = req.responseText;
718 throw 'cannot find ctl element';
720 remove_waiting_box();
721 var code_html = getNodeText(html[0]);
722 code_html = unescape_xml(code_html);
723 var position = fixed_position(451, 217) +
';width:50%';
724 add_div({
'id': json.cin,
'cssclass':
'inner_box',
'drag': 1,
'style': position});
725 $(json.cin).innerHTML = code_html;
728 alert_box(e.message);
730 code_html.evalScripts();
737 alert_box(e.message);
754 var querystring =
'plugin_code=' + json.pc +
'&ac=' + json.ac +
'&gDossier=' + json.gDossier +
'&act=listing_detail_add' +
"&cin=" + json.cin +
'&id=' + json.id;
756 var action =
new Ajax.Request(
760 parameters: querystring,
761 onFailure: error_get_predef,
762 onSuccess:
function(req) {
764 var answer = req.responseXML;
765 var a = answer.getElementsByTagName(
'ctl');
766 var html = answer.getElementsByTagName(
'code');
768 var rec = req.responseText;
769 throw 'cannot find ctl element';
771 remove_waiting_box();
772 var code_html = getNodeText(html[0]);
773 code_html = unescape_xml(code_html);
774 var position = fixed_position(244, 217) +
';width:60%;height:490px';
775 add_div({
'id': json.cin,
'cssclass':
'inner_box',
'drag': 1,
'style': position});
776 $(json.cin).innerHTML = code_html;
777 code_html.evalScripts();
780 alert_box(e.message);
788 alert_box(e.message);
801 if ($(
'code_id').
value.trim() ==
'') {
802 $(
'code_id').
style.border =
"solid 2px red";
803 $(
'code_id_span').innerHTML =
' Code ne peut pas être vide';
808 var qs = $(p_form_id).serialize() +
'&act=save_param_listing&' + $(
'common_frm').serialize();
810 var action =
new Ajax.Request(
815 onFailure: error_get_predef,
816 onSuccess:
function(req, json) {
818 remove_waiting_box();
819 var answer = req.responseXML;
820 var acode = answer.getElementsByTagName(
'code');
821 var ap_id = answer.getElementsByTagName(
'l_id');
822 var html = answer.getElementsByTagName(
'html');
824 if (acode.length == 0) {
825 var rec = req.responseText;
826 alert_box(
'erreur :' + rec);
828 var code = acode[0].firstChild.nodeValue;
829 var code_xml = getNodeText(html[0]);
830 var code_html = unescape_xml(code_xml);
833 var afpid = answer.getElementsByTagName(
'lp_id');
834 var fp_id = afpid[0].firstChild.nodeValue;
835 var
p_id = ap_id[0].firstChild.nodeValue;
836 var update = $(
'tr_' + fp_id);
837 if (update == undefined)
840 var mytable = g(
"definition_tb_id").tBodies[0];
841 var nNumberRow = mytable.rows.length;
842 var oRow = mytable.insertRow(nNumberRow);
843 oRow.id =
"tr_" + fp_id;
844 oRow.innerHTML = code_html;
847 update.innerHTML = code_html;
849 removeDiv(
'listing_param_input_div_id');
855 $(
'info_listing_param_input_div_id').innerHTML = code_html;
859 alert_box(
"save_param_detail " + e.message);
863 code_html.evalScripts();
866 alert_box(
"save_param_detail Impossible executer script de la reponse\n" + e.message);
875 alert_box(e.message);
883 smoke.confirm(
'Confirmez-vous effacer ce détail ?',
function (event) {
886 var query =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=listing_detail_remove' +
"&id=" +
id;
888 var action =
new Ajax.Request(
893 onFailure: error_get_predef,
894 onSuccess:
function(req, json) {
896 remove_waiting_box();
897 var answer = req.responseXML;
898 var acode = answer.getElementsByTagName(
'code');
899 var lp_id = answer.getElementsByTagName(
'lp_id');
901 if (acode.length == 0) {
902 var rec = req.responseText;
903 alert_box(
'erreur :' + rec);
905 var code = acode[0].firstChild.nodeValue;
909 var row = $(
'tr_' +
id);
910 row.style.color =
"red";
911 row.style.textDecoration =
'line-through';
912 row.cells[row.cells.length - 1].innerHTML =
"";
913 row.cells[row.cells.length - 2].innerHTML =
"";
919 alert_box(
'effacement non possible');
923 alert_box(
"callback : listing_detail_remove " + e.message);
931 alert_box(e.message);
945 var querystring =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=listing_search_code' +
"&f_id=" + f_id;
947 var action =
new Ajax.Request(
951 parameters: querystring,
952 onFailure: error_get_predef,
953 onSuccess:
function(req) {
954 remove_waiting_box();
955 removeDiv(
'search_code_div');
956 var nTop = calcy(80);
958 var str_style =
"top:" + nTop +
"px;left:" + nLeft +
";width:50em;height:auto;z-index:4";
960 id:
'search_code_div',
962 cssclass:
'inner_box',
965 $(
'search_code_div').innerHTML = req.responseText;
972 alert_box(
"listing_search_code" + e.message);
979 $(
'declaration_list_div').hide();
980 $(
'declaration_display_div').innerHTML =
"";
981 $(
'declaration_display_div').
show();
983 var querystring =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=rapav_listing_display' +
"&d_id=" +
d_id;
984 var action =
new Ajax.Request(
988 parameters: querystring,
989 onFailure: error_get_predef,
990 onSuccess:
function(req) {
991 remove_waiting_box();
992 var answer = req.responseText;
993 $(
'declaration_display_div').innerHTML = answer;
1001 alert_box(e.message);
1008 if (confirm(
'Confirmez-vous l\'effacement ?') ==
false) {
1012 var querystring =
'plugin_code=' + plugin_code +
'&ac=' + ac +
'&gDossier=' + dossier +
'&act=rapav_listing_delete' +
"&d_id=" +
d_id;
1013 var action =
new Ajax.Request(
1017 parameters: querystring,
1018 onFailure: error_get_predef,
1019 onSuccess:
function(req) {
1020 remove_waiting_box();
1021 $(
'tr_' +
d_id).
style.textDecoration =
"line-through";
1022 $(
'tr_' + d_id).style.color =
"red";
1023 $(
'del_' +
d_id).innerHTML =
"";
1024 $(
'mod_' +
d_id).innerHTML =
"";
1031 alert_box(e.message);
1038 var qs = $(
'parameter_send_mail_frm').serialize(
false);
1040 var action =
new Ajax.Request(
1045 onFailure: ajax_misc_failure,
1046 onSuccess:
function(req) {
1047 var answer = req.responseXML;
1048 var a = answer.getElementsByTagName(
'ctl');
1049 var html = answer.getElementsByTagName(
'code');
1050 if (a.length == 0) {
1051 var rec = req.responseText;
1052 throw 'cannot find ctl element';
1054 remove_waiting_box();
1055 var code_html = getNodeText(html[0]);
1056 code_html = unescape_xml(code_html);
1057 var position = fixed_position(451, 217) +
';width:50%';
1058 add_div({
'id':
'parameter_send_mail_input',
'cssclass':
'inner_box',
'drag': 1,
'style': position});
1059 $(
'parameter_send_mail_input').innerHTML = code_html;
1060 remove_waiting_box();
1067 alert_box(e.message);
1074 if (trim($(
'p_from').
value) ==
"") {
1075 alert_box(
'champs obligatoire manquant');
1076 $(
'p_from').
style.border =
"solid 2px red";
1079 if (trim($(
'p_subject').
value) ==
"") {
1080 alert_box(
'champs obligatoire manquant');
1081 $(
'p_subject').
style.border =
"solid 2px red";
1084 if (trim($(
'p_attach').
value) ==
"") {
1085 alert_box(
'champs obligatoire manquant');
1086 $(
'p_attach').
style.border =
"solid 2px red";
1090 var qs = $(
'parameter_send_email_input_frm').serialize(
false);
1092 var action =
new Ajax.Request(
1097 onFailure: ajax_misc_failure,
1098 onSuccess:
function(req) {
1099 var answer = req.responseXML;
1100 var a = answer.getElementsByTagName(
'ctl');
1101 var html = answer.getElementsByTagName(
'code');
1102 if (a.length == 0) {
1103 var rec = req.responseText;
1104 throw 'cannot find ctl element';
1106 remove_waiting_box();
1107 var code_html = getNodeText(html[0]);
1108 code_html = unescape_xml(code_html);
1109 var position = fixed_position(451, 217) +
';width:50%';
1110 add_div({
'id':
'parameter_send_mail_result',
'cssclass':
'inner_box',
'drag': 1,
'style': position});
1111 remove_waiting_box();
1112 $(
'parameter_send_mail_result').innerHTML = code_html;
1113 removeDiv(
'parameter_send_mail_input');
1120 alert_box(e.message);
1128 var qs = $(
'include_follow_frm').serialize(
false);
1130 var action =
new Ajax.Request(
1135 onFailure: ajax_misc_failure,
1136 onSuccess:
function(req) {
1137 var answer = req.responseXML;
1138 var a = answer.getElementsByTagName(
'ctl');
1139 var html = answer.getElementsByTagName(
'code');
1140 if (a.length == 0) {
1141 var rec = req.responseText;
1142 throw 'cannot find ctl element';
1144 remove_waiting_box();
1145 var code_html = getNodeText(html[0]);
1146 code_html = unescape_xml(code_html);
1147 var position = fixed_position(451, 217) +
';width:50%';
1148 add_div({
'id':
'include_follow_result',
'cssclass':
'inner_box',
'drag': 1,
'style': position});
1149 $(
'include_follow_result').innerHTML = code_html;
1150 remove_waiting_box();
1157 alert_box(e.message);
1165 var qs = $(
'include_follow_save_frm').serialize(
false);
1167 var action =
new Ajax.Request(
1172 onFailure: ajax_misc_failure,
1173 onSuccess:
function(req) {
1174 var answer = req.responseXML;
1175 var a = answer.getElementsByTagName(
'ctl');
1176 var html = answer.getElementsByTagName(
'code');
1177 if (a.length == 0) {
1178 var rec = req.responseText;
1179 throw 'cannot find ctl element';
1181 remove_waiting_box();
1182 var code_html = getNodeText(html[0]);
1183 code_html = unescape_xml(code_html);
1184 var position = fixed_position(451, 217) +
';width:50%';
1185 add_div({
'id':
'include_follow_save_result',
'cssclass':
'inner_box',
'drag': 1,
'style': position});
1186 remove_waiting_box();
1187 $(
'include_follow_save_result').innerHTML = code_html;
1188 removeDiv(
'include_follow_result');
1195 alert_box(e.message);
1206 var obj={
'gDossier':dossier
1207 ,
'plugin_code':plugin_code
1210 ,
'act':
'modify_listing_description'
1211 ,
'comment':$(
'description').
value
1214 new Ajax.Request(
'ajax.php',{
1217 onSuccess:
function ()
1219 remove_waiting_box();
1230 var obj={
'gDossier':dossier
1231 ,
'plugin_code':plugin_code
1234 ,
'act':
'modify_rapav_description'
1235 ,
'comment':$(
'description').
value
1238 new Ajax.Request(
'ajax.php',{
1241 onSuccess:
function ()
1243 remove_waiting_box();
1260 var param = {
'gDossier':dossier,
'plugin_code':plugin_code,
'act':
'listing_condition_input',
'l_id':l_id,
'lc_id':lc_id};
1261 new Ajax.Request(
'ajax.php',
1265 onSuccess:
function(req) {
1266 var answer = req.responseText;
1267 var position = fixed_position(451, 217) +
';width:50%';
1268 add_div({
'id':
'listing_condition_add',
'cssclass':
'inner_box',
'drag': 1,
'style': position});
1269 remove_waiting_box();
1270 $(
'listing_condition_add').innerHTML = answer;
1283 var param=$(
'listing_condition_input_frm').serialize(
true);
1284 param[
'act']=
"listing_condition_save";
1285 var dossier=$(
'listing_condition_input_frm')[
'gDossier'];
1286 var plugin_code=$(
'listing_condition_input_frm')[
'plugin_code'];
1287 var ac=$(
'listing_condition_input_frm')[
'ac'];
1288 var l_id=$(
'listing_condition_input_frm')[
'l_id'];
1290 new Ajax.Request(
'ajax.php',{
1293 onSuccess:
function(req) {
1295 removeDiv(
'listing_condition_add');
1296 generation_fill_condition();
1297 remove_waiting_box();
1299 smoke.alert(e.getMessage);
1313 smoke.confirm(
'Confirmez ?',
function (e) {
1316 new Ajax.Request(
'ajax.php',
1319 parameters:{
'gDossier':dossier,
'ac':ac,
'plugin_code':plugin_code,
'lc_id':lc_id,
'act':
"listing_condition_remove"},
1320 onSuccess:
function(){
1321 generation_fill_condition();
1322 remove_waiting_box();
function rapav_search_code(ac, plugin_code, dossier, f_id)
display a popup and let you select an existing code
function rapav_listing_display(plugin_code, ac, dossier, d_id)
function listing_condition_save()
From Declaration screen , save the new condition.
function save_param_listing(p_form_id)
sauve les données pour nouvelle formule, code,...
function save_param_detail(p_form_id)
sauve les données pour nouvelle formule, code,...
function js_include_follow_save()
function rapav_form_export(plugin_code, ac, dossier, d_id)
export of a form
function show_rapport_formula(p_toshow)
montre le div contenant le type de formule pour les rapports
function rapav_declaration_delete(plugin_code, ac, dossier, d_id)
function listing_search_code(ac, plugin_code, dossier, f_id)
display a popup and let you select an existing code
function delete_param_detail(plugin_code, ac, dossier, fp_id, p_id, child)
delete a parameter detail
function rapav_listing_delete(plugin_code, ac, dossier, d_id)
function listing_definition(json)
Show the definition of a list in a div.
function modify_rapav_description(plugin_code, ac, dossier, d_id)
save the description of a listing
function modify_param_detail(plugin_code, ac, dossier, fp_id)
function listing_detail_remove(dossier, plugin_code, ac, id)
function rapav_declaration_display(plugin_code, ac, dossier, d_id)
function listing_condition_remove(plugin_code, ac, dossier, lc_id, l_id)
function listing_detail_modify(json)
function listing_detail_add(json)
display a form for adding a parameter to the current listing
function rapav_form_def(plugin_code, ac, dossier, f_id)
show the definition of a form and let it modify it
function show_listing_formula(p_toshow)
montre le div contenant le type de formule pour les listings
function add_row_definition(plugin_code, ac, dossier)
Add a row to the table in formulaire_definition table id = table_formulaire_definition_id.
function js_include_follow()
function check_listing_add(form_id)
Check that the name is not empty before saving a new listing.
function listing_condition_input(plugin_code, ac, dossier, l_id, lc_id)
Display a dialog box to enter a new condition for listing.
function listing_modify(json)
Receive a json object and display a window to add a new listing.
function listing_remove_modele(json)
Remove a document from listing.
function modify_listing_description(plugin_code, ac, dossier, d_id)
save the description of a listing
function rapav_form_param(plugin_code, ac, dossier, f_id)
montre les détails d'un formulaire
function parameter_send_mail()
function rapav_remove_doc_template(plugin_code, ac, dossier, f_id)
Remove a template.
function add_param_detail(plugin_code, ac, dossier, p_id)
Add a row to the table in formulaire_parametre table id = table p_id.