kivitendo/js/follow_up.js @ dc7162f3
7a7f33b5 | Moritz Bunkus | function follow_up_window() {
|
||
var width = 900;
|
||||
var height = 700;
|
||||
var parm = centerParms(width, height) + ",width=" + width + ",height=" + height + ",status=yes,scrollbars=yes";
|
||||
url = "fu.pl?" +
|
||||
5d557254 | Moritz Bunkus | "INPUT_ENCODING=UTF-8&" +
|
||
7a7f33b5 | Moritz Bunkus | "action=add" + "&" +
|
||
"POPUP_MODE=1";
|
||||
var trans_rowcount = document.getElementsByName("follow_up_rowcount");
|
||||
if (typeof trans_rowcount != "undefined") {
|
||||
for (i = 1; i <= trans_rowcount[0].value; i++) {
|
||||
var trans_id = document.getElementsByName("follow_up_trans_id_" + i);
|
||||
var trans_type = document.getElementsByName("follow_up_trans_type_" + i);
|
||||
var trans_info = document.getElementsByName("follow_up_trans_info_" + i);
|
||||
url += "&" +
|
||||
6b063f3c | Moritz Bunkus | "trans_id_" + i + "=" + encodeURIComponent(typeof trans_id != "undefined" ? trans_id[0].value : "") + "&" +
|
||
"trans_type_" + i + "=" + encodeURIComponent(typeof trans_type != "undefined" ? trans_type[0].value : "") + "&" +
|
||||
"trans_info_" + i + "=" + encodeURIComponent(typeof trans_info != "undefined" ? trans_info[0].value : "");
|
||||
7a7f33b5 | Moritz Bunkus | }
|
||
6b063f3c | Moritz Bunkus | url += "&trans_rowcount=" + encodeURIComponent(trans_rowcount[0].value);
|
||
7a7f33b5 | Moritz Bunkus | }
|
||
//alert(url);
|
||||
window.open(url, "_new_generic", parm);
|
||||
}
|