| Current Path : /var/www/cesa.co.za/php/includes/ |
| Current File : /var/www/cesa.co.za/php/includes/CCETemplates.php |
<?php
/*
* Contact otto@igotafrica.com for details
*/
/**
* Control the CCETemplates table
*
* @author otto
*/
class CCETemplates extends BaseTableClass {
public function getSelectArray() {
$resourcesSelect = $this->sqlf->getAll("SELECT * FROM CCETemplates ORDER BY CCETemplateName ASC");
$resources = array();
foreach ($resourcesSelect as $resource) {
$resources[$resource['CCETemplateName']] = $resource['CCETemplateID'];
}
return $resources;
}
}
function CCETemplates_Page_Load() {
if (!isset($_REQUEST['z_Archived'])) {
$_REQUEST['z_Archived'] = '=';
}
if (!isset($_REQUEST['x_Archived'])) {
$_REQUEST['x_Archived'] = '0';
}
if (!isset($_GET['z_Archived'])) {
$_GET['z_Archived'] = '=';
}
if (!isset($_GET['x_Archived'])) {
$_GET['x_Archived'] = '0';
}
}