/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
  9. function check(obj) {
  10. return !obj.disabled;
  11. }
  12. function toggleRangeFields(obj) {
  13. if( obj.id == "radio1") {
  14. document.Export.from.disabled = true;
  15. document.Export.to.disabled = true;
  16. }
  17. else {
  18. document.Export.from.disabled = false;
  19. document.Export.to.disabled = false;
  20. }
  21. return check(obj);
  22. }
  23. function checkDisableRange() {
  24. if( document.Export.exportformat.value == "CrystalReports"
  25. || document.Export.exportformat.value == "RecordToMSExcel" ) {
  26. if( document.Export.isRange[1].checked ) {
  27. document.Export.isRange[0].checked = true;
  28. }
  29. document.Export.isRange[1].disabled = true;
  30. document.Export.from.disabled = true;
  31. document.Export.to.disabled = true;
  32. }
  33. else {
  34. document.Export.isRange[1].disabled = false;
  35. }
  36. }
  37. function isValidNumber(number) {
  38. var nonDigit = /\D+/;
  39. if( nonDigit.test(number) || number == '0' || number == "") {
  40. return false;
  41. }
  42. return true;
  43. }
  44. function checkValuesAndSubmit() {
  45. if( document.Export.isRange[1].checked ) {
  46. if (!isValidNumber(document.Export.from.value) || !isValidNumber(document.Export.to.value) || (parseInt(document.Export.from.value, 10) > parseInt(document.Export.to.value, 10))) {
  47. alert(parent.parent.opener.L_InvalidPageRange);
  48. return;
  49. }
  50. }
  51. if( document.Export.exportformat != null && document.Export.exportformat.selectedIndex == 0 ) {
  52. alert(parent.parent.opener.L_ExportFormat);
  53. return;
  54. }
  55. document.Export.action = opener.document.getElementById('crystal_handler_page').value;
  56. document.Export.submit();
  57. }
  58. function init() {
  59. if (document.getElementById('reportsource')) {
  60. document.getElementById('reportsource').value = parent.opener.document.getElementById('crystal_print_rptsrc').value;
  61. }
  62. if (document.getElementById('viewstate')) {
  63. document.getElementById('viewstate').value = parent.opener.document.getElementById('crystal_print_vs').value;
  64. }
  65. }
  66. document.write(parent.parent.opener.getExportDialog());
  67. -->
  68. </script>
  69. </body>
  70. </html>