| .. | |||||
| about.php | |||||
| artikel.php | |||||
| dashboard.php | |||||
| formPMA.php | |||||
| formPMDN.php | |||||
| formUMKM.php | |||||
| index.html | |||||
| jabatan.php | |||||
| log.php | |||||
| partner.php | |||||
| perizinan.php | |||||
| promosi.php | |||||
| struktur.php | |||||
| user.php |
| Server IP : 103.169.32.36 / Your IP : 216.73.217.108 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/home/admin/page/ |
Upload File : |
<section role="main" class="content-body">
<?php
if(($_GET['page']=='Partner') and ($_SESSION['levelakses']=='Administrator')){
?>
<!-- start: page Setting-->
<div class="row" style="margin-top:-60px;">
<div class="col-md-12 col-lg-12">
<section class="panel panel-featured panel-featured-primary">
<header class="panel-heading">
<div class="panel-actions">
<a href="#" class="fa fa-caret-down"></a>
</div>
<h2 class="panel-title"><i class="fa fa-users"></i> Partner</h2>
</header>
<div class="panel-body">
<a href="index.php?page=addPartner" class="mb-xs mt-xs mr-xs btn btn-primary"><i class="fa fa-plus-square"></i> Tambah</a>
<ul class="simple-post-list">
<?php
$stmt = $conn->prepare("SELECT * FROM partner");
$stmt->execute();
$data = $stmt->fetchAll();
$stmt->closeCursor();
$x=1;
foreach($data as $v){
?>
<li class="col-md-15" style="padding:10px;border:0;">
<div class="post-image">
<a class="img-thumbnail lightbox" href="../images/partner/<?php echo $v['logo'];?>" data-plugin-options='{ "type":"image" }'>
<img class="img-responsive" style="width:250px;height:100px" src="../images/partner/<?php echo $v['logo'];?>">
<span class="zoom">
<i class="fa fa-search"></i>
</span>
</a>
</div>
<div class="post-info">
<h5 style="font-weight:700;"><?php echo $v['nama'];?></h5>
<hr class="dotted short">
<p class="col-md-7" style="padding-left:0px;">
<i><a href="<?php echo $v['link'];?>" target="_blank"><?php echo $v['link'];?></a></i><br>
</p>
<a href="index.php?page=editPartner&id=<?php echo $v['no'];?>" class="mb-xs mt-xs mr-xs btn btn-default" role="button"><i class="fa fa-pencil"></i></a>
<a href="#modalHeaderColorPrimary<?php echo $v['no'];?>" class="mb-xs mt-xs mr-xs btn btn-default modal-basic" role="button" ><i class="fa fa-trash-o"></i></a>
</div>
<div id="modalHeaderColorPrimary<?php echo $v['no'];?>" class="modal-block modal-header-color modal-block-primary mfp-hide">
<section class="panel">
<header class="panel-heading">
<h2 class="panel-title">Are you sure?</h2>
</header>
<div class="panel-body">
<div class="modal-wrapper">
<div class="modal-icon">
<i class="fa fa-trash-o"></i>
</div>
<div class="modal-text">
<h4>Hapus</h4>
<p>Apakah Anda Ingin menghapus "<?php echo $v['nama'];?>" ?</p>
</div>
</div>
</div>
<footer class="panel-footer">
<div class="row">
<div class="col-md-12 text-right">
<a href="index.php?act=deletePartner&id=<?php echo $v['no'];?>" class="btn btn-primary">Ya</a>
<button class="btn btn-default modal-dismiss">Tidak</button>
</div>
</div>
</footer>
</section>
</div>
</li>
<?php
}
?>
</ul>
</div>
</section>
</div>
<!-- end: page Setting-->
<?php
}elseif( (($_GET['page']=='addPartner') OR ($_GET['page']=='editPartner') ) and ($_SESSION['levelakses']=='Administrator')){
$prt[0]['nama']='';
$prt[0]['link']='';
$prt[0]['ket']='';
$prt[0]['logo']='nopic.jpg';;
$act='index.php?act=addPartner';
$ID='';
$r="required";
if (isset($_GET['id'])){
$stmt = $conn->prepare("SELECT * FROM partner WHERE no='".$_GET['id']."' limit 1");
$stmt->execute();
$prt = $stmt->fetchAll();
$stmt->closeCursor();
$act='index.php?act=editPartner';
$ID='<input type="hidden" name="no" value="'.$prt[0]['no'].'" required >';
$r='';
}
?>
<!-- start: page Setting-->
<div class="row" style="margin-top:-60px;">
<div class="col-md-5 col-lg-4">
<section class="panel">
<div class="panel-body">
<div class="thumb-info mb-md">
<img id="gambar" src="../images/partner/<?php echo $prt[0]['logo']; ?>" class="rounded img-responsive" style="width:100%;">
</div>
<script>
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('#gambar').attr('src', e.target.result);
}
reader.readAsDataURL(input.files[0]);
}
}
</script>
<div class="widget-toggle-expand mb-md">
<div class="widget-header">
<div class="widget-toggle">+</div>
</div>
<div class="widget-content-expanded">
<form class="form-horizontal" method="POST" style="margin-top:15px;" action="<?php echo $act;?>" enctype="multipart/form-data" >
<?php echo $ID; ?>
<fieldset>
<div class="form-group">
<div class="col-md-12">
<div class="fileupload fileupload-new" data-provides="fileupload">
<div class="input-append">
<div class="uneditable-input">
<i class="fa fa-file fileupload-exists"></i>
<span class="fileupload-preview"></span>
</div>
<span class="btn btn-default btn-file">
<span class="fileupload-exists" ><i class="fa fa-pencil"></i></span>
<span class="fileupload-new"><i class="fa fa-search"></i></span>
<input type="file" name="photo" accept="image/*" onchange="readURL(this);" <?php echo $r;?> >
</span>
<a href="#" class="btn btn-default fileupload-exists" data-dismiss="fileupload"><i class="fa fa-times"></i></a>
</div>
</div>
</div>
</div>
</fieldset>
</div>
</div>
</div>
</section>
</div>
<div class="col-md-8 col-lg-8">
<section class="panel panel-featured panel-featured-primary">
<header class="panel-heading">
<div class="panel-actions">
<a href="#" class="fa fa-caret-down"></a>
</div>
<h2 class="panel-title"><i class="fa fa-user"></i> Data Partner</h2>
</header>
<div class="panel-body">
<fieldset>
<div class="form-group">
<label class="col-md-3 control-label" for="nama">Nama</label>
<div class="col-md-8">
<input type="text" class="form-control" id="nama" name="nama" value="<?php echo $prt[0]['nama']; ?>" required>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="link">Link</label>
<div class="col-md-8">
<input type="text" class="form-control" id="link" name="link" value="<?php echo $prt[0]['link']; ?>" required>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="ket">Keterangan</label>
<div class="col-md-8">
<textarea class="form-control" rows="2" id="ket" name="ket"><?php echo $prt[0]['ket']; ?></textarea>
</div>
</div>
</fieldset>
<div class="panel-footer" style="margin-top:20px;">
<div class="row">
<div class="col-md-9 col-md-offset-3">
<button type="submit" class="btn btn-primary">Submit</button>
<button type="reset" class="btn btn-default">Reset</button>
</div>
</div>
</div>
</form>
</div>
</section>
</div>
</div>
<!-- end: page Setting-->
<?php
}
?>
</section>| .. | |||||
| about.php | |||||
| artikel.php | |||||
| dashboard.php | |||||
| formPMA.php | |||||
| formPMDN.php | |||||
| formUMKM.php | |||||
| index.html | |||||
| jabatan.php | |||||
| log.php | |||||
| partner.php | |||||
| perizinan.php | |||||
| promosi.php | |||||
| struktur.php | |||||
| user.php |