BBnepal-Accounts/account/application/views/setup/additemcategories.php

58 lines
3.5 KiB
PHP
Raw Permalink Normal View History

2024-07-10 12:43:19 +00:00
<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>