php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/sub/images/Rm19_symconf/root/var/www/html/owner/modul/mod_slideshow/ |
| files >> /var/www/html/sub/images/Rm19_symconf/root/var/www/html/owner/modul/mod_slideshow/slideshow.php |
<div class='well'>
<?php
session_start();
if (empty($_SESSION['username']) AND empty($_SESSION['passuser'])){
echo "<script language='javascript'>alert('Maaf, anda harus login terlebih dahulu');</script>";
header('location:../media.php?module=home');
}
else{
$aksi="modul/mod_slideshow/aksi_slideshow.php";
switch($_GET[act]){
// Tampil Produk
default:
echo "
<div class='navbar navbar-inverse'>
<div class='navbar-inner'>
<div class='container'>
<ul class='nav'>
<li><div style='color:white; padding-top:9px; text-align:left;'><i class='icon-picture icon-white'></i>
Edit Slide Show ( Best Resolusi 950x300 px)</div></li>
</ul>
</div>
</div>
</div>
";
$posisi = 0;
$tampil = mysql_query("SELECT * FROM slide_show ORDER BY id_slideshow");
$jlh_file = mysql_num_rows($tampil);
if($jlh_file == 0)
{ echo "<br><div class='alert alert-info'> BELUM ADA DATA SLIDE SHOW </div><br>";}
else
{ echo " <table class='table table-hover'><tr><th>Slide ke-</th><th> Gambar </th><th>aksi</th></tr>";
$no = $posisi+1;
while($r=mysql_fetch_array($tampil)){
echo "<tr><td>$no</td>
<td align=center><img src='../images/img_slide/$r[gambar]' width=300px;></td>
<td><a type='button' class ='btn btn-info' href=?module=slide_show&act=edit&id=$r[id_slideshow]>
<span class='icon-pencil icon-white'></span> Edit </a> </td>
</tr>";
$no++;
}
echo "</table>";
}
break;
case "edit":
$edit = mysql_query("SELECT * FROM slide_show WHERE id_slideshow='$_GET[id]'");
$r = mysql_fetch_array($edit);
?>
<div class='navbar navbar-inverse'>
<div class='navbar-inner'>
<div class='container'>
<ul class='nav'>
<li><div style='color:white; padding-top:9px; text-align:left;'><i class='icon-picture icon-white'></i> Edit Slide Show</div></li>
</ul>
</div>
</div>
</div>
<form method=POST action='<?php echo "$aksi"; ?>?module=slide_show&act=update' enctype='multipart/form-data'>
<input type="hidden" name='id' value='<?php echo $_GET['id']; ?>'>
<input type="hidden" name='name_file' value='<?php echo $r['gambar']; ?>'>
<div class='row-fluid'>
<div class='span3'>
<label><h5> Gambar Sekarang: </h5></label>
<img src='../images/img_slide/<?php echo "$r[gambar]"; ?>' class='span12'>
<label><br><h5> Ganti Gambar : </h5></label>
<img id='image_baru1' src='#'
style='max-height= 200px; max-width: 200px;'
class='img-rounded' />
<input type=file name='fupload' title='Unggah' onchange='readURL1(this);'>
<span class="">
<br><br>
*) Tipe gambar harus JPG/JPEG<br>
*) Apabila gambar tidak jadi diubah, dikosongkan saja<br>
*) Resolusi Terbaik 960px X 300px <br>
</span>
</div>
<div class='span9'>
<div class='pull-right'>
<input type=submit value=Simpan class='btn btn-primary'>
<input type=button value=Batal onclick=self.history.back() class='btn btn-danger'></div>
</div>
</form>
<?php
break;
}
}
?>
</div>
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`