-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreport_javascript.inc
More file actions
39 lines (36 loc) · 1.01 KB
/
Copy pathreport_javascript.inc
File metadata and controls
39 lines (36 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<script type="text/javascript">
<!--
//gets a DOM object by it's name
function getObjectByName(sName){
if(document.getElementsByName){
oElements = document.getElementsByName(sName);
if(oElements.length > 0)
return oElements[0];
else
return null;
}
else if(document.all)
return document.all[sName][0];
else if(document.layers)
return document.layers[sName][0];
else
return null;
}
function popupPrintWindow() {
window.open("<?php echo html_entity_decode("$Location&print=yes"); ?>", "PopupPrintWindow", "location=0,status=no,menubar=no,resizable=1,width=800,height=450");
return;
}
function reload2Export(theForm) {
var browserName=navigator.appName;
if (browserName=="Microsoft Internet Explorer")
window.open("<?php echo "$Location&export_excel=1"; ?>", "PopupExportWindow", "location=0,status=no,menubar=no,resizable=1,width=800,height=450");
else {
var s = getObjectByName('export_excel');
s.value='1';
theForm.submit();
}
return;
}
// vim:ai:ts=4:sw=4:filetype=javascript
//-->
</script>