Beispiel #1
0
<?php
/**
 * Template Name: Home Page
 *
 * @package Inkness
 */
?>

<?php
include_once("HomeMVC/home_model.php");
include_once("HomeMVC/home_view.php");
include_once("EditPage/edit_model.php");

$editmodel = new edit_model();
$data = $editmodel->get_user_bolos();


$model = new home_model();
$view = new home_view();

$agencies = $model->get_agencies();

//get the bolos for the desired agency (default value = 'Show ALL')
if($_POST['agency'] == 'Show My BOLOs' )
{
    $result = $model->get_user_bolos($_POST['offset']+0);
}
else {
	$result = $model->get_data($_POST['agency'], $_POST['offset']+0);
}
Beispiel #2
0
<?php
/**
 * Template Name: Edit List Page Control
 *
 * @package Inkness
 */
?>
<?php //page 1500?>

<?php

include_once("edit_model.php");
include_once("edit_list_view.php");

$mymodel = new edit_model();
$myview = new edit_list_view();

$data = $mymodel->get_user_bolos();

$myview->bolos_for_edit($data);
?>