예제 #1
0
require_once 'includes/admin.authentication.php';
// Edit per file
//$search_session_id = 'administrator';
require_once 'includes/classes/mpmplgovernancereview.admin.class.php';
$smarty->assign('sectionid', 'mp-mpls');
$smarty->assign('pageid', 'governance-reviews');
/******************************************************************************/
/* Get variables
/******************************************************************************/
require_once 'includes/edit.variables.php';
$id_administratoraccess = isset($_POST['id_administratoraccess']) && $_POST['id_administratoraccess'] != '' ? $_POST['id_administratoraccess'] : '';
$id = $_SESSION['BACKEND_ADMIN']['ADMIN_ID'];
/******************************************************************************/
// Edit per file
/******************************************************************************/
$pageObject = new Mpmplgovernancereview($id, 'edit');
$smarty->assign('contentTemplate', 'templates-admin/content/rating-matrix.tpl');
$smarty->assign('htmlpagetitle', $pageObject->editHtmlPageTitle);
$pageObject->getProvince($provinceData);
$smarty->assign('provinceData', $provinceData);
$pageObject->getRatingMatrix($ratingMatrixData);
$smarty->assign('ratingMatrixData', $ratingMatrixData);
$pageObject->editHtmlPageTitle = 'Rating Matrix';
$pageObject->insertPageTitle = 'Rating Matrix';
$pageObject->editPanelHeading = ' ';
//print_r($mpMplGovernancePRData);
/******************************************************************************/
/* Update / Add / AddAsNew functionality
/******************************************************************************/
if ($formAction != '') {
}
require_once 'includes/classes/mpmplgovernancereview.admin.class.php';
$smarty->assign('sectionid', 'mp-mpl');
$smarty->assign('pageid', 'governance-review');
if ($_SESSION['BACKEND_ADMIN']['ADMIN_TYPE'] != 'councillor') {
    header("Location: /admin");
}
/******************************************************************************/
/* Get variables
/******************************************************************************/
require_once 'includes/edit.variables.php';
$id_administratoraccess = isset($_POST['id_administratoraccess']) && $_POST['id_administratoraccess'] != '' ? $_POST['id_administratoraccess'] : '';
$id = $_SESSION['BACKEND_ADMIN']['ADMIN_ID'];
/******************************************************************************/
// Edit per file
/******************************************************************************/
$pageObject = new Mpmplgovernancereview($id, 'edit');
$smarty->assign('contentTemplate', 'templates-admin/content/' . $pageObject->editContentTemplate);
$smarty->assign('htmlpagetitle', $pageObject->editHtmlPageTitle);
$pageObject->getProvince($provinceData);
$smarty->assign('provinceData', $provinceData);
$pageObject->getRatingMatrix($ratingMatrixData);
$smarty->assign('ratingMatrixData', $ratingMatrixData);
$pageObject->getMpMplGovernanceReview($mpMplGovernanceData);
$smarty->assign('mpMplGovernanceData', $mpMplGovernanceData);
$pageObject->getMpMplGovernanceWorkAndPR($mpMplGovernancePRData);
$smarty->assign('mpMplGovernancePRData', $mpMplGovernancePRData);
//print_r($mpMplGovernancePRData);
$pageObject->getMpMplConstituencyReview($mpMplConstituencyData);
$smarty->assign('mpMplConstituencyData', $mpMplConstituencyData);
/******************************************************************************/
/* Update / Add / AddAsNew functionality