photo remaining

This commit is contained in:
Sampanna Rimal
2024-07-16 12:43:55 +05:45
parent 7ffe31e260
commit de0b041520
18 changed files with 273 additions and 198 deletions

View File

@ -5,19 +5,25 @@
<div class="col-3">
<div class="card card-primary card-outline">
<div class="card-header">
<h5 class="m-0">Create <?php echo $pageTitle; ?>
<h5 class="m-0"><?php echo isset($AccountCategory) ? 'Edit' : 'Create'; ?>
<?php echo $pageTitle; ?>
<!-- <a href="<?php //echo site_url("master/accategories/list");
?>" class="btn btn-sm btn-primary float-right">List <?php //echo $pageTitle;
?></a> -->
</h5>
</div>
<div class="card-body">
<form method=POST action="<?php echo site_url("master/accategories/add_child");?>" enctype="multipart/form-data" name="tbl_accategories">
<form method="POST" action="<?php echo isset($AccountCategory) ? site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/edit/" . $AccountCategory->accategory_id) : site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/add_child"); ?>" enctype="multipart/form-data" name="tbl_accategories">
<!-- <form method=POST action="<?php //echo site_url("master/accategories/add_child");?>" enctype="multipart/form-data" name="tbl_accategories"> -->
<div class="row">
<!--COL START-->
<div class="col">
<div class="form-group">
<label for="accategory_name">Group Name <span style="color:#ff0000">*</span></label><input type="text" class="form-control" id="accategory_name" value="" name="accategory_name" required>
<!-- <?php
// $html_groupname="<label for=\"accategory_name\">Group Name <span style=\"color:#ff0000\">*</span></label><input type=\"text\" class=\"form-control\" id=\"accategory_name\" value=\"\" name=\"accategory_name\" required>";
// echo isset($AccountCategory) ? fillComboWithValue("acgroup_id","Group Name","acgroup_id","tbl_acgroups", "acgroup_name", "acgroup_id", $default=$AccountCategory->acgroup_id,$CSSclass="",$multiple=false,$condition="status=1") : $html_groupname ;
?> -->
<label for="accategory_name">Group Name <span style="color:#ff0000">*</span></label><input type="text" class="form-control" id="accategory_name" value="<?php echo isset($AccountCategory) ? $AccountCategory->accategory_name : "" ; ?>" name="accategory_name" required>
</div>
</div>
<!--COL END-->
@ -26,7 +32,11 @@
<!--COL START-->
<div class="col">
<div class="form-group">
<?php $this->myaccounts->showFixedAccountsCategoriesCombo("parent_category_id", " Under", "parent_category_id", "status=1", $default = "", $CSSclass = ""); ?>
<?php
// $this->myaccounts->showFixedAccountsCategoriesCombo("parent_category_id", " Under", "parent_category_id", "status=1", $default = "", $CSSclass = "");
echo isset($AccountCategory) ? fillComboWithValue("parent_category_id", "Under", "parent_category_id", "tbl_accategories", "accategory_name", "accategory_id", $default = $AccountCategory->parent_category_id, $CSSclass = "", $multiple = false, $condition = "status=1") : $this->myaccounts->showFixedAccountsCategoriesCombo("parent_category_id", " Under", "parent_category_id", "status=1", $default = "", $CSSclass = "");
?>
<?php //fillComboWithValue("parent_category_id", "Parent Category", "parent_category_id", "tbl_accategories", "accategory_name", "accategory_id", $default = "", $CSSclass = "", $multiple = false, $condition = "status=1");
?>
@ -38,7 +48,7 @@
<!--COL START-->
<div class="col">
<div class="form-group"> <label for="remarks">Remarks</label>
<textarea class="form-control" id="remarks" name="remarks"></textarea>
<textarea class="form-control" id="remarks" name="remarks"><?php echo isset($AccountCategory) ? $AccountCategory->remarks : ""; ?></textarea>
</div>
</div>
<!--COL END-->
@ -59,7 +69,7 @@
</h5>
</div>
<div class="card-body table-responsive ">
<?php $TableData = $ACCategories; ?>
<?php $AccountCategory = $ACCategories; ?>
<table class="table table-bordered table-striped longdataTable mt-3">
<thead>
<tr>
@ -74,7 +84,7 @@
<tbody>
<?php $sn = 0;
foreach ($TableData as $TableRow) : $sn++; ?>
foreach ($AccountCategory as $TableRow) : $sn++; ?>
<?php foreach ($TableRow as $cols) : $id = $cols;
break;
endforeach; ?>