Esempio n. 1
0
<?php

/*	inventory.mod.php
		@richard pianka
		@ramsey abouzahra
		
		http://localhost/pantry/inventory/module_command/something/something/

		contains the inventory pages	*/
if (!is_access(access_inventory) && !is_access(access_all)) {
    redirect($g["abs_url"] . '/error/no_access');
}
global $render;
global $module_commands;
global $inventory_commands;
$module_commands = array('list', 'new', 'edit', 'save', 'delete', 'render', 'ajax');
//$inventory_commands = array('new', 'edit');
$parameters = array('module_command', 'inventory_command', 'action_command', 'tier_2_command');
expand_get($parameters);
$inventory_framework = new Template();
$inventory_framework->load('inventory_framework');
$inventory_framework_render['message'] = '';
$inventory_framework_render['content'] = '';
/* ====================================
   === All of the display functions ===
   ==================================== */
function render_all()
{
    // last thing to execute in this module
    global $inventory_framework_render;
    global $inventory_framework;
Esempio n. 2
0
		@richard pianka
		@ramsey abouzahra
		
		http://localhost/pantry/bag/module_command/something/something/
		
		/bag/list
		/bag/new
		/bag/edit/<bagid>
		/bag/delete/<bagid>
		/bag/render/bag_products/<bagid>
		/bag/ajax/bag_products/new/<bagid>
		/bag/ajax/bag_products/edit/<bagid>/<productid>
		/bag/ajax/bag_products/delete/<bagid>/<productid>

		contains the bag pages	*/
if (!is_access(access_client) && !is_access(access_all)) {
    redirect($g["abs_url"] . '/error/no_access');
}
global $render;
global $module_commands;
$module_commands = array('list', 'new', 'save', 'edit', 'delete', 'render', 'ajax');
$render_commands = array('bag_products');
$ajax_commands = array('bag_products', 'bag');
$ajax_bag_product_commands = array('new', 'edit', 'delete', 'add');
$parameters = array('module_command', 'bag_command', 'action_command', 'select_command', 'bagid_command', 'productid_command');
expand_get($parameters);
$bag_framework = new Template();
$bag_framework->load('bag_framework');
$bag_framework_render['message'] = '';
$bag_framework_render['content'] = '';
/* ====================================
Esempio n. 3
0
<?php

/*	home.mod.php
		@richard pianka
		
		http://localhost/pantry/home/

		contains the home page	*/
if (!is_access(access_home) && !is_access(access_all)) {
    redirect($g["abs_url"] . '/error/no_access');
}
global $render;
global $module_commands;
$parameters = array();
expand_get($parameters);
$home_framework = new Template();
$home_framework->load('home_framework');
/* ====================================
   === All of the display functions ===
   ==================================== */
function render_all()
{
    // last thing to execute in this module
    global $home_framework_render;
    global $home_framework;
    global $render;
    $home_framework->set_vars($home_framework_render);
    $home_framework->parse();
    $render['tier_2'] = $home_framework->final;
}
render_all();