Copyright (c) 2001, DM Solutions Group Inc. * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ /***************************************************************************** * $Log: production_download.phtml,v $ * Revision 1.7 2004/12/03 03:31:55 pspencer * bug MT 866: modify script tags to input type='text/javascript' * * Revision 1.6 2004/12/01 16:28:34 pspencer * bug 797: modified to work with new download architecture * * Revision 1.5 2004/11/16 15:23:40 pspencer * bug MT 377: renamed PrintWidget to PrintProduction * * Revision 1.4 2004/11/12 14:43:28 yassefa * Do not display the close button if inside a frame. * * Revision 1.3 2004/04/28 13:43:14 pspencer * fix file path related issues * * Revision 1.2 2004/04/25 04:20:39 pspencer * fixed file references * * Revision 1.1 2004/04/23 16:51:59 pspencer * moved production_download.phtml to PrintProduction/production_download.phtml * * Revision 1.15 2004/04/23 13:29:05 sfournier * Make sure language file are located in the same directory of the widget and make sure to load them correctly * * Revision 1.14 2004/04/21 11:11:51 wbronsema * corrected language path to point to widget directory instead of language directory * * Revision 1.13 2004/01/22 18:41:49 pspencer * major overhaul of buttons, consolidating all previous TextButton and NavTools into a single Button architecture. * * Revision 1.12 2003/10/27 20:46:19 sfournier * Overwrite main branch with 1.1 stuff * * Revision 1.8.2.2 2003/06/11 20:29:17 sacha * Make some cleaning * * Revision 1.8.2.1 2003/05/27 17:40:59 sacha * added support for skinning * * Revision 1.8 2003/04/23 17:30:00 pspencer * use sharedresource wait image from session if possible. * * Revision 1.7 2003/04/16 18:51:09 sacha * Fixed few bugs related to the rendering preview of a map * * Revision 1.6 2003/04/08 20:09:58 sacha * Fixed few bug related to print * * Revision 1.5 2003/04/08 19:08:27 sacha * Added error report to production dialog and also fixed a bug about PDF format. Only offer the choice if available * * Revision 1.4 2003/03/14 23:17:10 fredrock * modified the popup with css to make it skinnable * * Revision 1.3 2003/02/21 15:25:16 sacha * 'Added more language file and fixed some language bugs' * * Revision 1.2 2003/01/15 16:07:55 fredrock * added buttonizer buttons. * * Revision 1.1 2003/01/03 18:51:01 bronsema * Moved the download file capabiltiy to the production page. * *****************************************************************************/ if (isset($_GET['bDownload']) && $_GET['bDownload'] == '1') { $bFileOnly = true; include_once( "./preview.php" ); $_SESSION['DOWNLOADFILE'] = $_SESSION['gszTmpWebPath']."/".basename($szDownloadURL); $_SESSION['DOWNLOADFILE_SAVEAS'] = $gsz_dl_name; if (stristr($_SESSION['DOWNLOADFILE'], 'http://') == false ) $_SESSION['DOWNLOADFILE'] = 'http://'.$_SERVER['HTTP_HOST'].'/'.$_SESSION['DOWNLOADFILE']; session_write_close(); header("Location: ".$_SESSION['gszCoreWebPath']."widgets/download.phtml?".SID); exit(); } //set the language resource file $szLanguageResource = str_replace("\\","/",dirname(__FILE__))."/Production.dbf"; // set flag to only produce file $bFileOnly = true; // include the preview.php file to produce the map include_once("../CWC2ButtonCache.php"); // define flag if necessary if ( !defined( "LOAD_MAPSESSION" ) ) { define("LOAD_MAPSESSION", 1); } // include session info include("../session.inc.php"); /* ============================================================================ * Build an array with the HTTP GET or POST parameters. * ========================================================================= */ $http_form_vars = sizeof( $_POST ) > 0 ? $_POST : ( sizeof($_GET) > 0 ? $_GET : array("") ); //check for session wait image if (isset($_SESSION["WAITIMAGE"])) $waitImage = $_SESSION["WAITIMAGE"]; else $waitImage = $_SESSION['gszCoreWebPath']."/skins/default/images/spinner.gif"; if (isset($_SESSION["WAITIMAGEWIDTH"])) $waitImageWidth = $_SESSION["WAITIMAGEWIDTH"]; else $waitImageWidth = 216; if (isset($_SESSION["WAITIMAGEHEIGHT"])) $waitImageHeight = $_SESSION["WAITIMAGEHEIGHT"]; else $waitImageHeight = 50; ?> Preview nErrorCount; if ($j > 0) { for ($i=0; $i<$j; $i++) { $oError = $_SESSION['gErrorManager']->popLastError(); echo "
  • ".$oError->szMessage. "
  • \n"; } echo ""; } } ?>
    "; ?>
    get("26", "The download should start automatically in a few seconds,
    otherwise click here to download the file manually.")); ?>
     
    get("Close", "Close")), trim($oCommonMLT->get("CancelTip", "Close Dialog")), array( 'width' => 75 ) ); ?>
    ">