Projekt

Allgemein

Profil

Herunterladen (1,81 KB) Statistiken
| Zweig: | Markierung: | Revision:
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?" +
"INPUT_ENCODING=UTF-8&" +
"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);
var trans_subject = document.getElementsByName("follow_up_trans_subject_" + i);

url += "&" +
"trans_id_" + i + "=" + encodeURIComponent((typeof trans_id != "undefined" && trans_id.length != 0) ? trans_id[0].value : "") + "&" +
"trans_type_" + i + "=" + encodeURIComponent((typeof trans_type != "undefined" && trans_type.length != 0) ? trans_type[0].value : "") + "&" +
"trans_info_" + i + "=" + encodeURIComponent((typeof trans_info != "undefined" && trans_info.length != 0) ? trans_info[0].value : "") + "&" +
"trans_subject_" + i + "=" + encodeURIComponent((typeof trans_subject != "undefined" && trans_subject.length != 0) ? trans_subject[0].value : "");
}

url += "&trans_rowcount=" + encodeURIComponent(trans_rowcount[0].value);
}

//alert(url);
window.open(url, "_new_generic", parm);
}

function follow_up_do_select(target) {
let ids = ($(target).data('ids')+'').split(',');
$('.employee_check').each(function(check_idx, check_elt) {
if (ids.indexOf($(check_elt).val()) !== -1) {
$(check_elt).prop('checked', true);
}
});
}
(12-12/75)