error:venket
@ -3,56 +3,54 @@
|
||||
class CompanyController extends CI_Controller{
|
||||
|
||||
public function __construct(){
|
||||
|
||||
parent::__construct();
|
||||
$this->load->database();
|
||||
$this->load->model('CompanyModel');
|
||||
$this->load->library('upload');
|
||||
|
||||
parent::__construct();
|
||||
$this->load->database();
|
||||
$this->load->model('CompanyModel');
|
||||
$this->load->library('upload');
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function index(){
|
||||
public function index()
|
||||
{
|
||||
|
||||
if($this->session->userdata('user_id'))
|
||||
if($this->session->userdata('user_id'))
|
||||
{
|
||||
$this->load->view('Gsetting');
|
||||
$this->load->view('Gsetting');
|
||||
}
|
||||
else
|
||||
{
|
||||
redirect('LoginController');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Insert Company Function
|
||||
public function addcompany()
|
||||
{
|
||||
|
||||
public function addcompany(){
|
||||
|
||||
if($this->input->post('submit')){
|
||||
|
||||
$config = array(
|
||||
|
||||
'file_name'=>time(),
|
||||
'overwrite'=>TRUE,
|
||||
/* 'max_width'=>'400',
|
||||
'max_height'=>'225', */
|
||||
'max_size'=>'2048',
|
||||
'allowed_types' => "png",
|
||||
'upload_path'=>'./uploads/'
|
||||
|
||||
);
|
||||
|
||||
|
||||
$this->upload->initialize($config);
|
||||
$this->upload->do_upload('comp_logo');
|
||||
|
||||
if (!$this->upload->do_upload('comp_logo'))
|
||||
{
|
||||
// $error = array('error' => $this->upload->display_errors());
|
||||
$this->session->set_flashdata('status',"Only png is allowed and demension 400x225 ");
|
||||
//$error = array('error' => $this->upload->display_errors());
|
||||
$this->session->set_flashdata('status',"Only png is allowed ");
|
||||
redirect('CompanyController/index');
|
||||
// echo '<pre>'; print_r($error); die();
|
||||
//echo '<pre>'; print_r($error); die();
|
||||
|
||||
}
|
||||
$imageData = $this->upload->data();
|
||||
@ -63,27 +61,24 @@ class CompanyController extends CI_Controller{
|
||||
$company['comp_web'] = $this->input->post('comp_web');
|
||||
$company['comp_logo'] = $imageData['file_name'];
|
||||
|
||||
$result = $this->CompanyModel->insertcomp($company);
|
||||
$website = $this->input->post('comp_web');
|
||||
$id=$this->CompanyModel->get_comp_id($website);
|
||||
|
||||
|
||||
$result = $this->CompanyModel->insertcomp($company);
|
||||
$comp_name = $this->input->post('comp_name');
|
||||
$id=$this->CompanyModel->get_comp_id($comp_name);
|
||||
|
||||
$count = count($this->input->post('branch_name'));
|
||||
|
||||
for($i=0;$i<$count;$i++) {
|
||||
for($i=0;$i<$count;$i++)
|
||||
{
|
||||
|
||||
$branch['comp_id'] = $id;
|
||||
$branch['branch_name']= $this->input->post('branch_name')[$i];
|
||||
$branch['branch_address'] = $this->input->post('address')[$i];
|
||||
$branch['maplink'] = $this->input->post('maplink')[$i];
|
||||
|
||||
// echo '<pre>'; print_r($branch); die();
|
||||
|
||||
$result=$this->CompanyModel->branches($branch);
|
||||
|
||||
}
|
||||
|
||||
$this->session->set_flashdata('status', '"'. $company['comp_name'] .'" -Company Added Sucessfully');
|
||||
$this->session->set_flashdata('status', '<div class="success-message">"'. $company['comp_name'] .'" -Company Adde Sucessfully</div>');
|
||||
redirect('CompanyController/companylist');
|
||||
|
||||
|
||||
@ -92,7 +87,7 @@ class CompanyController extends CI_Controller{
|
||||
|
||||
|
||||
|
||||
|
||||
//CompanyList View Function
|
||||
public function CompanyList()
|
||||
{
|
||||
|
||||
@ -110,28 +105,23 @@ class CompanyController extends CI_Controller{
|
||||
|
||||
|
||||
|
||||
|
||||
public function editCompany(){
|
||||
|
||||
//Update Company Function
|
||||
public function editCompany()
|
||||
{
|
||||
|
||||
//get Id from companylist view page
|
||||
$id=$this->input->get('id');
|
||||
$result['data']=$this->CompanyModel->editcompany($id);
|
||||
$result['bdata']=$this->CompanyModel->get_branch($id);
|
||||
// print_r($result);die();
|
||||
// echo '<pre>'; print_r($result); die();
|
||||
$this->load->view('editcompanylist',$result);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if($this->input->post('update')){
|
||||
if($this->input->post('update'))
|
||||
{
|
||||
|
||||
$config = array(
|
||||
|
||||
'file_name'=>time(),
|
||||
'overwrite'=>TRUE,
|
||||
/* 'max_width'=>'400',
|
||||
'max_height'=>'225', */
|
||||
$config = array(
|
||||
|
||||
'file_name'=>time(),
|
||||
'max_size'=>'2048',
|
||||
'allowed_types' => "png",
|
||||
'upload_path'=>'./uploads/'
|
||||
@ -140,69 +130,69 @@ class CompanyController extends CI_Controller{
|
||||
$this->upload->initialize($config);
|
||||
$this->upload->do_upload('comp_logo');
|
||||
|
||||
if (!$this->upload->do_upload('comp_logo'))
|
||||
if (!$this->upload->do_upload('comp_logo'))
|
||||
{
|
||||
// $error = array('error' => $this->upload->display_errors());
|
||||
// $this->session->set_flashdata('status',"Only png is allowed and demension 400x225 is allowed ");
|
||||
//$error = array('error' => $this->upload->display_errors());
|
||||
// $this->session->set_flashdata('status',"Only png is allowed");
|
||||
// redirect('CompanyController/editCompany');
|
||||
// echo '<pre>'; print_r($error); die();
|
||||
//echo '<pre>'; print_r($error); die();
|
||||
|
||||
}
|
||||
|
||||
$imageData = $this->upload->data();
|
||||
|
||||
//image upload part
|
||||
$imageData = $this->upload->data();
|
||||
|
||||
$id = $this->input->post('comp_id');
|
||||
$company['comp_name'] = $this->input->post('comp_name');
|
||||
$company['comp_web'] = $this->input->post('comp_web');
|
||||
if($this->upload->do_upload('comp_logo'))
|
||||
if($this->upload->do_upload('comp_logo'))
|
||||
{
|
||||
$company['comp_logo'] = $imageData['file_name'];
|
||||
}
|
||||
|
||||
$result = $this->CompanyModel->updatecomp($company, $id);
|
||||
|
||||
|
||||
|
||||
$count = count($this->input->post('branch_name'));
|
||||
$result = $this->CompanyModel->updatecomp($company, $id);
|
||||
$count = count($this->input->post('branch_name'));
|
||||
|
||||
|
||||
// print_r($this->input->post('new_branch_name'));die();
|
||||
for($i=0;$i<$count;$i++)
|
||||
{
|
||||
$id = $this->input->post('branch_id')[$i];
|
||||
$branch['branch_name']= $this->input->post('branch_name')[$i];
|
||||
$branch['branch_address'] = $this->input->post('address')[$i];
|
||||
$branch['maplink'] = $this->input->post('maplink')[$i];
|
||||
|
||||
// echo '<pre>'; echo $id; print_r($branch); die();
|
||||
$this->CompanyModel->updatebranches($branch, $id);
|
||||
}
|
||||
// $count1 = count($this->input->post('new_branch_name'));
|
||||
if ($this->input->post('new_branch_name')) {
|
||||
$count1 = count($this->input->post('new_branch_name'));
|
||||
|
||||
if ($this->input->post('new_branch_name'))
|
||||
{
|
||||
|
||||
for($i=0;$i<$count1;$i++) {
|
||||
$count1 = count($this->input->post('new_branch_name'));
|
||||
|
||||
for($i=0;$i<$count1;$i++)
|
||||
{
|
||||
|
||||
$branch['comp_id'] = $this->input->post('comp_id');
|
||||
$branch['branch_name']= $this->input->post('new_branch_name')[$i];
|
||||
$branch['branch_address'] = $this->input->post('new_address')[$i];
|
||||
$branch['maplink'] = $this->input->post('new_maplink')[$i];
|
||||
|
||||
// echo '<pre>'; print_r($branch); die();
|
||||
|
||||
$result=$this->CompanyModel->branches($branch);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->session->set_flashdata('status', '"'. $company['comp_name'] .'" -Company Updated Sucessfully');
|
||||
$this->session->set_flashdata('status', '<div class="success-message">"'. $company['comp_name'] .'" -Company Updated Sucessfully</div>');
|
||||
redirect('CompanyController/companylist');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function comp_validation(){
|
||||
|
||||
$comp_name = $this->input->post('comp_name');
|
||||
$result = $this->CompanyModel->comp_validation($comp_name);
|
||||
if(count($result)){
|
||||
$this->output->set_output(true);
|
||||
}else{ $this->output->set_output(false);}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -52,8 +52,6 @@ public function addemp()
|
||||
|
||||
'file_name'=>time(),
|
||||
'overwrite'=>TRUE,
|
||||
/* 'max_width'=>'300',
|
||||
'max_height'=>'300', */
|
||||
'max_size'=>'2048',
|
||||
'allowed_types' => "jpg|png|jpeg",
|
||||
'upload_path'=>'./uploads/'
|
||||
@ -64,35 +62,32 @@ public function addemp()
|
||||
|
||||
if ($this->upload->do_upload('comp_logo'))
|
||||
{
|
||||
|
||||
|
||||
// $error = array('error' => $this->upload->display_errors());
|
||||
$this->session->set_flashdata('status',"jpg/png is allowed_types and demension 300X300 ");
|
||||
$this->session->set_flashdata('status',"<div class='alert-message'>jpg/png is allowed_types and demension 300X300 </div>");
|
||||
redirect('EmployeeController');
|
||||
|
||||
}
|
||||
|
||||
$imageData = $this->upload->data();
|
||||
|
||||
|
||||
$employee['comp_id'] = $this->input->post('comp_id');
|
||||
$employee['branch_id'] = $this->input->post('branch_id');
|
||||
$employee['emp_code'] = $this->input->post('emp_code');
|
||||
$employee['emp_name'] = $this->input->post('emp_name');
|
||||
$employee['emp_desg'] = $this->input->post('emp_desg');
|
||||
$employee['emp_mobile'] = $this->input->post('emp_mobile');
|
||||
$employee['emp_email'] = $this->input->post('emp_email');
|
||||
$employee['emp_img'] = $imageData['file_name'];
|
||||
$employee['is_active'] = 1;
|
||||
|
||||
|
||||
|
||||
$employee['comp_id'] = $this->input->post('comp_id');
|
||||
$employee['branch_id'] = $this->input->post('branch_id');
|
||||
$employee['emp_code'] = $this->input->post('emp_code');
|
||||
$employee['emp_name'] = $this->input->post('emp_name');
|
||||
$employee['emp_desg'] = $this->input->post('emp_desg');
|
||||
$employee['emp_mobile'] = $this->input->post('emp_mobile');
|
||||
$employee['emp_email'] = $this->input->post('emp_email');
|
||||
$employee['emp_img'] = $imageData['file_name'];
|
||||
$employee['is_active'] = 1;
|
||||
|
||||
$result=$this->EmployeeModel->insertemp($employee);
|
||||
$result=$this->EmployeeModel->insertemp($employee);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
$this->session->set_flashdata('status', 'New Employee - "'. $employee['emp_name'] .'" - Added Sucessfully');
|
||||
|
||||
$this->session->set_flashdata('status', ' <div class="success-message">New Employee - "'. $employee['emp_name'] .'" - Added Sucessfully</div>');
|
||||
//$this->load->view('AddEmp');
|
||||
redirect('EmployeeController/EmployeeList');
|
||||
|
||||
@ -126,28 +121,26 @@ public function addemp()
|
||||
|
||||
|
||||
//-------------------------------UPDATE EMPLOYEE FUNCTION STARTS----------------------------------
|
||||
|
||||
public function EditEmp(){
|
||||
|
||||
|
||||
|
||||
//Employee LoadView and Get ID
|
||||
public function EditEmp()
|
||||
{
|
||||
|
||||
$id=$this->input->get('id');
|
||||
$result['get_comp'] = $this->EmployeeModel->getcomp();
|
||||
$result['get_branch'] = $this->EmployeeModel->getbranch();
|
||||
$result['data']=$this->EmployeeModel->editrecords($id);
|
||||
$this->load->view('EditEmp',$result);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function updateemployee(){
|
||||
//Employee Update Function
|
||||
public function updateemployee()
|
||||
{
|
||||
|
||||
$config = array(
|
||||
|
||||
'file_name'=>time(),
|
||||
'overwrite'=>TRUE,
|
||||
/* 'max_width'=>'300',
|
||||
'max_height'=>'300', */
|
||||
/* 'max_size'=>'2048', */
|
||||
'allowed_types' => "jpg|png|jpeg",
|
||||
'upload_path'=>'./uploads/'
|
||||
|
||||
@ -157,8 +150,8 @@ public function addemp()
|
||||
|
||||
if (!$this->upload->do_upload('comp_logo'))
|
||||
{
|
||||
$this->session->set_flashdata('status',"jpg/png/jpeg is allowed_types and demension 300x300");
|
||||
$this->load->view('EditEmp'); ;
|
||||
$this->session->set_flashdata('status',"<div class='alert-message'>jpg/png/jpeg is allowed_types and demension 300x300</div>");
|
||||
$this->load->view('EditEmp');
|
||||
}
|
||||
|
||||
$imageData = $this->upload->data();
|
||||
@ -185,7 +178,7 @@ public function addemp()
|
||||
|
||||
|
||||
|
||||
$this->session->set_flashdata('status', 'Employee - "'. $employee['emp_name'] .'" - Profile Updated Sucessfully');
|
||||
$this->session->set_flashdata('status', '<div class="success-message">Employee - "'. $employee['emp_name'] .'" - Profile Updated Sucessfully </div>');
|
||||
redirect( 'EmployeeController/EmployeeList' );
|
||||
|
||||
|
||||
|
||||
@ -19,10 +19,10 @@ class CompanyModel extends CI_Model{
|
||||
}
|
||||
|
||||
|
||||
public function get_comp_id($website){
|
||||
public function get_comp_id($comp_name){
|
||||
$this->db->select('*');
|
||||
$this->db->from('company');
|
||||
$this->db->where('comp_web', $website);
|
||||
$this->db->where('comp_name', $comp_name);
|
||||
$query = $this->db->get();
|
||||
if ($query->num_rows() > 0) {
|
||||
return $query->row()->comp_id;
|
||||
@ -91,6 +91,17 @@ public function viewcompany(){
|
||||
|
||||
}
|
||||
|
||||
public function comp_validation( $comp_name ){
|
||||
|
||||
$this->db->select('*');
|
||||
$this->db->from('company');
|
||||
$this->db->where('comp_name', $comp_name);
|
||||
|
||||
return $this->db->get()->result_array();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2, user-scalable=yes">
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
|
||||
@ -1,135 +1,137 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<title>Employee ID-Card</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2, user-scalable=yes">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/style.css'); ?>">
|
||||
</head>
|
||||
<body>
|
||||
<div class="main-section">
|
||||
<div class="idcard-section emplive-view">
|
||||
<div class="idcard-inner-section">
|
||||
<div class="company-logo">
|
||||
<img src="<?php echo base_url(); ?>uploads/<?php echo $view->comp_logo; ?>" alt="Logo"/>
|
||||
</div>
|
||||
<div class="profile-photo">
|
||||
<img src="<?php echo base_url(); ?>uploads/<?php echo $view->emp_img; ?>" alt="Photo" width="150" height="150"/>
|
||||
</div>
|
||||
<div class="employee-name" value>
|
||||
<?php echo $view->emp_name; ?>
|
||||
</div>
|
||||
<div class="designation">
|
||||
<?php echo $view->emp_desg; ?>
|
||||
</div>
|
||||
<div class="company-name">
|
||||
<?php echo $view->comp_name; ?>
|
||||
</div>
|
||||
<div class="employee-details">
|
||||
<div class="employee-whatsapp">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Whatsapp-icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="https://api.whatsapp.com/send?phone=91<?php echo $view->emp_mobile; ?>" target="_blank"><?php echo $view->emp_mobile; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-email">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Email-icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="mailto:<?php echo $view->emp_email; ?>" target="_top"><?php echo $view->emp_email; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-website">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Website-Icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="<?php echo $view->comp_web; ?>" target="_blank"><?php echo preg_replace('~^https?://~', '', $view->comp_web); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-address">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Location-Icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="<?php echo $view->maplink; ?>" target="_blank"><?php echo $view->branch_address; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="emp-btn">
|
||||
<div class="emp-save">
|
||||
<button><img src="<?php echo base_url(); ?>/assets/images/CTA-Save-icon.png"/> <a href="<?php echo base_url('EmployeeController/vcard');?>?id=<?php echo $view->emp_id;?>"> Save </a></button>
|
||||
</div>
|
||||
<div class="emp-share">
|
||||
<button id="shareBtn"><img src="<?php echo base_url(); ?>/assets/images/CTA-Share-icon.png"/> Share</button>
|
||||
<script async src="https://static.addtoany.com/menu/page.js"></script>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script>
|
||||
|
||||
function siteURL() {
|
||||
$protocol = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ||
|
||||
$_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
|
||||
$domainName = $_SERVER['HTTP_HOST'];
|
||||
return $protocol;
|
||||
}
|
||||
document.querySelector('#shareBtn')
|
||||
.addEventListener('click', event => {
|
||||
|
||||
// Fallback, Tries to use API only
|
||||
// if navigator.share function is
|
||||
// available
|
||||
if (navigator.share) {
|
||||
navigator.share({
|
||||
// Title that occurs over
|
||||
// web share dialog
|
||||
title: 'GeeksForGeeks',
|
||||
|
||||
// URL to share
|
||||
<?php
|
||||
if (isset($_SERVER['HTTPS']) &&
|
||||
($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) ||
|
||||
isset($_SERVER['HTTP_X_FORWARDED_PROTO']) &&
|
||||
$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
|
||||
?>
|
||||
url:"<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>",
|
||||
// $protocol = 'https://';
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
?>
|
||||
// $protocol = 'http://';
|
||||
url:"<?php echo 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>",
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
}).then(() => {
|
||||
console.log('Thanks for sharing!');
|
||||
}).catch(err => {
|
||||
|
||||
// Handle errors, if occurred
|
||||
console.log(
|
||||
"Error while using Web share API:");
|
||||
console.log(err);
|
||||
});
|
||||
} else {
|
||||
|
||||
// Alerts user if API not available
|
||||
alert("Browser doesn't support this API !");
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<title>Employee ID-Card</title>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/style.css'); ?>">
|
||||
</head>
|
||||
<body>
|
||||
<div class="main-section empview-section">
|
||||
<div class="idcard-section emplive-view">
|
||||
<div class="idcard-inner-section">
|
||||
<div class="idcard-inner-bg">
|
||||
<div class="company-logo">
|
||||
<img src="<?php echo base_url(); ?>uploads/<?php echo $view->comp_logo; ?>" alt="Logo"/>
|
||||
</div>
|
||||
<div class="profile-photo">
|
||||
<img src="<?php echo base_url(); ?>uploads/<?php echo $view->emp_img; ?>" alt="Photo" width="150" height="150"/>
|
||||
</div>
|
||||
<div class="employee-name" value>
|
||||
<?php echo $view->emp_name; ?>
|
||||
</div>
|
||||
<div class="designation">
|
||||
<?php echo $view->emp_desg; ?>
|
||||
</div>
|
||||
<div class="company-name">
|
||||
<?php echo $view->comp_name; ?>
|
||||
</div>
|
||||
<div class="employee-details">
|
||||
<div class="employee-whatsapp">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Whatsapp-icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="https://api.whatsapp.com/send?phone=91<?php echo $view->emp_mobile; ?>" target="_blank">WhatsApp me</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-email">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Email-icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="mailto:<?php echo $view->emp_email; ?>" target="_top">Email me</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-website">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Website-Icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="<?php echo $view->comp_web; ?>" target="_blank"><?php echo preg_replace('~^https?://~', '', $view->comp_web); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-address">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Location-Icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="<?php echo $view->maplink; ?>" target="_blank"><?php echo $view->branch_address; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="emp-btn">
|
||||
<div class="emp-save">
|
||||
<button><img src="<?php echo base_url(); ?>/assets/images/CTA-Save-icon.png"/> <a href="<?php echo base_url('EmployeeController/vcard');?>?id=<?php echo $view->emp_id;?>"> Save </a></button>
|
||||
</div>
|
||||
<div class="emp-share">
|
||||
<button id="shareBtn"><img src="<?php echo base_url(); ?>/assets/images/CTA-Share-icon.png"/> Share</button>
|
||||
<script async src="https://static.addtoany.com/menu/page.js"></script>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script>
|
||||
|
||||
function siteURL() {
|
||||
$protocol = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ||
|
||||
$_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
|
||||
$domainName = $_SERVER['HTTP_HOST'];
|
||||
return $protocol;
|
||||
}
|
||||
document.querySelector('#shareBtn')
|
||||
.addEventListener('click', event => {
|
||||
|
||||
// Fallback, Tries to use API only
|
||||
// if navigator.share function is
|
||||
// available
|
||||
if (navigator.share) {
|
||||
navigator.share({
|
||||
// Title that occurs over
|
||||
// web share dialog
|
||||
title: 'GeeksForGeeks',
|
||||
|
||||
// URL to share
|
||||
<?php
|
||||
if (isset($_SERVER['HTTPS']) &&
|
||||
($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) ||
|
||||
isset($_SERVER['HTTP_X_FORWARDED_PROTO']) &&
|
||||
$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
|
||||
?>
|
||||
url:"<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>",
|
||||
// $protocol = 'https://';
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
?>
|
||||
// $protocol = 'http://';
|
||||
url:"<?php echo 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>",
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
}).then(() => {
|
||||
console.log('Thanks for sharing!');
|
||||
}).catch(err => {
|
||||
|
||||
// Handle errors, if occurred
|
||||
console.log(
|
||||
"Error while using Web share API:");
|
||||
console.log(err);
|
||||
});
|
||||
} else {
|
||||
|
||||
// Alerts user if API not available
|
||||
alert("Browser doesn't support this API !");
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,126 +1,126 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Employee Preview</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2, user-scalable=yes">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<link href="<?php echo base_url('assets/bootstrap/css/bootstrap.min.css'); ?>" rel="stylesheet">
|
||||
<link href="<?php echo base_url('assets/fontawesome/css/all.css'); ?>" rel="stylesheet">
|
||||
<link href="<?php echo base_url('assets/style.css'); ?>" rel="stylesheet">
|
||||
<script src="<?php echo base_url('assets/bootstrap/js/bootstrap.bundle.min.js'); ?>"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<?php include 'includes/header.php' ?>
|
||||
<section class="p-4 emppreview">
|
||||
<div class="container">
|
||||
<div class="row mb-4">
|
||||
<div class="col-sm-6">
|
||||
<h1 class="heading-style h2">Employee Preview</h1>
|
||||
</div>
|
||||
<div class="col-sm-6 text-end">
|
||||
<a href="<?php echo base_url('EmployeeController/EmployeeList'); ?>" class="blue-btn">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mx-w">
|
||||
<div class="col-sm-8">
|
||||
<div class="main-section">
|
||||
<div class="idcard-section">
|
||||
<div class="idcard-inner-section">
|
||||
<div class="company-logo">
|
||||
<img src="<?php echo base_url(); ?>uploads/<?php echo $view->comp_logo; ?>" alt="Logo"/>
|
||||
</div>
|
||||
<div class="profile-photo">
|
||||
<img src="<?php echo base_url(); ?>uploads/<?php echo $view->emp_img; ?>" alt="Photo" width="150" height="150"/>
|
||||
</div>
|
||||
<div class="employee-name">
|
||||
<?php echo $view->emp_name; ?>
|
||||
</div>
|
||||
<div class="designation">
|
||||
<?php echo $view->emp_desg; ?>
|
||||
</div>
|
||||
<div class="company-name">
|
||||
<?php echo $view->comp_name; ?>
|
||||
</div>
|
||||
<div class="employee-details">
|
||||
<div class="employee-whatsapp">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Whatsapp-icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="https://api.whatsapp.com/send?phone=91<?php echo $view->emp_mobile; ?>" target="_blank"><?php echo $view->emp_mobile; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-email">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Email-icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="mailto:<?php echo $view->emp_email; ?>" target="_top"><?php echo $view->emp_email; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-website">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Website-Icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="<?php echo $view->comp_web; ?>" target="_blank"><?php echo preg_replace('~^https?://~', '', $view->comp_web); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-address">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Location-Icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="<?php echo $view->maplink; ?>" target="_blank"><?php echo $view->branch_address; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="emp-btn">
|
||||
<div class="emp-save">
|
||||
<button><img src="<?php echo base_url(); ?>/assets/images/CTA-Save-icon.png"/> Save</button>
|
||||
</div>
|
||||
<div class="emp-share">
|
||||
<button><img src="<?php echo base_url(); ?>/assets/images/CTA-Share-icon.png"/> Share</button>
|
||||
</div>
|
||||
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<?php
|
||||
|
||||
use chillerlan\QRCode\Data\QRMatrix;
|
||||
use chillerlan\QRCode\QRCode;
|
||||
use chillerlan\QRCode\QROptions;
|
||||
|
||||
$qrcode = new QRCode;
|
||||
$data = base_url().'empvcard/'.$view->emp_code;
|
||||
|
||||
|
||||
?>
|
||||
<div class="barcode-img m-10"><img src="<?php echo $qrcode->render($data); ?>" width="200" height="200" id="uploadPreview" class="avatar img-circle img-thumbnail w-100" alt="avatar">
|
||||
</div>
|
||||
<div class="download-btn">
|
||||
<a href="<?php echo $qrcode->render($data);?>" class="blue-btn w-100" download="<?php echo $view->emp_code;?>">Download</a>
|
||||
</div>
|
||||
<div><a class="blue-btn w-100" href="<?php echo base_url('EmployeeController/EditEmp'); ?>?id=<?php echo $view->emp_id;?>">Edit</a></div>
|
||||
<div><a class="blue-btn w-100" href="<?php echo base_url('EmployeeController/EmpDisable'); ?>?id=<?php echo $view->emp_id;?>" onclick = "return confirm('Are you sure to DISABLE <?php echo $view->emp_name; ?>')">Deactivate</a></div>
|
||||
<div><a class="blue-btn w-100" href="<?php echo base_url('empvcard/'.$view->emp_code); ?>" target="_blank">Live Link</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <input type="" name="emp_img" id="uploadImage" onchange="PreviewImage();" class="text-center center-block file-upload" required><br><br> -->
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<!-- Footer -->
|
||||
<?php include 'includes/footer.php' ?>
|
||||
</body>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Employee Preview</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2, user-scalable=yes">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<link href="<?php echo base_url('assets/bootstrap/css/bootstrap.min.css'); ?>" rel="stylesheet">
|
||||
<link href="<?php echo base_url('assets/fontawesome/css/all.css'); ?>" rel="stylesheet">
|
||||
<link href="<?php echo base_url('assets/style.css'); ?>" rel="stylesheet">
|
||||
<script src="<?php echo base_url('assets/bootstrap/js/bootstrap.bundle.min.js'); ?>"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<?php include 'includes/header.php' ?>
|
||||
<section class="p-4 emppreview">
|
||||
<div class="container">
|
||||
<div class="row mb-4">
|
||||
<div class="col-sm-6">
|
||||
<h1 class="heading-style h2">Employee Preview</h1>
|
||||
</div>
|
||||
<div class="col-sm-6 text-end">
|
||||
<a href="<?php echo base_url('EmployeeController/EmployeeList'); ?>" class="blue-btn">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mx-w">
|
||||
<div class="col-sm-8">
|
||||
<div class="main-section">
|
||||
<div class="idcard-section">
|
||||
<div class="idcard-inner-section">
|
||||
<div class="company-logo">
|
||||
<img src="<?php echo base_url(); ?>uploads/<?php echo $view->comp_logo; ?>" alt="Logo"/>
|
||||
</div>
|
||||
<div class="profile-photo">
|
||||
<img src="<?php echo base_url(); ?>uploads/<?php echo $view->emp_img; ?>" alt="Photo" width="150" height="150"/>
|
||||
</div>
|
||||
<div class="employee-name">
|
||||
<?php echo $view->emp_name; ?>
|
||||
</div>
|
||||
<div class="designation">
|
||||
<?php echo $view->emp_desg; ?>
|
||||
</div>
|
||||
<div class="company-name">
|
||||
<?php echo $view->comp_name; ?>
|
||||
</div>
|
||||
<div class="employee-details">
|
||||
<div class="employee-whatsapp">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Whatsapp-icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="https://api.whatsapp.com/send?phone=91<?php echo $view->emp_mobile; ?>" target="_blank">WhatsApp me</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-email">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Email-icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="mailto:<?php echo $view->emp_email; ?>" target="_top">Email me</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-website">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Website-Icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="<?php echo $view->comp_web; ?>" target="_blank"><?php echo preg_replace('~^https?://~', '', $view->comp_web); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-address">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Location-Icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="<?php echo $view->maplink; ?>" target="_blank"><?php echo $view->branch_address; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="emp-btn">
|
||||
<div class="emp-save">
|
||||
<button><img src="<?php echo base_url(); ?>/assets/images/CTA-Save-icon.png"/> Save</button>
|
||||
</div>
|
||||
<div class="emp-share">
|
||||
<button><img src="<?php echo base_url(); ?>/assets/images/CTA-Share-icon.png"/> Share</button>
|
||||
</div>
|
||||
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<?php
|
||||
|
||||
use chillerlan\QRCode\Data\QRMatrix;
|
||||
use chillerlan\QRCode\QRCode;
|
||||
use chillerlan\QRCode\QROptions;
|
||||
|
||||
$qrcode = new QRCode;
|
||||
$data = base_url().'empvcard/'.$view->emp_code;
|
||||
|
||||
|
||||
?>
|
||||
<div class="barcode-img m-10"><img src="<?php echo $qrcode->render($data); ?>" width="200" height="200" id="uploadPreview" class="avatar img-circle img-thumbnail w-100" alt="avatar">
|
||||
</div>
|
||||
<div class="download-btn">
|
||||
<a href="<?php echo $qrcode->render($data);?>" class="blue-btn w-100" download="<?php echo $view->emp_code;?>">Download</a>
|
||||
</div>
|
||||
<div><a class="blue-btn w-100" href="<?php echo base_url('EmployeeController/EditEmp'); ?>?id=<?php echo $view->emp_id;?>">Edit</a></div>
|
||||
<div><a class="blue-btn w-100" href="<?php echo base_url('EmployeeController/EmpDisable'); ?>?id=<?php echo $view->emp_id;?>" onclick = "return confirm('Are you sure to DISABLE <?php echo $view->emp_name; ?>')">Deactivate</a></div>
|
||||
<div><a class="blue-btn w-100" href="<?php echo base_url('empvcard/'.$view->emp_code); ?>" target="_blank">Live Link</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <input type="" name="emp_img" id="uploadImage" onchange="PreviewImage();" class="text-center center-block file-upload" required><br><br> -->
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<!-- Footer -->
|
||||
<?php include 'includes/footer.php' ?>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,49 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
|
||||
<title>Add Company</title>
|
||||
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2, user-scalable=yes">
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&display=swap" rel="stylesheet">
|
||||
|
||||
<link href="<?php echo base_url('assets/bootstrap/css/bootstrap.min.css'); ?>" rel="stylesheet">
|
||||
<link href="<?php echo base_url('assets/fontawesome/css/all.css'); ?>" rel="stylesheet">
|
||||
<link href="<?php echo base_url('assets/style.css'); ?>" rel="stylesheet">
|
||||
<script src="<?php echo base_url('assets/bootstrap/js/bootstrap.bundle.min.js'); ?>">
|
||||
</script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
|
||||
<link href="<?php echo base_url('assets/fontawesome/css/all.css'); ?>" rel="stylesheet">
|
||||
<script>
|
||||
function checkcomp_if_exists() {
|
||||
|
||||
var comp_name = $("#companyName").val();
|
||||
$('#companyNameError').hide();
|
||||
|
||||
<link href="<?php echo base_url('assets/style.css'); ?>" rel="stylesheet">
|
||||
|
||||
<script src="<?php echo base_url('assets/bootstrap/js/bootstrap.bundle.min.js'); ?>"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
$.ajax({
|
||||
type:"post",
|
||||
url: "<?php echo base_url(); ?>CompanyController/comp_validation",
|
||||
data:{ comp_name:comp_name},
|
||||
success:function(response)
|
||||
{
|
||||
|
||||
if (response == true)
|
||||
{
|
||||
$('#companyNameError').show();
|
||||
$('#companyNameError').html("This Company already exists");
|
||||
// $("#companyName").val('');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!-- Header -->
|
||||
|
||||
<?php include 'includes/header.php'?>
|
||||
|
||||
<section class="p-4">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<h1 class="heading-style h2">Add Company</h1>
|
||||
|
||||
<div style="color:orangered; font-weight: bolder; font-size: 16px;">
|
||||
|
||||
<?php echo $this->session->flashdata('status');?>
|
||||
@ -72,10 +80,8 @@
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
|
||||
<label>Company Name<span class="error">*</span></label>
|
||||
|
||||
<input type="text" id="companyName" name="comp_name" required/>
|
||||
<input type="text" id="companyName" onkeyup="checkcomp_if_exists()" name="comp_name" required/>
|
||||
|
||||
<span id="companyNameError" class="error"></span>
|
||||
</div>
|
||||
@ -148,78 +154,44 @@
|
||||
document.getElementById("add-button").addEventListener("click", function() {
|
||||
|
||||
// create new field pair element
|
||||
|
||||
var newPair = document.createElement("div");
|
||||
|
||||
newPair.className = "field-pair";
|
||||
|
||||
var label1 = document.createElement("label");
|
||||
|
||||
label1.innerHTML = "Branch Name<span class='error'>*</span>";
|
||||
|
||||
var label2 = document.createElement("label");
|
||||
|
||||
label2.innerHTML = "Branch Address<span class='error'>*</span>";
|
||||
|
||||
var label3 = document.createElement("label");
|
||||
|
||||
label3.innerHTML = "Google Map Link<span class='error'>*</span>";
|
||||
|
||||
var input1 = document.createElement("input");
|
||||
|
||||
input1.type = "text";
|
||||
|
||||
input1.name = "branch_name[]";
|
||||
|
||||
input1.required = true;
|
||||
|
||||
var input2 = document.createElement("input");
|
||||
|
||||
input2.type = "text";
|
||||
|
||||
input2.name = "address[]";
|
||||
|
||||
input2.required = true;
|
||||
|
||||
var input3 = document.createElement("input");
|
||||
|
||||
input3.type = "url";
|
||||
|
||||
input3.name = "maplink[]";
|
||||
|
||||
input3.placeholder = "Enter Google Map Share Link";
|
||||
|
||||
input3.required = true;
|
||||
|
||||
var removeButton = document.createElement("button");
|
||||
|
||||
removeButton.type = "button";
|
||||
|
||||
removeButton.className = "remove-button border-0";
|
||||
|
||||
removeButton.innerHTML = "<i class='fa fa-times'></i>";
|
||||
|
||||
newPair.appendChild(label1);
|
||||
|
||||
newPair.appendChild(input1);
|
||||
|
||||
newPair.appendChild(label2);
|
||||
|
||||
newPair.appendChild(input2);
|
||||
|
||||
newPair.appendChild(label3);
|
||||
|
||||
newPair.appendChild(input3);
|
||||
|
||||
newPair.appendChild(removeButton);
|
||||
|
||||
document.getElementById("fields-container").appendChild(newPair);
|
||||
|
||||
// add event listener to "Remove" button
|
||||
|
||||
removeButton.addEventListener("click", function() {
|
||||
|
||||
newPair.remove();
|
||||
newPair.remove();
|
||||
|
||||
});
|
||||
|
||||
|
||||
@ -13,10 +13,35 @@
|
||||
<link href=" <?php echo base_url('/assets/fontawesome/css/all.css'); ?>" rel="stylesheet">
|
||||
<link href=" <?php echo base_url('/assets/style.css'); ?>" rel="stylesheet">
|
||||
<script src=" <?php echo base_url('/assets/bootstrap/js/bootstrap.bundle.min.js'); ?>"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
|
||||
|
||||
<script>
|
||||
function checkcomp_if_exists() {
|
||||
|
||||
var comp_name = $("#comp_name").val();
|
||||
$('#comp_name_err').hide();
|
||||
|
||||
$.ajax({
|
||||
type:"post",
|
||||
url: "<?php echo base_url(); ?>CompanyController/comp_validation",
|
||||
data:{ comp_name:comp_name},
|
||||
success:function(response)
|
||||
{
|
||||
|
||||
if (response == true)
|
||||
{
|
||||
$('#comp_name_err').show();
|
||||
$('#comp_name_err').html("This Company already exists");
|
||||
// $("#companyName").val('');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<?php include 'includes/header.php' ?>
|
||||
<?php include 'includes/header.php'?>
|
||||
<section class="p-4">
|
||||
<div class="container">
|
||||
<?php
|
||||
@ -48,9 +73,10 @@
|
||||
<div class="col-sm-6">
|
||||
<img src="<?php echo base_url(); ?>/uploads/<?php echo $row->comp_logo; ?>" width="100" height="100" id="uploadPreview" class="avatar img-circle img-thumbnail" alt="avatar"><br><br>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<label>Company Name<span class="error">*</span></label>
|
||||
<input type="text" id="comp_name" name="comp_name" placeholder="Company Name" value="<?php echo $row->comp_name; ?>" required>
|
||||
<input type="text" id="comp_name" name="comp_name" placeholder="Company Name" value="<?php echo $row->comp_name; ?>" onkeyup="checkcomp_if_exists()" required>
|
||||
<span id="comp_name_err" class="error"></span>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
|
||||
135
application/views/oldEmpIDCard.php
Normal file
@ -0,0 +1,135 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<title>Employee ID-Card</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2, user-scalable=yes">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="<?php echo base_url('assets/style.css'); ?>">
|
||||
</head>
|
||||
<body>
|
||||
<div class="main-section">
|
||||
<div class="idcard-section emplive-view">
|
||||
<div class="idcard-inner-section">
|
||||
<div class="company-logo">
|
||||
<img src="<?php echo base_url(); ?>uploads/<?php echo $view->comp_logo; ?>" alt="Logo"/>
|
||||
</div>
|
||||
<div class="profile-photo">
|
||||
<img src="<?php echo base_url(); ?>uploads/<?php echo $view->emp_img; ?>" alt="Photo" width="150" height="150"/>
|
||||
</div>
|
||||
<div class="employee-name" value>
|
||||
<?php echo $view->emp_name; ?>
|
||||
</div>
|
||||
<div class="designation">
|
||||
<?php echo $view->emp_desg; ?>
|
||||
</div>
|
||||
<div class="company-name">
|
||||
<?php echo $view->comp_name; ?>
|
||||
</div>
|
||||
<div class="employee-details">
|
||||
<div class="employee-whatsapp">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Whatsapp-icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="https://api.whatsapp.com/send?phone=91<?php echo $view->emp_mobile; ?>" target="_blank"><?php echo $view->emp_mobile; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-email">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Email-icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="mailto:<?php echo $view->emp_email; ?>" target="_top"><?php echo $view->emp_email; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-website">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Website-Icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="<?php echo $view->comp_web; ?>" target="_blank"><?php echo preg_replace('~^https?://~', '', $view->comp_web); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-address">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Location-Icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="<?php echo $view->maplink; ?>" target="_blank"><?php echo $view->branch_address; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="emp-btn">
|
||||
<div class="emp-save">
|
||||
<button><img src="<?php echo base_url(); ?>/assets/images/CTA-Save-icon.png"/> <a href="<?php echo base_url('EmployeeController/vcard');?>?id=<?php echo $view->emp_id;?>"> Save </a></button>
|
||||
</div>
|
||||
<div class="emp-share">
|
||||
<button id="shareBtn"><img src="<?php echo base_url(); ?>/assets/images/CTA-Share-icon.png"/> Share</button>
|
||||
<script async src="https://static.addtoany.com/menu/page.js"></script>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script>
|
||||
|
||||
function siteURL() {
|
||||
$protocol = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ||
|
||||
$_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
|
||||
$domainName = $_SERVER['HTTP_HOST'];
|
||||
return $protocol;
|
||||
}
|
||||
document.querySelector('#shareBtn')
|
||||
.addEventListener('click', event => {
|
||||
|
||||
// Fallback, Tries to use API only
|
||||
// if navigator.share function is
|
||||
// available
|
||||
if (navigator.share) {
|
||||
navigator.share({
|
||||
// Title that occurs over
|
||||
// web share dialog
|
||||
title: 'GeeksForGeeks',
|
||||
|
||||
// URL to share
|
||||
<?php
|
||||
if (isset($_SERVER['HTTPS']) &&
|
||||
($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) ||
|
||||
isset($_SERVER['HTTP_X_FORWARDED_PROTO']) &&
|
||||
$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
|
||||
?>
|
||||
url:"<?php echo 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>",
|
||||
// $protocol = 'https://';
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
?>
|
||||
// $protocol = 'http://';
|
||||
url:"<?php echo 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>",
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
}).then(() => {
|
||||
console.log('Thanks for sharing!');
|
||||
}).catch(err => {
|
||||
|
||||
// Handle errors, if occurred
|
||||
console.log(
|
||||
"Error while using Web share API:");
|
||||
console.log(err);
|
||||
});
|
||||
} else {
|
||||
|
||||
// Alerts user if API not available
|
||||
alert("Browser doesn't support this API !");
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
126
application/views/oldEmpPreview.php
Normal file
@ -0,0 +1,126 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Employee Preview</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2, user-scalable=yes">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<link href="<?php echo base_url('assets/bootstrap/css/bootstrap.min.css'); ?>" rel="stylesheet">
|
||||
<link href="<?php echo base_url('assets/fontawesome/css/all.css'); ?>" rel="stylesheet">
|
||||
<link href="<?php echo base_url('assets/style.css'); ?>" rel="stylesheet">
|
||||
<script src="<?php echo base_url('assets/bootstrap/js/bootstrap.bundle.min.js'); ?>"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<?php include 'includes/header.php' ?>
|
||||
<section class="p-4 emppreview">
|
||||
<div class="container">
|
||||
<div class="row mb-4">
|
||||
<div class="col-sm-6">
|
||||
<h1 class="heading-style h2">Employee Preview</h1>
|
||||
</div>
|
||||
<div class="col-sm-6 text-end">
|
||||
<a href="<?php echo base_url('EmployeeController/EmployeeList'); ?>" class="blue-btn">Back</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mx-w">
|
||||
<div class="col-sm-8">
|
||||
<div class="main-section">
|
||||
<div class="idcard-section">
|
||||
<div class="idcard-inner-section">
|
||||
<div class="company-logo">
|
||||
<img src="<?php echo base_url(); ?>uploads/<?php echo $view->comp_logo; ?>" alt="Logo"/>
|
||||
</div>
|
||||
<div class="profile-photo">
|
||||
<img src="<?php echo base_url(); ?>uploads/<?php echo $view->emp_img; ?>" alt="Photo" width="150" height="150"/>
|
||||
</div>
|
||||
<div class="employee-name">
|
||||
<?php echo $view->emp_name; ?>
|
||||
</div>
|
||||
<div class="designation">
|
||||
<?php echo $view->emp_desg; ?>
|
||||
</div>
|
||||
<div class="company-name">
|
||||
<?php echo $view->comp_name; ?>
|
||||
</div>
|
||||
<div class="employee-details">
|
||||
<div class="employee-whatsapp">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Whatsapp-icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="https://api.whatsapp.com/send?phone=91<?php echo $view->emp_mobile; ?>" target="_blank"><?php echo $view->emp_mobile; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-email">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Email-icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="mailto:<?php echo $view->emp_email; ?>" target="_top"><?php echo $view->emp_email; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-website">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Website-Icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="<?php echo $view->comp_web; ?>" target="_blank"><?php echo preg_replace('~^https?://~', '', $view->comp_web); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="employee-address">
|
||||
<div class="icon">
|
||||
<img src="<?php echo base_url(); ?>/assets/images/Location-Icon.png">
|
||||
</div>
|
||||
<div class="details">
|
||||
<a href="<?php echo $view->maplink; ?>" target="_blank"><?php echo $view->branch_address; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="emp-btn">
|
||||
<div class="emp-save">
|
||||
<button><img src="<?php echo base_url(); ?>/assets/images/CTA-Save-icon.png"/> Save</button>
|
||||
</div>
|
||||
<div class="emp-share">
|
||||
<button><img src="<?php echo base_url(); ?>/assets/images/CTA-Share-icon.png"/> Share</button>
|
||||
</div>
|
||||
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<?php
|
||||
|
||||
use chillerlan\QRCode\Data\QRMatrix;
|
||||
use chillerlan\QRCode\QRCode;
|
||||
use chillerlan\QRCode\QROptions;
|
||||
|
||||
$qrcode = new QRCode;
|
||||
$data = base_url().'empvcard/'.$view->emp_code;
|
||||
|
||||
|
||||
?>
|
||||
<div class="barcode-img m-10"><img src="<?php echo $qrcode->render($data); ?>" width="200" height="200" id="uploadPreview" class="avatar img-circle img-thumbnail w-100" alt="avatar">
|
||||
</div>
|
||||
<div class="download-btn">
|
||||
<a href="<?php echo $qrcode->render($data);?>" class="blue-btn w-100" download="<?php echo $view->emp_code;?>">Download</a>
|
||||
</div>
|
||||
<div><a class="blue-btn w-100" href="<?php echo base_url('EmployeeController/EditEmp'); ?>?id=<?php echo $view->emp_id;?>">Edit</a></div>
|
||||
<div><a class="blue-btn w-100" href="<?php echo base_url('EmployeeController/EmpDisable'); ?>?id=<?php echo $view->emp_id;?>" onclick = "return confirm('Are you sure to DISABLE <?php echo $view->emp_name; ?>')">Deactivate</a></div>
|
||||
<div><a class="blue-btn w-100" href="<?php echo base_url('empvcard/'.$view->emp_code); ?>" target="_blank">Live Link</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <input type="" name="emp_img" id="uploadImage" onchange="PreviewImage();" class="text-center center-block file-upload" required><br><br> -->
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<!-- Footer -->
|
||||
<?php include 'includes/footer.php' ?>
|
||||
</body>
|
||||
</html>
|
||||
888
assets/style.css
@ -1,421 +1,469 @@
|
||||
body{
|
||||
margin:0;
|
||||
padding:0;
|
||||
font-family:'DM Sans',sans-serif;
|
||||
font-weight:400;
|
||||
color:#191919;
|
||||
letter-spacing: .5px;
|
||||
font-size:15px ;
|
||||
}
|
||||
p, div, h1, h2, h3, h4, h5, h6, button, select, input[type="text"], input[type="tel"], input[type="email"]{
|
||||
font-family:'DM Sans',sans-serif;
|
||||
font-weight:400;
|
||||
}
|
||||
|
||||
img{
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.menu-dropdown {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding:10px;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.menu-dropdown i{
|
||||
font-size:25px;
|
||||
}
|
||||
|
||||
.menu-dropdown .dropdown-content {
|
||||
display: none;
|
||||
position: absolute;
|
||||
right:0;
|
||||
background-color: #f9f9f9;
|
||||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
||||
z-index: 1;
|
||||
min-width: 180px;
|
||||
}
|
||||
|
||||
.menu-dropdown:hover .dropdown-content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.menu-dropdown ul{
|
||||
list-style-type:none;
|
||||
margin:0;
|
||||
padding:0;
|
||||
text-align:left;
|
||||
}
|
||||
.menu-dropdown li{
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
.menu-dropdown li:last-child{
|
||||
border-bottom-width:0;
|
||||
}
|
||||
.menu-dropdown a{
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
padding:10px 15px;
|
||||
color:#000;
|
||||
}
|
||||
.menu-dropdown a:hover{
|
||||
color:#e5692f;
|
||||
}
|
||||
|
||||
.blue-btn{
|
||||
background: #2d7baa;
|
||||
color: #fff;
|
||||
padding: 10px 15px;
|
||||
display: inline-block;
|
||||
border-radius: 5px;
|
||||
margin: 10px;
|
||||
text-decoration: none;
|
||||
border-width:0;
|
||||
text-align:center;
|
||||
}
|
||||
.blue-btn:hover{
|
||||
background:#e5692f;
|
||||
color:#fff;
|
||||
}
|
||||
.submit-btn{
|
||||
width:200px;
|
||||
}
|
||||
/*Table*/
|
||||
.custom-table{
|
||||
border-collapse: collapse;
|
||||
width:100%;
|
||||
}
|
||||
.custom-table tbody {
|
||||
display:block;
|
||||
height:405px;
|
||||
overflow-y:auto;
|
||||
}
|
||||
.custom-table thead, .custom-table tbody tr {
|
||||
display:table;
|
||||
width:100%;
|
||||
table-layout:fixed;
|
||||
}
|
||||
.custom-table th, .custom-table td, .custom-table{
|
||||
border:1px solid #eee;
|
||||
}
|
||||
.custom-table th{
|
||||
background:#525252;
|
||||
color:#fff;
|
||||
font-weight: 500;
|
||||
text-transform:uppercase;
|
||||
}
|
||||
.custom-table td{
|
||||
border-left-width:0;
|
||||
border-right-width:0;
|
||||
}
|
||||
.custom-table th, .custom-table td {
|
||||
text-align:center;
|
||||
padding: 8px;
|
||||
}
|
||||
.custom-table tr:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.custom-table .action-btn a{
|
||||
padding: 10px;
|
||||
font-size: 13px;
|
||||
color: #000;
|
||||
}
|
||||
.custom-table .action-btn a:hover{
|
||||
color:#e5692f;
|
||||
}
|
||||
.heading-style{
|
||||
position: relative;
|
||||
margin-bottom:35px;
|
||||
}
|
||||
.heading-style:after{
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom:-10px;
|
||||
background: #f1460c;
|
||||
width:50px;
|
||||
height: 2px;;
|
||||
}
|
||||
.edit-btn{
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
background:#767676;
|
||||
padding:5px 15px;
|
||||
color:#fff;
|
||||
}
|
||||
.edit-btn:hover{
|
||||
background:#f1460c;
|
||||
color:#fff;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background-color: #797a7c;
|
||||
border-radius: 15px;
|
||||
height: 5px;
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.footer{
|
||||
background: #525252;
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
color: #fff;
|
||||
margin-top: 30px;
|
||||
}
|
||||
.error{
|
||||
color:red;
|
||||
}
|
||||
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="url"], select{
|
||||
background:#e3e3e3;
|
||||
color:#000;
|
||||
padding:5px 10px;
|
||||
width:100%;
|
||||
height:50px;
|
||||
border:1px solid #b3b3b3;
|
||||
margin-bottom:20px;
|
||||
border-radius:5px;
|
||||
}
|
||||
.form-design{
|
||||
max-width:900px;
|
||||
margin:0 auto;
|
||||
}
|
||||
.form-design label{
|
||||
display:block;
|
||||
font-size:20px;
|
||||
margin-bottom:8px;
|
||||
}
|
||||
.form-design .col-sm-6, .form-design .col-sm-5{
|
||||
margin-bottom:15px;
|
||||
}
|
||||
.field-pair {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.remove-btn {
|
||||
margin-left: 10px;
|
||||
}
|
||||
.mx-w{
|
||||
max-width: 800px;
|
||||
margin:0 auto;
|
||||
}
|
||||
.barcode-img{
|
||||
border:1px solid #ddd;
|
||||
margin-left:15px;
|
||||
}
|
||||
|
||||
|
||||
/*Employee Preview*/
|
||||
.idcard-section{
|
||||
max-width:450px;
|
||||
margin:0 auto;
|
||||
padding:10px;
|
||||
position: relative;
|
||||
}
|
||||
.idcard-section .employee-name, .idcard-section .designation, .idcard-section .company-name{
|
||||
font-family:'Montserrat',sans-serif;
|
||||
font-weight:700;
|
||||
}
|
||||
.employee-details .details, .emp-btn button{
|
||||
font-family:'Montserrat',sans-serif;
|
||||
font-weight:500;
|
||||
}
|
||||
.emp-btn button a{
|
||||
color:#ffffff;
|
||||
text-decoration: none;
|
||||
}
|
||||
.idcard-section .employee-name{
|
||||
font-weight:700;
|
||||
}
|
||||
.idcard-section::before{
|
||||
content:'';
|
||||
position:absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
z-index:-1;
|
||||
background: linear-gradient(to right, #2d7baa,#80bc42,#e5692f);
|
||||
}
|
||||
.idcard-section .idcard-inner-section{
|
||||
background-image:url(images/Abstract-BG.jpg);
|
||||
background-size:cover;
|
||||
background-repeat:no-repeat;
|
||||
padding:25px 15px;
|
||||
}
|
||||
.profile-photo{
|
||||
border-radius:50%;
|
||||
position: relative;
|
||||
max-width:150px;
|
||||
height:150px;
|
||||
margin:30px auto 0 auto;
|
||||
padding:3px 3px 0;
|
||||
background: linear-gradient(to right, #2d7baa,#80bc42,#e5692f);
|
||||
overflow: hidden;
|
||||
}
|
||||
.profile-photo img{
|
||||
border-radius:50%;
|
||||
}
|
||||
.company-logo{
|
||||
text-align:center;
|
||||
}
|
||||
.company-logo img{
|
||||
height:50px;
|
||||
}
|
||||
.employee-name, .designation, .company-name{
|
||||
text-align:center;
|
||||
text-transform:capitalize;
|
||||
}
|
||||
.employee-name{
|
||||
font-size:26px;
|
||||
margin:15px 0 0;
|
||||
}
|
||||
.designation{
|
||||
font-size:20px;
|
||||
margin:5px 0;
|
||||
}
|
||||
.company-name{
|
||||
font-size:19px;
|
||||
}
|
||||
.employee-details{
|
||||
margin:30px auto 0 auto;
|
||||
font-size:15px;
|
||||
max-width:370px;
|
||||
}
|
||||
.employee-details>div{
|
||||
display:flex;
|
||||
align-items:center;
|
||||
margin-bottom:13px;
|
||||
}
|
||||
.employee-details .icon{
|
||||
width:35px;
|
||||
line-height:10px;
|
||||
}
|
||||
.employee-details .details{
|
||||
flex-basis:90%;
|
||||
max-width:90%;
|
||||
font-size:14px;
|
||||
line-height:20px;
|
||||
}
|
||||
.employee-details .details a{
|
||||
text-decoration:none;
|
||||
color:#858585;
|
||||
}
|
||||
.employee-details .details a:hover{
|
||||
color:#e5692f;
|
||||
}
|
||||
.employee-details img{
|
||||
width:22px;
|
||||
}
|
||||
.employee-details .icon img {
|
||||
width:17px;
|
||||
}
|
||||
.emp-btn{
|
||||
justify-content: space-between;
|
||||
max-width:280px;
|
||||
margin:30px auto 0 auto;
|
||||
}
|
||||
.emp-btn button{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius:50px;
|
||||
border-width:0;
|
||||
background: linear-gradient(to right, #2d7baa,#80bc42);
|
||||
padding:10px 25px 10px 20px;
|
||||
color:#fff;
|
||||
font-size:17px;
|
||||
text-transform:uppercase;
|
||||
}
|
||||
.emp-btn button:hover{
|
||||
cursor:pointer;
|
||||
background: linear-gradient(to right, #80bc42, #2d7baa);
|
||||
}
|
||||
.emp-btn img{
|
||||
margin-right:2px;
|
||||
}
|
||||
|
||||
.login-section{
|
||||
background-color: #ffffff;
|
||||
box-shadow:5px 5px 40px 0 rgba(0,0,0,0.2);
|
||||
max-width: 450px;
|
||||
margin:0 auto;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.table-scroll{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
}
|
||||
#for_numrows{
|
||||
display:none!important;
|
||||
}
|
||||
#for_filter_by label{
|
||||
width:65px;
|
||||
}
|
||||
#for_filter_by select, #for_filter_by input{
|
||||
height:40px;
|
||||
}
|
||||
#for_filter_by{
|
||||
display: flex!important;
|
||||
flex-basis: 40%;
|
||||
align-items:center;
|
||||
margin-top: -68px;
|
||||
}
|
||||
#filter_by{
|
||||
margin: 0 15px;
|
||||
}
|
||||
#filter_by{
|
||||
width:180px;
|
||||
}
|
||||
#for_filter_by input{
|
||||
margin-bottom:0;
|
||||
width:300px;
|
||||
}
|
||||
#pagesControllers{
|
||||
margin: 30px auto 30px auto;
|
||||
text-align:center;
|
||||
}
|
||||
#pagesControllers .pagecontroller{
|
||||
padding: 7px 15px;
|
||||
margin: 0 3px;
|
||||
border: 1px solid #8d8c8c;
|
||||
}
|
||||
#pagesControllers .pagecontroller.currentPage{
|
||||
background:#525252;
|
||||
color:#fff;
|
||||
border-color:#525252;
|
||||
}
|
||||
.deactivated-employees-list{
|
||||
min-height: 86vh;
|
||||
}
|
||||
.deactivated-employees-list #for_filter_by{
|
||||
margin-top: -38px!important;
|
||||
margin-bottom: 20px!important;
|
||||
}
|
||||
.deactivated-employees-list .blue-btn{
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.show-hide{
|
||||
position: relative;
|
||||
}
|
||||
.show-hide #toggle-password, .show-hide #toggle-password1, .show-hide #toggle-password2{
|
||||
right: 25px;
|
||||
position: absolute;
|
||||
top: 55px;
|
||||
}
|
||||
.deactivate-btn a:hover{
|
||||
color: #60bf00!important;
|
||||
}
|
||||
.deactivate-btn a.delete:hover{
|
||||
color: #bf0d00!important;
|
||||
}
|
||||
.emppreview .idcard-section .designation{
|
||||
margin:0!important;
|
||||
body{
|
||||
margin:0;
|
||||
padding:0;
|
||||
font-family:'DM Sans',sans-serif;
|
||||
font-weight:400;
|
||||
color:#191919;
|
||||
letter-spacing: .5px;
|
||||
font-size:15px ;
|
||||
}
|
||||
p, div, h1, h2, h3, h4, h5, h6, button, select, input[type="text"], input[type="tel"], input[type="email"]{
|
||||
font-family:'DM Sans',sans-serif;
|
||||
font-weight:400;
|
||||
}
|
||||
|
||||
img{
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.menu-dropdown {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding:10px;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.menu-dropdown i{
|
||||
font-size:25px;
|
||||
}
|
||||
|
||||
.menu-dropdown .dropdown-content {
|
||||
display: none;
|
||||
position: absolute;
|
||||
right:0;
|
||||
background-color: #f9f9f9;
|
||||
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
||||
z-index: 1;
|
||||
min-width: 180px;
|
||||
}
|
||||
|
||||
.menu-dropdown:hover .dropdown-content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.menu-dropdown ul{
|
||||
list-style-type:none;
|
||||
margin:0;
|
||||
padding:0;
|
||||
text-align:left;
|
||||
}
|
||||
.menu-dropdown li{
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
.menu-dropdown li:last-child{
|
||||
border-bottom-width:0;
|
||||
}
|
||||
.menu-dropdown a{
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
padding:10px 15px;
|
||||
color:#000;
|
||||
}
|
||||
.menu-dropdown a:hover{
|
||||
color:#e5692f;
|
||||
}
|
||||
|
||||
.blue-btn{
|
||||
background: #2d7baa;
|
||||
color: #fff;
|
||||
padding: 10px 15px;
|
||||
display: inline-block;
|
||||
border-radius: 5px;
|
||||
margin: 10px;
|
||||
text-decoration: none;
|
||||
border-width:0;
|
||||
text-align:center;
|
||||
}
|
||||
.blue-btn:hover{
|
||||
background:#e5692f;
|
||||
color:#fff;
|
||||
}
|
||||
.submit-btn{
|
||||
width:200px;
|
||||
}
|
||||
/*Table*/
|
||||
.custom-table{
|
||||
border-collapse: collapse;
|
||||
width:100%;
|
||||
}
|
||||
.custom-table tbody {
|
||||
display:block;
|
||||
height:405px;
|
||||
overflow-y:auto;
|
||||
}
|
||||
.custom-table thead, .custom-table tbody tr {
|
||||
display:table;
|
||||
width:100%;
|
||||
table-layout:fixed;
|
||||
}
|
||||
.custom-table th, .custom-table td, .custom-table{
|
||||
border:1px solid #eee;
|
||||
}
|
||||
.custom-table th{
|
||||
background:#525252;
|
||||
color:#fff;
|
||||
font-weight: 500;
|
||||
text-transform:uppercase;
|
||||
}
|
||||
.custom-table td{
|
||||
border-left-width:0;
|
||||
border-right-width:0;
|
||||
}
|
||||
.custom-table th, .custom-table td {
|
||||
text-align:center;
|
||||
padding: 8px;
|
||||
}
|
||||
.custom-table tr:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.custom-table .action-btn a{
|
||||
padding: 10px;
|
||||
font-size: 13px;
|
||||
color: #000;
|
||||
}
|
||||
.custom-table .action-btn a:hover{
|
||||
color:#e5692f;
|
||||
}
|
||||
.heading-style{
|
||||
position: relative;
|
||||
margin-bottom:35px;
|
||||
}
|
||||
.heading-style:after{
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom:-10px;
|
||||
background: #f1460c;
|
||||
width:50px;
|
||||
height: 2px;;
|
||||
}
|
||||
.edit-btn{
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
background:#767676;
|
||||
padding:5px 15px;
|
||||
color:#fff;
|
||||
}
|
||||
.edit-btn:hover{
|
||||
background:#f1460c;
|
||||
color:#fff;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background-color: #797a7c;
|
||||
border-radius: 15px;
|
||||
height: 5px;
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.footer{
|
||||
background: #525252;
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
color: #fff;
|
||||
margin-top: 30px;
|
||||
}
|
||||
.error{
|
||||
color:red;
|
||||
}
|
||||
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="url"], select{
|
||||
background:#e3e3e3;
|
||||
color:#000;
|
||||
padding:5px 10px;
|
||||
width:100%;
|
||||
height:50px;
|
||||
border:1px solid #b3b3b3;
|
||||
margin-bottom:20px;
|
||||
border-radius:5px;
|
||||
}
|
||||
.form-design{
|
||||
max-width:900px;
|
||||
margin:0 auto;
|
||||
}
|
||||
.form-design label{
|
||||
display:block;
|
||||
font-size:20px;
|
||||
margin-bottom:8px;
|
||||
}
|
||||
.form-design .col-sm-6, .form-design .col-sm-5{
|
||||
margin-bottom:15px;
|
||||
}
|
||||
.field-pair {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.remove-btn {
|
||||
margin-left: 10px;
|
||||
}
|
||||
.mx-w{
|
||||
max-width: 800px;
|
||||
margin:0 auto;
|
||||
}
|
||||
.barcode-img{
|
||||
border:1px solid #ddd;
|
||||
margin-left:15px;
|
||||
}
|
||||
|
||||
|
||||
/*Employee Preview*/
|
||||
.idcard-section{
|
||||
max-width:450px;
|
||||
margin:0 auto;
|
||||
padding:10px;
|
||||
position: relative;
|
||||
}
|
||||
.idcard-section .employee-name, .idcard-section .designation, .idcard-section .company-name{
|
||||
font-family:'Montserrat',sans-serif;
|
||||
font-weight:700;
|
||||
}
|
||||
.employee-details .details, .emp-btn button{
|
||||
font-family:'Montserrat',sans-serif;
|
||||
font-weight:500;
|
||||
}
|
||||
.emp-btn button a{
|
||||
color:#ffffff;
|
||||
text-decoration: none;
|
||||
}
|
||||
.idcard-section .employee-name{
|
||||
font-weight:700;
|
||||
}
|
||||
.idcard-section::before{
|
||||
content:'';
|
||||
position:absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
right:0;
|
||||
bottom:0;
|
||||
z-index:-1;
|
||||
background: linear-gradient(to right, #2d7baa,#80bc42,#e5692f);
|
||||
}
|
||||
.idcard-section .idcard-inner-section{
|
||||
background-image:url(images/Abstract-BG.jpg);
|
||||
background-size:cover;
|
||||
background-repeat:no-repeat;
|
||||
padding:25px 15px;
|
||||
}
|
||||
.profile-photo{
|
||||
border-radius:50%;
|
||||
position: relative;
|
||||
max-width:150px;
|
||||
height: 150px;
|
||||
margin:30px auto 0 auto;
|
||||
padding:3px 3px 0;
|
||||
background: linear-gradient(to right, #2d7baa,#80bc42,#e5692f);
|
||||
overflow: hidden;
|
||||
}
|
||||
.profile-photo img{
|
||||
border-radius:50%;
|
||||
}
|
||||
.company-logo{
|
||||
text-align:center;
|
||||
}
|
||||
.company-logo img{
|
||||
height:50px;
|
||||
}
|
||||
.employee-name, .designation, .company-name{
|
||||
text-align:center;
|
||||
text-transform:capitalize;
|
||||
}
|
||||
.employee-name{
|
||||
font-size:26px;
|
||||
margin:15px 0 0;
|
||||
}
|
||||
.designation{
|
||||
font-size:20px;
|
||||
margin:5px 0;
|
||||
}
|
||||
.company-name{
|
||||
font-size:19px;
|
||||
}
|
||||
.employee-details{
|
||||
margin:30px auto 0 auto;
|
||||
font-size:15px;
|
||||
max-width:370px;
|
||||
}
|
||||
.employee-details>div{
|
||||
display:flex;
|
||||
align-items:center;
|
||||
margin-bottom:13px;
|
||||
}
|
||||
.employee-details .icon{
|
||||
width:35px;
|
||||
line-height:10px;
|
||||
}
|
||||
.employee-details .details{
|
||||
flex-basis:90%;
|
||||
max-width:90%;
|
||||
font-size:14px;
|
||||
line-height:20px;
|
||||
}
|
||||
.employee-details .details a{
|
||||
text-decoration:none;
|
||||
color:#858585;
|
||||
}
|
||||
.employee-details .details a:hover{
|
||||
color:#e5692f;
|
||||
}
|
||||
.employee-details img{
|
||||
width:22px;
|
||||
}
|
||||
.employee-details .icon img {
|
||||
width:17px;
|
||||
}
|
||||
.emp-btn{
|
||||
justify-content: space-between;
|
||||
max-width:280px;
|
||||
margin:30px auto 0 auto;
|
||||
}
|
||||
.emp-btn button{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius:50px;
|
||||
border-width:0;
|
||||
background: linear-gradient(to right, #2d7baa,#80bc42);
|
||||
padding:10px 25px 10px 20px;
|
||||
color:#fff;
|
||||
font-size:17px;
|
||||
text-transform:uppercase;
|
||||
}
|
||||
.emp-btn button:hover{
|
||||
cursor:pointer;
|
||||
background: linear-gradient(to right, #80bc42, #2d7baa);
|
||||
}
|
||||
.emp-btn img{
|
||||
margin-right:2px;
|
||||
}
|
||||
|
||||
.login-section{
|
||||
background-color: #ffffff;
|
||||
box-shadow:5px 5px 40px 0 rgba(0,0,0,0.2);
|
||||
max-width: 450px;
|
||||
margin:0 auto;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.table-scroll{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
}
|
||||
#for_numrows{
|
||||
display:none!important;
|
||||
}
|
||||
#for_filter_by label{
|
||||
width:65px;
|
||||
}
|
||||
#for_filter_by select, #for_filter_by input{
|
||||
height:40px;
|
||||
}
|
||||
#for_filter_by{
|
||||
display: flex!important;
|
||||
flex-basis: 40%;
|
||||
align-items:center;
|
||||
margin-top: -68px;
|
||||
}
|
||||
#filter_by{
|
||||
margin: 0 15px;
|
||||
}
|
||||
#filter_by{
|
||||
width:180px;
|
||||
}
|
||||
#for_filter_by input{
|
||||
margin-bottom:0;
|
||||
width:300px;
|
||||
}
|
||||
#pagesControllers{
|
||||
margin: 30px auto 30px auto;
|
||||
text-align:center;
|
||||
}
|
||||
#pagesControllers .pagecontroller{
|
||||
padding: 7px 15px;
|
||||
margin: 0 3px;
|
||||
border: 1px solid #8d8c8c;
|
||||
}
|
||||
#pagesControllers .pagecontroller.currentPage{
|
||||
background:#525252;
|
||||
color:#fff;
|
||||
border-color:#525252;
|
||||
}
|
||||
.deactivated-employees-list{
|
||||
min-height: 86vh;
|
||||
}
|
||||
.deactivated-employees-list #for_filter_by{
|
||||
margin-top: -38px!important;
|
||||
margin-bottom: 20px!important;
|
||||
}
|
||||
.deactivated-employees-list .blue-btn{
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.show-hide{
|
||||
position: relative;
|
||||
}
|
||||
.show-hide #toggle-password, .show-hide #toggle-password1, .show-hide #toggle-password2{
|
||||
right: 25px;
|
||||
position: absolute;
|
||||
top: 55px;
|
||||
}
|
||||
.deactivate-btn a:hover{
|
||||
color: #60bf00!important;
|
||||
}
|
||||
.deactivate-btn a.delete:hover{
|
||||
color: #bf0d00!important;
|
||||
}
|
||||
.emppreview .idcard-section .designation{
|
||||
margin:0!important;
|
||||
}
|
||||
.emplive-view .profile-photo{
|
||||
height: 153px!important;
|
||||
}
|
||||
.empview-section .profile-photo{
|
||||
height:153px;
|
||||
}
|
||||
@media (min-width: 999px){
|
||||
.empview-section{
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.empview-section .idcard-section{
|
||||
width:450px;
|
||||
}
|
||||
}
|
||||
@media (min-height:600px) and (max-width: 999px){
|
||||
.empview-section .idcard-inner-section{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100vh;
|
||||
}
|
||||
.empview-section .idcard-inner-section .idcard-inner-bg{
|
||||
min-width:90%;
|
||||
}
|
||||
}
|
||||
.success-message{
|
||||
color: #498b07;
|
||||
font-size: 20px;
|
||||
font-weight: 500;
|
||||
background: #fafff5;
|
||||
border: 1px solid #498b07;
|
||||
padding: 5px;
|
||||
margin-bottom: 25px;
|
||||
text-align: center;
|
||||
}
|
||||
.alert-message{
|
||||
color: #ff0000;
|
||||
font-size: 20px;
|
||||
font-weight: 500;
|
||||
background: #fdeeee;
|
||||
border: 1px solid #ff0000;
|
||||
padding: 5px;
|
||||
margin-bottom: 25px;
|
||||
text-align: center;
|
||||
}
|
||||
1469
composer.lock
generated
BIN
uploads/1685090250.png
Normal file
|
After Width: | Height: | Size: 206 KiB |
BIN
uploads/16850902501.png
Normal file
|
After Width: | Height: | Size: 206 KiB |
BIN
uploads/16850902502.png
Normal file
|
After Width: | Height: | Size: 206 KiB |
BIN
uploads/1685091370.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
uploads/16850913701.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
uploads/1685091493.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
uploads/16850914931.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
uploads/1685091572.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
uploads/16850915721.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
uploads/1685091793.png
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
uploads/16850917931.png
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
uploads/16850917932.png
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
uploads/1685092814.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
uploads/16850928141.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
uploads/16850928142.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
uploads/1685092829.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
uploads/16850928291.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
uploads/16850928292.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
uploads/1685092860.png
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
uploads/16850928601.png
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
uploads/1685094626.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
uploads/16850946261.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
uploads/1685097566.png
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
uploads/16850975661.png
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
uploads/16850975662.png
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
uploads/1685097774.png
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
uploads/test.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
uploads/test1.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
uploads/test2.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
uploads/test3.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
uploads/test4.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
uploads/test5.png
Normal file
|
After Width: | Height: | Size: 19 KiB |