BBnepal-Accounts/account/application/views/setup/edititemcategories.php
Sampanna Rimal 9cd05ef3cb commitall
2024-07-10 18:28:19 +05:45

62 lines
3.3 KiB
PHP

<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>