Revision 6b063f3c
Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
599 | 599 |
'charset' => $db_charset,); |
600 | 600 |
print qq|${doctype}<html> |
601 | 601 |
<head> |
602 |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=${db_charset}"> |
|
602 | 603 |
<title>$self->{titlebar}</title> |
603 | 604 |
$stylesheet |
604 | 605 |
$pagelayout |
605 | 606 |
$favicon |
606 |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=${db_charset}"> |
|
607 | 607 |
$jsscript |
608 | 608 |
$ajax |
609 | 609 |
|
... | ... | |
691 | 691 |
$additional_params->{"myconfig_jsc_dateformat"} = $jsc_dateformat; |
692 | 692 |
} |
693 | 693 |
|
694 |
$additional_params->{"conf_dbcharset"} = $main::dbcharset; |
|
694 | 695 |
$additional_params->{"conf_webdav"} = $main::webdav; |
695 | 696 |
$additional_params->{"conf_lizenzen"} = $main::lizenzen; |
696 | 697 |
$additional_params->{"conf_latex_templates"} = $main::latex; |
js/calculate_qty.js | ||
---|---|---|
8 | 8 |
} else var action = "calculate_qty"; |
9 | 9 |
url = "common.pl?" + |
10 | 10 |
"action=" + action + "&" + |
11 |
"name=" + escape(name) + "&" +
|
|
12 |
"input_name=" + escape(input_name) + "&" +
|
|
13 |
"description=" + escape(description) + "&" +
|
|
14 |
"qty=" + escape(qty) + "&" +
|
|
15 |
"row=" + escape(row) + "&" +
|
|
16 |
"formel=" + escape(document.getElementsByName(formel)[0].value)
|
|
11 |
"name=" + encodeURIComponent(name) + "&" +
|
|
12 |
"input_name=" + encodeURIComponent(input_name) + "&" +
|
|
13 |
"description=" + encodeURIComponent(description) + "&" +
|
|
14 |
"qty=" + encodeURIComponent(qty) + "&" +
|
|
15 |
"row=" + encodeURIComponent(row) + "&" +
|
|
16 |
"formel=" + encodeURIComponent(document.getElementsByName(formel)[0].value)
|
|
17 | 17 |
//alert(url); |
18 | 18 |
window.open(url, "_new_generic", parm); |
19 | 19 |
} |
js/common.js | ||
---|---|---|
38 | 38 |
return string; |
39 | 39 |
} |
40 | 40 |
|
41 |
function escape_more(s) { |
|
42 |
s = escape(s); |
|
43 |
return s.replace(/\+/g, '%2b'); |
|
44 |
} |
|
45 |
|
|
46 | 41 |
function set_longdescription_window(input_name) { |
47 | 42 |
var parm = centerParms(600,500) + ",width=600,height=500,status=yes,scrollbars=yes"; |
48 | 43 |
var name = document.getElementsByName(input_name)[0].value; |
49 | 44 |
url = "common.pl?" + |
50 | 45 |
"action=set_longdescription&" + |
51 |
"longdescription=" + escape_more(document.getElementsByName(input_name)[0].value) + "&" +
|
|
52 |
"input_name=" + escape_more(input_name) + "&"
|
|
46 |
"longdescription=" + encodeURIComponent(document.getElementsByName(input_name)[0].value) + "&" +
|
|
47 |
"input_name=" + encodeURIComponent(input_name) + "&"
|
|
53 | 48 |
window.open(url, "_new_generic", parm); |
54 | 49 |
} |
55 | 50 |
|
js/customer_or_vendor_selection.js | ||
---|---|---|
3 | 3 |
var name = document.getElementsByName(input_name)[0].value; |
4 | 4 |
url = "common.pl?" + |
5 | 5 |
"action=cov_selection_internal&" + |
6 |
"name=" + escape_more(name) + "&" +
|
|
7 |
"input_name=" + escape(input_name) + "&" +
|
|
8 |
"input_id=" + escape(input_id) + "&" +
|
|
6 |
"name=" + encodeURIComponent(name) + "&" +
|
|
7 |
"input_name=" + encodeURIComponent(input_name) + "&" +
|
|
8 |
"input_id=" + encodeURIComponent(input_id) + "&" +
|
|
9 | 9 |
"is_vendor=" + (is_vendor ? "1" : "0") + "&" + |
10 | 10 |
"allow_both=" + (allow_both ? "1" : "0") + "&" + |
11 |
"action_on_cov_selected=" + (action_on_cov_selected ? escape(action_on_cov_selected) : "")
|
|
11 |
"action_on_cov_selected=" + (action_on_cov_selected ? encodeURIComponent(action_on_cov_selected) : "")
|
|
12 | 12 |
//alert(url); |
13 | 13 |
window.open(url, "_new_cov_selection", parm); |
14 | 14 |
} |
js/delivery_customer_selection.js | ||
---|---|---|
3 | 3 |
var name = document.getElementsByName(input_name)[0].value; |
4 | 4 |
url = "common.pl?" + |
5 | 5 |
"action=delivery_customer_selection&" + |
6 |
"name=" + escape(name) + "&" +
|
|
7 |
"input_name=" + escape(input_name) + "&" +
|
|
8 |
"input_id=" + escape(input_id)
|
|
6 |
"name=" + encodeURIComponent(name) + "&" +
|
|
7 |
"input_name=" + encodeURIComponent(input_name) + "&" +
|
|
8 |
"input_id=" + encodeURIComponent(input_id)
|
|
9 | 9 |
//alert(url); |
10 | 10 |
window.open(url, "_new_generic", parm); |
11 | 11 |
} |
js/dunning.js | ||
---|---|---|
2 | 2 |
var parm = centerParms(800,600) + ",width=800,height=600,status=yes,scrollbars=yes"; |
3 | 3 |
var url = "dn.pl?" + |
4 | 4 |
"action=set_email&" + |
5 |
"email_subject=" + escape_more(document.getElementsByName(input_subject)[0].value) + "&" +
|
|
6 |
"email_body=" + escape_more(document.getElementsByName(input_body)[0].value) + "&" +
|
|
7 |
"email_attachment=" + escape_more(document.getElementsByName(input_attachment)[0].value) + "&" +
|
|
8 |
"input_subject=" + escape_more(input_subject) + "&" +
|
|
9 |
"input_body=" + escape_more(input_body) + "&" +
|
|
10 |
"input_attachment=" + escape_more(input_attachment);
|
|
5 |
"email_subject=" + encodeURIComponent(document.getElementsByName(input_subject)[0].value) + "&" +
|
|
6 |
"email_body=" + encodeURIComponent(document.getElementsByName(input_body)[0].value) + "&" +
|
|
7 |
"email_attachment=" + encodeURIComponent(document.getElementsByName(input_attachment)[0].value) + "&" +
|
|
8 |
"input_subject=" + encodeURIComponent(input_subject) + "&" +
|
|
9 |
"input_body=" + encodeURIComponent(input_body) + "&" +
|
|
10 |
"input_attachment=" + encodeURIComponent(input_attachment);
|
|
11 | 11 |
window.open(url, "_new_generic", parm); |
12 | 12 |
} |
js/follow_up.js | ||
---|---|---|
16 | 16 |
var trans_info = document.getElementsByName("follow_up_trans_info_" + i); |
17 | 17 |
|
18 | 18 |
url += "&" + |
19 |
"trans_id_" + i + "=" + escape_more(typeof trans_id != "undefined" ? trans_id[0].value : "") + "&" +
|
|
20 |
"trans_type_" + i + "=" + escape_more(typeof trans_type != "undefined" ? trans_type[0].value : "") + "&" +
|
|
21 |
"trans_info_" + i + "=" + escape_more(typeof trans_info != "undefined" ? trans_info[0].value : "");
|
|
19 |
"trans_id_" + i + "=" + encodeURIComponent(typeof trans_id != "undefined" ? trans_id[0].value : "") + "&" +
|
|
20 |
"trans_type_" + i + "=" + encodeURIComponent(typeof trans_type != "undefined" ? trans_type[0].value : "") + "&" +
|
|
21 |
"trans_info_" + i + "=" + encodeURIComponent(typeof trans_info != "undefined" ? trans_info[0].value : "");
|
|
22 | 22 |
} |
23 | 23 |
|
24 |
url += "&trans_rowcount=" + escape_more(trans_rowcount[0].value);
|
|
24 |
url += "&trans_rowcount=" + encodeURIComponent(trans_rowcount[0].value);
|
|
25 | 25 |
} |
26 | 26 |
|
27 | 27 |
//alert(url); |
js/part_selection.js | ||
---|---|---|
25 | 25 |
|
26 | 26 |
url = "common.pl?" + |
27 | 27 |
"action=part_selection_internal&" + |
28 |
"partnumber=" + escape_more(partnumber) + "&" +
|
|
29 |
"description=" + escape_more(description) + "&" +
|
|
30 |
"input_partnumber=" + escape_more(input_partnumber) + "&" +
|
|
31 |
"input_description=" + escape_more(input_description) + "&" +
|
|
32 |
"input_partsid=" + escape_more(input_partsid) + "&" +
|
|
33 |
"input_partnotes=" + escape_more(input_partnotes) + "&" +
|
|
34 |
"filter=" + escape_more(filter) + "&" +
|
|
35 |
"options=" + escape_more(options) + "&" +
|
|
36 |
"formname=" + escape_more(formname) + "&" +
|
|
28 |
"partnumber=" + encodeURIComponent(partnumber) + "&" +
|
|
29 |
"description=" + encodeURIComponent(description) + "&" +
|
|
30 |
"input_partnumber=" + encodeURIComponent(input_partnumber) + "&" +
|
|
31 |
"input_description=" + encodeURIComponent(input_description) + "&" +
|
|
32 |
"input_partsid=" + encodeURIComponent(input_partsid) + "&" +
|
|
33 |
"input_partnotes=" + encodeURIComponent(input_partnotes) + "&" +
|
|
34 |
"filter=" + encodeURIComponent(filter) + "&" +
|
|
35 |
"options=" + encodeURIComponent(options) + "&" +
|
|
36 |
"formname=" + encodeURIComponent(formname) + "&" +
|
|
37 | 37 |
"allow_creation=" + (allow_creation ? "1" : "0") + "&" + |
38 | 38 |
"action_on_part_selected=" + (null == action_on_part_selected ? "" : action_on_part_selected.value); |
39 | 39 |
//alert(url); |
js/parts_language_selection.js | ||
---|---|---|
3 | 3 |
var name = document.getElementsByName(input_name)[0].value; |
4 | 4 |
url = "ic.pl?" + |
5 | 5 |
"action=parts_language_selection&" + |
6 |
"id=" + escape_more(document.ic.id.value) + "&" +
|
|
7 |
"language_values=" + escape_more(document.ic.language_values.value) + "&" +
|
|
8 |
"name=" + escape_more(name) + "&" +
|
|
9 |
"input_name=" + escape_more(input_name) + "&"
|
|
6 |
"id=" + encodeURIComponent(document.ic.id.value) + "&" +
|
|
7 |
"language_values=" + encodeURIComponent(document.ic.language_values.value) + "&" +
|
|
8 |
"name=" + encodeURIComponent(name) + "&" +
|
|
9 |
"input_name=" + encodeURIComponent(input_name) + "&"
|
|
10 | 10 |
window.open(url, "_new_generic", parm); |
11 | 11 |
} |
js/show_history.js | ||
---|---|---|
16 | 16 |
url = "common.pl?" + |
17 | 17 |
"action=show_history&" + |
18 | 18 |
"longdescription=" + "&" + |
19 |
"input_name=" + escape(id) + "&"
|
|
19 |
"input_name=" + encodeURIComponent(id) + "&"
|
|
20 | 20 |
window.open(url, "_new_generic", parm); |
21 | 21 |
} |
js/show_vc_details.js | ||
---|---|---|
7 | 7 |
vc_id = vc_id[0].value; |
8 | 8 |
url = "common.pl?" + |
9 | 9 |
"action=show_vc_details&" + |
10 |
"vc=" + escape(vc) + "&" +
|
|
11 |
"vc_id=" + escape(vc_id)
|
|
10 |
"vc=" + encodeURIComponent(vc) + "&" +
|
|
11 |
"vc_id=" + encodeURIComponent(vc_id)
|
|
12 | 12 |
//alert(url); |
13 | 13 |
window.open(url, "_new_generic", parm); |
14 | 14 |
} |
js/stock_in_out.js | ||
---|---|---|
12 | 12 |
|
13 | 13 |
url = "do.pl?" + |
14 | 14 |
"action=stock_in_out_form&" + |
15 |
"in_out=" + escape_more(in_out) + "&" +
|
|
16 |
"row=" + escape_more(row) + "&" +
|
|
17 |
"parts_id=" + escape_more(parts_id) + "&" +
|
|
18 |
"do_qty=" + escape_more(do_qty) + "&" +
|
|
19 |
"do_unit=" + escape_more(do_unit) + "&" +
|
|
20 |
"stock=" + escape_more(stock) + "&" +
|
|
21 |
"closed=" + escape_more(closed) + "&" +
|
|
22 |
"delivered=" + escape_more(delivered) + "&" +
|
|
15 |
"in_out=" + encodeURIComponent(in_out) + "&" +
|
|
16 |
"row=" + encodeURIComponent(row) + "&" +
|
|
17 |
"parts_id=" + encodeURIComponent(parts_id) + "&" +
|
|
18 |
"do_qty=" + encodeURIComponent(do_qty) + "&" +
|
|
19 |
"do_unit=" + encodeURIComponent(do_unit) + "&" +
|
|
20 |
"stock=" + encodeURIComponent(stock) + "&" +
|
|
21 |
"closed=" + encodeURIComponent(closed) + "&" +
|
|
22 |
"delivered=" + encodeURIComponent(delivered) + "&" +
|
|
23 | 23 |
""; |
24 | 24 |
//alert(url); |
25 | 25 |
window.open(url, "_new_generic", parm); |
js/vendor_selection.js | ||
---|---|---|
3 | 3 |
var name = document.getElementsByName(input_name)[0].value; |
4 | 4 |
url = "common.pl?" + |
5 | 5 |
"action=vendor_selection&" + |
6 |
"name=" + escape(name) + "&" +
|
|
7 |
"input_name=" + escape(input_name) + "&" +
|
|
8 |
"input_id=" + escape(input_id)
|
|
6 |
"name=" + encodeURIComponent(name) + "&" +
|
|
7 |
"input_name=" + encodeURIComponent(input_name) + "&" +
|
|
8 |
"input_id=" + encodeURIComponent(input_id)
|
|
9 | 9 |
//alert(url); |
10 | 10 |
window.open(url, "_new_generic", parm); |
11 | 11 |
} |
templates/webpages/admin/edit_user_de.html | ||
---|---|---|
6 | 6 |
function open_connection_test_window() { |
7 | 7 |
// host name port user passwd |
8 | 8 |
var url = "admin.pl?action=test_db_connection&" + |
9 |
"dbhost=" + escape_more(get_input_value("dbhost")) + "&" +
|
|
10 |
"dbname=" + escape_more(get_input_value("dbname")) + "&" +
|
|
11 |
"dbuser=" + escape_more(get_input_value("dbuser")) + "&" +
|
|
12 |
"dbpasswd=" + escape_more(get_input_value("dbpasswd")) + "&";
|
|
9 |
"dbhost=" + encodeURIComponent(get_input_value("dbhost")) + "&" +
|
|
10 |
"dbname=" + encodeURIComponent(get_input_value("dbname")) + "&" +
|
|
11 |
"dbuser=" + encodeURIComponent(get_input_value("dbuser")) + "&" +
|
|
12 |
"dbpasswd=" + encodeURIComponent(get_input_value("dbpasswd")) + "&";
|
|
13 | 13 |
|
14 | 14 |
var parm = centerParms(400,300) + ",width=400,height=300,status=yes,scrollbars=yes"; |
15 | 15 |
|
templates/webpages/admin/edit_user_master.html | ||
---|---|---|
6 | 6 |
function open_connection_test_window() { |
7 | 7 |
// host name port user passwd |
8 | 8 |
var url = "admin.pl?action=test_db_connection&" + |
9 |
"dbhost=" + escape_more(get_input_value("dbhost")) + "&" +
|
|
10 |
"dbname=" + escape_more(get_input_value("dbname")) + "&" +
|
|
11 |
"dbuser=" + escape_more(get_input_value("dbuser")) + "&" +
|
|
12 |
"dbpasswd=" + escape_more(get_input_value("dbpasswd")) + "&";
|
|
9 |
"dbhost=" + encodeURIComponent(get_input_value("dbhost")) + "&" +
|
|
10 |
"dbname=" + encodeURIComponent(get_input_value("dbname")) + "&" +
|
|
11 |
"dbuser=" + encodeURIComponent(get_input_value("dbuser")) + "&" +
|
|
12 |
"dbpasswd=" + encodeURIComponent(get_input_value("dbpasswd")) + "&";
|
|
13 | 13 |
|
14 | 14 |
var parm = centerParms(400,300) + ",width=400,height=300,status=yes,scrollbars=yes"; |
15 | 15 |
|
Auch abrufbar als: Unified diff
JavaScript und Umlaute in UTF-8-Codierung funktioniert nicht mit der JavaScript-Funktion "encode()", deshalb "encodeURIComponent()" benutzen.