$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 *************************/
// | |
// | 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
// | 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/banking/pages/popup_bills_accts/pre_process.php
//
/************** Check user security *****************************/
$security_level = (int) $_SESSION['admin_id'];
// for popups, just make sure they are logged in
if ($security_level == 0) {
// no permission to enter page, error and redirect to home page
$messageStack->add_session(ERROR_NO_PERMISSION, 'error');
gen_redirect(html_href_link(FILENAME_DEFAULT, '', 'SSL'));
}
/************** include page specific files *********************/
require DIR_FS_WORKING . 'language/' . $_SESSION['language'] . '/language.php';
require DIR_FS_WORKING . 'functions/banking.php';
/************** page specific initialization *************************/
define('JOURNAL_ID', $_GET['jID']);
define('ACCOUNT_TYPE', $_GET['type']);
switch (JOURNAL_ID) {
default:
case 18:
$terms_type = 'AR';
$default_purchase_invoice_id = 'DP' . date('Ymd', time());
break;
case 20:
$terms_type = 'AP';
// | 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/rma/config.php
//
// Release History
// 3.0 - Converted from PhreeBooks module
// 3.3 => 2011-11-15 - Bug fixes, themeroller changes
// 3.6 => More bug fixes, inventory not filling properly, changes for R3.6 table paging
// Module software version information
define('MODULE_RMA_VERSION', 3.6);
// Menu Sort Positions
define('BOX_RMA_MODULE_ORDER', 70);
// Menu Security id's
define('SECURITY_RMA_MGT', 180);
// New Database Tables
define('TABLE_RMA', DB_PREFIX . 'rma_module');
if (defined('MODULE_RMA_STATUS')) {
/*
// Set the title menu
define('MENU_HEADING_RMA_ORDER', 77);
$pb_headings[MENU_HEADING_RMA_ORDER] = array(
'text' => MENU_HEADING_RMA,
'link' => html_href_link(FILENAME_DEFAULT, 'module=phreedom&page=index&mID=cat_rma', 'SSL'),
);
*/
// Set the menu
$mainmenu["customers"]['submenu']['rma'] = array('text' => BOX_RMA_MODULE, 'order' => BOX_RMA_MODULE_ORDER, 'security_id' => SECURITY_RMA_MGT, 'link' => html_href_link(FILENAME_DEFAULT, 'module=rma&page=main', 'SSL'), 'show_in_users_settings' => true, 'params' => '');
}
// | 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: /my_files/custom/extra_menus/oscommerce.php
//
// REMEMBER TO CHECK PERMISSIONS AFTER ADDING A NEW MENU ITEM. THEY DEFAULT TO NO ACCESS AND
// DO NOT SHOW UP ON THE MENU UNITL PERMISSION HAS BEEN GRANTED AND THE USER HAS RE-LOGGED IN
// include the language definition for the menu items
if (file_exists(DIR_FS_MY_FILES . 'custom/oscommerce/language/' . $_SESSION['language'] . '/menu.php')) {
include_once DIR_FS_MY_FILES . 'custom/oscommerce/language/' . $_SESSION['language'] . '/menu.php';
} else {
include_once DIR_FS_MY_FILES . 'custom/oscommerce/language/en_us/menu.php';
}
// Set the menu order, if using osCommerce title menu option (after Customers and before Vendors)
define('MENU_HEADING_OSCOMMERCE_ORDER', 16);
// Security id's
define('SECURITY_ID_OSCOMMERCE_ADMIN', 208);
define('SECURITY_ID_OSCOMMERCE_INTERFACE', 209);
// Uncomment below to set the title menu for the osCommerce interface, otherwsie it will be parts of the Tools mennu
/*
$pb_headings[MENU_HEADING_OSCOMMERCE_ORDER] = array(
'text' => MENU_HEADING_OSCOMMERCE,
'link' => html_href_link(FILENAME_DEFAULT, 'cat=general&module=index&tpl=cat_osc', 'SSL'),
);
*/
// Menu Locations
$menu[] = array('text' => BOX_OSCOMMERCE_ADMIN, 'heading' => MENU_HEADING_TOOLS, 'rank' => 40, 'security_id' => SECURITY_ID_OSCOMMERCE_ADMIN, 'link' => html_href_link(FILENAME_DEFAULT, 'cat=oscommerce&module=admin', 'SSL'));
$menu[] = array('text' => BOX_OSCOMMERCE_MODULE, 'heading' => MENU_HEADING_TOOLS, 'rank' => 41, 'security_id' => SECURITY_ID_OSCOMMERCE_INTERFACE, 'link' => html_href_link(FILENAME_DEFAULT, 'cat=oscommerce&module=main', 'SSL'));
// New Database Tables
// None
// | 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/payment/pages/admin/template_main.php
//
echo html_form('admin', 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, 'module=phreedom&page=admin', 'SSL') . '\'"';
$toolbar->icon_list['open']['show'] = false;
if ($security_level > 1) {
$toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'save\')"';
} else {
$toolbar->icon_list['save']['show'] = false;
}
$toolbar->icon_list['delete']['show'] = false;
$toolbar->icon_list['print']['show'] = false;
echo $toolbar->build_toolbar();
?>
<h1><?php
echo PAGE_TITLE;
?>
</h1>
<div id="admintabs">
// | 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/pw_lost/pre_process.php
//
/************** include page specific files *********************/
require DIR_FS_WORKING . 'functions/general.php';
/************** page specific initialization *************************/
if (isset($_POST['login'])) {
gen_redirect(html_href_link(FILENAME_DEFAULT, 'cat=general&module=login', 'SSL'));
}
$error_check = false;
if (isset($_POST['submit'])) {
if (!$_POST['admin_email']) {
$error_check = true;
$email_message = ERROR_WRONG_EMAIL_NULL;
}
$_SESSION['company'] = $_SESSION['companies'][$_POST['company']];
$admin_email = db_prepare_input($_POST['admin_email']);
$sql = "select admin_id, admin_name, admin_email, admin_pass \r\n \tfrom " . TABLE_USERS . " where admin_email = '" . db_input($admin_email) . "'";
$result = $db->Execute($sql);
if (!($admin_email == $result->fields['admin_email'])) {
$error_check = true;
$email_message = ERROR_WRONG_EMAIL;
}
请发表评论