Go to the source code of this file.
function error_show_declaration |
( |
| ) |
|
function record_writing |
( |
|
plugin, |
|
|
|
dossier, |
|
|
|
p_id |
|
) |
| |
Definition at line 35 of file js_scripts.js.
References p_id, style, and success_record_writing().
37 query=
'gDossier='+dossier+
'&plugin_code='+plugin+
'&act=rw&p_id='+
p_id;
40 show_box({
id:
'record_write',html:loading(),cssclass:
'inner_box',
style:
'position:absolute;top:0;left:0%;margin-top:10%;height:80%;margin-left:10%;width:80%;',js_error:null,js_success:
success_record_writing,qs:query,fixed:1,callback:
'ajax.php'});
function success_record_writing(req)
function remove_form |
( |
|
plugin, |
|
|
|
dossier, |
|
|
|
p_id, |
|
|
|
type |
|
) |
| |
Definition at line 42 of file js_scripts.js.
References p_id, and style.
44 query=
'gDossier='+dossier+
'&plugin_code='+plugin+
'&act=rm_form&p_id='+
p_id+
"&type="+type;
47 show_box({
id:
'remove_form',html:loading(),cssclass:
'inner_box',
style:
'position:absolute;top:0;left:20%;margin-top:10%;',js_error:null,js_success:success_box,qs:query,callback:
'ajax.php'});
function save_write |
( |
|
obj | ) |
|
Definition at line 69 of file js_scripts.js.
References success_save_write().
70 var query=
"act=sw&"+$(obj).serialize();
71 var action=
new Ajax.Request (
'ajax.php',
function success_save_write(req)
function show_addparam |
( |
|
pcode, |
|
|
|
plugin_code, |
|
|
|
dossier, |
|
|
|
tab |
|
) |
| |
Definition at line 100 of file js_scripts.js.
References success_showaddparam().
104 var action=
new Ajax.Request (
'ajax.php',
107 parameters:
"act=add_param&pcode="+pcode+
"&gDossier="+dossier+
"&plugin_code="+plugin_code+
'&tab='+tab,
112 alert_box(e.message);
function success_showaddparam(req)
function show_declaration |
( |
|
p_type, |
|
|
|
p_id |
|
) |
| |
Definition at line 2 of file js_scripts.js.
References error_show_declaration(), p_id, show(), success_show_declaration(), and value.
4 $(
'detail').innerHTML=
'<image src="image/loading.gif" border="0" alt="Chargement...">';
7 var gDossier=$(
'gDossier').
value;var code=$(
'plugin_code').
value;
8 var queryString=
'act=dsp_decl&gDossier='+gDossier+
'&plugin_code='+code;
9 queryString+=
'&type='+p_type+
'&id='+
p_id;
10 var action=
new Ajax.Request (
'ajax.php',
13 parameters:queryString,
18 }
catch(e) {alert_box(
'show_declaration '+e.message);}
function error_show_declaration()
function success_show_declaration(answer)
function success_record_writing |
( |
|
req | ) |
|
Definition at line 50 of file js_scripts.js.
Referenced by record_writing().
52 var answer=req.responseXML;
53 var a=answer.getElementsByTagName(
'ctl');
54 var html=answer.getElementsByTagName(
'code');
55 if ( a.length == 0 ) {var rec=req.responseText;alert_box (
'erreur :'+rec);}
56 var name_ctl=a[0].firstChild.nodeValue;
57 var code_html=getNodeText(html[0]);
59 code_html=unescape_xml(code_html);
60 g(name_ctl).innerHTML=code_html;
63 alert_box(
"success_box"+e.message);}
65 code_html.evalScripts();}
67 alert_box(
"answer_box Impossible executer script de la reponse\n"+e.message);}
function success_save_write |
( |
|
req | ) |
|
Definition at line 80 of file js_scripts.js.
Referenced by save_write().
83 var answer=req.responseXML;
84 var a=answer.getElementsByTagName(
'ctl');
85 var html=answer.getElementsByTagName(
'code');
86 if ( a.length == 0 ) {var rec=req.responseText;alert_box (
'erreur :'+rec);}
87 var name_ctl=a[0].firstChild.nodeValue;
88 var code_html=getNodeText(html[0]);
90 code_html=unescape_xml(code_html);
91 g(name_ctl).innerHTML=code_html;
94 alert_box(
"success_box"+e.message);}
96 code_html.evalScripts();}
98 alert_box(
"answer_box Impossible executer script de la reponse\n"+e.message);}
function success_show_declaration |
( |
|
answer | ) |
|
Definition at line 20 of file js_scripts.js.
Referenced by show_declaration().
22 var xml=answer.responseXML;
23 var html=xml.getElementsByTagName(
'code');
24 if ( html.length == 0 ) {var rec=answer.responseText;alert_box (
'erreur :'+rec);}
25 var code_html=getNodeText(html[0]);
26 code_html=unescape_xml(code_html);
27 $(
'detail').innerHTML=code_html;
28 code_html.evalScripts();
30 }
catch(e) {alert_box(
'success_show_declaration '+e.message);}
function success_showaddparam |
( |
|
req | ) |
|
Definition at line 116 of file js_scripts.js.
Referenced by show_addparam().
118 remove_waiting_box();
122 sx=window.scrollY+120;
126 sx=document.body.scrollTop+120;
129 var div_style=
"top:"+sx+
"px;";
130 removeDiv(
"paramadd_id");
134 "cssclass":
"inner_box",
137 var answer=req.responseXML;
138 var html=answer.getElementsByTagName(
'code');
139 var code_html=getNodeText(html[0]);
140 code_html=unescape_xml(code_html);
141 g(
"paramadd_id").innerHTML=code_html;
144 alert_box(
"success_box "+e.message);
147 code_html.evalScripts();
150 alert_box(
"answer_box Impossible executer script de la reponse\n"+e.message);
function tva_show_param |
( |
|
p_div | ) |
|
Definition at line 154 of file js_scripts.js.
References show(), and value.
157 var div=[
'opin',
'opout',
'tvadue',
'tvaded',
'divers',
'lintra',
'assujetti'];
158 for (var r =0;r<div.length;r++ ) {$(div[r]).hide(); }
160 $(
'tab').
value=p_div;