need to add models
This commit is contained in:
parent
3f1b5c18e0
commit
d5c43bef4c
@ -5,3 +5,18 @@ ERROR - 2017-05-02 07:36:45 --> Severity: Warning --> Invalid argument supplied
|
||||
ERROR - 2017-05-02 08:23:39 --> Severity: Notice --> Undefined variable: option C:\xampp\htdocs\siddharth_application\application\views\addCostCenter.php 83
|
||||
ERROR - 2017-05-02 08:23:39 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\system\helpers\form_helper.php 332
|
||||
ERROR - 2017-05-02 08:23:56 --> Severity: Warning --> Invalid argument supplied for foreach() C:\xampp\htdocs\siddharth_application\system\helpers\form_helper.php 332
|
||||
ERROR - 2017-05-02 09:14:57 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 86
|
||||
ERROR - 2017-05-02 09:14:57 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 86
|
||||
ERROR - 2017-05-02 09:14:57 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 86
|
||||
ERROR - 2017-05-02 09:20:20 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 86
|
||||
ERROR - 2017-05-02 09:20:20 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 86
|
||||
ERROR - 2017-05-02 09:20:20 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 86
|
||||
ERROR - 2017-05-02 09:20:46 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 86
|
||||
ERROR - 2017-05-02 09:20:46 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 86
|
||||
ERROR - 2017-05-02 09:20:46 --> Severity: Notice --> Undefined index: PayOn C:\xampp\htdocs\siddharth_application\application\views\payslipgenerate.php 86
|
||||
ERROR - 2017-05-02 11:46:41 --> Severity: Warning --> mysqli_connect(): php_network_getaddresses: getaddrinfo failed: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77
|
||||
ERROR - 2017-05-02 11:46:41 --> Severity: Warning --> mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77
|
||||
ERROR - 2017-05-02 11:46:41 --> Unable to connect to the database
|
||||
ERROR - 2017-05-02 11:55:01 --> Severity: Warning --> mysqli_connect(): php_network_getaddresses: getaddrinfo failed: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77
|
||||
ERROR - 2017-05-02 11:55:01 --> Severity: Warning --> mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77
|
||||
ERROR - 2017-05-02 11:55:01 --> Unable to connect to the database
|
||||
|
||||
@ -1,169 +0,0 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Payroll_model extends CI_Model
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to insert the File details in database
|
||||
* @FileDetails array : This will have the set of value which we need to insert into database
|
||||
* @return number $Payon : Insert row count will be the return value
|
||||
*/
|
||||
function UploadFileName($FileDetails)
|
||||
{
|
||||
$this->db->insert('T_Payroll_File', $FileDetails);
|
||||
|
||||
$Payon = $this->db->affected_rows();
|
||||
|
||||
return $Payon;
|
||||
}
|
||||
/**
|
||||
* This function is used to update the File details in which is already exists in the database
|
||||
* @FileDetails array : This will have the set of value which we need to insert into database
|
||||
* @return number boolean: success of the updation
|
||||
*/
|
||||
function UpdateFileName($FileDetails, $PayOn)
|
||||
{
|
||||
//echo $EmpID;
|
||||
$this->db->where('PayOn', $PayOn);
|
||||
$this->db->update('T_Payroll_File', $FileDetails);
|
||||
//print_r($this->db->last_query());
|
||||
return TRUE;
|
||||
}
|
||||
/**
|
||||
* This function is used to check the File details is already exists in the database or not
|
||||
* @FileDetails array : This will have the set of value which we need to insert into database
|
||||
* @return number boolean: success of the updation
|
||||
*/
|
||||
function checkFileDetailsExists($PayOn)
|
||||
{
|
||||
$this->db->select('PayOn');
|
||||
$this->db->from('T_Payroll_File');
|
||||
$this->db->where('PayOn',$PayOn);
|
||||
|
||||
$query = $this->db->get();
|
||||
// print_r($this->db->last_query());
|
||||
if ($query->num_rows > 0) {
|
||||
return $query->result();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* This function is used to insert the File data in database
|
||||
* @FileDetails array : This will have the set of value which we need to insert into database
|
||||
* @return number $Payon : Insert row count will be the return value
|
||||
*/
|
||||
function UploadFileData($FileData)
|
||||
{
|
||||
$this->db->insert('T_Payroll', $FileData);
|
||||
|
||||
$Payon = $this->db->affected_rows();
|
||||
//print_r($this->db->last_query());
|
||||
return $Payon;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to update the File details in which is already exists in the database
|
||||
* @FileDetails array : This will have the set of value which we need to insert into database
|
||||
* @return number boolean: success of the updation
|
||||
*/
|
||||
function UpdateFiledata($FileData, $PayOn,$EmpId)
|
||||
{
|
||||
//echo $EmpID;
|
||||
$this->db->where('PayOn', $PayOn);
|
||||
$this->db->where('EmpID', $EmpId);
|
||||
$this->db->update('T_Payroll', $FileData);
|
||||
//print_r($this->db->last_query());
|
||||
//print_r($this->db->last_query());
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to get the data details in which is already exists in the database
|
||||
* @FileDetails array : This will have the set of value which we need to insert into database
|
||||
* @return number boolean: success of the updation
|
||||
*/
|
||||
function GetPayslipdata($PayOn='',$EmpId='')
|
||||
{
|
||||
$this->db->select('Pay.*,payfile.TotalNoofDays as TotalNoofDays ,Emp.FirstName as FName ,Emp.LastName as Lname,Emp.DateofBirth as Dob,Emp.PANNo as Pan,Emp.BankBranchName as BankName,Emp.IFSCCode as IFSCCode,Emp.DateofJoining as DOJ,Emp.Designation as Designation,Dep.DepartmentName as DeptName');
|
||||
$this->db->from('T_Payroll Pay');
|
||||
$this->db->join('T_Payroll_File payfile', 'Pay.PayOn = payfile.PayOn');
|
||||
$this->db->join('T_Employee_Details Emp', 'Pay.EmpID = Emp.EmpID');
|
||||
$this->db->join('T_DepartmentDetails Dep', 'Emp.Departmentcode = Dep.DEPCode');
|
||||
$this->db->where('Pay.PayOn', $PayOn);
|
||||
if($EmpId != '')
|
||||
{
|
||||
$this->db->where('Pay.EmpID', $EmpId);
|
||||
}
|
||||
|
||||
$this->db->order_by("Pay.EmpID", "asc");
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/* *//**
|
||||
* This function is used to get the PayOn details from T_Payroll_File
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getPayOn()
|
||||
{
|
||||
$this->db->select('PayOn');
|
||||
$this->db->from('T_Payroll_File');
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/* *//**
|
||||
* This function is used to get the PayOn details from T_Payroll_File
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getEmployeelist($Payon ='')
|
||||
{
|
||||
$this->db->select('Pay.EmpID as EmpId,Emp.FirstName as Fname,Emp.LastName as Lname');
|
||||
$this->db->from('T_Payroll Pay');
|
||||
$this->db->join('T_Employee_Details Emp', 'Pay.EmpID = Emp.EmpID');
|
||||
if($Payon != '')
|
||||
{
|
||||
$this->db->where('Pay.PayOn', $Payon);
|
||||
}
|
||||
$this->db->order_by("Pay.EmpID", "asc");
|
||||
|
||||
$query = $this->db->get();
|
||||
return $query;
|
||||
}
|
||||
/* *//**
|
||||
* This function is used to get the PayOn details from T_Payroll_File
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getEmpAll($Payon ='')
|
||||
{
|
||||
$this->db->select('Pay.EmpID as EmpId,Emp.FirstName as Fname,Emp.LastName as Lname');
|
||||
$this->db->from('T_Payroll Pay');
|
||||
$this->db->join('T_Employee_Details Emp', 'Pay.EmpID = Emp.EmpID');
|
||||
if($Payon != '')
|
||||
{
|
||||
$this->db->where('Pay.PayOn', $Payon);
|
||||
}
|
||||
$this->db->order_by("Pay.EmpID", "asc");
|
||||
|
||||
$query = $this->db->get();
|
||||
return $query->result_array();
|
||||
}
|
||||
|
||||
/* *//**
|
||||
* This function is used to delete the PayOn details from T_Payroll
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function deleteFileData($PayOn='')
|
||||
{
|
||||
|
||||
$this->db->where("PayOn", $PayOn);
|
||||
|
||||
$this->db->delete('T_Payroll');
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -1,293 +0,0 @@
|
||||
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class purchaseorder_model extends CI_Model
|
||||
{
|
||||
/**
|
||||
* This function is used to get the user listing count
|
||||
* @param string $searchText : This is optional search text
|
||||
* @return number $count : This is row count
|
||||
*/
|
||||
function purchaseorderListingCount($searchText = '')
|
||||
{
|
||||
$this->db->select('BaseT.PONO, BaseT.POType, BaseT.PODate, ID.SupplierID,BaseT.SpecialOrder, users.UserID,BaseT.RequesterEmail,BaseT.RequesterPh,BaseT.RequestedDate,BaseT.BudgetManager,BaseT.BudgetManagerDepartment,BaseT.PurchasingCategory');
|
||||
$this->db->from('T_PurchaseOrderDetails as BaseT');
|
||||
$this->db->join('tbl_users as users', 'users.userId = BaseT.userId','left');
|
||||
$this->db->join('T_SupplierDetailsN as ID', 'ID.SupplierID = BaseT.SupplierID','left');
|
||||
if(!empty($searchText)) {
|
||||
$likeCriteria = "(BaseT.PONO LIKE '%".$searchText."%'
|
||||
OR BaseT.POType LIKE '%".$searchText."%'
|
||||
OR BaseT.PODate LIKE '%".$searchText."%'
|
||||
OR BaseT.SupplierID LIKE '%".$searchText."%'
|
||||
OR BaseT.UserID LIKE '%".$searchText."%'
|
||||
OR BaseT.RequesterEmail LIKE '%".$searchText."%'
|
||||
OR BaseT.RequesterPh LIKE '%".$searchText."%'
|
||||
OR BaseT.RequestedDate LIKE '%".$searchText."%'
|
||||
OR BaseT.BudgetManager LIKE '%".$searchText."%'
|
||||
OR BaseT.BudgetManagerDepartment LIKE '%".$searchText."%'
|
||||
OR BaseT.PurchasingCategory LIKE '%".$searchText."%'
|
||||
OR BaseT.SpecialOrder LIKE '%".$searchText."%')";
|
||||
$this->db->where($likeCriteria);
|
||||
}
|
||||
//$this->db->where('BaseT.isDeleted', 0);
|
||||
$this->db->where('BaseT.userId !=', 1);
|
||||
$query = $this->db->get();
|
||||
|
||||
return count($query->result());
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to get the user listing count
|
||||
* @param string $searchText : This is optional search text
|
||||
* @param number $page : This is pagination offset
|
||||
* @param number $segment : This is pagination limit
|
||||
* @return array $result : This is result
|
||||
*/
|
||||
function purchaseorderListing($searchText = '', $page, $segment)
|
||||
{
|
||||
$this->db->select('BaseT.PONO, BaseT.POType, BaseT.PODate, ID.SupplierID,BaseT.SpecialOrder, users.UserID,BaseT.RequesterEmail,BaseT.RequesterPh, BaseT.RequestedDate, BaseT.BudgetManager, BaseT.BudgetManagerDepartment, BaseT.PurchasingCategory');
|
||||
$this->db->from('T_PurchaseOrderDetails as BaseT');
|
||||
$this->db->join('tbl_users as users', 'users.userId = BaseT.userId','left');
|
||||
$this->db->join('T_SupplierDetailsN as ID', 'ID.SupplierID = BaseT.SupplierID','left');
|
||||
if(!empty($searchText)) {
|
||||
$likeCriteria = "(BaseT.PONO LIKE '%".$searchfield."%'
|
||||
OR BaseT.POType LIKE '%".$searchText."%'
|
||||
OR BaseT.PODate LIKE '%".$searchText."%'
|
||||
OR BaseT.SupplierID LIKE '%".$searchText."%'
|
||||
OR BaseT.UserID LIKE '%".$searchText."%'
|
||||
OR BaseT.RequesterEmail LIKE '%".$searchText."%'
|
||||
OR BaseT.RequesterPh LIKE '%".$searchText."%'
|
||||
OR BaseT.RequestedDate LIKE '%".$searchText."%'
|
||||
OR BaseT.BudgetManager LIKE '%".$searchText."%'
|
||||
OR BaseT.BudgetManagerDepartment LIKE '%".$searchText."%'
|
||||
OR BaseT.PurchasingCategory LIKE '%".$searchText."%'
|
||||
OR BaseT.SpecialOrder LIKE '%".$searchText."%')";
|
||||
$this->db->where($likeCriteria);
|
||||
}
|
||||
//$this->db->where('BaseT.isDeleted', 0);
|
||||
//$this->db->where('BaseT.userId !=', 1);
|
||||
$this->db->limit($page, $segment);
|
||||
$query = $this->db->get();
|
||||
|
||||
$result = $query->result();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to get the SupplierID information
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getSupplierName()
|
||||
{
|
||||
$this->db->select('SupplierID, SupplierName,Address');
|
||||
$this->db->from('T_SupplierDetailsN');
|
||||
//$this->db->where('roleId !=', 1);
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
/**
|
||||
* This function is used to get the userId information
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getusers()
|
||||
{
|
||||
$this->db->select('userId, name');
|
||||
$this->db->from('tbl_users');
|
||||
//$this->db->where('roleId !=', 1);
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to get the Raw Material information
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getRawMaterialList()
|
||||
{
|
||||
|
||||
$this->db->select('MaterialCode, MaterialName');
|
||||
$this->db->from('T_MaterialMaster');
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to get the Cost center information
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getCostCenter()
|
||||
{
|
||||
|
||||
$this->db->select('CostName, Description');
|
||||
$this->db->from('T_CostCentre');
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to get the Config value from configuration table
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getConfigValue($ConfigID ,$ConfigValue = '')
|
||||
{
|
||||
|
||||
$this->db->select('ConfigValue');
|
||||
$this->db->from('T_ConfigDetails');
|
||||
$this->db->where('Config_id ',$ConfigID );
|
||||
if($ConfigValue != '')
|
||||
{
|
||||
$this->db->where('ConfigValue != ',$ConfigValue );
|
||||
}
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to get the Purchase order Type
|
||||
* @return array $result : This is result of the query
|
||||
*/
|
||||
function getAllEmployees()
|
||||
{
|
||||
$this->db->select('EmpID,FirstName,LastName');
|
||||
$this->db->from('T_Employee_Details');
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to add New Purchase order to the system
|
||||
|
||||
*/
|
||||
function addNewPO($PO_Type,$PO_Date,$Supplier_ID,$Special_Order,$User_ID,$Requester_Email,$Requester_Ph,$Requested_Date,$Budget_Manager,
|
||||
$Budget_Manager_Department,$Purchasing_Category,$Purchasing_Justification,$Created_By,$BasicValue,$DiscountType,$txtDiscount,$PackagingType,
|
||||
$txtPackaging,$Exciseduty,$txtVat,$txtFreight,$AfterDiscount,$AfterPackaging,$AferExciseduty,$txtAfterVat,$txtOrderValue)
|
||||
{
|
||||
|
||||
$result = $this->db-> query("CALL P_PURCHASEORDER_DETAILS('".$PO_Type."',STR_TO_DATE('".$PO_Date."','%m-%d-%Y %H:%i:%s'),'".$Supplier_ID."','".$Special_Order."','".$User_ID."'
|
||||
,'".$Requester_Email."','".$Requester_Ph."',STR_TO_DATE('".$Requested_Date."','%m-%d-%Y %H:%i:%s'),'".$Budget_Manager."','".$Budget_Manager_Department."','".$Purchasing_Category."','".$Purchasing_Justification."','".$Created_By."','".$BasicValue."','".$DiscountType."','".$txtDiscount."','".$PackagingType."','".$txtPackaging."','".$Exciseduty."','".$txtVat."','".$txtFreight."','".$AfterDiscount."','".$AfterPackaging."','".$AferExciseduty."','".$txtAfterVat."','".$txtOrderValue."')") or die(mysql_error());
|
||||
|
||||
// print_r($this->db->last_query());
|
||||
|
||||
$result ->next_result();
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
//echo $result->num_rows;
|
||||
return $result->result_array();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is used to add new PO Line Item to T_PurchaseOrderLineItem table
|
||||
* @return number $insert_id : This is last inserted id
|
||||
*/
|
||||
|
||||
function addNewPOLineItem($PONO,$Material_ID,$UOM,$Quantity,$UnitPrice)
|
||||
{
|
||||
//echo 'addNewPOLineItem Model called';
|
||||
|
||||
$result = $this->db-> query("CALL P_LINEITEM('".$PONO."','".$Material_ID."','".$UOM."',".$Quantity.",".$UnitPrice.")") or die(mysql_error());
|
||||
|
||||
$result ->next_result();
|
||||
|
||||
//print_r($this->db->last_query());
|
||||
|
||||
if ($result->num_rows > 0)
|
||||
{
|
||||
//echo 'PO Line item Inserted successfully';
|
||||
return $result->result_array();
|
||||
}
|
||||
|
||||
return $result ->result_array(); ;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get user information by id
|
||||
* @param number $userId : This is user id
|
||||
* @return array $result : This is user information
|
||||
*/
|
||||
function getPOLineItem($PO = '')
|
||||
{
|
||||
$this->db->select('POline.POLineNo as POLineNo,Raw.MaterialName as materialName ,POline.UOM as UOM,POline.Quantity as Quantity,POline.UnitPrice as UnitPrice, (POline.Quantity * POline.UnitPrice) as ProductPrice');
|
||||
$this->db->from('T_POLineItem as POline ');
|
||||
$this->db->join('T_RawMaterialDetailsN as Raw', 'POline.Material_ID = Raw.MaterialCode');
|
||||
if(!empty($PO)) {
|
||||
|
||||
$this->db->where('POline.PONO', $PO);
|
||||
}
|
||||
else
|
||||
{
|
||||
$likeCriteria = "(POline.PONO is null)";
|
||||
$this->db->where($likeCriteria);
|
||||
}
|
||||
|
||||
$query = $this->db->get();
|
||||
// print_r($query);
|
||||
$result = $query->result();
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function used to get user information by id
|
||||
* @param number $userId : This is user id
|
||||
* @return array $result : This is user information
|
||||
*/
|
||||
function getuserInfo($PO)
|
||||
{
|
||||
$this->db->select('POType, PODate, SupplierID,SpecialOrder,UserID,RequestedDate,RequesterEmail,RequesterPh,PurchasingCategory,BudgetManager,BudgetManagerDepartment,');
|
||||
$this->db->from('T_PurchaseOrderDetails');
|
||||
|
||||
$this->db->where('PONO', $PO);
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
function getPurchaseOrder($PONO)
|
||||
{
|
||||
$this->db->select('PODetail.*,Supplier.SupplierName,Supplier.Address,usr.name as usrName');
|
||||
$this->db->from('T_PurchaseOrderDetails AS PODetail');
|
||||
$this->db->join('T_SupplierDetailsN as Supplier', 'PODetail.SupplierID = Supplier.SupplierID');
|
||||
$this->db->join('tbl_users as usr', 'usr.userId = PODetail.UserID');
|
||||
$this->db->where('PODetail.PONO', $PONO);
|
||||
$query = $this->db->get();
|
||||
|
||||
$result = $query->result();
|
||||
|
||||
// print_r($this->db->last_query());
|
||||
return $result;
|
||||
}
|
||||
|
||||
function getLastInsertedPO()
|
||||
{
|
||||
$this->db->select('max(PONO) as PO');
|
||||
$this->db->from('T_PurchaseOrderDetails');
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result_array();
|
||||
}
|
||||
function updatePODetails($PO,$PODetails)
|
||||
{
|
||||
$this->db->where('PONO', $PO);
|
||||
$this->db->update('T_PurchaseOrderDetails', $PODetails);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ if(!empty($EmpCount))
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<center><h1> Account Department Dashboard</h1> </center>
|
||||
<center><h1> Accounts Department Dashboard</h1> </center>
|
||||
</section>
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
@ -56,7 +56,7 @@ if(!empty($EmpCount))
|
||||
if($role == ROLE_ADMIN)
|
||||
{
|
||||
?>
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1> Admin Dashboard </h1>
|
||||
@ -64,36 +64,10 @@ if(!empty($EmpCount))
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-aqua">
|
||||
<div class="inner">
|
||||
<h3>150</h3>
|
||||
<p>New Orders</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-bag"></i>
|
||||
</div>
|
||||
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- ./col -->
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-green">
|
||||
<div class="inner">
|
||||
<h3>53<sup style="font-size: 20px">%</sup></h3>
|
||||
|
||||
<p>Bounce Rate</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-stats-bars"></i>
|
||||
</div>
|
||||
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ./col -->
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<div class=" col-xs-12 col-md-4 col-md-offset-4">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-yellow">
|
||||
<div class="inner">
|
||||
@ -104,29 +78,16 @@ if(!empty($EmpCount))
|
||||
<div class="icon">
|
||||
<i class="ion ion-person-add"></i>
|
||||
</div>
|
||||
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ./col -->
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-red">
|
||||
<div class="inner">
|
||||
<h3>65</h3>
|
||||
|
||||
<p>Unique Visitors</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-pie-graph"></i>
|
||||
</div>
|
||||
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
|
||||
<a href="<?php echo base_url(); ?>userListing" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ./col -->
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
@ -61,6 +61,12 @@
|
||||
<link href="<?php echo base_url(); ?>assets/dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
|
||||
<!-- Searchable dropdown -->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/select2/select2.min.css">
|
||||
<!-- fullCalendar 2.2.5 -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.min.js"></script>
|
||||
<!-- fullCalendar 2.2.5-->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/fullcalendar/fullcalendar.print.css" media="print">
|
||||
<style>
|
||||
.error{
|
||||
color:red;
|
||||
|
||||
@ -107,18 +107,20 @@ $("#Employee").empty();
|
||||
<option value="-1">Select Employee</option>
|
||||
|
||||
</select>
|
||||
<br/>
|
||||
<input type="checkbox" name="All" id="All" > Select All<br>
|
||||
</div>
|
||||
<input type="checkbox" name="All" id="All" > Select All<br>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4 col-md-offset-6" align = "right">
|
||||
<input type="submit" class="btn btn-info" value="Generate" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row" >
|
||||
|
||||
<div class="col-md-4 col-md-offset-6" align = "right">
|
||||
<input type="submit" class="btn btn-info" value="Generate" />
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
$this->load->helper('form');
|
||||
|
||||
@ -27,20 +27,21 @@
|
||||
</section>
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-md-offset-2" style="border:2px dotted;padding:2%;">
|
||||
<div class="col-md-8 col-md-offset-2" style="border:2px dotted;padding:2%;">
|
||||
|
||||
|
||||
|
||||
<form id="upload" action="<?php echo base_url() ?>FileUpload" method="post" role="form" enctype="multipart/form-data"> <div class="col-md-3">
|
||||
<form id="upload" action="<?php echo base_url() ?>FileUpload" method="post" role="form" enctype="multipart/form-data"> <div class="col-md-5 col-md-offset-2">
|
||||
<span for="FileName">File Name</span>
|
||||
<input type="text" class="form-control required" id="FileName" name="FileName" readonly>
|
||||
</div>
|
||||
<div class="box-header">
|
||||
</div>
|
||||
<div class="box-header">
|
||||
<input type="file" onchange="readURL(this);" id="userfile" name="userfile"/>
|
||||
<label for="photo">Select Excel File to upload<br/>(only .xls)</label>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input type="submit" class="btn btn-info" value="upload" /> </div>
|
||||
</div>
|
||||
<div class="col-md-2 col-md-offset-2">
|
||||
<input type="submit" class="btn btn-info" value="upload" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -217,8 +217,10 @@
|
||||
<td>Waste Sand</td>
|
||||
<td>Ton</td>
|
||||
<td>100</td>
|
||||
<td> <a href="#"><i class="fa fa-pencil"></i> </a>
|
||||
<a href="#"><i class="fa fa-eye"></i> </a></td>
|
||||
<td> <a href="#"><i class="fa fa-pencil"></i> </a>
|
||||
<a href="#"><i class="fa fa-eye"></i> </a>
|
||||
<a href="#"><i class="fa fa-trash"></i> </a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
@ -226,8 +228,10 @@
|
||||
<td>Resin</td>
|
||||
<td>Litre</td>
|
||||
<td>50</td>
|
||||
<td> <a href="#"><i class="fa fa-pencil"></i> </a>
|
||||
<a href="#"><i class="fa fa-eye"></i> </a></td>
|
||||
<td> <a href="#"><i class="fa fa-pencil"></i> </a>
|
||||
<a href="#"><i class="fa fa-eye"></i> </a>
|
||||
<a href="#"><i class="fa fa-trash"></i> </a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
@ -236,7 +240,10 @@
|
||||
<td>Litre</td>
|
||||
<td>100</td>
|
||||
<td> <a href="#"><i class="fa fa-pencil"></i> </a>
|
||||
<a href="#"><i class="fa fa-eye"></i> </a></td>
|
||||
<a href="#"><i class="fa fa-eye"></i> </a>
|
||||
<a href="#"><i class="fa fa-trash"></i> </a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@ -246,8 +253,7 @@
|
||||
<button type="button" class="btn btn-primary">Save</button>
|
||||
<button type="button" class="btn btn-primary">Submit</button>
|
||||
<button type="button" class="btn btn-primary">Reset</button>
|
||||
<button type="button" class="btn btn-primary">Cancel</button>
|
||||
|
||||
|
||||
</div>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user