FIX_Export XL ui And Login page : ps
This commit is contained in:
parent
c87f9bf948
commit
633dc1011d
2
.env
2
.env
@ -20,7 +20,7 @@ CI_ENVIRONMENT = development
|
|||||||
# APP
|
# APP
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
|
||||||
# app.baseURL = ''
|
app.baseURL = 'http://localhost/ria/'
|
||||||
# If you have trouble with `.`, you could also use `_`.
|
# If you have trouble with `.`, you could also use `_`.
|
||||||
# app_baseURL = ''
|
# app_baseURL = ''
|
||||||
# app.forceGlobalSecureRequests = false
|
# app.forceGlobalSecureRequests = false
|
||||||
|
|||||||
@ -90,5 +90,5 @@ class Autoload extends AutoloadConfig
|
|||||||
*
|
*
|
||||||
* @var list<string>
|
* @var list<string>
|
||||||
*/
|
*/
|
||||||
public $helpers = ['datetime','cias','purchaseorder'];
|
public $helpers = ['datetime','cias','purchaseorder','alert'];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -46,6 +46,7 @@ $routes->post('addNewsupplier', 'Supplier::savesupplierdetails'); // update supp
|
|||||||
$routes->post('supplierExist','Supplier::checksupplier');
|
$routes->post('supplierExist','Supplier::checksupplier');
|
||||||
$routes->post('supplierGSTExist','Supplier::checkGST');
|
$routes->post('supplierGSTExist','Supplier::checkGST');
|
||||||
$routes->post('supplierPANExist','Supplier::checkPAN');
|
$routes->post('supplierPANExist','Supplier::checkPAN');
|
||||||
|
$routes->get('exportsupplier','Supplier::exportsupplier'); // export supplier details
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -58,6 +59,7 @@ $routes->match(['get', 'post', 'put', 'delete'],'rawmaterialListing/(:num)', 'Ra
|
|||||||
$routes->post('materialExist','Rawmaterialdetails::checkmaterial');
|
$routes->post('materialExist','Rawmaterialdetails::checkmaterial');
|
||||||
$routes->get('viewRawmaterial','Rawmaterialdetails::viewRawmaterial');
|
$routes->get('viewRawmaterial','Rawmaterialdetails::viewRawmaterial');
|
||||||
$routes->post('rawmaterialdetails/editRawmaterial', 'Rawmaterialdetails::editRawmaterial');
|
$routes->post('rawmaterialdetails/editRawmaterial', 'Rawmaterialdetails::editRawmaterial');
|
||||||
|
$routes->get('exportmaterial' , 'Rawmaterialdetails::exportmaterial');
|
||||||
|
|
||||||
// Cost Center Routes
|
// Cost Center Routes
|
||||||
$routes->get('costListing', 'CostCenter::index');
|
$routes->get('costListing', 'CostCenter::index');
|
||||||
@ -70,6 +72,7 @@ $routes->post('CostCenter/DeleteCostDepartment','CostCenter::DeleteCostDepartmen
|
|||||||
|
|
||||||
$routes->match(['get', 'post', 'put', 'delete'],'CostCenter/GetBudgetForYear','CostCenter::GetBudgetForYear');
|
$routes->match(['get', 'post', 'put', 'delete'],'CostCenter/GetBudgetForYear','CostCenter::GetBudgetForYear');
|
||||||
$routes->match(['get', 'post', 'put', 'delete'],'deletecost', 'CostCenter::deletecost');
|
$routes->match(['get', 'post', 'put', 'delete'],'deletecost', 'CostCenter::deletecost');
|
||||||
|
$routes->get('exportcost', 'CostCenter::exportcost');
|
||||||
|
|
||||||
// Asset Detail Routes
|
// Asset Detail Routes
|
||||||
$routes->get('assetListing', 'Assetdetails::assetListing');
|
$routes->get('assetListing', 'Assetdetails::assetListing');
|
||||||
@ -77,13 +80,15 @@ $routes->get('addasset', 'Assetdetails::addasset');
|
|||||||
$routes->match(['get', 'post', 'put', 'delete'],'editOldasset', 'Assetdetails::editasset');
|
$routes->match(['get', 'post', 'put', 'delete'],'editOldasset', 'Assetdetails::editasset');
|
||||||
$routes->match(['get', 'post', 'put', 'delete'],'editOldasset/(:num)', 'Assetdetails::editasset/$1');
|
$routes->match(['get', 'post', 'put', 'delete'],'editOldasset/(:num)', 'Assetdetails::editasset/$1');
|
||||||
$routes->match(['get', 'post', 'put', 'delete'],'editasset', 'Assetdetails::editasset');
|
$routes->match(['get', 'post', 'put', 'delete'],'editasset', 'Assetdetails::editasset');
|
||||||
|
$routes->get('exportasset', 'Assetdetails::exportasset');
|
||||||
|
|
||||||
// Employee Detail Routes
|
// Employee Detail Routes
|
||||||
$routes->add('addemployee', 'Employeedetails::addemployee');
|
$routes->add('addemployee', 'Employeedetails::addemployee');
|
||||||
$routes->post('addNewEmployee', 'Employeedetails::AddNewEmployee');
|
$routes->post('addNewEmployee', 'Employeedetails::AddNewEmployee');
|
||||||
$routes->get('employeeListing', 'Employeedetails::index');
|
$routes->get('employeeListing', 'Employeedetails::index');
|
||||||
$routes->get('employeedetails/ViewEmployee', 'Employeedetails::ViewEmployee');
|
$routes->get('employeedetails/ViewEmployee', 'Employeedetails::ViewEmployee');
|
||||||
$routes->Post('employeedetails/UpdateEmployee', 'Employeedetails::UpdateEmployee');
|
$routes->post('employeedetails/UpdateEmployee', 'Employeedetails::UpdateEmployee');
|
||||||
|
$routes->get('exportemployee','Employeedetails::exportemployee');
|
||||||
|
|
||||||
|
|
||||||
$routes->post('employeeEmailExist','Employeedetails::CheckEmail');
|
$routes->post('employeeEmailExist','Employeedetails::CheckEmail');
|
||||||
@ -114,6 +119,7 @@ $routes->get('adddepartment', 'Department::adddepartment');
|
|||||||
$routes->post('savedepartment', 'Department::savedepartment');
|
$routes->post('savedepartment', 'Department::savedepartment');
|
||||||
$routes->get('editOlddepartment', 'Department::viewdepartment');
|
$routes->get('editOlddepartment', 'Department::viewdepartment');
|
||||||
$routes->post('editdepartment', 'Department::editdepartment');
|
$routes->post('editdepartment', 'Department::editdepartment');
|
||||||
|
$routes->get('exportdepartment', 'Department::exportdepartment');
|
||||||
|
|
||||||
$routes->get('batchcard/getHistListing', 'Batchcard::getHistListing');
|
$routes->get('batchcard/getHistListing', 'Batchcard::getHistListing');
|
||||||
|
|
||||||
|
|||||||
@ -428,4 +428,70 @@ class Assetdetails extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function exportasset()
|
||||||
|
{
|
||||||
|
|
||||||
|
$data = $this->assetdetails_model->export_excel();
|
||||||
|
$file_name = 'Asset_details' .' '. '.xls';
|
||||||
|
$spreadsheet = new Spreadsheet();
|
||||||
|
$sheet = $spreadsheet->getActiveSheet();
|
||||||
|
$sheet->mergeCells('G3:M3');
|
||||||
|
$sheet->getStyle('G3')->getAlignment()->setHorizontal('center');
|
||||||
|
$sheet->setTitle('Asset Details');
|
||||||
|
|
||||||
|
$headers = [
|
||||||
|
'G3' => 'RESICO Asset Details',
|
||||||
|
'C5' => 'AssetCode',
|
||||||
|
'D5' => 'AssetName',
|
||||||
|
'E5' => 'AssetDescription',
|
||||||
|
'F5' => 'DepartmentName',
|
||||||
|
'G5' => 'Location',
|
||||||
|
'H5' => 'PONO',
|
||||||
|
'I5' => 'POLineItem',
|
||||||
|
'J5' => 'MaterialName',
|
||||||
|
'K5' => 'Quanity',
|
||||||
|
'L5' => 'UserName',
|
||||||
|
'M5' => 'SupplierName',
|
||||||
|
'N5' => 'DateOfPurchase',
|
||||||
|
'O5' => 'DateOfCommison',
|
||||||
|
'P5' => 'AssetValue',
|
||||||
|
'Q5' => 'AssetStatus',
|
||||||
|
'R5' => 'IsActive',
|
||||||
|
'S5' => 'Remarks',
|
||||||
|
'T5' => 'CreatedBy',
|
||||||
|
'U5' => 'UpdatedBy'
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($headers as $cell => $value) {
|
||||||
|
$sheet->setCellValue($cell, $value);
|
||||||
|
$sheet->getStyle($cell)->getFont()->setSize($cell == 'G3' ? 14 : 12);
|
||||||
|
$sheet->getStyle($cell)->getFont()->setBold(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if($data){
|
||||||
|
$row = 6; // Start from row 6
|
||||||
|
foreach ($data as $d) {
|
||||||
|
$col = 'A'; // Start from column A
|
||||||
|
foreach ($d as $value) {
|
||||||
|
$sheet->setCellValue($col . $row, $value);
|
||||||
|
$col++;
|
||||||
|
}
|
||||||
|
$row++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$writer = new Xlsx($spreadsheet);
|
||||||
|
$writer->save($file_name);
|
||||||
|
header("Content-Type: application/vnd.ms-excel");
|
||||||
|
header('Content-Disposition: attachment; filename="' . basename($file_name) . '"');
|
||||||
|
header('Expires: 0');
|
||||||
|
header('Cache-Control: must-revalidate');
|
||||||
|
header('Pragma: public');
|
||||||
|
header('Content-Length:' . filesize($file_name));
|
||||||
|
flush();
|
||||||
|
readfile($file_name);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,6 +8,13 @@ use CodeIgniter\Validation\Exceptions\ValidationException;
|
|||||||
|
|
||||||
use App\Models\Costcenter_model;
|
use App\Models\Costcenter_model;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Style\Alignment;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module : Cost Center
|
* Module : Cost Center
|
||||||
* Cost Center Class to control all cost center related operations.
|
* Cost Center Class to control all cost center related operations.
|
||||||
@ -399,4 +406,73 @@ class CostCenter extends BaseController
|
|||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function exportcost()
|
||||||
|
{
|
||||||
|
|
||||||
|
$exportData = $this->costcenter_model->export_excel();
|
||||||
|
$file_name = 'Cost_Master' .' '. '.xls'; //save our workbook as this file name
|
||||||
|
$spreadsheet = new Spreadsheet();
|
||||||
|
$sheet = $spreadsheet->getActiveSheet();
|
||||||
|
$sheet->mergeCells('B3:P3');
|
||||||
|
$sheet->getStyle('G3')->getAlignment()->setHorizontal('center');
|
||||||
|
$sheet->setTitle('Cost Master');
|
||||||
|
|
||||||
|
$headers = [
|
||||||
|
'G3'=>'RESICO Cost Master',
|
||||||
|
'B5'=>'S.No','C5'=>'CostCenterCode','D5'=>'CostCenterName',
|
||||||
|
'E5'=>'CAPITAL','F5'=>'REVENUE','G5'=>'IMPORT','H5'=>'SERVICE',
|
||||||
|
'I5'=>'BudgetYear','J5'=>'DepartmentName','K5'=>'IsActive',
|
||||||
|
'L5'=>'CreatedBy','M5'=>'UpdatedBy','N5'=>'IsApproved','O5'=>'ApprovedBy'
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($headers as $cell => $value) {
|
||||||
|
$sheet->setCellValue($cell, $value);
|
||||||
|
$sheet->getStyle($cell)->getFont()->setSize($cell == 'G3' ? 14 : 12);
|
||||||
|
$sheet->getStyle($cell)->getFont()->setBold(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if($exportData){
|
||||||
|
$i = 6;$s = 1;
|
||||||
|
foreach ($exportData as $data) {
|
||||||
|
$rowData = [
|
||||||
|
'B' . $i => $s,
|
||||||
|
'C' . $i => $data['CostCenterCode'],
|
||||||
|
'D' . $i => $data['CostCenterName'],
|
||||||
|
'E' . $i => $data['capital'],
|
||||||
|
'F' . $i => $data['revenue'],
|
||||||
|
'G' . $i => $data['import'],
|
||||||
|
'H' . $i => $data['service'],
|
||||||
|
'I' . $i => $data['BudgetYear'],
|
||||||
|
'J' . $i => $data['DepartmentName'],
|
||||||
|
'K' . $i => $data['IsActive'],
|
||||||
|
//'K' . $i => $data['Remarks'],
|
||||||
|
'L' . $i => $data['firstname'],
|
||||||
|
'M' . $i => $data['Updated_By'],
|
||||||
|
'N' . $i => $data['IsApproved'],
|
||||||
|
'O' . $i => $data['firstname']
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($rowData as $cell => $value) {
|
||||||
|
$this->excel->getActiveSheet()->setCellValue($cell, $value);
|
||||||
|
}
|
||||||
|
|
||||||
|
$i++;
|
||||||
|
$s++;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
$writer = new Xlsx($spreadsheet);
|
||||||
|
$writer->save($file_name);
|
||||||
|
header("Content-Type: application/vnd.ms-excel");
|
||||||
|
header('Content-Disposition: attachment; filename="' . basename($file_name) . '"');
|
||||||
|
header('Expires: 0');
|
||||||
|
header('Cache-Control: must-revalidate');
|
||||||
|
header('Pragma: public');
|
||||||
|
header('Content-Length:' . filesize($file_name));
|
||||||
|
flush();
|
||||||
|
readfile($file_name);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,6 +8,13 @@ use CodeIgniter\Validation\Exceptions\ValidationException;
|
|||||||
|
|
||||||
use App\Models\Department_model;
|
use App\Models\Department_model;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Style\Alignment;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module : Department
|
* Module : Department
|
||||||
* Department Class to control all department related operations.
|
* Department Class to control all department related operations.
|
||||||
@ -155,4 +162,54 @@ class Department extends BaseController
|
|||||||
$this->loadViews("editdepartment", $this->global, $data, NULL);
|
$this->loadViews("editdepartment", $this->global, $data, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function exportdepartment()
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
$exportData = $this->department_model->export_excel();
|
||||||
|
$file_name = 'Department_Details' .' '. '.xls'; //save our workbook as this file name
|
||||||
|
$spreadsheet = new Spreadsheet();
|
||||||
|
$sheet = $spreadsheet->getActiveSheet();
|
||||||
|
$sheet->setTitle('Department Details');
|
||||||
|
|
||||||
|
$headers = [
|
||||||
|
'A1'=>'Department ID','B1'=>'Department Name','C1'=>'Head Deptment ID','D1'=>'Is Active','E1'=>'Created By','F1'=>'Created Date'
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($headers as $cell => $value) {
|
||||||
|
$sheet->setCellValue($cell, $value);
|
||||||
|
$sheet->getStyle($cell)->getFont()->setSize(12);
|
||||||
|
$sheet->getStyle($cell)->getFont()->setBold(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if($exportData){
|
||||||
|
$i = 6;
|
||||||
|
foreach ($exportData as $data) {
|
||||||
|
$rowData = [
|
||||||
|
'A' . $i=>$data['DEPCode'],
|
||||||
|
'B' . $i=>$data['DepartmentName'],
|
||||||
|
'C' . $i=>$data['HeadDept'],
|
||||||
|
'D' . $i=>$data['firstname'],
|
||||||
|
'E' . $i=>$data['CreatedDt'],
|
||||||
|
'F' . $i=>$data['IsActive']
|
||||||
|
];
|
||||||
|
foreach ($rowData as $cell => $value) {
|
||||||
|
$this->excel->getActiveSheet()->setCellValue($cell, $value);
|
||||||
|
}
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
$writer = new Xlsx($spreadsheet);
|
||||||
|
$writer->save($file_name);
|
||||||
|
header("Content-Type: application/vnd.ms-excel");
|
||||||
|
header('Content-Disposition: attachment; filename="' . basename($file_name) . '"');
|
||||||
|
header('Expires: 0');
|
||||||
|
header('Cache-Control: must-revalidate');
|
||||||
|
header('Pragma: public');
|
||||||
|
header('Content-Length:' . filesize($file_name));
|
||||||
|
flush();
|
||||||
|
readfile($file_name);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,6 +10,13 @@ use App\Models\Companydetails_model;
|
|||||||
|
|
||||||
use App\Models\Employeedetails_model;
|
use App\Models\Employeedetails_model;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Style\Alignment;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module : Employee
|
* Module : Employee
|
||||||
* Employeedetails Class to control all employee related operations.
|
* Employeedetails Class to control all employee related operations.
|
||||||
@ -703,4 +710,133 @@ class Employeedetails extends BaseController
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
function exportemployee()
|
||||||
|
{
|
||||||
|
|
||||||
|
$exportData = $this->employeedetails_model->export_excel();
|
||||||
|
|
||||||
|
$file_name = 'Employee_Details' .' '. '.xls'; //save our workbook as this file name
|
||||||
|
$spreadsheet = new Spreadsheet();
|
||||||
|
$sheet = $spreadsheet->getActiveSheet();
|
||||||
|
$sheet->mergeCells('L3:S3');
|
||||||
|
$sheet->getStyle('L3')->getAlignment()->setHorizontal('center');
|
||||||
|
$sheet->setTitle('Employee details');
|
||||||
|
|
||||||
|
$headers = [
|
||||||
|
'L3'=>'RESICO Employee Details',
|
||||||
|
'A5'=>'EmpID',
|
||||||
|
'B5'=>'FirstName-LastName',
|
||||||
|
'C5'=>'FatherName',
|
||||||
|
'D5'=>'Gender',
|
||||||
|
'E5'=>'Date of Birth',
|
||||||
|
'F5'=>'ContactNumber',
|
||||||
|
'G5'=>'EmailId',
|
||||||
|
'H5'=>'BloodGroup',
|
||||||
|
'I5'=>'MartialStatus',
|
||||||
|
'J5'=>'DateofJoining',
|
||||||
|
'K5'=>'PreviousYearsOfExp',
|
||||||
|
'L5'=>'Designation',
|
||||||
|
'M5'=>'DepartmentName',
|
||||||
|
'N5'=>'PresentAddress',
|
||||||
|
'O5'=>'PermanentAddress',
|
||||||
|
'P5'=>'EmergencyContactName',
|
||||||
|
'Q5'=>'EmergencyContactNumber',
|
||||||
|
'R5'=>'Edu_Qualification',
|
||||||
|
'S5'=>'Additional_Qualification',
|
||||||
|
'T5'=>'Reference_Name',
|
||||||
|
'U5'=>'Reference_ContactNumber',
|
||||||
|
'V5'=>'BankStatemant',
|
||||||
|
'W5'=>'AadharNo',
|
||||||
|
'X5'=>'PANNo',
|
||||||
|
'Y5'=>'PassportNo',
|
||||||
|
'Z5'=>'Passport_Valid_till',
|
||||||
|
'AA5'=>'Voter ID',
|
||||||
|
'AB5'=>'Driving License',
|
||||||
|
'AC5'=>'Driving License Expiry Date',
|
||||||
|
'AD5'=>'Official Email ID',
|
||||||
|
'AE5'=>'IsActive',
|
||||||
|
'AF5'=>'PFNO',
|
||||||
|
'AG5'=>'ESI',
|
||||||
|
'AH5'=>'Nominee Details',
|
||||||
|
// 'AI5'=>'PF_Balance',
|
||||||
|
// 'AJ5'=>'PF_Bal_On',
|
||||||
|
'AI5'=>'Remarks',
|
||||||
|
'AJ5'=>'CreatedBy',
|
||||||
|
'AK5'=>'UpdatedBY'
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($headers as $cell => $value) {
|
||||||
|
$sheet->setCellValue($cell, $value);
|
||||||
|
$sheet->getStyle($cell)->getFont()->setSize($cell == 'L3' ? 14 : 12);
|
||||||
|
$sheet->getStyle($cell)->getFont()->setBold(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if($exportData){
|
||||||
|
$i = 6;$s = 1;
|
||||||
|
foreach ($exportData as $data) {
|
||||||
|
$rowData = [
|
||||||
|
'A'. $i,$data['EmpID'],
|
||||||
|
'B'. $i=>$data['FirstName'].'-'.$data['LastName'],
|
||||||
|
'C'. $i=>$data['FatherName'],
|
||||||
|
'D'. $i=>$data['Gender'],
|
||||||
|
'E'. $i=>$data['DateofBirth'],
|
||||||
|
'F'. $i=>$data['ContactNumber'],
|
||||||
|
'G'. $i=>$data['EmailId'],
|
||||||
|
'H'. $i=>$data['BloodGroup'],
|
||||||
|
'I'. $i=>$data['MartialStatus'],
|
||||||
|
'J'. $i=>$data['DateofJoining'],
|
||||||
|
'K'. $i=>$data['PreviousYearsOfExp'],
|
||||||
|
'L'. $i=>$data['Designation'],
|
||||||
|
'M'. $i=>$data['DepartmentName'],
|
||||||
|
'N'. $i=>$data['PresentAddress'],
|
||||||
|
'O'. $i=>$data['PermanentAddress'],
|
||||||
|
'P'. $i=>$data['EmergencyContactName'],
|
||||||
|
'Q'. $i=>$data['EmergencyContactNumber'],
|
||||||
|
'R'. $i=>$data['Edu_Qualification'],
|
||||||
|
'S'. $i=>$data['Additional_Qualification'],
|
||||||
|
'T'. $i=>$data['Reference_Name'],
|
||||||
|
'U'. $i=>$data['Reference_ContactNumber'],
|
||||||
|
'V'. $i=>$data['BankAccountNo'].'-'.$data['IFSCCode'].'-'.$data['BankBranchName'].$data['BankAddress'],
|
||||||
|
'W'. $i=>$data['AadharNo'],
|
||||||
|
'X'. $i=>$data['PANNo'],
|
||||||
|
'Y'. $i=>$data['PassportNo'],
|
||||||
|
'Z'. $i=>$data['Passport_Valid_till'],
|
||||||
|
'AA'. $i=>$data['VoterID'],
|
||||||
|
'AB'. $i=>$data['DriverLicense'],
|
||||||
|
'AC'. $i=>$data['LicenseValidtill'],
|
||||||
|
'AD'. $i=>$data['personalEmailId'],
|
||||||
|
'AE'. $i=>$data['IsActive'],
|
||||||
|
'AF'. $i=>$data['PFNO'],
|
||||||
|
'AG'. $i=>$data['ESI'],
|
||||||
|
'AH'. $i=>$data['NomineeDetails'],
|
||||||
|
// 'AI'. $i=>$data['PF_Balance'],
|
||||||
|
// 'AJ'. $i=>$data['PF_Bal_On'],
|
||||||
|
'AI'. $i=>$data['Remarks'],
|
||||||
|
'AJ'. $i=>$data['CreatedByName'],
|
||||||
|
'AK'. $i=>$data['UpdatedByName'],
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($rowData as $cell => $value) {
|
||||||
|
$this->excel->getActiveSheet()->setCellValue($cell, $value);
|
||||||
|
}
|
||||||
|
|
||||||
|
$i++;
|
||||||
|
$s++;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
$writer = new Xlsx($spreadsheet);
|
||||||
|
$writer->save($file_name);
|
||||||
|
header("Content-Type: application/vnd.ms-excel");
|
||||||
|
header('Content-Disposition: attachment; filename="' . basename($file_name) . '"');
|
||||||
|
header('Expires: 0');
|
||||||
|
header('Cache-Control: must-revalidate');
|
||||||
|
header('Pragma: public');
|
||||||
|
header('Content-Length:' . filesize($file_name));
|
||||||
|
flush();
|
||||||
|
readfile($file_name);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@ -8,6 +8,13 @@ use CodeIgniter\Validation\Exceptions\ValidationException;
|
|||||||
|
|
||||||
use App\Models\Rawmaterialdetails_model;
|
use App\Models\Rawmaterialdetails_model;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Style\Alignment;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module : Material Master details
|
* Module : Material Master details
|
||||||
* Rawmaterialdetails Class to control all Rawmaterialdetails related operations.
|
* Rawmaterialdetails Class to control all Rawmaterialdetails related operations.
|
||||||
@ -335,4 +342,87 @@ class Rawmaterialdetails extends BaseController
|
|||||||
// echo json_encode($query);
|
// echo json_encode($query);
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
function exportmaterial()
|
||||||
|
{
|
||||||
|
|
||||||
|
$exportData = $this->rawmaterialdetails_model->export_excel();
|
||||||
|
|
||||||
|
$file_name = 'MaterialMaster' .' '. '.xls'; //save our workbook as this file name
|
||||||
|
$spreadsheet = new Spreadsheet();
|
||||||
|
$sheet = $spreadsheet->getActiveSheet();
|
||||||
|
$sheet->mergeCells('F3:M3');
|
||||||
|
$sheet->getStyle('F3')->getAlignment()->setHorizontal('center');
|
||||||
|
$sheet->setTitle('Material Master');
|
||||||
|
|
||||||
|
$headers = [
|
||||||
|
'F3'=>'RESICO Material Master',
|
||||||
|
'C5'=>'MaterialCode',
|
||||||
|
'D5'=>'MaterialName',
|
||||||
|
'E5'=>'MaterialType',
|
||||||
|
'F5'=>'UOM',
|
||||||
|
'G5'=>'RMCode',
|
||||||
|
'H5'=>'Category',
|
||||||
|
'I5'=>'assetcode',
|
||||||
|
'J5'=>'CostCenterCode',
|
||||||
|
'K5'=>'ConversionFactorUnit',
|
||||||
|
'L5'=>'ConversionFactorUOM',
|
||||||
|
'M5'=>'HSNCode',
|
||||||
|
'N5'=>'Remarks',
|
||||||
|
'O5'=>'Created by',
|
||||||
|
'P5'=>'Updated By',
|
||||||
|
'Q5'=>'IsActive'
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($headers as $cell => $value) {
|
||||||
|
$sheet->setCellValue($cell, $value);
|
||||||
|
$sheet->getStyle($cell)->getFont()->setSize($cell == 'F3' ? 14 : 12);
|
||||||
|
$sheet->getStyle($cell)->getFont()->setBold(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if($exportData){
|
||||||
|
$i = 6;$s = 1;
|
||||||
|
foreach ($exportData as $data) {
|
||||||
|
$rowData = [
|
||||||
|
'C' . $i=>$data['MaterialCode'],
|
||||||
|
'D' . $i=>$data['MaterialName'],
|
||||||
|
'E' . $i=>$data['MaterialType'],
|
||||||
|
'F' . $i=>$data['UOM'],
|
||||||
|
'G' . $i=>$data['RMCode'],
|
||||||
|
'H' . $i=>$data['Category'],
|
||||||
|
'I' . $i=>$data['assetcode'],
|
||||||
|
'J' . $i=>$data['CostCenterCode'],
|
||||||
|
'K' . $i=>$data['ConversionFactorUnit'],
|
||||||
|
'L' . $i=>$data['ConversionFactorUOM'],
|
||||||
|
'M' . $i=>$data['HSNCODE'],
|
||||||
|
'N' . $i=>$data['Remarks'],
|
||||||
|
'O' . $i=>$data['firstname'],
|
||||||
|
'P' . $i=>$data['Updated_By'],
|
||||||
|
'Q' . $i=>$data['IsActive']
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($rowData as $cell => $value) {
|
||||||
|
$this->excel->getActiveSheet()->setCellValue($cell, $value);
|
||||||
|
}
|
||||||
|
|
||||||
|
$i++;
|
||||||
|
$s++;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
$writer = new Xlsx($spreadsheet);
|
||||||
|
$writer->save($file_name);
|
||||||
|
header("Content-Type: application/vnd.ms-excel");
|
||||||
|
header('Content-Disposition: attachment; filename="' . basename($file_name) . '"');
|
||||||
|
header('Expires: 0');
|
||||||
|
header('Cache-Control: must-revalidate');
|
||||||
|
header('Pragma: public');
|
||||||
|
header('Content-Length:' . filesize($file_name));
|
||||||
|
flush();
|
||||||
|
readfile($file_name);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@ -6,30 +6,15 @@ use App\Controllers\BaseController;
|
|||||||
|
|
||||||
use CodeIgniter\Validation\Exceptions\ValidationException;
|
use CodeIgniter\Validation\Exceptions\ValidationException;
|
||||||
|
|
||||||
use App\Models\Assetdetails_model;
|
|
||||||
use App\Models\Batchcard_model;
|
|
||||||
use App\Models\Cashbook_model;
|
|
||||||
use App\Models\Companydetails_model;
|
|
||||||
use App\Models\Config_model;
|
|
||||||
use App\Models\Costcenter_model;
|
|
||||||
use App\Models\Dashboard_Model;
|
|
||||||
use App\Models\Department_model;
|
|
||||||
use App\Models\Employeedetails_model;
|
|
||||||
use App\Models\Emppaydate_model;
|
|
||||||
use App\Models\Inwardgateregister_model;
|
|
||||||
use App\Models\Login_model;
|
|
||||||
use App\Models\Monthlypay_model;
|
|
||||||
use App\Models\Mrir_model;
|
|
||||||
use App\Models\Payroll_model;
|
|
||||||
use App\Models\Purchaseorder_model;
|
|
||||||
use App\Models\Quality_model;
|
|
||||||
use App\Models\Rawmaterialdetails_model;
|
|
||||||
use App\Models\Requistion_model;
|
|
||||||
use App\Models\Store_model;
|
|
||||||
use App\Models\Storerequistion_model;
|
|
||||||
use App\Models\Supplier_model;
|
use App\Models\Supplier_model;
|
||||||
use App\Models\User_model;
|
|
||||||
use App\Models\Zohobook_api_model;
|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\Style\Alignment;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module : Supplier
|
* Module : Supplier
|
||||||
@ -53,7 +38,6 @@ class Supplier extends BaseController
|
|||||||
$this->session = session();
|
$this->session = session();
|
||||||
helper('form'); //$this->load->library('form_validation');
|
helper('form'); //$this->load->library('form_validation');
|
||||||
// $this->load->library('pagination');
|
// $this->load->library('pagination');
|
||||||
// $this->load->library('Excel');
|
|
||||||
$this->isLoggedIn();
|
$this->isLoggedIn();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -324,4 +308,66 @@ class Supplier extends BaseController
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function exportsupplier()
|
||||||
|
{
|
||||||
|
|
||||||
|
$data = $this->supplier_model->export_excel();
|
||||||
|
$file_name = 'Supplierdetails.xls';
|
||||||
|
$spreadsheet = new Spreadsheet();
|
||||||
|
$sheet = $spreadsheet->getActiveSheet();
|
||||||
|
$sheet->mergeCells('B3:P3');
|
||||||
|
$sheet->getStyle('B3')->getAlignment()->setHorizontal('center');
|
||||||
|
$sheet->setTitle('Supplier details');
|
||||||
|
|
||||||
|
$headers = [
|
||||||
|
'B3' => 'RESICO Supplier Details',
|
||||||
|
'A5' => 'SupplierID',
|
||||||
|
'B5' => 'SupplierName',
|
||||||
|
'C5' => 'Address',
|
||||||
|
'D5' => 'ContactNumber',
|
||||||
|
'E5' => 'AlternateContactNumber',
|
||||||
|
'F5' => 'EmailAddress',
|
||||||
|
'G5' => 'PAN',
|
||||||
|
'H5' => 'GST NO',
|
||||||
|
'I5' => 'MSME NO',
|
||||||
|
'J5' => 'BankStatemant',
|
||||||
|
'K5' => 'PaymentTerms',
|
||||||
|
'L5' => 'IsService',
|
||||||
|
'M5' => 'IsMaintanance',
|
||||||
|
'N5' => 'IsRawMaterial',
|
||||||
|
'O5' => 'CreatedBy',
|
||||||
|
'P5' => 'UpdatedBy',
|
||||||
|
'Q5' => 'IsActive'
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($headers as $cell => $value) {
|
||||||
|
$sheet->setCellValue($cell, $value);
|
||||||
|
$sheet->getStyle($cell)->getFont()->setSize($cell == 'B3' ? 14 : 12);
|
||||||
|
$sheet->getStyle($cell)->getFont()->setBold(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if($data){
|
||||||
|
$row = 6; // Start from row 6
|
||||||
|
foreach ($data as $d) {
|
||||||
|
$col = 'A'; // Start from column A
|
||||||
|
foreach ($d as $value) {
|
||||||
|
$sheet->setCellValue($col . $row, $value);
|
||||||
|
$col++;
|
||||||
|
}
|
||||||
|
$row++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$writer = new Xlsx($spreadsheet);
|
||||||
|
$writer->save($file_name);
|
||||||
|
header("Content-Type: application/vnd.ms-excel");
|
||||||
|
header('Content-Disposition: attachment; filename="' . basename($file_name) . '"');
|
||||||
|
header('Expires: 0');
|
||||||
|
header('Cache-Control: must-revalidate');
|
||||||
|
header('Pragma: public');
|
||||||
|
header('Content-Length:' . filesize($file_name));
|
||||||
|
flush();
|
||||||
|
readfile($file_name);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
49
app/Helpers/alert_helper.php
Executable file
49
app/Helpers/alert_helper.php
Executable file
@ -0,0 +1,49 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!function_exists('show_alert')) {
|
||||||
|
function show_alert($type, $content) {
|
||||||
|
$icon = '';
|
||||||
|
$class = '';
|
||||||
|
switch ($type) {
|
||||||
|
case 'success':
|
||||||
|
$icon = ' <i class="fa fa-check"></i> ';
|
||||||
|
$class = ' alert-success';
|
||||||
|
break;
|
||||||
|
case 'warning':
|
||||||
|
$icon = '<i class="fa fa-warning"></i> ';
|
||||||
|
$class = ' alert-danger';
|
||||||
|
break;
|
||||||
|
case 'danger':
|
||||||
|
$icon = '<i class="fa-exclamation"></i> ';
|
||||||
|
$class = ' alert-danger';
|
||||||
|
break;
|
||||||
|
case 'info':
|
||||||
|
$icon = '<i class="fa fa-info-circle"></i> ';
|
||||||
|
$class = ' alert-info';
|
||||||
|
break;
|
||||||
|
case 'error':
|
||||||
|
$icon = '<i class="fa fa-times-circle"></i> ';
|
||||||
|
$class = ' alert-error ';
|
||||||
|
break;
|
||||||
|
case 'question' :
|
||||||
|
$icon = '<i class="fa fa-question"></i> ';
|
||||||
|
$class = ' alert-info';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$icon = '<i class="fa fa-comment"></i> ';
|
||||||
|
$class = ' alert-info';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
$html = '
|
||||||
|
<div class="col-md-4 col-md-offset-8">
|
||||||
|
<div class="alert ' . $class . ' alert-dismissable">
|
||||||
|
' . $icon . '
|
||||||
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||||
|
' . $content . '
|
||||||
|
</div>
|
||||||
|
</div>';
|
||||||
|
|
||||||
|
return $html;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -254,7 +254,7 @@ class Assetdetails_model extends Model
|
|||||||
function export_excel()
|
function export_excel()
|
||||||
{
|
{
|
||||||
$builder = $this->db->table('T_Asset_Details as det')
|
$builder = $this->db->table('T_Asset_Details as det')
|
||||||
->select('det.*,dep.DepartmentName as DEPCode,sup.SupplierName,MM.MaterialName,emp.firstname,emp1.firstname as Updated_By')
|
->select('det.AssetCode,det.AssetName,det.Description,dep.DepartmentName as DEPCode,det.Location,det.PONO,det.POLineItem,MM.MaterialName,det.Quantity,det.UserName,sup.SupplierName,det.DateOfPurchase,det.DateOfCommison,det.AssetValue,det.AssetStatus,det.IsActive,det.Remarks,emp.firstname,emp1.firstname as Updated_By')
|
||||||
->join('tbl_users as tbl', ' det.createdby = tbl.userid', 'left')
|
->join('tbl_users as tbl', ' det.createdby = tbl.userid', 'left')
|
||||||
->join('T_DepartmentDetails as dep', 'dep.DEPCode=det.DEPCode', 'left')
|
->join('T_DepartmentDetails as dep', 'dep.DEPCode=det.DEPCode', 'left')
|
||||||
->join('T_Employee_Details as emp', 'emp.empid=tbl.empid', 'left')
|
->join('T_Employee_Details as emp', 'emp.empid=tbl.empid', 'left')
|
||||||
|
|||||||
@ -170,19 +170,19 @@ class Supplier_model extends Model
|
|||||||
|
|
||||||
function export_excel()
|
function export_excel()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$builder = $this->db->table('T_SupplierDetailsN as det')
|
$builder = $this->db->table('T_SupplierDetailsN as det')
|
||||||
->select('det.SupplierID,SupplierName,det.Address,det.ContactNumber,det.AlternateContactNumber,det.EmailAddress,det.Exiseregistration,det.TIN,
|
->select('det.SupplierID,SupplierName,det.Address,det.ContactNumber,det.AlternateContactNumber,det.EmailAddress,
|
||||||
det.PAN,det.CSTNO,det.CSTDate,det.GSTNO,det.GSTRange,det.CollectrateAddress,det.UANumber,pmt.PaymentTerms,emp.firstname ,emp1.firstname as Update_by,det.IsActive,
|
det.PAN,det.GSTNO,det.Cert_MSME,
|
||||||
det.Cert_EMS,det.Cert_TS,det.Cert_OSHAS,det.Cert_ISO,det.Cert_IMS,det.BankAcNumber,det.IFSCCode,det.BranchName,det.BankAddress,
|
CONCAT(det.BankAcNumber, "-", det.IFSCCode, "-", det.BranchName," ", det.BankAddress) AS ConcatenatedBankDetails,
|
||||||
det.IsService,det.IsMaintanance,det.IsRawMaterial')
|
pmt.PaymentTerms,det.IsService,det.IsMaintanance,det.IsRawMaterial,emp.firstname ,emp1.firstname as Update_by,det.IsActive')
|
||||||
->join('tbl_users as tbl', ' det.createdby = tbl.userid', 'left')
|
->join('tbl_users as tbl', ' det.createdby = tbl.userid', 'left')
|
||||||
->join('T_Employee_Details as emp', 'emp.empid=tbl.empid', 'left')
|
->join('T_Employee_Details as emp', 'emp.empid=tbl.empid', 'left')
|
||||||
->join('tbl_users as tbl1', ' det.UpdatedBy = tbl1.userid', 'left')
|
->join('tbl_users as tbl1', ' det.UpdatedBy = tbl1.userid', 'left')
|
||||||
->join('T_Employee_Details as emp1', 'emp1.empid=tbl1.empid', 'left')
|
->join('T_Employee_Details as emp1', 'emp1.empid=tbl1.empid', 'left')
|
||||||
->join('T_PaymentTerms as pmt', 'pmt.PaymentID = det.PaymentID', 'left');
|
->join('T_PaymentTerms as pmt', 'pmt.PaymentID = det.PaymentID', 'left');
|
||||||
return $$builder->get()->getResultArray();
|
$query = $builder->get();
|
||||||
|
|
||||||
|
return $query->getResultArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkSupplierExists($supp_name)
|
function checkSupplierExists($supp_name)
|
||||||
|
|||||||
@ -19,23 +19,17 @@
|
|||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<?php
|
<?php
|
||||||
helper('form');
|
helper('form');
|
||||||
$error = session()->getFlashdata('error');
|
$error = session()->getFlashdata('error');
|
||||||
if ($error) {
|
if($error){
|
||||||
|
$type = "error";
|
||||||
|
echo show_alert($type, $error);
|
||||||
|
}
|
||||||
|
$success = session()->getFlashdata('success');
|
||||||
|
if($success){
|
||||||
|
$type = "success";
|
||||||
|
echo show_alert($type, $success);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<div class="alert alert-danger alert-dismissable">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<?php echo session()->getFlashdata('error'); ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<?php
|
|
||||||
$success = session()->getFlashdata('success');
|
|
||||||
if ($success) {
|
|
||||||
?>
|
|
||||||
<div class="alert alert-info alert-dismissable">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<?php echo session()->getFlashdata('success'); ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
<div class="col-xs-12 text-right">
|
<div class="col-xs-12 text-right">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<a class="btn btn-success" href="<?php echo base_url(); ?>addasset">Add New Asset</a>
|
<a class="btn btn-success" href="<?php echo base_url(); ?>addasset">Add New Asset</a>
|
||||||
<a class="btn btn-success" href="<?php echo base_url(); ?>assetdetails/export_asset">Export Asset Details <i class="fa fa-download"aira-hidden="true"></i></a>
|
<a class="btn btn-success" href="<?php echo base_url(); ?>exportasset">Export Asset Details <i class="fa fa-download"aira-hidden="true"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
<div class="col-xs-12 text-right">
|
<div class="col-xs-12 text-right">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<a class="btn btn-success" href="<?php echo base_url(); ?>addCostCenter">Add New Cost List</a>
|
<a class="btn btn-success" href="<?php echo base_url(); ?>addCostCenter">Add New Cost List</a>
|
||||||
<!-- <a class="btn btn-success" href="<?php echo base_url(); ?>CostCenter/export_cost">Export Cost Details <i class="fa fa-download"aira-hidden="true"></i></a> -->
|
<a class="btn btn-success" href="<?php echo base_url(); ?>exportcost">Export Cost Details <i class="fa fa-download"aira-hidden="true"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -49,7 +49,7 @@
|
|||||||
<div class="col-xs-12 text-right">
|
<div class="col-xs-12 text-right">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<a class="btn btn-success" href="<?php echo base_url(); ?>adddepartment">Add New department</a>
|
<a class="btn btn-success" href="<?php echo base_url(); ?>adddepartment">Add New department</a>
|
||||||
<!--<a class="btn btn-info" href="<?php echo base_url(); ?>supplier/export_supplierdetails">Export department details <i class="fa fa-download"aira-hidden="true"></i></a>-->
|
<a class="btn btn-success" href="<?php echo base_url(); ?>exportdepartment">Export department details <i class="fa fa-download"aira-hidden="true"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -4,25 +4,19 @@
|
|||||||
<section class="content">
|
<section class="content">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<?php
|
<?php
|
||||||
helper('form');
|
helper('form');
|
||||||
$error = session()->getFlashdata('error');
|
$error = session()->getFlashdata('error');
|
||||||
if ($error) {
|
if($error){
|
||||||
|
$type = "error";
|
||||||
|
echo show_alert($type, $error);
|
||||||
|
}
|
||||||
|
$success = session()->getFlashdata('success');
|
||||||
|
if($success){
|
||||||
|
$type = "success";
|
||||||
|
echo show_alert($type, $success);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<div class="alert alert-danger alert-dismissable">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<?php echo session()->getFlashdata('error'); ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<?php
|
|
||||||
$success = session()->getFlashdata('success');
|
|
||||||
if ($success) {
|
|
||||||
?>
|
|
||||||
<div class="alert alert-info alert-dismissable">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<?php echo session()->getFlashdata('success'); ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@ -40,7 +34,7 @@
|
|||||||
<div class="col-xs-12 text-right">
|
<div class="col-xs-12 text-right">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<a class="btn btn-success" href="<?php echo base_url(); ?>addemployee">Add New Employee</a>
|
<a class="btn btn-success" href="<?php echo base_url(); ?>addemployee">Add New Employee</a>
|
||||||
<!-- <a class="btn btn-success" href="<?php echo base_url(); ?>employeedetails/export_employee">Export Employee Details <i class="fa fa-download"aira-hidden="true"></i></a> -->
|
<a class="btn btn-success" href="<?php echo base_url(); ?>exportemployee">Export Employee Details <i class="fa fa-download"aira-hidden="true"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -86,6 +86,14 @@
|
|||||||
</script> -->
|
</script> -->
|
||||||
<link rel="icon" href="<?php echo base_url(); ?>public/assets/dist/img/RI_favicon.png"/>
|
<link rel="icon" href="<?php echo base_url(); ?>public/assets/dist/img/RI_favicon.png"/>
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
.off-screen {
|
||||||
|
position: fixed;
|
||||||
|
top: -100px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
.debug-bar-dinlineBlock {display: none !important;}
|
.debug-bar-dinlineBlock {display: none !important;}
|
||||||
.a-tag-link { color: #00a65a; transition: color 0.3s ease;}
|
.a-tag-link { color: #00a65a; transition: color 0.3s ease;}
|
||||||
.a-tag-link:hover { color: #ff0000; }
|
.a-tag-link:hover { color: #ff0000; }
|
||||||
@ -264,6 +272,11 @@
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</li><!--Dashboard active treeview -->
|
</li><!--Dashboard active treeview -->
|
||||||
|
<li class="treeview">
|
||||||
|
<a id="salesDashboardLin" href="https://vu.venbait.in/d/d9eb820b-60aa-4fe6-9de0-531924185b77/sales-at-a-glance?orgId=2&from=1715215911333&to=1715237511333" target="_blank">
|
||||||
|
<i class="fa fa-dashboard"></i><span>Sales Dashboard</span>
|
||||||
|
</a>
|
||||||
|
</li><!--Dashboard active treeview -->
|
||||||
<!-- Dashboard Ends -->
|
<!-- Dashboard Ends -->
|
||||||
|
|
||||||
<!-- Complaint starts -->
|
<!-- Complaint starts -->
|
||||||
@ -1909,3 +1922,33 @@
|
|||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// document.getElementById("salesDashboardLink").addEventListener("click", function(event) {
|
||||||
|
// event.preventDefault();
|
||||||
|
// var xhr = new XMLHttpRequest();
|
||||||
|
// xhr.open('POST', "https://vu.venbait.in/login", true);
|
||||||
|
// // xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
||||||
|
// xhr.setRequestHeader("Content-Type", "application/json");
|
||||||
|
// xhr.setRequestHeader("Access-Control-Allow-Origin", "*");
|
||||||
|
// xhr.onload = function () {
|
||||||
|
// console.log(this.responseText);
|
||||||
|
// };
|
||||||
|
// // xhr.send('user=resico&password=vu4RI');
|
||||||
|
// xhr.send(JSON.stringify({ user: "resico", password: "vu4RI" }));
|
||||||
|
// // xhr.open("POST", "https://vu.venbait.in/login", true);
|
||||||
|
// // xhr.setRequestHeader("Content-Type", "application/json");
|
||||||
|
// // xhr.onreadystatechange = function() {
|
||||||
|
// // console.log(xhr);
|
||||||
|
// // if (xhr.readyState === 4) {
|
||||||
|
// // if (xhr.status === 200) {
|
||||||
|
// // window.open("https://vu.venbait.in/d/d9eb820b-60aa-4fe6-9de0-531924185b77/sales-at-a-glance?orgId=2&from=1715215911333&to=1715237511333", "_blank");
|
||||||
|
// // } else {
|
||||||
|
// // window.open("https://vu.venbait.in/d/d9eb820b-60aa-4fe6-9de0-531924185b77/sales-at-a-glance?orgId=2&from=1715215911333&to=1715237511333", "_blank");
|
||||||
|
// // }
|
||||||
|
// // }
|
||||||
|
// // };
|
||||||
|
|
||||||
|
// // xhr.send(JSON.stringify({ user: "resico", password: "vu4RI" }));
|
||||||
|
// });
|
||||||
|
</script>
|
||||||
@ -61,12 +61,20 @@
|
|||||||
|
|
||||||
<form action="<?php echo base_url(); ?>loginMe" method="post">
|
<form action="<?php echo base_url(); ?>loginMe" method="post">
|
||||||
<div class="form-group has-feedback">
|
<div class="form-group has-feedback">
|
||||||
<input type="text" class="form-control" placeholder="Email" name="email" required />
|
<div class="input-group">
|
||||||
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
|
<input type="text" class="form-control" placeholder="Email" name="email" required />
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<span class="glyphicon glyphicon-envelope"></span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group has-feedback">
|
<div class="form-group has-feedback">
|
||||||
<input type="password" class="form-control" placeholder="Password" name="password" required />
|
<div class="input-group">
|
||||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
<input type="password" class="form-control" placeholder="Password" name="password" id="password" required />
|
||||||
|
<span class="input-group-addon">
|
||||||
|
<span class="glyphicon glyphicon-eye-open" id="togglePassword"></span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-8">
|
<div class="col-xs-8">
|
||||||
@ -89,5 +97,22 @@
|
|||||||
|
|
||||||
<script src="<?php echo base_url(); ?>public/assets/js/jQuery-2.1.4.min.js"></script>
|
<script src="<?php echo base_url(); ?>public/assets/js/jQuery-2.1.4.min.js"></script>
|
||||||
<script src="<?php echo base_url(); ?>public/assets/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
|
<script src="<?php echo base_url(); ?>public/assets/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$("#togglePassword").click(function() {
|
||||||
|
|
||||||
|
var passwordField = $("#password");
|
||||||
|
var icon = $(this);
|
||||||
|
|
||||||
|
if (passwordField.attr("type") === "password") {
|
||||||
|
passwordField.attr("type", "text");
|
||||||
|
icon.removeClass("glyphicon-eye-open").addClass("glyphicon-eye-close");
|
||||||
|
} else {
|
||||||
|
passwordField.attr("type", "password");
|
||||||
|
icon.removeClass("glyphicon-eye-close").addClass("glyphicon-eye-open");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -4,23 +4,17 @@
|
|||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<?php
|
<?php
|
||||||
helper('form');
|
helper('form');
|
||||||
$error = session()->getFlashdata('error');
|
$error = session()->getFlashdata('error');
|
||||||
if ($error) {
|
if($error){
|
||||||
|
$type = "error";
|
||||||
|
echo show_alert($type, $error);
|
||||||
|
}
|
||||||
|
$success = session()->getFlashdata('success');
|
||||||
|
if($success){
|
||||||
|
$type = "success";
|
||||||
|
echo show_alert($type, $success);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<div class="alert alert-danger alert-dismissable">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<?php echo session()->getFlashdata('error'); ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<?php
|
|
||||||
$success = session()->getFlashdata('success');
|
|
||||||
if ($success) {
|
|
||||||
?>
|
|
||||||
<div class="alert alert-info alert-dismissable">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<?php echo session()->getFlashdata('success'); ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@ -39,7 +33,7 @@
|
|||||||
<div class="col-xs-12 text-right">
|
<div class="col-xs-12 text-right">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<a class="btn btn-success" href="<?php echo base_url(); ?>addRawmaterial">Add New Material</a>
|
<a class="btn btn-success" href="<?php echo base_url(); ?>addRawmaterial">Add New Material</a>
|
||||||
<!-- <a class="btn btn-success" href="<?php echo base_url(); ?>rawmaterialdetails/export_material">Export Material Master <i class="fa fa-download"aira-hidden="true"></i></a> -->
|
<a class="btn btn-success" href="<?php echo base_url(); ?>exportmaterial">Export Material Master <i class="fa fa-download"aira-hidden="true"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -7,22 +7,16 @@
|
|||||||
<?php
|
<?php
|
||||||
helper('form');
|
helper('form');
|
||||||
$error = session()->getFlashdata('error');
|
$error = session()->getFlashdata('error');
|
||||||
if ($error) {
|
if($error){
|
||||||
|
$type = "error";
|
||||||
|
echo show_alert($type, $error);
|
||||||
|
}
|
||||||
|
$success = session()->getFlashdata('success');
|
||||||
|
if($success){
|
||||||
|
$type = "success";
|
||||||
|
echo show_alert($type, $success);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<div class="alert alert-danger alert-dismissable">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<?php echo session()->getFlashdata('error'); ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
<?php
|
|
||||||
$success = session()->getFlashdata('success');
|
|
||||||
if ($success) {
|
|
||||||
?>
|
|
||||||
<div class="alert alert-info alert-dismissable">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<?php echo session()->getFlashdata('success'); ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@ -42,7 +36,7 @@
|
|||||||
<div class="col-xs-12 text-right">
|
<div class="col-xs-12 text-right">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<a class="btn btn-success" href="<?php echo base_url(); ?>addsupplier">Add New Supplier</a>
|
<a class="btn btn-success" href="<?php echo base_url(); ?>addsupplier">Add New Supplier</a>
|
||||||
<!-- <a class="btn btn-success" href="<?php echo base_url(); ?>supplier/export_supplierdetails">Export supplier details <i class="fa fa-download"aira-hidden="true"></i></a> -->
|
<a class="btn btn-success" href="<?php echo base_url(); ?>exportsupplier">Export Supplier Details <i class="fa fa-download"aira-hidden="true"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -5,25 +5,19 @@
|
|||||||
<section class="content">
|
<section class="content">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<?php
|
<?php
|
||||||
helper('form');
|
helper('form');
|
||||||
$error = session()->getFlashdata('error');
|
$error = session()->getFlashdata('error');
|
||||||
if ($error) {
|
if($error){
|
||||||
?>
|
$type = "error";
|
||||||
<div class="alert alert-danger alert-dismissable">
|
echo show_alert($type, $error);
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
}
|
||||||
<?php echo session()->getFlashdata('error'); ?>
|
$success = session()->getFlashdata('success');
|
||||||
</div>
|
if($success){
|
||||||
<?php } ?>
|
$type = "success";
|
||||||
<?php
|
echo show_alert($type, $success);
|
||||||
$success = session()->getFlashdata('success');
|
}
|
||||||
if ($success) {
|
?>
|
||||||
?>
|
|
||||||
<div class="alert alert-info alert-dismissable">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<?php echo session()->getFlashdata('success'); ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
|||||||
@ -15,6 +15,7 @@
|
|||||||
"ext-mbstring": "*",
|
"ext-mbstring": "*",
|
||||||
"laminas/laminas-escaper": "^2.13",
|
"laminas/laminas-escaper": "^2.13",
|
||||||
"mpdf/mpdf": "^8.2",
|
"mpdf/mpdf": "^8.2",
|
||||||
|
"phpoffice/phpspreadsheet": "^2.0",
|
||||||
"psr/log": "^3.0"
|
"psr/log": "^3.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
|||||||
BIN
public/assets/images/bg.jpg
Normal file
BIN
public/assets/images/bg.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
Loading…
Reference in New Issue
Block a user