// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/inventory/pages/price_sheets/js_include.php // ?> <script type="text/javascript"> <!-- // pass any php variables generated during pre-process that are used in the javascript functions. // Include translations here as well. var num_price_levels = <?php echo MAX_NUM_PRICE_LEVELS; ?> ; <?php echo js_calendar_init($cal_ps); ?> function init() { <?php if ($_REQUEST['action'] != 'new' && $_REQUEST['action'] != 'edit') { echo ' document.getElementById(\'search_text\').focus();'; echo ' document.getElementById(\'search_text\').select();'; } ?> } function check_form() { var error = 0; var error_message = "<?php echo JS_ERROR;
echo TEXT_DELETE; ?> '; var image_delete_msg = '<?php echo RMA_ROW_DELETE_ALERT; ?> '; var delete_icon_HTML = '<?php echo substr(html_icon("emblems/emblem-unreadable.png", TEXT_DELETE, "small", "onclick=\"if (confirm(\\'" . RMA_ROW_DELETE_ALERT . "\\')) removeInvRow("), 0, -2); ?> '; <?php echo js_calendar_init($cal_create); echo js_calendar_init($cal_rcv); echo js_calendar_init($cal_close); echo js_calendar_init($cal_invoice); ?> <?php echo $js_disp_code . chr(10); echo $js_disp_value . chr(10); ?> // required function called with every page load function init() { $(function() { $('#detailtabs').tabs(); }); <?php if ($_REQUEST['action'] != 'new' && $_REQUEST['action'] != 'edit') { // set focus for main window echo " \$('#search_text').focus();"; echo " \$('#search_text').select();";
; var text_search = '<?php echo TEXT_SEARCH; ?> '; var ItemIsInactive = '<?php echo ITEM_IS_INACTIVE; ?> '; var serial_num_prompt= '<?php echo ORD_JS_SERIAL_NUM_PROMPT; ?> '; <?php echo js_calendar_init($cal_adj); ?> function init() { <?php if ($_REQUEST['action'] == 'edit') { echo ' EditAdjustment(' . $oID . ')'; } ?> } function check_form() { return true; } function clearForm() {
?> '; var text_decreased = '<?php echo GL_ACCOUNT_DECREASED; ?> '; var journalID = '<?php echo JOURNAL_ID; ?> '; var securityLevel = <?php echo $security_level; ?> ; <?php echo js_calendar_init($cal_gl); ?> <?php echo $js_gl_array; ?> function init() { <?php if ($_REQUEST['action'] == 'edit') { echo ' EditJournal(' . $oID . ');' . chr(10); } ?> document.getElementById("purchase_invoice_id").focus(); }
// +-----------------------------------------------------------------+ // | This program is free software: you can redistribute it and/or | // | modify it under the terms of the GNU General Public License as | // | published by the Free Software Foundation, either version 3 of | // | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/zencart/pages/main/js_include.php // ?> <script type="text/javascript"> <!-- // pass some php variables <?php echo js_calendar_init($cal_zc); ?> // required function called with every page load function init() { } function check_form() { return true; } // --> </script>
// +-----------------------------------------------------------------+ // Path: /modules/phreebooks/pages/bulk_bills/js_include.php // ?> <script type="text/javascript"> <!-- // pass any php variables generated during pre-process that are used in the javascript functions. // Include translations here as well. var journalID = '<?php echo JOURNAL_ID; ?> '; <?php echo js_calendar_init($cal_bills0); echo js_calendar_init($cal_bills1); echo js_calendar_init($cal_bills2); ?> function init() { checkShipAll(); <?php if ($post_success && $_REQUEST['action'] == 'print') { ?> var printWin = window.open("index.php?module=phreeform&page=popup_gen&gID=<?php echo POPUP_FORM_TYPE; ?> &date=a&xfld=journal_main.purchase_invoice_id&xcr=RANGE&xmin=<?php echo $print_crit['min']; ?> &xmax=<?php
// | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/shipping/pages/popup_tracking/js_include.php // ?> <script type="text/javascript"> <!-- // pass any php variables generated during pre-process that are used in the javascript functions. // Include translations here as well. <?php echo js_calendar_init($cal_ship); echo js_calendar_init($cal_del); ?> // list the freight options <?php echo $js_methods; ?> function init() { <?php if ($close_popup) { echo ' window.opener.location.reload();' . chr(10); echo ' self.close();' . chr(10); } ?> buildFreightDropdown();
// | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/shipping/shipping/label_mgr/table/js_include.php // ?> <script type="text/javascript"> <!-- // pass any php variables generated during pre-process that are used in the javascript functions. // Include translations here as well. <?php echo js_calendar_init($cal_ship); echo js_calendar_init($cal_exp); ?> function init() { <?php if (!$error && ($_REQUEST['action'] == 'save' || $_REQUEST['action'] == 'delete')) { echo ' window.opener.location.reload();' . chr(10); echo ' self.close();' . chr(10); } ?> } function check_form() { return true; }
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/inventory/pages/assemblies/js_include.php // ?> <script type="text/javascript"> <!-- // pass any php variables generated during pre-process that are used in the javascript functions. // Include translations here as well. var securityLevel = <?php echo $security_level; ?> ; <?php echo js_calendar_init($cal_assy); ?> function init() { document.getElementById('sku_1').focus(); <?php if ($_REQUEST['action'] == 'edit') { echo ' EditAssembly(' . $oID . ')'; } ?> } function check_form() { var error = 0; var error_message = "<?php
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // | | // | The license that is bundled with this package is located in the | // | file: /doc/manual/ch01-Introduction/license.html. | // | If not, see http://www.gnu.org/licenses/ | // +-----------------------------------------------------------------+ // Path: /modules/audit/pages/main/js_include.php // ?> <script type="text/javascript"> <!-- // pass any php variables generated during pre-process that are used in the javascript functions. // Include translations here as well. <?php echo js_calendar_init($cal_from); echo js_calendar_init($cal_to); ?> function init() { } function check_form() { return true; } // --> </script>
// | published by the Free Software Foundation, either version 3 of | // | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/contacts/pages/main/template_notes.php // $cal_c_gen = array('name' => 'dateReference', 'form' => 'contacts', 'fieldname' => 'crm_date', 'imagename' => 'btn_c_gen', 'default' => gen_locale_date($cInfo->crm_date), 'params' => array('align' => 'left')); ?> <script type="text/javascript"> <!-- <?php echo js_calendar_init($cal_c_gen); ?> </script> <div id="tab_notes"> <fieldset> <legend><?php echo TEXT_NOTES; ?> </legend> <div style="float:right;width:50%"> <table class="ui-widget" style="border-collapse:collapse;width:100%"> <thead class="ui-widget-header"> <tr> <th><?php echo TEXT_SALES_REP;
var SalesOrderForItem = '<?php echo THERE_IS_SALES_ORDER_FOR_THIS_ITEM; ?> '; var ItemIsOnOrder = '<?php echo ITEM_IS_ON_ORDER; ?> '; var ItemMustBeOrderd = '<?php echo ITEM_MUST_BE_ORDERD; ?> '; <?php echo js_calendar_init($cal_order); if ($template_options['terminal_date']) { echo js_calendar_init($cal_terminal); } ?> // List the currency codes and exchange rates <?php if (ENABLE_MULTI_CURRENCY) { echo $currencies->build_js_currency_arrays(); } ?> // List the gl accounts for line item pull downs <?php echo $js_gl_array; ?> // List the tax rates <?php echo $js_tax_rates;
// | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/phreedom/pages/admin/js_include.php // ?> <script type="text/javascript"> <!-- // pass any php variables generated during pre-process that are used in the javascript functions. // Include translations here as well. <?php echo js_calendar_init($cal_clean); ?> function init() { $(function() { $('#admintabs').tabs(); $('#currency_table').dataTable( dataTables_i18n ); }); } function check_form() { return true; } // Insert other page specific functions here. function loadPopUp(action, id) {
// | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/work_orders/pages/main/js_include.php // ?> <script type="text/javascript"> <!-- // pass some php variables var fetchDetails = false; <?php echo js_calendar_init($cal_date); ?> // required function called with every page load function init() { $('#inv_image').dialog({ autoOpen:false, width:800 }); <?php if ($_REQUEST['action'] != 'new' && $_REQUEST['action'] != 'edit' && $_REQUEST['action'] != 'build') { // set focus for main window echo " document.getElementById('search_text').focus();"; echo " document.getElementById('search_text').select();"; } if (!$error && $_REQUEST['action'] == 'print') { echo ' printWOrder(' . $id . ');'; } if (!$error && $_REQUEST['action'] == 'new') {
// | the License, or any later version. | // | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/contacts/pages/popup_terms/js_include.php // ?> <script type="text/javascript"> <!-- // pass any php variables generated during pre-process that are used in the javascript functions. // Include translations here as well. <?php echo js_calendar_init($cal_terms); ?> function init() { SetDisabled(); } function check_form() { return true; } // Insert other page specific functions here. function changeOptions() { LoadDefaults(); SetDisabled(); }
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/shipping/methods/endicia/label_mgr/js_include.php // ?> <script type="text/javascript"> <!-- // pass any php variables generated during pre-process that are used in the javascript functions. // Include translations here as well. var method = '<?php echo $shipping_module; ?> '; <?php echo js_calendar_init($cal_ship); ?> function init() { <?php if (!$error && !$auto_print && ($_REQUEST['action'] == 'label' || $_REQUEST['action'] == 'delete')) { echo ' window.opener.location.reload();' . chr(10); echo ' self.close();' . chr(10); } if (!$auto_print) { echo ' document.getElementById("wt_1").focus();' . chr(10); } ?> validateAddress(); }
// | | // | This program is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // +-----------------------------------------------------------------+ // Path: /modules/contacts/pages/main/template_j_general.php // // *********************** Display contact information ****************************** $cal_j_gen1 = array('name' => 'dateFrom', 'form' => 'contacts', 'fieldname' => 'contact_first', 'imagename' => 'btn_j_gen1', 'default' => isset($cInfo->contact_first) ? $cInfo->contact_first : ''); $cal_j_gen2 = array('name' => 'dateTo', 'form' => 'contacts', 'fieldname' => 'contact_last', 'imagename' => 'btn_j_gen2', 'default' => isset($cInfo->contact_last) ? $cInfo->contact_last : ''); ?> <script type="text/javascript"> <?php echo js_calendar_init($cal_j_gen1); echo js_calendar_init($cal_j_gen2); ?> </script> <div id="tab_general"> <fieldset> <legend><?php echo ACT_CATEGORY_CONTACT; ?> </legend> <table> <tr> <td align="right"><?php echo constant('ACT_' . strtoupper($type) . '_SHORT_NAME'); ?> </td>
// ?> <script type="text/javascript"> <!-- // pass any php variables generated during pre-process that are used in the javascript functions. // Include translations here as well. function init() { <?php if ($_REQUEST['action'] == 'save') { echo ' self.close();'; } ?> } function check_form() { return true; } // Insert other page specific functions here. // --> </script> <?php $cal_gen = array(); echo '<script language="JavaScript">' . chr(10); for ($i = 0, $j = 1; $i < $num_items; $i++, $j++) { $cal_gen[$j] = array('name' => 'date_' . $j, 'form' => 'popup_delivery', 'fieldname' => 'eta_date_' . $j, 'imagename' => 'btn_date_' . $j, 'default' => '', 'params' => array('align' => 'left')); echo js_calendar_init($cal_gen[$j]); } echo '</script>' . chr(10);
'; var SalesOrderForItem = '<?php echo THERE_IS_SALES_ORDER_FOR_THIS_ITEM; ?> '; var ItemIsInactive = '<?php echo ITEM_IS_INACTIVE; ?> '; var ItemOutOfStock = '<?php echo ITEM_IS_OUT_OF_STOCK; ?> '; <?php echo js_calendar_init($cal_xfr); ?> function init() { <?php if ($_REQUEST['action'] == 'edit') { echo ' EditTransfer(' . $oID . ')'; } ?> } function check_form() { var numRows = document.getElementById('item_table').rows.length; for (var i=1; i<numRows; i++) { qty = parseFloat(document.getElementById('qty_'+i).value); if (qty <= 0) {