<?php

include "includes/header.inc.php";
if ($logininfo['admin_type'] != "1") {
    header("Location: index.php");
    exit;
}
include "classes/assigncheck.class.php";
include "classes/check.class.php";
include "classes/project.class.php";
$objMessages = new Messages();
$objChekOption = new CheckOption();
$objProject = new Project();
$objAssignCheckList = new AssignCheckList();
$moduleLabel = "Project Check list assignment";
$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) {
    case "Add":
        $sMsg1 = $objAssignCheckList->assignCheckList($_POST);
    case "Edit":
 * 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'] != "1") {
    header("Location: index.php");
    exit;
}
include "classes/check.class.php";
$objMessages = new Messages();
$objCity = new CheckOption();
$moduleLabel = "CheckOption";
$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) {
    case "Add":