Ejemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $this->permissionModel = \Model\CompanyPermission::getInstance();
     $this->employerModel = \Model\EmployerLogin::getInstance();
     $this->contentType = 'application/json';
 }
Ejemplo n.º 2
0
 public function getById($id)
 {
     $query = "SELECT c.*, e.* FROM company c\n\t\t\tJOIN employer_login e ON e.company_id = c.company_id WHERE c.company_id={$id};";
     $info = $this->select(array(), $query);
     $compPermissionObj = \Model\CompanyPermission::getInstance();
     $info->permission = $compPermissionObj->selectAll(array('company_id' => array('op' => '=', 'val' => $id)));
     return $info;
 }
Ejemplo n.º 3
0
<?php

require_once '../bootstrap.php';
$js_files = array('jquery.validate.js', 'company.list.js');
$companyObj = \Model\Company::getInstance();
$companyPrmissionObj = \Model\CompanyPermission::getInstance();
$employeeObj = \Model\EmployerLogin::getInstance();
$companyInfo = $companyObj->getById($_REQUEST['id']);
$employeeStats = $employeeObj->getEmployeeStatus($_REQUEST['id']);
$permissions = $companyPrmissionObj->getByCompanyId($_REQUEST['id']);
$breadcrumbs = unserialize($_SESSION['breadcrumbs']);
$breadcrumbs->add("Company: {$companyInfo->name}", "/admin/company_view?id={$companyInfo->company_id}");
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<?php 
include_once '../common/header_content.php';
?>
		<?php 
include_once '../common/admin_styles.php';
?>
	</head>
	<body>
		<div class="container-fluid">
			<div class="row">
				<div class="col-md-12">
					<?php 
include_once '../common/admin_head.php';
?>
					<?php