| .. | |||||
| album-datatable.php | |||||
| album.php | |||||
| banner-datatable.php | |||||
| banner.php | |||||
| gallery-datatable.php | |||||
| gallery.php |
| Server IP : 103.169.32.36 / Your IP : 216.73.217.13 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/dpmptsp/public_html/newsigniter/application/views/back/pages/media/ |
Upload File : |
<div class="container">
<div class="row">
<div class="col">
<h3 class="page-header">Management <?= $title ?></h3>
</div>
</div>
<div class="row mt-3">
<div class="col">
<button type="buton" class="btn btn-success btn-sm" onclick="add_gallery()">
<i class="fas fa-plus"></i> Add
</button>
<button class="btn btn-outline-secondary btn-sm" onclick="reload_table()">
<i class="fas fa-sync-alt"></i> Reload
</button>
</div>
</div>
<br>
<div class="table-responsive">
<table id="tableGallery" class="table table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th>#</th>
<th>Gallery Name</th>
<th>Description</th>
<th>Album Name</th>
<th>Photo</th>
<th>Active</th>
<th>Action</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="modalGallery" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modal-title">Edit Gallery</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="#" id="form" class="form-horizontal">
<input type="hidden" name="id" id="id">
<div class="form-group row">
<label for="title" class="col-sm-3 col-form-label">Photo Name</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="gallery_name" name="gallery_name">
</div>
</div>
<div class="form-group row" id="photo-preview">
<label class="col-sm-3 col-form-label">Photo</label>
<div class="col-sm-9">
(No photo)
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" id="label-photo">Upload Photo </label>
<div class="col-sm-9">
<input name="photo" type="file">
</div>
</div>
<div class="form-group row">
<label for="category" class="col-sm-3 col-form-label">Album</label>
<div class="col-sm-9">
<select class="form-control" id="id_album" name="id_album">
<option value="">- Pilih -</option>
<?php foreach($album as $a) : ?>
<option value="<?= $a->id ?>"><?= $a->album_name ?></option>
<?php endforeach ?>
</select>
</div>
</div>
<div class="form-group row">
<label for="title" class="col-sm-3 col-form-label">Description</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="information" name="information">
</div>
</div>
<div class="form-group row">
<label for="Active" class="col-sm-3 col-form-label">Active</label>
<div class="col-sm-9">
<select class="form-control" id="is_active" name="is_active">
<option value="Y">Yes</option>
<option value="N">No</option>
</select>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-sm btn-primary" onclick="save()" id="btn_save">Save</button>
</div>
</div>
</div>
</div>
| .. | |||||
| album-datatable.php | |||||
| album.php | |||||
| banner-datatable.php | |||||
| banner.php | |||||
| gallery-datatable.php | |||||
| gallery.php |