commitall
This commit is contained in:
107
account/application/views/translations/add.php
Normal file
107
account/application/views/translations/add.php
Normal file
@ -0,0 +1,107 @@
|
||||
<div class="content-wrapper">
|
||||
|
||||
<div class="content-header">
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row mb-2">
|
||||
|
||||
|
||||
<div class="col-sm-6">
|
||||
|
||||
|
||||
<h1 class="m-0"><?php echo $pageTitle; ?></h1>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
|
||||
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
|
||||
|
||||
<li class="breadcrumb-item"><a href="<?php echo base_url(); ?>">Dashboard</a></li>
|
||||
|
||||
|
||||
<li class="breadcrumb-item active"><?php echo $pageTitle; ?></li>
|
||||
|
||||
</ol>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<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_translations">
|
||||
<div class="row">
|
||||
<!--COL START-->
|
||||
<div class="col">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="english"><?php myLang('English'); ?></label><input type="text" class="form-control" id="english" value="" name="english">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--COL END-->
|
||||
</div>
|
||||
<div class="row">
|
||||
<!--COL START-->
|
||||
<div class="col">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="nepali"><?php myLang('Nepali'); ?></label><input type="text" class="form-control" id="nepali" value="" name="nepali">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--COL END-->
|
||||
</div>
|
||||
<div class="row">
|
||||
<!--COL START-->
|
||||
<div class="col">
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
<label for="remarks"><?php myLang('Remarks'); ?></label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"></textarea>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--COL END-->
|
||||
</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>
|
67
account/application/views/translations/edit.php
Normal file
67
account/application/views/translations/edit.php
Normal file
@ -0,0 +1,67 @@
|
||||
<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_translations where translation_id =\"$id\" ")->row(); ?>
|
||||
<form method=POST action="" enctype="multipart/form-data" name="tbl_translations">
|
||||
<div class="row">
|
||||
<!--COL START-->
|
||||
<div class="col">
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="english"><?php myLang('English'); ?></label><input type="text" class="form-control" id="english" value="<?php echo $TableData->english; ?>" name="english">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--COL END-->
|
||||
</div>
|
||||
<div class="row">
|
||||
<!--COL START-->
|
||||
<div class="col">
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="nepali"><?php myLang('Nepali'); ?></label><input type="text" class="form-control" id="nepali" value="<?php echo $TableData->nepali; ?>" name="nepali">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--COL END-->
|
||||
</div>
|
||||
<div class="row">
|
||||
<!--COL START-->
|
||||
<div class="col">
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
<label for="remarks"><?php myLang('Remarks'); ?></label>
|
||||
<textarea class="form-control" id="remarks" name="remarks"><?php echo $TableData->remarks; ?></textarea>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--COL END-->
|
||||
</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>
|
55
account/application/views/translations/list.php
Normal file
55
account/application/views/translations/list.php
Normal file
@ -0,0 +1,55 @@
|
||||
<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_translations where status=1")->result(); ?>
|
||||
<table class="table table-bordered table-striped dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center col-1"><?php myLang('Translation Id'); ?></th>
|
||||
<th class="text-center col-2"><?php myLang('English'); ?></th>
|
||||
<th class="text-center col-2"><?php myLang('Nepali'); ?></th>
|
||||
<th class="text-center col-1"><?php myLang('Action'); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $a=0; foreach ($TableData as $TableRow) : $a++; ?>
|
||||
<?php foreach ($TableRow as $cols) : $id = $cols;
|
||||
break;
|
||||
endforeach; ?><tr>
|
||||
<td class="text-center"><?php echo $TableRow->translation_id; ?></td>
|
||||
<td><?php echo $TableRow->english; ?></td>
|
||||
<td><?php echo $TableRow->nepali; ?></td>
|
||||
<td class="text-center"><a href="<?php echo site_url($this->uri->segment(1) . "/" . $this->uri->segment(2) . "/edit/$id"); ?>" class="btn btn-info 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>
|
Reference in New Issue
Block a user