LiteSpeed Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64 safemode : OFF MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF > / home / cuneytsener53 / kurumsal22.snrsoft.com.tr / trex / | Server Ip : 172.67.216.244 |
Filename | /home/cuneytsener53/kurumsal22.snrsoft.com.tr/trex/yorum-duzenle.php |
Size | 2.85 kb |
Permission | rw-r--r-- |
Owner | |
Create time | 02-Mar-2025 05:46 |
Last modified | 02-Jun-2019 13:06 |
Last accessed | 05-Apr-2025 10:14 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
include 'header.php';
include 'topbar.php';
include 'sidebar.php';
$yorumedit=$db->prepare("SELECT * from yorumlar where yorum_id=:yorum_id");
$yorumedit->execute(array(
'yorum_id' => $_GET['yorum_id']
));
$yorumwrite=$yorumedit->fetch(PDO::FETCH_ASSOC);
?>
<!-- ============================================================== -->
<!-- Content Start -->
<!-- ============================================================== -->
<section class="main-content container">
<div class="page-header">
<h2>Yorum İşlemleri</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div class="card">
<div class="card-heading card-default">
<div class="pull-right mt-10">
<a href="yorumlar.php" class="btn btn-warning btn-icon"><i class="fa fa-reply"></i>Geri Dön</a>
</div>
Yorum Düzenle
</div>
<div class="card-block">
<form method="POST" action="controller/function.php" enctype="multipart/form-data" class="form-horizontal">
<div class="form-group">
<input type="hidden" name="yorum_id" value="<?php echo $yorumwrite['yorum_id']; ?>">
</div>
<div class="form-group">
<input type="hidden" name="eski_yol" value="<?php echo $yorumwrite['yorum_resim']; ?>">
</div>
<div class="form-group">
<label>Yorum İçerik</label>
<textarea style="height: 100px;" class="editor" name="yorum_icerik"><?php echo $yorumwrite['yorum_icerik']; ?></textarea>
</div>
<div class="form-group">
<label>Yorum İsim</label>
<input type="text" name="yorum_isim" value="<?php echo $yorumwrite['yorum_isim']; ?>" class="form-control">
</div>
<div class="form-group">
<label>Firma Adı</label>
<input type="text" name="yorum_link" value="<?php echo $yorumwrite['yorum_link']; ?>" class="form-control">
</div>
<div class="form-group">
<label>Yorum Resim</label>
<p><img style="max-height: 100px;max-width: 100px;" src="<?php echo $yorumwrite['yorum_resim']; ?>"></p>
</div>
<div class="form-group">
<div class="fileinput fileinput-new input-group col-md-3" data-provides="fileinput">
<div class="form-control" data-trigger="fileinput"><span class="fileinput-filename"></span></div>
<span class="input-group-addon btn btn-primary btn-file ">
<span class="fileinput-new">Yeni Yükle</span>
<span class="fileinput-exists">Değiştir</span>
<input type="file" name="yorum_resim">
</span>
<a href="#" class="input-group-addon btn btn-danger hover fileinput-exists" data-dismiss="fileinput">Sil</a>
</div>
</div>
<button style="cursor: pointer;" type="submit" name="yorumduzenle" class="btn btn-success btn-icon"><i class="fa fa-floppy-o "></i>Güncelle</button>
</form>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>
include 'header.php';
include 'topbar.php';
include 'sidebar.php';
$yorumedit=$db->prepare("SELECT * from yorumlar where yorum_id=:yorum_id");
$yorumedit->execute(array(
'yorum_id' => $_GET['yorum_id']
));
$yorumwrite=$yorumedit->fetch(PDO::FETCH_ASSOC);
?>
<!-- ============================================================== -->
<!-- Content Start -->
<!-- ============================================================== -->
<section class="main-content container">
<div class="page-header">
<h2>Yorum İşlemleri</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div class="card">
<div class="card-heading card-default">
<div class="pull-right mt-10">
<a href="yorumlar.php" class="btn btn-warning btn-icon"><i class="fa fa-reply"></i>Geri Dön</a>
</div>
Yorum Düzenle
</div>
<div class="card-block">
<form method="POST" action="controller/function.php" enctype="multipart/form-data" class="form-horizontal">
<div class="form-group">
<input type="hidden" name="yorum_id" value="<?php echo $yorumwrite['yorum_id']; ?>">
</div>
<div class="form-group">
<input type="hidden" name="eski_yol" value="<?php echo $yorumwrite['yorum_resim']; ?>">
</div>
<div class="form-group">
<label>Yorum İçerik</label>
<textarea style="height: 100px;" class="editor" name="yorum_icerik"><?php echo $yorumwrite['yorum_icerik']; ?></textarea>
</div>
<div class="form-group">
<label>Yorum İsim</label>
<input type="text" name="yorum_isim" value="<?php echo $yorumwrite['yorum_isim']; ?>" class="form-control">
</div>
<div class="form-group">
<label>Firma Adı</label>
<input type="text" name="yorum_link" value="<?php echo $yorumwrite['yorum_link']; ?>" class="form-control">
</div>
<div class="form-group">
<label>Yorum Resim</label>
<p><img style="max-height: 100px;max-width: 100px;" src="<?php echo $yorumwrite['yorum_resim']; ?>"></p>
</div>
<div class="form-group">
<div class="fileinput fileinput-new input-group col-md-3" data-provides="fileinput">
<div class="form-control" data-trigger="fileinput"><span class="fileinput-filename"></span></div>
<span class="input-group-addon btn btn-primary btn-file ">
<span class="fileinput-new">Yeni Yükle</span>
<span class="fileinput-exists">Değiştir</span>
<input type="file" name="yorum_resim">
</span>
<a href="#" class="input-group-addon btn btn-danger hover fileinput-exists" data-dismiss="fileinput">Sil</a>
</div>
</div>
<button style="cursor: pointer;" type="submit" name="yorumduzenle" class="btn btn-success btn-icon"><i class="fa fa-floppy-o "></i>Güncelle</button>
</form>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>