PageRenderTime 11ms CodeModel.GetById 1ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/aspnet_client/system_web/2_0_50727/CrystalReportWebFormViewer3/html/crystalexportdialog.htm

http://github.com/khaneh/Orders
HTML | 76 lines | 9 code | 0 blank | 67 comment | 0 complexity | fde602df1c6898ac7e856cb8d300b48d MD5 | raw file
 1<html>
 2	<head>
 3		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
 4	</head>
 5	<body>
 6		<script language="javascript">
 7<!--
 8// export UI functions
 9function check(obj) {
10	return !obj.disabled;
11}
12
13function toggleRangeFields(obj) {
14	if( obj.id == "radio1") {
15		document.Export.from.disabled = true;
16		document.Export.to.disabled = true;
17	}
18	else {
19		document.Export.from.disabled = false;
20		document.Export.to.disabled = false;
21	}
22	return check(obj);
23}
24
25function checkDisableRange() {
26	if( document.Export.exportformat.value == "CrystalReports"
27		|| document.Export.exportformat.value == "RecordToMSExcel" ) {
28		if( document.Export.isRange[1].checked ) {
29			document.Export.isRange[0].checked = true;
30		}
31		document.Export.isRange[1].disabled = true;
32		document.Export.from.disabled = true;
33		document.Export.to.disabled = true;
34	}
35	else {
36		document.Export.isRange[1].disabled = false;
37	}
38}
39
40function isValidNumber(number) {
41	var nonDigit = /\D+/;
42	if( nonDigit.test(number) || number == '0' || number == "") {
43		return false;
44	}
45	return true;
46}
47
48function checkValuesAndSubmit() {
49	if( document.Export.isRange[1].checked ) {
50		if (!isValidNumber(document.Export.from.value) || !isValidNumber(document.Export.to.value) || (parseInt(document.Export.from.value, 10) > parseInt(document.Export.to.value, 10))) {
51			alert(parent.parent.opener.L_InvalidPageRange);
52			return;
53		}
54	}
55	if( document.Export.exportformat != null && document.Export.exportformat.selectedIndex == 0 ) {
56		alert(parent.parent.opener.L_ExportFormat);
57		return;
58	}
59	document.Export.action = opener.document.getElementById('crystal_handler_page').value;
60	document.Export.submit();
61}
62
63function init() {
64    if (document.getElementById('reportsource')) {
65	    document.getElementById('reportsource').value = parent.opener.document.getElementById('crystal_print_rptsrc').value;
66	}
67	if (document.getElementById('viewstate')) {
68	    document.getElementById('viewstate').value = parent.opener.document.getElementById('crystal_print_vs').value;
69	}
70}
71
72document.write(parent.parent.opener.getExportDialog());
73-->
74		</script>
75	</body>
76</html>