function getScripts() { $includedpath = $this->relpath; if (isset($GLOBALS['KT_REL_PATH'])) { $includedpath = $GLOBALS['KT_REL_PATH'] . $includedpath; } $url = KT_addReplaceParam(KT_getFullUri(), '/^totalRows_.*$/i'); $flashURL = KT_addReplaceParam($url, 'isFlash'); $flashURL = KT_addReplaceParam($flashURL, session_name(), session_id()); $ret = ''; $ret .= '<script src="' . $this->relpath . 'includes/tng/pub/flashembed.js" type="text/javascript" language="javascript"></script>' . "\n"; $ret .= '<script type="text/javascript"> //this is the unique instance of the multiple file upload object myupload = new tNG_FlashUpload(\'' . $includedpath . '\',\'uploadComponent\', \'progressComponent\', \'myupload\'); myupload.setColors(\'' . $this->barColor . '\',\'' . $this->textColor . '\',\'' . $this->borderColor . '\'); myupload.initialize( \'' . KT_addReplaceParam($flashURL, 'isFlash', 1) . '\', \'' . KT_getResource('UPLOAD', 'tNG') . '\', \'' . $this->maxSize . '\', \'' . $this->maxNumber . '\', \'' . $this->existentNumber . '\', \'' . $this->allowedExtensions . '\', \'' . KT_escapeJS(KT_getResource('FLASH_MAX_SIZE_REACHED', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_MAX_FILES_REACHED', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_EMPTY_FILE', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_SKIPPING', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_HTTPERROR', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_HTTPERROR_HEAD', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_IOERROR', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_IOERROR_HEAD', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_COMPLETE_MSG', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_UPLOAD_BATCH', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_UPLOAD_SINGLE', 'tNG')) . '\'); KT_self_url = "' . KT_addReplaceParam($url, 'isFlash') . '"; </script>' . "\n"; return $ret; }
/** * Main class method; return the code in page * @param string * @access public */ function Execute() { if (!isset($_GET['isFlash'])) { unset($_SESSION['tng_errors']); } $ret = ''; $url = KT_addReplaceParam(KT_getFullUri(), '/^totalRows_.*$/i'); $url2 = KT_addReplaceParam($url, 'isFlash'); $url = KT_addReplaceParam($url2, session_name(), session_id()); if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") { $protocol = "https"; } else { $protocol = "http"; } $ret .= '<div id="multiple_upload" style="display:none;"> <input type="button" value="' . KT_getResource('UPLOAD', 'tNG') . '" class="button_big" onClick="myupload.loadFlashMovie( \'' . KT_addReplaceParam($url, 'isFlash', 1) . '\', \'' . $this->maxSize . '\', \'' . $this->maxNumber . '\', \'' . $this->existentNumber . '\', \'' . $this->allowedExtensions . '\', \'' . KT_escapeJS(KT_getResource('FLASH_MAX_SIZE_REACHED', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_MAX_FILES_REACHED', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_EMPTY_FILE', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_SKIPPING', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_HTTPERROR', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_HTTPERROR_HEAD', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_IOERROR', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_IOERROR_HEAD', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_COMPLETE_MSG', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_UPLOAD_BATCH', 'tNG')) . '\', \'' . KT_escapeJS(KT_getResource('FLASH_UPLOAD_SINGLE', 'tNG')) . '\' )"/> </div>'; $ret .= '<div id="singleIndicator" style="display:none;width=100%; text-align:center;"> <h3>Uploading files</h3> <img id="pbar" src="' . $this->relpath . 'includes/tng/pub/loading.gif"/> </div> <div id="simple_upload" style=""> <form id="singleUpload" method="post" action="' . KT_escapeAttribute($url2) . '" enctype="multipart/form-data" onSubmit="tNG_showIndicator()"> <table cellpadding="2" cellspacing="0" class="KT_tngtable"> <tr> <td><label for="filename_pic">Filename:</label></td> <td align="right"><input type="file" name="Filedata" id="Filedata" size = "40%" /><input type="submit" name="KT_Insert1" id="KT_Insert1" value="' . KT_getResource('UPLOAD', 'tNG') . '"class="button_big" /></td> </tr> </table> </form> </div> <script> tNG_initFileUpload("' . $protocol . '"); </script>'; return $ret; }
* All Rights Reserved * * NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the * terms of the Adobe license agreement accompanying it. If you have received this file from a * source other than Adobe, then your use, modification, or distribution of it requires the prior * written permission of Adobe. */ /* Copyright (c) InterAKT Online 2000-2006. All rights reserved. */ include_once dirname(realpath(__FILE__)) . '/../../common/lib/resources/KT_Resources.php'; $d = 'NXT'; KT_sendExpireHeader(60 * 60 * 24); header("Content-Type: application/JavaScript"); ?> //Javascript UniVAL Resources if (typeof(NXT_Messages) == 'undefined') { NXT_Messages = {}; } NXT_Messages['are_you_sure_move'] = '<?php echo KT_escapeJS(KT_getResource('ARE_YOU_SURE_MOVE', $d)); ?> '; NXT_Messages['are_you_sure_delete'] = '<?php echo KT_escapeJS(KT_getResource('ARE_YOU_SURE_DELETE', $d)); ?> '; NXT_Messages['please_select_record'] = '<?php echo KT_escapeJS(KT_getResource('PLEASE_SELECT_RECORD', $d)); ?> ';
/* * ADOBE SYSTEMS INCORPORATED * Copyright 2007 Adobe Systems Incorporated * All Rights Reserved * * NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the * terms of the Adobe license agreement accompanying it. If you have received this file from a * source other than Adobe, then your use, modification, or distribution of it requires the prior * written permission of Adobe. */ /* Copyright (c) InterAKT Online 2000-2006. All rights reserved. */ include_once dirname(realpath(__FILE__)) . '/../../common/lib/resources/KT_Resources.php'; $d = 'NXT'; KT_sendExpireHeader(60 * 60 * 24); header("Content-Type: application/JavaScript"); ?> //Javascript UniVAL Resources if (typeof(NXT_Messages) == 'undefined') { NXT_Messages = {}; } NXT_Messages['are_you_sure_move'] = '<?php echo KT_escapeJS(KT_getResource('ARE_YOU_SURE_MOVE', $d)); ?> '; NXT_Messages['Record_FH'] = '<?php echo KT_escapeJS(KT_getResource('Record_FH', $d)); ?> ';
echo KT_escapeJS(KT_getResource('REGEXP_', $d)); ?> '; UNI_Messages['text_min'] = '<?php echo KT_escapeJS(KT_getResource('TEXT_MIN', $d)); ?> '; UNI_Messages['text_max'] = '<?php echo KT_escapeJS(KT_getResource('TEXT_MAX', $d)); ?> '; UNI_Messages['text_between'] = '<?php echo KT_escapeJS(KT_getResource('TEXT_BETWEEN', $d)); ?> '; UNI_Messages['other_min'] = '<?php echo KT_escapeJS(KT_getResource('OTHER_MIN', $d)); ?> '; UNI_Messages['other_max'] = '<?php echo KT_escapeJS(KT_getResource('OTHER_MAX', $d)); ?> '; UNI_Messages['other_between'] = '<?php echo KT_escapeJS(KT_getResource('OTHER_BETWEEN', $d)); ?> '; UNI_Messages['form_was_modified'] = '<?php echo KT_escapeJS(KT_getResource('FORM_WAS_MODIFIED', $d)); ?> ';
/** * returns a string script with the entire panel parameters * @return null */ function serializeConfigToJs() { $toret = '<!--' . "\n"; $toret .= ' $app_path = "' . KT_getUri() . '";' . "\n"; $toret .= ' $ctrl = new Controller(function() {' . "\n"; foreach ($this->panels as $panelId => $notused) { $panelObj =& $this->panels[$panelId]; $toret .= ' $panel_' . $panelId . ' = $ctrl.createPanel(\'' . KT_escapeJS($panelId) . '\');' . "\n"; $toret .= ' $panel_' . $panelId . '.setUpdateEffect(\'' . KT_escapeJS($panelObj->updateEffect) . '\');' . "\n"; foreach ($panelObj->states as $panelState => $o) { $toret .= ' $panel_' . $panelId . '.addState(\'' . KT_escapeJS($panelState) . '\', \'' . KT_escapeJS($o['file_name']) . '\', \'' . KT_escapeJS($o['title']) . '\');' . "\n"; } $toret .= ' $panel_' . $panelId . '.setCurrentState(\'' . KT_escapeJS($panelObj->currentState) . '\');' . "\n"; } if ($this->getMasterPanel() !== null) { $toret .= ' $ctrl.setMasterPanel(\'' . KT_escapeJS($this->getMasterPanel()) . '\');' . "\n"; } $toret .= ' Controller.initializeHistory();' . "\n"; $toret .= ' });' . "\n"; $toret .= '//-->' . "\n"; return $toret; }
/** * return the error message * @return string transaction type * @access public */ function getErrorMsg() { $ret_warning = ''; $ret_user = ''; $ret_devel = ''; $errorWasFound = false; for ($i = 0; $i < $this->n; $i++) { list($ret_warning, $ret_user, $ret_devel) = $this->tNGs[$i]->getErrorMsg(); if ($ret_warning != '' || $ret_user != '' || $ret_devel != '') { $errorWasFound = true; break; } } $uniq = uniqid(""); $rethead = ''; //$rethead = '<link href="' . $this->relPath . 'includes/tng/styles/default.css" rel="stylesheet" type="text/css" />' . "\r\n"; //$rethead .= '<script src="' . $this->relPath . 'includes/common/js/base.js" type="text/javascript"></script>' . "\r\n"; //$rethead .= '<script src="' . $this->relPath . 'includes/common/js/utility.js" type="text/javascript"></script>' . "\r\n"; $ret = ''; $txtContent = ""; $txtContent .= "Client IP:\r\n " . $_SERVER['REMOTE_ADDR']; $txtContent .= "\r\n\r\nHost:\r\n " . $_SERVER['HTTP_HOST']; $txtContent .= "\r\n\r\nRequested URI:\r\n " . KT_getFullUri(); $txtContent .= "\r\n\r\nDate:\r\n " . date("Y-m-d H:i:s"); if ($errorWasFound) { if ($ret_warning != '') { $ret .= '<div id="KT_tngwarning">' . $ret_warning . "</div>\r\n"; $txtContent .= "\r\n\r\nWarning:\r\n " . $ret_warning; } if ($ret_user != '') { $ret .= '<div id="KT_tngerror"><label>' . KT_getResource('ERROR_LABEL', 'tNG') . '</label><div>' . $ret_user . '</div></div>' . "\r\n"; $txtContent .= "\r\n\r\n" . KT_getResource('ERROR_LABEL', 'tNG') . "\r\n " . $ret_user; } if ('DEVELOPMENT' == $GLOBALS['tNG_debug_mode']) { $js_err = KT_escapeJS($ret_user); $js_devNotes = KT_escapeJS($ret_devel); $js_os = PHP_OS; $js_webserver = @$_SERVER['SERVER_SOFTWARE']; $js_servermodel = (!file_exists($this->relPath . 'adodb/') ? 'PHP MySQL ' : 'PHP ADODB ') . phpversion(); $js_installation = KT_escapeJS(php_sapi_name()); $js_extensions = KT_escapeJS(var_export(get_loaded_extensions(), true)); $ret = $rethead . $ret; if ($ret_devel != '') { $ret .= '<div id="KT_tngdeverror"><label>Developer Details:</label><div>' . $ret_devel . '</div></div>'; } $tmp = tNG_log::getResult('html', '_' . $uniq); $ret .= '<div id="KT_tngtrace"><label>tNG Execution Trace - <a href="#" onclick="document.getElementById(\'KT_tngtrace_details_' . $uniq . '\').style.display=(document.getElementById(\'KT_tngtrace_details_' . $uniq . '\').style.display!=\'block\'?\'block\':\'none\'); return false;">VIEW</a></label>' . $tmp . '</div>'; } if ("" != $GLOBALS['tNG_debug_log_type'] && $ret_devel != '') { $txtContent .= "\r\n\r\nDeveloper Details:\r\n " . $ret_devel; $tmp = tNG_log::getResult('text', '_' . $uniq); $txtContent .= "\r\n\r\ntNG Execution Trace:\r\n" . $tmp; if ($GLOBALS['tNG_debug_log_type'] == 'logfile') { // log file $logFile = dirname(realpath(__FILE__)) . "/logs/" . date("Ym") . ".log"; $f = @fopen($logFile, "a"); if ($f) { if (flock($f, LOCK_EX)) { // do an exclusive lock fwrite($f, "=== BEGIN MESSAGE ===\r\n"); fwrite($f, $txtContent); fwrite($f, "=== END MESSAGE ===\r\n"); flock($f, LOCK_UN); // release the lock } fclose($f); } } else { $email = new KT_Email(); //$email->setPriority("medium"); $email->sendEmail($GLOBALS['tNG_email_host'], $GLOBALS['tNG_email_port'], $GLOBALS['tNG_email_user'], $GLOBALS['tNG_email_password'], $GLOBALS['tNG_debug_email_from'], $GLOBALS['tNG_debug_email_to'], "", "", $GLOBALS['tNG_debug_email_subject'], "ISO-8859-1", $txtContent, ""); } } } return $ret; }
updatedDynamicInput.oldinput.value = insertedID; updatedDynamicInput.newvalue = insertedID; parent.MXW_DynamicObject_syncSelection(dyninputname, false, true); updatedDynamicInput.edit.focus(); } else { updatedDynamicInput.oldinput.options.add(new parent.Option(insertedValue, insertedID)); updatedDynamicInput.sel.options.add(new parent.Option(insertedValue, insertedID)); } } var isComplete = true; </script> <?php } else { ?> <script> window.onload = function() { parent.MXW_DynamicObject_reportDone('<?php echo $el; ?> ', true, '<?php echo KT_escapeJS($ERROR); ?> ') } </script> <?php } ?> </body> </html>
echo KT_escapeJS(KT_getResource('the_date_format_is', $d)); ?> '; WDG_Messages['calendar_button'] = '<?php echo KT_escapeJS(KT_getResource('calendar_button', $d)); ?> '; WDG_Messages['calendar_button'] = '<?php echo KT_escapeJS(KT_getResource('calendar_button', $d)); ?> '; WDG_Messages['rte_maximum_reached'] = '<?php echo KT_escapeJS(KT_getResource('rte_maximum_reached', $d)); ?> '; WDG_Messages['dyn_add_label_text'] = '<?php echo KT_escapeJS(KT_getResource('dyn_add_label_text', $d)); ?> '; WDG_Messages['dyn_are_you_sure_text'] = '<?php echo KT_escapeJS(KT_getResource('dyn_are_you_sure_text', $d)); ?> '; WDG_Messages['dyn_submit_text'] = '<?php echo KT_escapeJS(KT_getResource('dyn_submit_text', $d)); ?> '; WDG_Messages['dyn_default_option_text'] = '<?php echo KT_escapeJS(KT_getResource('dyn_default_option_text', $d)); ?> ';