Пример #1
0
/**********************************************************************
    Copyright (C) FrontAccounting, LLC.
	Released under the terms of the GNU General Public License, GPL, 
	as published by the Free Software Foundation, either version 3 
	of the License, or (at your option) 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 License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
$page_security = 'SA_ASSETS';
$path_to_root = "../..";
include $path_to_root . "/includes/session.inc";
add_access_extensions();
set_ext_domain('modules/asset_register');
page(_($help_context = "Amortisation Schedule"));
include_once $path_to_root . "/modules/asset_register/includes/modules_db.inc";
include_once $path_to_root . "/includes/ui.inc";
simple_page_mode(true);
//-----------------------------------------------------------------------------------
if (!isset($_POST['year'])) {
    $_POST['year'] = date("Y");
}
echo "<div align='center'><FORM action='amortisation_post.php' method='post'>";
echo "    <LABEL for='year'>Year : </LABEL><INPUT type='text' name='year' value='" . $_POST['year'];
echo "' id='year'>";
echo "    <INPUT type='submit' name='submit' value='Search'>";
echo "    <INPUT type='submit' name='amortise_post' value='Post'>";
echo "</FORM></div>";
echo "<hr/>\n";
Пример #2
0
<?php

/**********************************************
Name: Zen Cart customer and order import
Based on osCommerce order import by Tom Moulton
modified for Zen Cart 1.5.1 and FrontAccounting 2.3.15 by ckrosco
Free software under GNU GPL
***********************************************/
$page_security = 'SA_ZENIMPORT';
$path_to_root = "../..";
include $path_to_root . "/includes/session.inc";
add_access_extensions();
set_ext_domain('modules/zen_import');
include_once $path_to_root . "/includes/ui.inc";
include_once $path_to_root . "/includes/data_checks.inc";
include_once $path_to_root . "/sales/includes/db/branches_db.inc";
include_once $path_to_root . "/sales/includes/db/customers_db.inc";
include_once $path_to_root . "/sales/includes/db/sales_order_db.inc";
include_once $path_to_root . "/sales/includes/cart_class.inc";
include_once $path_to_root . "/sales/includes/ui/sales_order_ui.inc";
include_once $path_to_root . "/modules/zen_import/includes/zen_interface_db.inc";
include_once $path_to_root . "/modules/zen_import/includes/zen_import_db.inc";
function not_null($str)
{
    if ($str != '' && $str != NULL) {
        return 1;
    }
    return 0;
}
function zen_address_format($zen, $data, $pre)
{