function build_div($title, $contents, $controls) { $output = '<!--// start: ' . $this->module_id . ' //-->' . chr(10); $output .= '<div id="' . $this->module_id . '" class="modbox" style="position:relative;">' . chr(10); $output .= '<table width="100%" class="mhdr" cellspacing="0" cellpadding="0">' . chr(10); $output .= '<tr>' . chr(10); // heading text $output .= '<td width="90%" class="mttl">' . $title . ' </td>' . chr(10); // edit/cancel image (text) $output .= '<td class="medit">' . chr(10); $output .= ' <a href="javascript:void(0)" class="el" onclick ="return box_edit(\'' . $this->module_id . '\');">'; $output .= html_icon('categories/preferences-system.png', TEXT_PROPERTIES, $size = 'small', '', '16', '16', $this->module_id . '_add'); // $output .= TEXT_EDIT; $output .= ' </a>' . chr(10); $output .= ' <a href="javascript:void(0)" class="csl" onclick ="return box_cancel(\'' . $this->module_id . '\');">'; // $output .= TEXT_CANCEL; $output .= html_icon('status/dialog-error.png', TEXT_CANCEL, $size = 'small', '', '16', '16', $this->module_id . '_can'); $output .= ' </a>' . chr(10); $output .= '</td>' . chr(10); // minimize/maximize image $output .= '<td class="mttlz">' . chr(10); $output .= '<a href="javascript:void(0)" class="box minbox" id="' . $this->module_id . '_min" onclick="this.blur(); return min_box(\'' . $this->module_id . '\')">' . chr(10); $output .= html_icon('actions/list-remove.png', TEXT_COLLAPSE, $size = 'small', '', '16', '16', $this->module_id . '_exp'); $output .= '</a></td>' . chr(10); // delete image $output .= '<td class="mttld">' . chr(10); $output .= '<a href="javascript:void(0)" class="box delbox" id="' . $this->module_id . '_del" onclick="return del_box(\'' . $this->module_id . '\')">'; $output .= html_icon('emblems/emblem-unreadable.png', TEXT_REMOVE, $size = 'small'); $output .= '</a>' . chr(10); $output .= '</td></tr></table>' . chr(10); // box properties section $output .= '<table class="mehdr" cellspacing="0" cellpadding="0">' . chr(10); $output .= '<tr class="es">' . chr(10); $output .= '<td class="meditbox">' . chr(10); $output .= html_form($this->module_id . '_frm', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))) . chr(10); $output .= $this->build_move_buttons($this->column_id, $this->row_id); $output .= $controls . chr(10); $output .= '<input type="hidden" name="module_id" value="' . $this->module_id . '" />' . chr(10); $output .= '<input type="hidden" name="column_id" value="' . $this->column_id . '" />' . chr(10); $output .= '<input type="hidden" name="row_id" value="' . $this->row_id . '" />' . chr(10); $output .= '<input type="hidden" name="action" id="' . $this->module_id . '_action" value="save" />' . chr(10); $output .= '</form></td></tr></table>' . chr(10); // box Contents $output .= '<div class="row" id="' . $this->module_id . '_body" style="overflow:hidden;">' . chr(10); $output .= $contents; $output .= '</div>'; // finish it up $output .= '</div>' . chr(10); $output .= '<!--// end: ' . $this->module_id . ' //--><br />' . chr(10) . chr(10); return $output; }
$result = $db->Execute("select admin_prefs from " . TABLE_USERS . " where admin_id = " . $_SESSION['admin_id']); $prefs = unserialize($result->fields['admin_prefs']); /*************** hook for custom actions ***************************/ $custom_path = DIR_FS_WORKING . 'custom/pages/profile/extra_actions.php'; if (file_exists($custom_path)) { include $custom_path; } /*************** Act on the action request *************************/ switch ($_REQUEST['action']) { case 'save': validate_security($security_level, 4); $prefs['theme'] = db_prepare_input($_POST['theme']); $prefs['menu'] = db_prepare_input($_POST['menu']); $prefs['colors'] = db_prepare_input($_POST['colors']); if (!$prefs['colors']) { $error = $messageStack->add(GEN_ERROR_NO_THEME_COLORS, 'error'); break; } db_perform(TABLE_USERS, array('admin_prefs' => serialize($prefs)), 'update', 'admin_id = ' . $_SESSION['admin_id']); $_SESSION['admin_prefs']['theme'] = $prefs['theme']; $_SESSION['admin_prefs']['menu'] = $prefs['menu']; $_SESSION['admin_prefs']['colors'] = $prefs['colors']; gen_redirect(html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(), 'SSL')); break; default: } /***************** prepare to display templates *************************/ $include_header = true; $include_footer = true; $include_template = 'template_main.php'; define('PAGE_TITLE', BOX_HEADING_PROFILE);
// | 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. | // | | // | 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/reportwriter/pages/builder/template_TplFrmImg.php // $kFontColors = gen_build_pull_down($FontColors); echo html_form('FrmImage', FILENAME_DEFAULT, gen_get_all_get_params(array('action')) . 'action=step6a', 'post', 'enctype="multipart/form-data"'); echo html_hidden_field('DisplayName', $DisplayName); echo html_hidden_field('index', $Params['index']); echo html_hidden_field('ID', $FormParams['id']); echo html_hidden_field('SeqNum', $SeqNum); echo html_hidden_field('ReportID', $ReportID); echo html_hidden_field('ReportName', $description); echo html_hidden_field('todo', ''); // echo html_hidden_field('rowSeq', ''); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="submitToDo(\'cancel\')"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'update\');"'; $toolbar->icon_list['print']['show'] = false; $toolbar->icon_list['delete']['show'] = false; $toolbar->add_icon('finish', 'onclick="submitToDo(\'finish\')"', $order = 10);
// | | // | 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. | // | | // | 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/inventory/pages/cat_inv/template_id.php // echo html_form('inventory', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))); echo html_hidden_field('todo', '') . chr(10); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action', 'module')) . '&module=main', 'SSL') . '\'"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['delete']['show'] = false; $toolbar->icon_list['save']['show'] = false; $toolbar->icon_list['print']['show'] = false; $toolbar->add_icon('continue', 'onclick="submitToDo(\'create\')"', $order = 10); $toolbar->add_help('07.04.01.01'); echo $toolbar->build_toolbar(); ?> <div class="pageHeading"><?php echo INV_HEADING_NEW_ITEM; ?> </div> <table width="500" align="center" cellspacing="0" cellpadding="1"> <tr> <th nowrap="nowrap" colspan="2"><?php
// | 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. | // | | // | 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/translator/pages/admin/template_main.php // // start the form echo html_form('admin', FILENAME_DEFAULT, gen_get_all_get_params(array('action')), 'post', '', true) . chr(10); // include hidden fields echo html_hidden_field('todo', '') . chr(10); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, '', 'SSL') . '\'"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['show'] = false; $toolbar->icon_list['delete']['show'] = false; $toolbar->icon_list['print']['show'] = false; echo $toolbar->build_toolbar(); // Build the page ?> <div class="pageHeading"><?php echo PAGE_TITLE; ?> </div>
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | 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/phreebooks/pages/popup_orders/template_main.php // echo html_form('popup_orders', FILENAME_DEFAULT, gen_get_all_get_params(array('action', 'list'))) . chr(10); // include hidden fields echo html_hidden_field('action', '') . chr(10); echo html_hidden_field('rowSeq', '') . chr(10); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="self.close()"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['show'] = false; $toolbar->icon_list['delete']['show'] = false; $toolbar->icon_list['print']['show'] = false; if (count($extra_toolbar_buttons) > 0) { foreach ($extra_toolbar_buttons as $key => $value) { $toolbar->icon_list[$key] = $value; } } switch (JOURNAL_ID) {
// | Copyright(c) 2008-2014 PhreeSoft, LLC (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | 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/import_order/pages/main/template_main.php // // start the form echo html_form('import_order', FILENAME_DEFAULT, gen_get_all_get_params(array('action')), 'post', 'enctype="multipart/form-data"', true) . chr(10); // include hidden fields echo html_hidden_field('action', '') . chr(10); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, '', 'SSL') . '\'"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'save\')"'; $toolbar->icon_list['delete']['show'] = false; $toolbar->icon_list['print']['show'] = false; echo $toolbar->build_toolbar(); // Build the page ?> <h1><?php echo PAGE_TITLE; ?> </h1>
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | 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/phreebooks/pages/bulk_bills/template_main.php // echo html_form('bulk_bills', FILENAME_DEFAULT, gen_get_all_get_params(array('action', 'list'))) . chr(10); // include hidden fields echo html_hidden_field('action', '') . chr(10); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, '', 'SSL') . '\'"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['delete']['show'] = false; $toolbar->icon_list['save']['show'] = false; $toolbar->icon_list['print']['params'] = 'onclick="submitToDo(\'print\')"'; if ($security_level < 2) { $toolbar->icon_list['print']['show'] = false; } $toolbar->add_icon('ship_all', 'onclick="checkShipAll()"', 20); $toolbar->icon_list['ship_all']['text'] = BNK_TEXT_CHECK_ALL; if (count($extra_toolbar_buttons) > 0) { foreach ($extra_toolbar_buttons as $key => $value) {
// | 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. | // | | // | 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/assets/pages/assets_fields/template_main.php // // start the form echo html_form('assets_fields', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))); // include hidden fields echo html_hidden_field('todo', '') . chr(10); echo html_hidden_field('rowSeq', '') . chr(10); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, '', 'SSL') . '\'"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['delete']['show'] = false; $toolbar->icon_list['save']['show'] = false; $toolbar->icon_list['print']['show'] = false; if ($security_level > 1) { $toolbar->add_icon('new', 'onclick="submitToDo(\'new\')"', $order = 10); } // pull in extra toolbar overrides and additions if (count($extra_toolbar_buttons) > 0) { foreach ($extra_toolbar_buttons as $key => $value) {
// Path: /modules/services/pages/popup_label_image/template_main.php // ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title><?php echo TITLE . ' - ' . COMPANY_NAME; ?> </title> </head> <body> <div id="image"> <?php if ($image) { echo '<h2>' . $image . '</h2>'; } else { echo html_form('download', FILENAME_DEFAULT, gen_get_all_get_params(array('todo')) . 'todo=download') . chr(10); echo html_submit_field('action', SHIPPING_TEXT_DOWNLOAD, '') . chr(10); echo SHIPPING_THERMAL_INST; echo '</form>'; } ?> </form> </div> </body> </html>
$translator->extractRelease($_POST['id']); $temproot = $translator->getTempRoot(); } else { $temproot = $translator->getTempRoot(true); } $translator->searchModules($temproot, $_POST['source_lang']); break; case 'p_install': $translator->addRelease($_POST); if ($_POST['id'] != 'current_installation') { $translator->delete_directory(INSTALL_TEMP_DIR . session_id()); } header('Location:index.php?cat=translator&module=main'); exit; case 'mod': $toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action')) . 'action=releases', 'SSL') . '\'"'; $toolbar->icon_list['save']['show'] = true; $toolbar->icon_list['save']['params'] = 'onclick="javascript:document.translator.submit()"'; $toolbar->icon_list['delete']['params'] = 'onclick="document.translator.action.value=\'p_delete\'; document.translator.submit()"'; $toolbar->icon_list['delete']['show'] = true; $include_template = 'template_mod.php'; $release = $translator->getReleaseData($_GET['id']); break; case 'p_mod': $translator->updateRelease($_POST); header('Location:index.php?cat=translator&module=main'); exit; case 'p_delete': if (strstr($_POST['remove'], 'm_') !== false) { $id = str_replace('m_', '', $_POST['remove']); //exit;
// Path: /modules/reportwriter/pages/form_gen/template_filter.php // $DateArray = explode(':', $Prefs['datedefault']); if (!isset($DateArray[1])) { $DateArray[1] = ''; } if (!isset($DateArray[2])) { $DateArray[2] = ''; } $ValidDateChoices = array(); foreach ($DateChoices as $key => $value) { if (strpos($Prefs['dateselect'], $key) !== false) { $ValidDateChoices[$key] = $value; } } echo html_form('formfilter', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))); echo html_hidden_field('ReportID', $ReportID); echo html_hidden_field('FormFilter', '1'); echo html_hidden_field('todo', ''); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="self.close()"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['show'] = false; $toolbar->icon_list['print']['params'] = 'onclick="submitToDo(\'exp_pdf\')"'; $toolbar->icon_list['delete']['show'] = false; $toolbar->add_help('11.02'); echo $toolbar->build_toolbar(); ?> <h2 align="center"><?php echo $Prefs['description'] . ' - ' . TEXT_CRITERIA; ?>
// | 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. | // | | // | 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/reportwriter/pages/builder/template_TplFrmPgNum.php // $kFontColors = gen_build_pull_down($FontColors); echo html_form('FrmPgNum', FILENAME_DEFAULT, gen_get_all_get_params(array('action')) . 'action=step6a'); echo html_hidden_field('DisplayName', $DisplayName); echo html_hidden_field('index', $Params['index']); echo html_hidden_field('ID', $FormParams['id']); echo html_hidden_field('SeqNum', $SeqNum); echo html_hidden_field('ReportID', $ReportID); echo html_hidden_field('ReportName', $description); echo html_hidden_field('todo', ''); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="submitToDo(\'cancel\')"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'update\');"'; $toolbar->icon_list['print']['show'] = false; $toolbar->icon_list['delete']['show'] = false; $toolbar->add_icon('finish', 'onclick="submitToDo(\'finish\')"', $order = 10); $toolbar->add_help('11.01.01');
gen_add_audit_log(PRICE_SHEETS_LOG . ($_REQUEST['action'] == 'save') ? TEXT_SAVE : TEXT_UPDATE, $sheet_name); gen_redirect(html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('psID', 'action')), 'SSL')); break; case 'delete': validate_security($security_level, 4); $id = (int) db_prepare_input($_GET['psID']); $result = $db->Execute("select sheet_name, type, default_sheet from " . TABLE_PRICE_SHEETS . " where id = " . $id); $sheet_name = $result->fields['sheet_name']; $type = $result->fields['type']; if ($result->fields['default_sheet'] == '1') { $messageStack->add(PRICE_SHEET_DEFAULT_DELETED, 'caution'); } $db->Execute("delete from " . TABLE_PRICE_SHEETS . " where id = '{$id}'"); $db->Execute("delete from " . TABLE_INVENTORY_SPECIAL_PRICES . " where price_sheet_id = '{$id}'"); gen_add_audit_log(PRICE_SHEETS_LOG . TEXT_DELETE, $sheet_name); gen_redirect(html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('psID', 'action')) . '&type=' . $type, 'SSL')); break; case 'revise': validate_security($security_level, 2); $old_id = db_prepare_input($_GET['psID']); $result = $db->Execute("select * from " . TABLE_PRICE_SHEETS . " where id = {$old_id}"); $old_rev = $result->fields['revision']; $output_array = array('sheet_name' => $result->fields['sheet_name'], 'type' => $type, 'revision' => $result->fields['revision'] + 1, 'effective_date' => gen_specific_date($result->fields['effective_date'], 1), 'default_sheet' => $result->fields['default_sheet'], 'default_levels' => $result->fields['default_levels']); db_perform(TABLE_PRICE_SHEETS, $output_array, 'insert'); $id = db_insert_id(); // this is used by the edit function later on. // expire the old sheet $db->Execute("UPDATE " . TABLE_PRICE_SHEETS . " SET expiration_date='" . gen_specific_date($result->fields['effective_date'], 1) . "' WHERE id={$old_id}"); // Copy special pricing information to new sheet $levels = $db->Execute("select inventory_id, price_levels from " . TABLE_INVENTORY_SPECIAL_PRICES . " where price_sheet_id = {$old_id}"); while (!$levels->EOF) {
// | 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. | // | | // | 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/reportwriter/pages/builder/template_TplFrmBarCode.php // $kFontColors = gen_build_pull_down($FontColors); echo html_form('DataFrmBarCode', FILENAME_DEFAULT, gen_get_all_get_params(array('action')) . 'action=step6a'); echo html_hidden_field('DisplayName', $DisplayName); echo html_hidden_field('index', $Params['index']); echo html_hidden_field('ID', $FormParams['id']); echo html_hidden_field('SeqNum', $SeqNum); echo html_hidden_field('ReportID', $ReportID); echo html_hidden_field('ReportName', $description); echo html_hidden_field('todo', ''); // echo html_hidden_field('rowSeq', ''); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="submitToDo(\'cancel\')"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'update\');"'; $toolbar->icon_list['print']['show'] = false; $toolbar->icon_list['delete']['show'] = false; $toolbar->add_icon('finish', 'onclick="submitToDo(\'finish\')"', $order = 10);
// | 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. | // | | // | 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/reportwriter/pages/builder/template_field_setup.php // echo html_form('RptFieldForm', FILENAME_DEFAULT, gen_get_all_get_params(array('action')) . 'action=step6'); echo html_hidden_field('ReportID', $ReportID); echo html_hidden_field('Type', $Type); echo html_hidden_field('ReportName', $description); echo html_hidden_field('todo', ''); echo html_hidden_field('rowSeq', ''); // customize the toolbar actions $toolbar->icon_list['cancel']['show'] = false; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'update\');"'; $toolbar->icon_list['print']['show'] = false; $toolbar->icon_list['delete']['show'] = false; $toolbar->add_icon('back', 'onclick="submitToDo(\'back\')"', $order = 9); $toolbar->add_icon('continue', 'onclick="submitToDo(\'continue\')"', $order = 10); $toolbar->add_help('11.01.01'); echo $toolbar->build_toolbar();
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | 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/work_orders/pages/popup_tasks/template_main.php // echo html_form('search_form', FILENAME_DEFAULT, gen_get_all_get_params(array('action', 'list'))) . chr(10); // include hidden fields echo html_hidden_field('action', '') . chr(10); echo html_hidden_field('rowSeq', '') . chr(10); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="self.close()"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['show'] = false; $toolbar->icon_list['delete']['show'] = false; $toolbar->icon_list['print']['show'] = false; if (count($extra_toolbar_buttons) > 0) { foreach ($extra_toolbar_buttons as $key => $value) { $toolbar->icon_list[$key] = $value; } } $toolbar->add_help('07.04.WO.02');
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | 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/phreedom/pages/import_export/template_main.php // echo html_form('import_export', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))) . chr(10); // include hidden fields echo html_hidden_field('action', '') . chr(10); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, '', 'SSL') . '\'"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['show'] = false; $toolbar->icon_list['delete']['show'] = false; $toolbar->icon_list['print']['show'] = false; if (count($extra_toolbar_buttons) > 0) { foreach ($extra_toolbar_buttons as $key => $value) { $toolbar->icon_list[$key] = $value; } } $toolbar->add_help('10'); echo $toolbar->build_toolbar();
function add_period() { $output = '<div id="tb_period_' . $this->id . '" class="toolbar_right">' . "\n"; $output .= TEXT_INFO_SEARCH_PERIOD_FILTER . '<br />' . "\n"; $output .= html_pull_down_menu('search_period', gen_get_period_pull_down($this->period_strict), $this->search_period, 'onchange="periodPage(\'' . gen_get_all_get_params(array('page', 'action')) . '\')"'); $output .= '</div>' . "\n"; return $output; }
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | 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/phreeform/pages/popup_build/template_import.php // echo html_form('popup_build', FILENAME_DEFAULT, gen_get_all_get_params(array('action')), 'post', 'enctype="multipart/form-data"') . chr(10); // include hidden fields echo html_hidden_field('action', '') . chr(10); echo html_hidden_field('id', $id) . chr(10); echo html_hidden_field('parent_id', $parent_id) . chr(10); echo html_hidden_field('doc_title', '') . chr(10); // placeholder echo html_hidden_field('folder_path', '/'); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="self.close();"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['show'] = false; $toolbar->icon_list['print']['show'] = false; $toolbar->icon_list['delete']['show'] = false; $toolbar->add_help('11.01.01'); echo $toolbar->build_toolbar();
// | 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. | // | | // | 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/reportwriter/pages/rpt_gen/template_save.php // echo html_form('reportSaveAs', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))); echo html_hidden_field('ReportID', $ReportID); echo html_hidden_field('todo', ''); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="self.close()"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'save\');"'; $toolbar->icon_list['print']['show'] = false; $toolbar->icon_list['delete']['show'] = false; if ($ShowReplace) { $toolbar->add_icon('rename', 'onclick="submitToDo(\'rename\')"', $order = 10); } $toolbar->add_help('11.02'); echo $toolbar->build_toolbar(); ?> <h2 align="center"><?php
function build_div($title, $contents, $controls) { if (!$this->valid_user) { return false; } $output = ''; if ($this->version < 3.5 || !$this->version) { $output .= 'update dashboard ' . $this->title . '<br/>'; } $output .= '<!--// start: ' . $this->dashboard_id . ' //-->' . chr(10); $output .= '<div id="' . $this->dashboard_id . '" style="position:relative;">' . chr(10); $output .= '<table class="ui-widget" style="border-collapse:collapse;width:100%">' . chr(10); $output .= '<thead class="ui-widget-header">' . chr(10); $output .= '<tr>' . chr(10); // heading text $output .= '<td style="width:90%">' . $this->title . ' </td>' . chr(10); // edit/cancel image (text) $output .= '<td>' . chr(10); $output .= ' <div id="' . $this->dashboard_id . '_add"><a href="javascript:void(0)" onclick ="return box_edit(\'' . $this->dashboard_id . '\');">'; $output .= html_icon('categories/preferences-system.png', TEXT_PROPERTIES, $size = 'small', '', '16', '16'); $output .= ' </a></div>' . chr(10); $output .= ' <div id="' . $this->dashboard_id . '_can" style="display:none"><a href="javascript:void(0)" onclick ="return box_cancel(\'' . $this->dashboard_id . '\');">'; $output .= html_icon('status/dialog-error.png', TEXT_CANCEL, $size = 'small', '', '16', '16'); $output .= ' </a></div>' . chr(10); $output .= '</td>' . chr(10); // minimize/maximize image $output .= '<td>' . chr(10); $output .= '<a href="javascript:void(0)" id="' . $this->dashboard_id . '_min" onclick="this.blur(); return min_box(\'' . $this->dashboard_id . '\')">' . chr(10); $output .= html_icon('actions/list-remove.png', TEXT_COLLAPSE, $size = 'small', '', '16', '16', $this->dashboard_id . '_exp'); $output .= '</a></td>' . chr(10); // delete image $output .= '<td>' . chr(10); $output .= '<a href="javascript:void(0)" id="' . $this->dashboard_id . '_del" onclick="return del_box(\'' . $this->dashboard_id . '\')">'; $output .= html_icon('emblems/emblem-unreadable.png', TEXT_REMOVE, $size = 'small'); $output .= '</a>' . chr(10); $output .= '</td></tr>' . chr(10); $output .= '</thead>' . chr(10); // properties contents $output .= '<tbody class="ui-widget-content">' . chr(10); $output .= '<tr id="' . $this->dashboard_id . '_prop" style="display:none"><td colspan="4">' . chr(10); $output .= html_form($this->dashboard_id . '_frm', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))) . chr(10); $output .= $this->build_move_buttons($this->column_id, $this->row_id); $output .= $controls . chr(10); $output .= '<input type="hidden" name="dashboard_id" value="' . $this->dashboard_id . '" />' . chr(10); $output .= '<input type="hidden" name="column_id" value="' . $this->column_id . '" />' . chr(10); $output .= '<input type="hidden" name="row_id" value="' . $this->row_id . '" />' . chr(10); $output .= '<input type="hidden" name="action" id="' . $this->dashboard_id . '_action" value="save" />' . chr(10); $output .= '</form></td></tr>' . chr(10); $output .= '<tr id="' . $this->dashboard_id . '_hr" style="display:none"><td colspan="4"><hr /></td></tr>' . chr(10); // box contents $output .= '<tr><td colspan="4">' . chr(10); $output .= '<div id="' . $this->dashboard_id . '_body">' . chr(10); $output .= $contents; $output .= '</div>'; $output .= '</td></tr></tbody></table>' . chr(10); // finish it up $output .= '</div>' . chr(10); $output .= '<!--// end: ' . $this->dashboard_id . ' //--><br />' . chr(10) . chr(10); return $output; }
// | 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. | // | | // | 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/orders/pages/popup_delivery/template_main.php // // start the form echo html_form('popup_delivery', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))) . chr(10); // include hidden fields echo html_hidden_field('todo', '') . chr(10); echo html_hidden_field('rowSeq', '') . chr(10); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="self.close()"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'save\', \'eta_dates\')"'; $toolbar->icon_list['delete']['show'] = false; $toolbar->icon_list['print']['show'] = false; // pull in extra toolbar overrides and additions if (count($extra_toolbar_buttons) > 0) { foreach ($extra_toolbar_buttons as $key => $value) { $toolbar->icon_list[$key] = $value; } }
} // placeholder when not used if (!ENABLE_MULTI_CURRENCY) { echo html_hidden_field('display_currency', DEFAULT_CURRENCY) . chr(10); echo html_hidden_field('currencies_value', '1') . chr(10); } if (!ENABLE_MULTI_BRANCH) { echo html_hidden_field('store_id', '0') . chr(10); } // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, '', 'SSL') . '\'"'; $toolbar->icon_list['open']['params'] = 'onclick="OpenOrdrList(this)"'; $toolbar->icon_list['delete']['params'] = 'onclick="if (confirm(\'' . ORD_DELETE_ALERT . '\')) submitToDo(\'delete\')"'; $toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'save\')"'; $toolbar->icon_list['print']['params'] = 'onclick="submitToDo(\'print\')"'; $toolbar->add_icon('new', 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action', 'jID')) . '&jID=' . JOURNAL_ID, 'SSL') . '\'"', 2); if ($security_level > 1 && ENABLE_BAR_CODE_READERS) { $toolbar->add_icon('bar_code', 'onclick="openBarCode()"', 9); $toolbar->icon_list['bar_code']['icon'] = 'devices/network-wired.png'; $toolbar->icon_list['bar_code']['text'] = TEXT_UPC_CODE; } if (JOURNAL_ID == 12 && $security_level > 2) { $toolbar->add_icon('post_previous', 'onclick="submitToDo(\'post_previous\')"', 10); $toolbar->icon_list['post_previous']['icon'] = 'actions/go-previous.png'; $toolbar->icon_list['post_previous']['text'] = TEXT_SAVE_OPEN_PREVIOUS; $toolbar->add_icon('post_next', 'onclick="submitToDo(\'post_next\')"', 11); $toolbar->icon_list['post_next']['icon'] = 'actions/go-next.png'; $toolbar->icon_list['post_next']['text'] = TEXT_SAVE_OPEN_NEXT; } if ($security_level > 1 && in_array(JOURNAL_ID, array(4, 6, 10, 12))) { $toolbar->add_icon('recur', 'onclick="OpenRecurList(this)"', 12);
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | 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/phreedom/pages/popup_setup/template_main.php // echo html_form('popup_setup', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))); // include hidden fields echo html_hidden_field('action', '') . chr(10); echo html_hidden_field('rowSeq', $sID) . chr(10); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="self.close()"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'save\')"'; $toolbar->icon_list['delete']['show'] = false; $toolbar->icon_list['print']['show'] = false; if (count($extra_toolbar_buttons) > 0) { foreach ($extra_toolbar_buttons as $key => $value) { $toolbar->icon_list[$key] = $value; } } if ($subject_module->help_path != '') {
// | 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. | // | | // | 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/reportwriter/pages/builder/template_id.php // echo html_form('reportidform', FILENAME_DEFAULT, gen_get_all_get_params(array('action')) . 'action=step3') . chr(10); echo html_hidden_field('ReportID', $ReportID) . chr(10); echo html_hidden_field('ReplaceReportID', $ReplaceReportID) . chr(10); echo html_hidden_field('Type', $Type) . chr(10); echo html_hidden_field('todo', '') . chr(10); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="self.close();"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'update\');"'; $toolbar->icon_list['print']['show'] = false; $toolbar->icon_list['delete']['show'] = false; if (isset($_POST['ReportName']) && $todo != 'rename') { $toolbar->add_icon('replace', 'onclick="if confirm(\'' . RW_RPT_REPOVER . '\') submitToDo(\'rename\')"', $order = 10); } if ($todo == 'rename') { $toolbar->add_icon('rename', 'onclick="submitToDo(\'rename\')"', $order = 10);
// | 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. | // | | // | 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/general/pages/crash/template_main.php // // start the form echo html_form('crash', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))) . chr(10); // include hidden fields echo html_hidden_field('todo', '') . chr(10); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, '', 'SSL') . '\'"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['delete']['show'] = false; $toolbar->icon_list['save']['show'] = false; $toolbar->icon_list['print']['show'] = false; // pull in extra toolbar overrides and additions if (count($extra_toolbar_buttons) > 0) { foreach ($extra_toolbar_buttons as $key => $value) { $toolbar->icon_list[$key] = $value; } } // add the help file index and build the toolbar
</tbody> <tfoot> <tr> <td><?php echo html_icon('actions/list-add.png', TEXT_ADD, 'medium', 'onclick="addFilterRow()"'); ?> </td> <td> </td> <td> </td> <td style="text-align:right"> <?php echo html_icon('actions/system-search.png', TEXT_SEARCH, 'medium', 'onclick="submitToDo(\'filter\')"'); ?> <?php if ($_SESSION['filter_field']) { echo html_icon('actions/view-refresh.png', TEXT_RESET, 'small', 'onclick="location.href = \'index.php?' . gen_get_all_get_params(array('search_text', 'search_period', 'search_date', 'list', 'action')) . '&action=reset\';" style="cursor:pointer;"'); } ?> </td> </tr> </tfoot> </table> <div style="height:19px"><?php echo $query_split->display_count(TEXT_DISPLAY_NUMBER . TEXT_ITEMS); ?> <div style="float:right"><?php echo $query_split->display_links(); ?> </div> </div> <table class="ui-widget" style="border-collapse:collapse;width:100%">
$order->item_rows[0] = array('pstd' => '1', 'id' => '', 'desc' => db_prepare_input($_POST['desc_1']), 'total' => $currencies->clean_value(db_prepare_input($_POST['total_1'])), 'acct' => db_prepare_input($_POST['acct_1'])); $post_credit = $order->post_ordr($action); if (!$post_credit) { $order = new objectInfo($_POST); $order->post_date = gen_db_date_short($_POST['post_date']); // fix the date to original format $order->id = $_POST['id'] != '' ? $_POST['id'] : ''; // will be null unless opening an existing purchase/receive $messageStack->add(GL_ERROR_NO_POST, 'error'); } gen_add_audit_log(AUDIT_LOG_DESC, $order->purchase_invoice_id, $order->total_amount); if (DEBUG) { $messageStack->write_debug(); } if ($action == 'save') { gen_redirect(html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action')), 'SSL')); } // else print or print_update, fall through and load javascript to call form_popup and clear form } else { // else there was a post error, display and re-display form $order = new objectInfo($_POST); $order->post_date = gen_db_date_short($_POST['post_date']); // fix the date to original format $order->id = $_POST['id'] != '' ? $_POST['id'] : ''; // will be null unless opening an existing purchase/receive $messageStack->add(GL_ERROR_NO_POST, 'error'); } break; default: } /***************** prepare to display templates *************************/
// | 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. | // | | // | 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/services/shipping/forms/shipping_popup_main.php // echo html_form('step1', FILENAME_DEFAULT, gen_get_all_get_params(array('action', 'page'))) . chr(10); echo html_hidden_field('todo', '') . chr(10); echo html_hidden_field('rowSeq', '') . chr(10); // customize the toolbar actions $toolbar->icon_list['cancel']['params'] = 'onclick="self.close()"'; $toolbar->icon_list['open']['show'] = false; $toolbar->icon_list['save']['show'] = false; $toolbar->icon_list['delete']['show'] = false; $toolbar->icon_list['print']['show'] = false; $toolbar->add_icon('continue', 'onclick="submitToDo(\'rates\')"', $order = 10); $toolbar->add_help('09'); echo $toolbar->build_toolbar(); ?> <div class="pageHeading"><?php echo SHIPPING_ESTIMATOR_OPTIONS; ?>