/
employee_project.php
51 lines (38 loc) · 1.58 KB
/
employee_project.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/******************************************************************
* Ideabytes Software India Pvt Ltd. *
* 50 Jayabheri Enclave, Gachibowli, HYD *
* Created Date : 22/01/2014 *
* Created By : Gayathri *
* Vision : IB Innovation *
* Modified by : Gayathri Date : 22/01/2014 Version : V1 *
* Description : page management for admin *
*****************************************************************/
include("includes/header.inc.php");
if($logininfo['admin_type'] != "2"){
header("Location: index.php");
exit;
}
include("classes/employeeproject.class.php");
$objMessages = new Messages();
$objEmployeeProjectList = new EmployeeProject();
$moduleLabel = "Employee Project";
$searchstring = ""; $sMsg = "";
$start_limit = 0;
@$page = (isset($_GET['page'])) ? $_GET['page'] : $_POST['page'];
if(!isset($page))
$page = 1;
if($page > 1)
$start_limit = (($page * ROW_PER_PAGE) - ROW_PER_PAGE);
@$action = (isset($_GET['action'])) ? $_GET['action'] : $_POST['action'];
@$id = (isset($_GET['id'])) ? $_GET['id'] : $_POST['id'];
switch($action){
default:
/* List the customers */
$count = $objEmployeeProjectList->getEmployeeProjectCount($logininfo['employee_id']);
if($count>0){
$employeeProjectList = $objEmployeeProjectList->getEmployeeProjectList($logininfo['employee_id']);
}
include("layouts/employee_project.html");
}
?>