commitall
This commit is contained in:
70
account/application/views/setup/Po.php
Normal file
70
account/application/views/setup/Po.php
Normal file
@ -0,0 +1,70 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Po extends CI_Controller {
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
checkLogin();
|
||||
}
|
||||
public function _remap($alias="",$params=array())
|
||||
{
|
||||
|
||||
$data['dataValue']=$this->session;
|
||||
|
||||
$data['pageTitle']="Purchase Order";
|
||||
|
||||
switch($alias)
|
||||
{
|
||||
case 'add':
|
||||
if(isset($_POST['submit'])){
|
||||
$TableData=array(
|
||||
'po_date'=>filter_var($_POST['po_date'],FILTER_SANITIZE_STRING),
|
||||
'po_by'=>filter_var($_POST['po_by'],FILTER_SANITIZE_STRING),
|
||||
'po_duedate'=>filter_var($_POST['po_duedate'],FILTER_SANITIZE_STRING),
|
||||
'po_urgency'=>filter_var($_POST['po_urgency'],FILTER_SANITIZE_STRING),
|
||||
'vendor_id'=>filter_var($_POST['vendor_id'],FILTER_SANITIZE_STRING),
|
||||
'approved_by'=>filter_var($_POST['approved_by'],FILTER_SANITIZE_STRING),
|
||||
'approved_on'=>filter_var($_POST['approved_on'],FILTER_SANITIZE_STRING),
|
||||
'created_by'=>'admin',
|
||||
'created_on'=>date('Y-m-d H:i:s'),
|
||||
'remarks'=>filter_var($_POST['remarks'],FILTER_SANITIZE_STRING),
|
||||
'status'=>1,
|
||||
);
|
||||
$this->db->insert('tbl_po',$TableData);
|
||||
redirect("po");
|
||||
} loadView("po/addpo",$data);
|
||||
break;
|
||||
case 'edit':
|
||||
if(isset($_POST['submit'])){
|
||||
$id=$this->uri->segment(4);
|
||||
$TableData=array(
|
||||
'po_date'=>filter_var($_POST['po_date'],FILTER_SANITIZE_STRING),
|
||||
'po_by'=>filter_var($_POST['po_by'],FILTER_SANITIZE_STRING),
|
||||
'po_duedate'=>filter_var($_POST['po_duedate'],FILTER_SANITIZE_STRING),
|
||||
'po_urgency'=>filter_var($_POST['po_urgency'],FILTER_SANITIZE_STRING),
|
||||
'vendor_id'=>filter_var($_POST['vendor_id'],FILTER_SANITIZE_STRING),
|
||||
'approved_by'=>filter_var($_POST['approved_by'],FILTER_SANITIZE_STRING),
|
||||
'approved_on'=>filter_var($_POST['approved_on'],FILTER_SANITIZE_STRING),
|
||||
'created_by'=>'admin',
|
||||
'created_on'=>date('Y-m-d H:i:s'),
|
||||
'remarks'=>filter_var($_POST['remarks'],FILTER_SANITIZE_STRING),
|
||||
'status'=>1,
|
||||
);
|
||||
$this->db->where('po_id',$id);
|
||||
$this->db->update('tbl_po',$TableData);
|
||||
redirect("po");
|
||||
} loadView("po/editpo",$data);
|
||||
break;
|
||||
case 'delete':
|
||||
$id=$this->uri->segment(4);
|
||||
$this->db->where('po_id',$id);
|
||||
$this->db->delete('tbl_po');
|
||||
redirect("po");
|
||||
break;
|
||||
default:
|
||||
loadView("po/listpo",$data);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
75
account/application/views/setup/addbranches.php
Normal file
75
account/application/views/setup/addbranches.php
Normal file
@ -0,0 +1,75 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
|
||||
<h5 class="m-0"><?php echo $editable ? "Edit" : "Create"; ?> <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list", "List
|
||||
" . $pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method="POST" action="" enctype="multipart/form-data" name="tbl_branches">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="branch_name">Company Name</label>
|
||||
<input type="text" class="form-control" id="branch_name" value="<?php echo $editable ? $branchData->branch_name : ''; ?>" name="branch_name">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="branch_address">Company Address</label>
|
||||
<input type="text" class="form-control" id="branch_address" value="<?php echo $editable ? $branchData->branch_address : ''; ?>" name="branch_address">
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="pan">PAN No</label>
|
||||
<input type="text" class="form-control" id="pan" value="<?php echo $editable ? $branchData->pan : ''; ?>" name="pan">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="vat">VAT Applicable</label>
|
||||
<select class="form-control" id="vat" name="vat">
|
||||
<?php if ($editable) : ?>
|
||||
<option value="1" <?php echo $branchData->vat === '1' ? 'selected' : ''; ?>>Yes</option>
|
||||
<option value="0" <?php echo $branchData->vat === '0' ? 'selected' : ''; ?>>No</option>
|
||||
<?php else : ?>
|
||||
<option value="1">Yes</option>
|
||||
<option value="0">No</option>
|
||||
<?php endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">Remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"><?php echo $editable ? $branchData->remarks : ''; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($editable) : ?>
|
||||
<button type="reset" class="btn btn-default">Reset</button>
|
||||
<button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
<?php else : ?>
|
||||
|
||||
<button type="submit" class="btn btn-primary" name="submit" >Save</button>
|
||||
<?php endif; ?>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
49
account/application/views/setup/adddepartments.php
Normal file
49
account/application/views/setup/adddepartments.php
Normal file
@ -0,0 +1,49 @@
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0">Create <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List
|
||||
".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_departments">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="department_name">Department Name</label><input type="text" class="form-control" id="department_name" value="" name="department_name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<?php //fillComboWithValue($fieldName,$displayName,$fieldID,$tableName, $displayField, $valueField, $default="",$CSSclass="",$multiple=false,$condition="")
|
||||
fillComboWithValue("branch_id", "Branch", "branch_id", "tbl_branches", "branch_name", "branch_id", $default = "", $CSSclass = "form-control", $multiple = false, $condition = "status=1");
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">Remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div><button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
40
account/application/views/setup/addemployeetype.php
Normal file
40
account/application/views/setup/addemployeetype.php
Normal file
@ -0,0 +1,40 @@
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0">Create <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List
|
||||
".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_employeetype">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="employeetype_name">employeetype_name</label><input type="text" class="form-control" id="employeetype_name" value="" name="employeetype_name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div><button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
58
account/application/views/setup/additemcategories.php
Normal file
58
account/application/views/setup/additemcategories.php
Normal file
@ -0,0 +1,58 @@
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0">Create <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List
|
||||
".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_itemcategories">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="category_name">category_name</label><input type="text" class="form-control" id="category_name" value="" name="category_name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="category_desc">category_desc</label>
|
||||
<textarea class="form-control" id="category_desc" name="category_desc"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="category_id">parent_category</label>
|
||||
<?php $categories = $this->db->query("select * from tbl_itemcategories where status=1")->result(); ?>
|
||||
<select name="parent_category" id="category_id" class="form-control select2">
|
||||
<option value="">Select a Category</option>
|
||||
<?php foreach ($categories as $category) : ?>
|
||||
<option value="<?php echo $category->category_id; ?>"><?php echo $category->category_name; ?>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div><button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
64
account/application/views/setup/additems.php
Normal file
64
account/application/views/setup/additems.php
Normal file
@ -0,0 +1,64 @@
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0">Create <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List
|
||||
".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_items">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<?php //fillComboWithValue($fieldName,$displayName,$fieldID,$tableName, $displayField, $valueField, $default="",$CSSclass="",$multiple=false,$condition="")
|
||||
fillComboWithValue("category_id", "Category", "category_id", "tbl_itemcategories", "category_name", "category_id", $default = "", $CSSclass = "form-control", $multiple = false, $condition = "status=1");
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="item_name">item_name</label><input type="text" class="form-control" id="item_name" value="" name="item_name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="item_desc">item_desc</label>
|
||||
<textarea class="form-control" id="item_desc" name="item_desc"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="item_units">item_units</label><input type="text" class="form-control" id="item_units" value="Pcs" name="item_units">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div><button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
40
account/application/views/setup/addsalarytypes.php
Normal file
40
account/application/views/setup/addsalarytypes.php
Normal file
@ -0,0 +1,40 @@
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0">Create <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List
|
||||
".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_salarytypes">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="salarytype_name">salarytype_name</label><input type="text" class="form-control" id="salarytype_name" value="" name="salarytype_name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div><button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
57
account/application/views/setup/addvendors.php
Normal file
57
account/application/views/setup/addvendors.php
Normal file
@ -0,0 +1,57 @@
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0">Create <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List
|
||||
".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_vendors">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="vendor_type">vendor_type</label><input type="text" class="form-control" id="vendor_type" value="" name="vendor_type">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="vendor_name">vendor_name</label><input type="text" class="form-control" id="vendor_name" value="" name="vendor_name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="vendor_country">vendor_country</label><input type="text" class="form-control" id="vendor_country" value="" name="vendor_country">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="vendor_contact">vendor_contact</label><input type="text" class="form-control" id="vendor_contact" value="" name="vendor_contact">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div><button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
47
account/application/views/setup/addworkshifts.php
Normal file
47
account/application/views/setup/addworkshifts.php
Normal file
@ -0,0 +1,47 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0">Create <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List
|
||||
".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_workshifts">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="workshift_name">workshift_name</label><input type="text" class="form-control" id="workshift_name" value="" name="workshift_name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="workshift_desc">workshift_desc</label>
|
||||
<textarea class="form-control" id="workshift_desc" name="workshift_desc"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div><button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
79
account/application/views/setup/defaults.php
Normal file
79
account/application/views/setup/defaults.php
Normal file
@ -0,0 +1,79 @@
|
||||
<?php $pageTitle = "BBNepal Accounting Defaults"; ?>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<!-- Default box -->
|
||||
<form method="POST" action="">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">Setting up defaults for BBNepal Accounting</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<!-- <button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<table class="table table-head-fixed text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>BB Nepal Sections</th>
|
||||
<th>Account Default Groups/Category</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Students Section</td>
|
||||
<td><?php showAccountCategoriesSelector("students_section", "students_category", "status=1", $Default["students_section"] ?? null, "REQUIRED"); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Teachers Section</td>
|
||||
<td><?php showAccountCategoriesSelector("teachers_section", "teachers_section", "status=1", "", "REQUIRED"); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Expenses Section</td>
|
||||
<td><?php showAccountCategoriesSelector("expenses_section", "expenses_section", "status=1", "", "REQUIRED"); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Fee Types Section</td>
|
||||
<td><?php showAccountCategoriesSelector("fee_types_section", "fee_types_section", "status=1", "", "REQUIRED"); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Inventory Purchase</td>
|
||||
<td><?php showAccountCategoriesSelector("inventory_purchase_section", "inventory_purchase_section", "status=1", "", "REQUIRED"); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Inventory Sales</td>
|
||||
<td><?php showAccountCategoriesSelector("inventory_sales_section", "inventory_sales_section", "status=1", "", "REQUIRED"); ?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- /.row -->
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<button type="submit" class="form-control btn btn-primary">Save Setting</button>
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</form>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
49
account/application/views/setup/editbranches.php
Normal file
49
account/application/views/setup/editbranches.php
Normal file
@ -0,0 +1,49 @@
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0">Create <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List
|
||||
".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php $id = $this->uri->segment(4);
|
||||
$TableData = $this->db->query("select * from tbl_branches where branch_id =\"$id\" ")->row(); ?>
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_branches">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="branch_name">branch_name</label><input type="text" class="form-control" id="branch_name" value="<?php echo $TableData->branch_name; ?>" name="branch_name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="branch_address">branch_address</label><input type="text" class="form-control" id="branch_address" value="<?php echo $TableData->branch_address; ?>" name="branch_address">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"><?php echo $TableData->remarks; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div><button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
48
account/application/views/setup/editdepartments.php
Normal file
48
account/application/views/setup/editdepartments.php
Normal file
@ -0,0 +1,48 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0">Create <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List
|
||||
".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php $id = $this->uri->segment(4);
|
||||
$TableData = $this->db->query("select * from tbl_departments where department_id =\"$id\" ")->row(); ?>
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_departments">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="department_name">department_name</label><input type="text" class="form-control" id="department_name" value="<?php echo $TableData->department_name; ?>" name="department_name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="branch_id">branch_id</label><input type="text" class="form-control" id="branch_id" value="<?php echo $TableData->branch_id; ?>" name="branch_id">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"><?php echo $TableData->remarks; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div><button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
41
account/application/views/setup/editemployeetype.php
Normal file
41
account/application/views/setup/editemployeetype.php
Normal file
@ -0,0 +1,41 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0">Create <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List
|
||||
".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php $id = $this->uri->segment(4);
|
||||
$TableData = $this->db->query("select * from tbl_employeetype where employeetype_id =\"$id\" ")->row(); ?>
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_employeetype">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="employeetype_name">employeetype_name</label><input type="text" class="form-control" id="employeetype_name" value="<?php echo $TableData->employeetype_name; ?>" name="employeetype_name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"><?php echo $TableData->remarks; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div><button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
62
account/application/views/setup/edititemcategories.php
Normal file
62
account/application/views/setup/edititemcategories.php
Normal file
@ -0,0 +1,62 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0">Create <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List
|
||||
".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php $id = $this->uri->segment(4);
|
||||
$TableData = $this->db->query("select * from tbl_itemcategories where category_id =\"$id\" ")->row(); ?>
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_itemcategories">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="category_name">category_name</label><input type="text" class="form-control" id="category_name" value="<?php echo $TableData->category_name; ?>" name="category_name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="category_alias">category_alias</label><input type="text" class="form-control" id="category_alias" value="<?php echo $TableData->category_alias; ?>" name="category_alias">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="category_desc">category_desc</label>
|
||||
<textarea class="form-control" id="category_desc" name="category_desc"><?php echo $TableData->category_desc; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"><?php echo $TableData->remarks; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<?php //fillComboWithValue($fieldName,$displayName,$fieldID,$tableName, $displayField, $valueField, $default="",$CSSclass="",$multiple=false,$condition="")
|
||||
fillComboWithValue("parent_category", "Category", "parent_category", "tbl_itemcategories", "category_name", "category_id", $default = "$TableData->parent_category", $CSSclass = "form-control", $multiple = false, $condition = "status=1");
|
||||
?>
|
||||
<!--label for="parent_category">parent_category</label><input type="text" class="form-control" id="parent_category" value="<?php echo $TableData->parent_category; ?>" name="parent_category"-->
|
||||
</div>
|
||||
</div>
|
||||
</div><button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
63
account/application/views/setup/edititems.php
Normal file
63
account/application/views/setup/edititems.php
Normal file
@ -0,0 +1,63 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0"> Create <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List
|
||||
".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php $id = $this->uri->segment(4);
|
||||
$TableData = $this->db->query("select * from tbl_items where item_id =\"$id\" ")->row(); ?>
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_items">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="category_id">category_id</label><input type="text" class="form-control" id="category_id" value="<?php echo $TableData->category_id; ?>" name="category_id">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="item_name">item_name</label><input type="text" class="form-control" id="item_name" value="<?php echo $TableData->item_name; ?>" name="item_name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="item_desc">item_desc</label>
|
||||
<textarea class="form-control" id="item_desc" name="item_desc"><?php echo $TableData->item_desc; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="item_units">item_units</label><input type="text" class="form-control" id="item_units" value="<?php echo $TableData->item_units; ?>" name="item_units">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"><?php echo $TableData->remarks; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div><button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
0
account/application/views/setup/editsalarytypes.php
Normal file
0
account/application/views/setup/editsalarytypes.php
Normal file
58
account/application/views/setup/editvendors.php
Normal file
58
account/application/views/setup/editvendors.php
Normal file
@ -0,0 +1,58 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0">Create <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List
|
||||
".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php $id = $this->uri->segment(4);
|
||||
$TableData = $this->db->query("select * from tbl_vendors where vendor_id =\"$id\" ")->row(); ?>
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_vendors">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="vendor_type">vendor_type</label><input type="text" class="form-control" id="vendor_type" value="<?php echo $TableData->vendor_type; ?>" name="vendor_type">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="vendor_name">vendor_name</label><input type="text" class="form-control" id="vendor_name" value="<?php echo $TableData->vendor_name; ?>" name="vendor_name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="vendor_country">vendor_country</label><input type="text" class="form-control" id="vendor_country" value="<?php echo $TableData->vendor_country; ?>" name="vendor_country">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="vendor_contact">vendor_contact</label><input type="text" class="form-control" id="vendor_contact" value="<?php echo $TableData->vendor_contact; ?>" name="vendor_contact">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"><?php echo $TableData->remarks; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div><button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
49
account/application/views/setup/editworkshifts.php
Normal file
49
account/application/views/setup/editworkshifts.php
Normal file
@ -0,0 +1,49 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0">Create <?php echo $pageTitle; ?> <?php showListButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List
|
||||
".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php $id = $this->uri->segment(4);
|
||||
$TableData = $this->db->query("select * from tbl_workshifts where workshift_id =\"$id\" ")->row(); ?>
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_workshifts">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="workshift_name">workshift_name</label><input type="text" class="form-control" id="workshift_name" value="<?php echo $TableData->workshift_name; ?>" name="workshift_name">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="workshift_desc">workshift_desc</label>
|
||||
<textarea class="form-control" id="workshift_desc" name="workshift_desc"><?php echo $TableData->workshift_desc; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="remarks">remarks</label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"><?php echo $TableData->remarks; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div><button type="reset" class="btn btn-default">Reset</button> <button class="btn btn-primary" type="submit" name="submit">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
149
account/application/views/setup/factorycalendar.php
Normal file
149
account/application/views/setup/factorycalendar.php
Normal file
@ -0,0 +1,149 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0"><?php echo $pageTitle; ?></h5>
|
||||
</div>
|
||||
<?php
|
||||
if (isset($_GET['year_selector'])) {
|
||||
$year = $_GET['year_selector'];
|
||||
} else {
|
||||
$year = NepaliYear();
|
||||
}
|
||||
if (isset($_GET['month_selector'])) {
|
||||
$month = $_GET['month_selector'];
|
||||
} else {
|
||||
$month = NepaliMonth();
|
||||
}
|
||||
?>
|
||||
<div class="card-body">
|
||||
<form class="form">
|
||||
<div class=" form-group row">
|
||||
<label for="year_selector">Year</label>
|
||||
<div class="col">
|
||||
<select name="year_selector" type="year_selector" id="year_selector" class="form-control" required>
|
||||
<option value="<?php echo $year; ?>"><?php echo $year; ?></option>
|
||||
<option value="">Select Year</option>
|
||||
<option value="2077">2077</option>
|
||||
<option value="2078">2078</option>
|
||||
<option value="2079">2079</option>
|
||||
<option value="2080">2080</option>
|
||||
<option value="2081">2081</option>
|
||||
</select>
|
||||
</div>
|
||||
<label for="month_selector">Month</label>
|
||||
<div class="col">
|
||||
<select name="month_selector" type="month_selector" id="month_selector" class="form-control" required>
|
||||
<option value="<?php echo $month; ?>"><?php echo NepaliMonthNameByNumber($month); ?></option>
|
||||
<option value="">Select Month</option>
|
||||
<option value="1">Baisakh</option>
|
||||
<option value="2">Jestha</option>
|
||||
<option value="3">Ashad</option>
|
||||
<option value="4">Shrawan</option>
|
||||
<option value="5">Bhadra</option>
|
||||
<option value="6">Asoj</option>
|
||||
<option value="7">Kartik</option>
|
||||
<option value="8">Mangsir</option>
|
||||
<option value="9">Poush</option>
|
||||
<option value="10">Magh</option>
|
||||
<option value="11">Falgun</option>
|
||||
<option value="12">Chaitra</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col"><input type="submit" class="form-control btn btn-success"></div>
|
||||
</div>
|
||||
</form>
|
||||
<?php $LoggedUser = $this->session->userdata('loggedInUser'); ?>
|
||||
<?php $TableData = $this->db->query("select * from tbl_factorycalendar WHERE day_bs like '%$year-$month-%'")->result(); ?>
|
||||
<table class="table table-bordered table-striped dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Sn</th>
|
||||
<th>AD Date</th>
|
||||
<th>BS Date</th>
|
||||
<th>Weekday</th>
|
||||
<th>Working Day</th>
|
||||
<td>Holiday</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $a = 0;
|
||||
foreach ($TableData as $TableRow) : $a++; ?>
|
||||
<?php foreach ($TableRow as $cols) : $id = $cols;
|
||||
break;
|
||||
endforeach; ?><tr>
|
||||
<td><?php echo $a; ?></td>
|
||||
<td><?php echo $TableRow->day_ad; ?></td>
|
||||
<td><?php echo $TableRow->day_bs; ?></td>
|
||||
<td><?php echo $TableRow->day_weekday; ?></td>
|
||||
<td><?php echo $TableRow->day_work; ?></td>
|
||||
<td><?php echo $TableRow->day_holiday; ?></td>
|
||||
<td><?php if ($LoggedUser == "admin") : ?><a onClick="javascript:showDetails(<?php echo $id; ?>);" class="btn btn-success btn-xs">Edit</a>
|
||||
<?php endif; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<tbody>
|
||||
</table>
|
||||
<?php //pre($TableData);
|
||||
?>
|
||||
<script>
|
||||
function doDelete(id) {
|
||||
if (confirm('Are you sure to delete?')) {
|
||||
window.location = '<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/delete/"); ?>' + id;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="showPODetails" tabindex="-1" role="dialog" aria-labelledby="showpoDetails" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="showpoDetails">Setup Factory Calendar</h5><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
</div>
|
||||
<div class="modal-body" id="print_area">
|
||||
<form method="post" action="<?php echo site_url('ajax/updatefactoryholiday') ?>">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="po_by">Office Holiday ?</label>
|
||||
<select name="day_work" type="month_selector" id="month_selector" class="form-control" required>
|
||||
<option value="">Select Yes / No</option>
|
||||
<option value="0">Yes</option>
|
||||
<option value="1">No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="po_by">Holiday Name</label>
|
||||
<input type="text" class="form-control" id="billing_name" value="" name="day_holiday">
|
||||
<input type="hidden" class="form-control" id="day_id" value="" name="day_id">
|
||||
<input type="hidden" class="form-control" id="a" value="<?php echo $_SERVER['REQUEST_URI']; ?>" name="url">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Update</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function showDetails(id) {
|
||||
// alert(poid);
|
||||
$.id = id;
|
||||
$('#day_id').val(id)
|
||||
$('#showPODetails').modal();
|
||||
// alert($.bill_id);
|
||||
}
|
||||
</script>
|
59
account/application/views/setup/listbranches.php
Normal file
59
account/application/views/setup/listbranches.php
Normal file
@ -0,0 +1,59 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0"><?php echo $pageTitle; ?> <?php showCreateButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/add", "Create New " . $pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php $TableData = $this->db->query("select * from tbl_branches where status<>-1")->result(); ?>
|
||||
<table class="table table-bordered table-striped dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php myLang("Company Name") ?></th>
|
||||
<th><?php myLang("Company Address") ?></th>
|
||||
<th><?php myLang("VAT Applicable") ?></th>
|
||||
<th><?php myLang("PAN #") ?></th>
|
||||
<th><?php myLang("Remarks") ?></th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $a = 0;
|
||||
foreach ($TableData as $TableRow) : $a++; ?>
|
||||
<?php foreach ($TableRow as $cols) : $id = $cols;
|
||||
break;
|
||||
endforeach; ?><tr class="bg-<?php echo ($TableRow->status == 0) ? "danger" : "success"; ?>">
|
||||
<td><?php echo $TableRow->branch_name; ?></td>
|
||||
<td><?php echo $TableRow->branch_address; ?></td>
|
||||
<td><?php echo ($TableRow->vat == 1) ? "Yes" : "No"; ?></td>
|
||||
<td><?php echo $TableRow->pan; ?></td>
|
||||
<td><?php echo $TableRow->remarks; ?></td>
|
||||
<td>
|
||||
<?php if ($TableRow->status == 0) : ?>
|
||||
|
||||
<a href="<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/select/$id"); ?>" class="btn btn-primary btn-xs"><i class="fas fa-check"></i> Select Company</a>
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/edit/$id"); ?>" class="btn btn-success btn-xs"><i class="fas fa-edit"></i> Edit</a>
|
||||
<a onClick="javascript:doDelete(<?php echo $id; ?>);" class="btn btn-danger btn-xs"><i class="fas fa-trash"></i> Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<tbody>
|
||||
</table>
|
||||
<script>
|
||||
function doDelete(id) {
|
||||
if (confirm('Are you sure to delete?')) {
|
||||
window.location = '<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/delete/"); ?>' + id;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
66
account/application/views/setup/listdepartments.php
Normal file
66
account/application/views/setup/listdepartments.php
Normal file
@ -0,0 +1,66 @@
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
|
||||
<h5 class="m-0"><?php echo $pageTitle; ?> <?php showCreateButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/add","Create New ".$pageTitle); ?></h5>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<?php $TableData = $this->db->query("select * from tbl_departments where status=1")->result(); ?>
|
||||
<table class="table table-bordered table-striped dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>department_id</th>
|
||||
<th>department_name</th>
|
||||
<th>department_alias</th>
|
||||
<th>Branch</th>
|
||||
<th>created_on</th>
|
||||
<th>created_by</th>
|
||||
<th>remarks</th>
|
||||
<th>status</th>
|
||||
<th class="table-col col-2">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $a=0; foreach ($TableData as $TableRow) : $a++; ?>
|
||||
<?php foreach ($TableRow as $cols) : $id = $cols;
|
||||
break;
|
||||
endforeach; ?><tr>
|
||||
<td><?php echo $TableRow->department_id; ?></td>
|
||||
<td><?php echo $TableRow->department_name; ?></td>
|
||||
<td><?php echo $TableRow->department_alias; ?></td>
|
||||
<td><?php echo getFieldfromValue("tbl_branches", "branch_name", "branch_id", $TableRow->branch_id); //$TableRow->branch_id;
|
||||
?></td>
|
||||
<td><?php echo $TableRow->created_on; ?></td>
|
||||
<td><?php echo $TableRow->created_by; ?></td>
|
||||
<td><?php echo $TableRow->remarks; ?></td>
|
||||
<td><?php echo $TableRow->status; ?></td>
|
||||
<td><?php showEditButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/edit/$id"); ?>
|
||||
<?php showDeleteButton($id); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<tbody>
|
||||
</table>
|
||||
<script>
|
||||
function doDelete(id) {
|
||||
if (confirm('Are you sure to delete?')) {
|
||||
window.location = '<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/delete/"); ?>' + id;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
63
account/application/views/setup/listemployeetype.php
Normal file
63
account/application/views/setup/listemployeetype.php
Normal file
@ -0,0 +1,63 @@
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
|
||||
<h5 class="m-0"><?php echo $pageTitle; ?> <?php showCreateButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/add","Create New ".$pageTitle); ?></h5>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<?php $TableData = $this->db->query("select * from tbl_employeetype where status=1")->result(); ?>
|
||||
<table class="table table-bordered table-striped dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>employeetype_id</th>
|
||||
<th>employeetype_name</th>
|
||||
<th>employeetype_alias</th>
|
||||
<th>created_by</th>
|
||||
<th>created_on</th>
|
||||
<th>remarks</th>
|
||||
<th>status</th>
|
||||
<th class="table-col col-2">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $a=0; foreach ($TableData as $TableRow) : $a++; ?>
|
||||
<?php foreach ($TableRow as $cols) : $id = $cols;
|
||||
break;
|
||||
endforeach; ?><tr>
|
||||
<td><?php echo $TableRow->employeetype_id; ?></td>
|
||||
<td><?php echo $TableRow->employeetype_name; ?></td>
|
||||
<td><?php echo $TableRow->employeetype_alias; ?></td>
|
||||
<td><?php echo $TableRow->created_by; ?></td>
|
||||
<td><?php echo $TableRow->created_on; ?></td>
|
||||
<td><?php echo $TableRow->remarks; ?></td>
|
||||
<td><?php echo $TableRow->status; ?></td>
|
||||
<td><?php showEditButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/edit/$id"); ?>
|
||||
<?php showDeleteButton($id); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<tbody>
|
||||
</table>
|
||||
<script>
|
||||
function doDelete(id) {
|
||||
if (confirm('Are you sure to delete?')) {
|
||||
window.location = '<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/delete/"); ?>' + id;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
59
account/application/views/setup/listitemcategories.php
Normal file
59
account/application/views/setup/listitemcategories.php
Normal file
@ -0,0 +1,59 @@
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
|
||||
<h5 class="m-0"><?php echo $pageTitle; ?> <?php showCreateButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/add","Create New ".$pageTitle); ?></h5>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<?php $TableData = $this->db->query("select * from tbl_itemcategories where status=1")->result(); ?>
|
||||
<table class="table table-bordered table-striped dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>category_id</th>
|
||||
<th>category_name</th>
|
||||
<th>category_desc</th>
|
||||
|
||||
|
||||
<th>parent_category</th>
|
||||
<th class="table-col col-2">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $a=0; foreach ($TableData as $TableRow) : $a++; ?>
|
||||
<?php foreach ($TableRow as $cols) : $id = $cols;
|
||||
break;
|
||||
endforeach; ?><tr>
|
||||
<td><?php echo $TableRow->category_id; ?></td>
|
||||
<td><?php echo $TableRow->category_name; ?></td>
|
||||
<td><?php echo $TableRow->category_desc; ?></td>
|
||||
<td><?php echo ($TableRow->parent_category != 0) ? getFieldfromValue($tableName = "tbl_itemcategories", $fieldName = "category_name", $lookupField = "category_id", $referenceValue = $TableRow->parent_category) : ""; ?></td>
|
||||
<td><?php showEditButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/edit/$id"); ?>
|
||||
<?php showDeleteButton($id); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<tbody>
|
||||
</table>
|
||||
<script>
|
||||
function doDelete(id) {
|
||||
if (confirm('Are you sure to delete?')) {
|
||||
window.location = '<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/delete/"); ?>' + id;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
73
account/application/views/setup/listitems.php
Normal file
73
account/application/views/setup/listitems.php
Normal file
@ -0,0 +1,73 @@
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0"><?php echo $pageTitle; ?> <?php showCreateButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/add","Create New ".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php $ItemCategories = $this->MItems->getItemCategories(); ?>
|
||||
<form method="GET" action="">
|
||||
<div class="form-group form-row">
|
||||
<label for="item_category" class="col-2">Filter Items by Category</label>
|
||||
<select name="item_category" id="item_category" class="col-6 form-control">
|
||||
<option value="">Displaying All</option>
|
||||
<?php foreach ($ItemCategories as $ItemCategory) : ?>
|
||||
<option value="<?php echo $ItemCategory->category_alias; ?>" <?php if (isset($_GET['item_category'])) {
|
||||
if ($_GET['item_category'] == $ItemCategory->category_alias) echo "SELECTED";
|
||||
} ?>><?php echo $ItemCategory->category_name; ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<input type="submit" class="col-2 btn btn-success form-control" value='Filter' />
|
||||
</div>
|
||||
</form>
|
||||
<?php $LoggedUser = $this->session->userdata('loggedInUser'); ?>
|
||||
<table class="table table-bordered table-striped dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Sn</th>
|
||||
<th>Category</th>
|
||||
<th>Item Name</th>
|
||||
<th>Desc</th>
|
||||
<th>Units</th>
|
||||
<th class="table-col col-2">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $a = 0;
|
||||
foreach ($TableData as $TableRow) : $a++; ?>
|
||||
<?php foreach ($TableRow as $cols) : $id = $cols;
|
||||
break;
|
||||
endforeach; ?><tr>
|
||||
<td><?php echo $a; ?></td>
|
||||
<td><?php echo $TableRow->Category->category_name; ?></td>
|
||||
<td><?php echo $TableRow->item_name; ?></td>
|
||||
<td><?php echo $TableRow->item_desc; ?></td>
|
||||
<td><?php echo $TableRow->item_units; ?></td>
|
||||
<td><?php if ($LoggedUser == "admin") : ?><?php showEditButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/edit/$id"); ?>
|
||||
<?php showDeleteButton($id); ?><?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<tbody>
|
||||
</table>
|
||||
<?php //pre($TableData);
|
||||
?>
|
||||
<script>
|
||||
function doDelete(id) {
|
||||
if (confirm('Are you sure to delete?')) {
|
||||
window.location = '<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/delete/"); ?>' + id;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
57
account/application/views/setup/listsalarytypes.php
Normal file
57
account/application/views/setup/listsalarytypes.php
Normal file
@ -0,0 +1,57 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0"><?php echo $pageTitle; ?> <?php showCreateButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/add","Create New ".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php $TableData = $this->db->query("select * from tbl_salarytypes where status=1")->result(); ?>
|
||||
<table class="table table-bordered table-striped dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>salarytype_id</th>
|
||||
<th>salarytype_name</th>
|
||||
<th>salarytype_alias</th>
|
||||
<th>created_on</th>
|
||||
<th>created_by</th>
|
||||
<th>remarks</th>
|
||||
<th>status</th>
|
||||
<th class="table-col col-2">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $a=0; foreach ($TableData as $TableRow) : $a++; ?>
|
||||
<?php foreach ($TableRow as $cols) : $id = $cols;
|
||||
break;
|
||||
endforeach; ?><tr>
|
||||
<td><?php echo $TableRow->salarytype_id; ?></td>
|
||||
<td><?php echo $TableRow->salarytype_name; ?></td>
|
||||
<td><?php echo $TableRow->salarytype_alias; ?></td>
|
||||
<td><?php echo $TableRow->created_on; ?></td>
|
||||
<td><?php echo $TableRow->created_by; ?></td>
|
||||
<td><?php echo $TableRow->remarks; ?></td>
|
||||
<td><?php echo $TableRow->status; ?></td>
|
||||
<td><?php showEditButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/edit/$id"); ?>
|
||||
<?php showDeleteButton($id); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<tbody>
|
||||
</table>
|
||||
<script>
|
||||
function doDelete(id) {
|
||||
if (confirm('Are you sure to delete?')) {
|
||||
window.location = '<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/delete/"); ?>' + id;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
61
account/application/views/setup/listvendors.php
Normal file
61
account/application/views/setup/listvendors.php
Normal file
@ -0,0 +1,61 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0"><?php echo $pageTitle; ?> <?php showCreateButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/add","Create New ".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php $TableData = $this->db->query("select * from tbl_vendors where status=1")->result(); ?>
|
||||
<table class="table table-bordered table-striped dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>vendor_id</th>
|
||||
<th>vendor_type</th>
|
||||
<th>vendor_name</th>
|
||||
<th>vendor_country</th>
|
||||
<th>vendor_contact</th>
|
||||
<th>created_on</th>
|
||||
<th>created_by</th>
|
||||
<th>remarks</th>
|
||||
<th>status</th>
|
||||
<th class="table-col col-2">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $a=0; foreach ($TableData as $TableRow) : $a++; ?>
|
||||
<?php foreach ($TableRow as $cols) : $id = $cols;
|
||||
break;
|
||||
endforeach; ?><tr>
|
||||
<td><?php echo $TableRow->vendor_id; ?></td>
|
||||
<td><?php echo $TableRow->vendor_type; ?></td>
|
||||
<td><?php echo $TableRow->vendor_name; ?></td>
|
||||
<td><?php echo $TableRow->vendor_country; ?></td>
|
||||
<td><?php echo $TableRow->vendor_contact; ?></td>
|
||||
<td><?php echo $TableRow->created_on; ?></td>
|
||||
<td><?php echo $TableRow->created_by; ?></td>
|
||||
<td><?php echo $TableRow->remarks; ?></td>
|
||||
<td><?php echo $TableRow->status; ?></td>
|
||||
<td><?php showEditButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/edit/$id"); ?>
|
||||
<?php showDeleteButton($id); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<tbody>
|
||||
</table>
|
||||
<script>
|
||||
function doDelete(id) {
|
||||
if (confirm('Are you sure to delete?')) {
|
||||
window.location = '<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/delete/"); ?>' + id;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
59
account/application/views/setup/listworkshifts.php
Normal file
59
account/application/views/setup/listworkshifts.php
Normal file
@ -0,0 +1,59 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0"><?php echo $pageTitle; ?> <?php showCreateButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/add","Create New ".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php $TableData = $this->db->query("select * from tbl_workshifts where status=1")->result(); ?>
|
||||
<table class="table table-bordered table-striped dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>workshift_id</th>
|
||||
<th>workshift_name</th>
|
||||
<th>workshift_alias</th>
|
||||
<th>workshift_desc</th>
|
||||
<th>created_by</th>
|
||||
<th>created_on</th>
|
||||
<th>remarks</th>
|
||||
<th>status</th>
|
||||
<th class="table-col col-2">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $a=0; foreach ($TableData as $TableRow) : $a++; ?>
|
||||
<?php foreach ($TableRow as $cols) : $id = $cols;
|
||||
break;
|
||||
endforeach; ?><tr>
|
||||
<td><?php echo $TableRow->workshift_id; ?></td>
|
||||
<td><?php echo $TableRow->workshift_name; ?></td>
|
||||
<td><?php echo $TableRow->workshift_alias; ?></td>
|
||||
<td><?php echo $TableRow->workshift_desc; ?></td>
|
||||
<td><?php echo $TableRow->created_by; ?></td>
|
||||
<td><?php echo $TableRow->created_on; ?></td>
|
||||
<td><?php echo $TableRow->remarks; ?></td>
|
||||
<td><?php echo $TableRow->status; ?></td>
|
||||
<td><?php showEditButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/edit/$id"); ?>
|
||||
<?php showDeleteButton($id); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<tbody>
|
||||
</table>
|
||||
<script>
|
||||
function doDelete(id) {
|
||||
if (confirm('Are you sure to delete?')) {
|
||||
window.location = '<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/delete/"); ?>' + id;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
149
account/application/views/setup/officecalendar.php
Normal file
149
account/application/views/setup/officecalendar.php
Normal file
@ -0,0 +1,149 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0"><?php echo $pageTitle; ?></h5>
|
||||
</div>
|
||||
<?php
|
||||
if (isset($_GET['year_selector'])) {
|
||||
$year = $_GET['year_selector'];
|
||||
} else {
|
||||
$year = NepaliYear();
|
||||
}
|
||||
if (isset($_GET['month_selector'])) {
|
||||
$month = $_GET['month_selector'];
|
||||
} else {
|
||||
$month = NepaliMonth();
|
||||
}
|
||||
?>
|
||||
<div class="card-body">
|
||||
<form class="form">
|
||||
<div class=" form-group row">
|
||||
<label for="year_selector">Year</label>
|
||||
<div class="col">
|
||||
<select name="year_selector" type="year_selector" id="year_selector" class="form-control" required>
|
||||
<option value="<?php echo $year; ?>"><?php echo $year; ?></option>
|
||||
<option value="">Select Year</option>
|
||||
<option value="2077">2077</option>
|
||||
<option value="2078">2078</option>
|
||||
<option value="2079">2079</option>
|
||||
<option value="2080">2080</option>
|
||||
<option value="2081">2081</option>
|
||||
</select>
|
||||
</div>
|
||||
<label for="month_selector">Month</label>
|
||||
<div class="col">
|
||||
<select name="month_selector" type="month_selector" id="month_selector" class="form-control" required>
|
||||
<option value="<?php echo $month; ?>"><?php echo NepaliMonthNameByNumber($month); ?></option>
|
||||
<option value="">Select Month</option>
|
||||
<option value="1">Baisakh</option>
|
||||
<option value="2">Jestha</option>
|
||||
<option value="3">Ashad</option>
|
||||
<option value="4">Shrawan</option>
|
||||
<option value="5">Bhadra</option>
|
||||
<option value="6">Asoj</option>
|
||||
<option value="7">Kartik</option>
|
||||
<option value="8">Mangsir</option>
|
||||
<option value="9">Poush</option>
|
||||
<option value="10">Magh</option>
|
||||
<option value="11">Falgun</option>
|
||||
<option value="12">Chaitra</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col"><input type="submit" class="form-control btn btn-success"></div>
|
||||
</div>
|
||||
</form>
|
||||
<?php $LoggedUser = $this->session->userdata('loggedInUser'); ?>
|
||||
<?php $TableData = $this->db->query("select * from tbl_officecalendar WHERE day_bs like '%$year-$month-%'")->result(); ?>
|
||||
<table class="table table-bordered table-striped dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Sn</th>
|
||||
<th>AD Date</th>
|
||||
<th>BS Date</th>
|
||||
<th>Weekday</th>
|
||||
<th>Working Day</th>
|
||||
<td>Holiday</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $a = 0;
|
||||
foreach ($TableData as $TableRow) : $a++; ?>
|
||||
<?php foreach ($TableRow as $cols) : $id = $cols;
|
||||
break;
|
||||
endforeach; ?><tr>
|
||||
<td><?php echo $a; ?></td>
|
||||
<td><?php echo $TableRow->day_ad; ?></td>
|
||||
<td><?php echo $TableRow->day_bs; ?></td>
|
||||
<td><?php echo $TableRow->day_weekday; ?></td>
|
||||
<td><?php echo $TableRow->day_work; ?></td>
|
||||
<td><?php echo $TableRow->day_holiday; ?></td>
|
||||
<td><?php if ($LoggedUser == "admin") : ?><a onClick="javascript:showDetails(<?php echo $id; ?>);" class="btn btn-success btn-xs">Edit</a>
|
||||
<?php endif; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<tbody>
|
||||
</table>
|
||||
<?php //pre($TableData);
|
||||
?>
|
||||
<script>
|
||||
function doDelete(id) {
|
||||
if (confirm('Are you sure to delete?')) {
|
||||
window.location = '<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/delete/"); ?>' + id;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="showPODetails" tabindex="-1" role="dialog" aria-labelledby="showpoDetails" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="showpoDetails">Setup Calendar</h5><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
</div>
|
||||
<div class="modal-body" id="print_area">
|
||||
<form method="post" action="<?php echo site_url('ajax/updateholiday') ?>">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="po_by">Office Holiday ?</label>
|
||||
<select name="day_work" type="month_selector" id="month_selector" class="form-control" required>
|
||||
<option value="">Select Yes / No</option>
|
||||
<option value="0">Yes</option>
|
||||
<option value="1">No</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="po_by">Holiday Name</label>
|
||||
<input type="text" class="form-control" id="billing_name" value="" name="day_holiday">
|
||||
<input type="hidden" class="form-control" id="day_id" value="" name="day_id">
|
||||
<input type="hidden" class="form-control" id="a" value="<?php echo $_SERVER['REQUEST_URI']; ?>" name="url">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">Update</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function showDetails(id) {
|
||||
// alert(poid);
|
||||
$.id = id;
|
||||
$('#day_id').val(id)
|
||||
$('#showPODetails').modal();
|
||||
// alert($.bill_id);
|
||||
}
|
||||
</script>
|
48
account/application/views/setup/selectbranch.php
Normal file
48
account/application/views/setup/selectbranch.php
Normal file
@ -0,0 +1,48 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h5 class="m-0"><?php echo $pageTitle; ?> <?php showCreateButton($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/add","Create New ".$pageTitle); ?></h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php $TableData = $this->db->query("select * from tbl_branches where status<>-1")->result(); ?>
|
||||
<form method="POST" action="">
|
||||
<table class="table table-bordered table-striped dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php myLang("branch_name"); ?></th>
|
||||
<th><?php myLang("branch_address"); ?></th>
|
||||
<th><?php myLang("status"); ?></th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $a=0; foreach ($TableData as $TableRow) : $a++; ?>
|
||||
<?php foreach ($TableRow as $cols) : $id = $cols;
|
||||
break;
|
||||
endforeach; ?><tr class="bg-<?php echo ($TableRow->status==0)?"danger":"success"; ?>">
|
||||
<td><?php echo $TableRow->branch_name; ?></td>
|
||||
<td><?php echo $TableRow->branch_address; ?></td>
|
||||
<td><?php echo $TableRow->status; ?></td>
|
||||
<td>
|
||||
<?php if($TableRow->status==0):?>
|
||||
<button class="btn btn-primary btn-sm" type="submit" name="branch" value="<?php echo $id; ?>" >Select Branch</button>
|
||||
<?php else: ?>
|
||||
SELECTED
|
||||
<?php endif;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
93
account/application/views/setup/tables.php
Normal file
93
account/application/views/setup/tables.php
Normal file
@ -0,0 +1,93 @@
|
||||
<?php $pageTitle = "Application Tables"; ?>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<?php
|
||||
$tables = $this->db->list_tables();
|
||||
foreach ($tables as $table) {
|
||||
if ($table != "tbl_nepengcalendar") :
|
||||
?>
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?php echo $table; ?></h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-8 col-md-8 col-lg-8 order-2 order-md-1">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">Fixed Header Table</h3>
|
||||
</div>
|
||||
<!-- /.card-header -->
|
||||
<div class="card-body table-responsive p-0" style="height: 300px;">
|
||||
<table class="table table-head-fixed text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<?php
|
||||
$fields = $this->db->field_data($table);
|
||||
foreach ($fields as $field) {
|
||||
echo "<th>" . $field->name . "</th>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$rows = $this->db->query("select * from " . $table)->result_array();
|
||||
foreach ($rows as $row) :
|
||||
?>
|
||||
<tr>
|
||||
<?php foreach ($row as $cols) : ?>
|
||||
<td><?php echo $cols; ?></td>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
</div>
|
||||
<a href="<?php echo site_url("random"); ?>?curd=yes&table=<?php echo $table; ?>" class="btn btn-primary">Create Curd</a>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
</div>
|
||||
<div class="col-4 col-md-4 col-lg-4 order-1 order-md-2">
|
||||
<h3 class="text-primary"><i class="fas fa-paint-brush"></i> <?php echo $table; ?> Schema</h3>
|
||||
<div class="text-muted">
|
||||
<?php
|
||||
$fields = $this->db->list_fields($table);
|
||||
pre($fields);
|
||||
?>
|
||||
</div>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
<?php
|
||||
endif;
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
Reference in New Issue
Block a user