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 / teknikservis1.snrsoft.com.tr / trex / | Server Ip : 172.67.216.244 |
Filename | |
Size | 7.01 kb |
Permission | rw-r--r-- |
Owner | |
Create time | 02-Mar-2025 05:46 |
Last modified | 17-Mar-2021 10:12 |
Last accessed | 05-Apr-2025 07:29 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
include 'header.php';
include 'topbar.php';
include 'sidebar.php';
$omenu=$db->prepare("SELECT * from omenu order by omenu_sira ASC");
$omenu->execute(array(0));
?>
<!-- ============================================================== -->
<!-- Content Start -->
<!-- ============================================================== -->
<section class="main-content container">
<div class="page-header">
<h2>Header Menü İşlemleri</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div class="card">
<div class="card-heading card-default">
Üst Özel Menü Düzenle
</div>
<div class="card-block">
<h5 style="color: green;">Yeni Özel Menü Ekle</h5>
<form method="POST" action="controller/function.php" class="form-horizontal">
<div class="form-group">
<div class="row">
<div class="col-md-3">
<label>Menü Adı</label>
<input type="text" name="omenu_ad" placeholder="Menü adı giriniz." class="form-control">
</div>
<div class="col-md-3">
<label>Menü Link</label>
<input type="text" name="omenu_link" placeholder="Menü linki giriniz." class="form-control">
</div>
<div class="col-md-2">
<label>Menü Sıra</label>
<input type="text" name="omenu_sira" placeholder="Menü sıra giriniz." class="form-control">
</div>
<div class="col-md-2">
<label>Üst Menü</label>
<select name="omenu_ust" class="form-control m-b">
<option value="0">-ÜST MENÜ YOK-</option>
<?php
$menulist=$db->prepare("SELECT * from omenu where omenu_ust=0 order by omenu_sira DESC");
$menulist->execute();
while($menulistprint=$menulist->fetch(PDO::FETCH_ASSOC)) { ?>
<option value="<?php echo $menulistprint['omenu_id']; ?>"><?php echo $menulistprint['omenu_ad']; ?></option>
<?php } ?>
</select>
</div>
<div class="col-md-2">
<label>*İşlem</label>
<div>
<button style="cursor: pointer;" type="submit" name="omenuekle" class="btn btn-success btn-icon"><i class="fa fa-floppy-o "></i>Ekle</button>
</div>
</div>
</div>
</div>
</form>
<br />
<hr>
<br />
<h5 style="color: green;">Var Olan Menüler</h5>
<?php
while ($omenuprint=$omenu->fetch(PDO::FETCH_ASSOC)) {
?>
<form method="POST" action="controller/function.php" class="form-horizontal">
<div class="form-group">
<div class="row">
<input type="hidden" name="omenu_id" value="<?php echo $omenuprint['omenu_id']; ?>" class="form-control">
<div class="col-md-3">
<label>Menü Adı</label>
<input type="text" name="omenu_ad" value="<?php echo $omenuprint['omenu_ad']; ?>" class="form-control">
</div>
<div class="col-md-3">
<label>Menü Link</label>
<input type="text" name="omenu_link" value="<?php echo $omenuprint['omenu_link']; ?>" class="form-control">
</div>
<div class="col-md-2">
<label>Menü Sıra</label>
<input type="text" name="omenu_sira" value="<?php echo $omenuprint['omenu_sira']; ?>" class="form-control">
</div>
<input type="hidden" name="eski_ust" value="<?php echo $omenuprint['omenu_ust']; ?>" class="form-control">
<div class="col-md-2">
<label>Üst Menü</label>
<input type="hidden" name="eski_ust" value="<?php echo $omenuprint['omenu_ust']; ?>" class="form-control">
<select name="omenu_ust" class="form-control m-b">
<?php
$omenedit=$db->prepare("SELECT * from omenu where omenu_id=:omenu_id");
$omenedit->execute(array(
'omenu_id' => $omenuprint['omenu_ust']
));
$VarmiKont=$omenedit->rowCount();
$omeneditwrite=$omenedit->fetch(PDO::FETCH_ASSOC); ?>
<option value="0"> ÜST MENÜ YOK</option>
<?php
$menulistix=$db->prepare("SELECT * from omenu where omenu_ust=0 order by omenu_sira DESC");
$menulistix->execute();
while($menulistprintx=$menulistix->fetch(PDO::FETCH_ASSOC)) { ?>
<option <?php if ($omenuprint['omenu_ust']==$menulistprintx['omenu_id']) { echo "selected"; } ?> value="<?php echo $menulistprintx['omenu_id']; ?>"><?php echo $menulistprintx['omenu_ad']; ?></option>
<?php } ?>
</select>
</div>
<div class="col-md-2">
<label>*İşlem</label>
<div>
<button style="cursor: pointer;" type="submit" name="omenuduzenle" class="btn btn-success btn-icon"><i class="fa fa-floppy-o "></i>Kaydet</button>
<a href="controller/function.php?omenusil=ok&omenu_id=<?php echo $omenuprint['omenu_id']; ?>&omenu_ust=<?php echo $omenuprint['omenu_ust']; ?>" style="cursor: pointer;" type="submit" name="omenusil" class="btn btn-danger btn-icon"><i class="fa fa-trash-o"></i>Sil</a>
</div>
</div>
</div>
</div>
</form>
<?php } ?>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>
include 'header.php';
include 'topbar.php';
include 'sidebar.php';
$omenu=$db->prepare("SELECT * from omenu order by omenu_sira ASC");
$omenu->execute(array(0));
?>
<!-- ============================================================== -->
<!-- Content Start -->
<!-- ============================================================== -->
<section class="main-content container">
<div class="page-header">
<h2>Header Menü İşlemleri</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div class="card">
<div class="card-heading card-default">
Üst Özel Menü Düzenle
</div>
<div class="card-block">
<h5 style="color: green;">Yeni Özel Menü Ekle</h5>
<form method="POST" action="controller/function.php" class="form-horizontal">
<div class="form-group">
<div class="row">
<div class="col-md-3">
<label>Menü Adı</label>
<input type="text" name="omenu_ad" placeholder="Menü adı giriniz." class="form-control">
</div>
<div class="col-md-3">
<label>Menü Link</label>
<input type="text" name="omenu_link" placeholder="Menü linki giriniz." class="form-control">
</div>
<div class="col-md-2">
<label>Menü Sıra</label>
<input type="text" name="omenu_sira" placeholder="Menü sıra giriniz." class="form-control">
</div>
<div class="col-md-2">
<label>Üst Menü</label>
<select name="omenu_ust" class="form-control m-b">
<option value="0">-ÜST MENÜ YOK-</option>
<?php
$menulist=$db->prepare("SELECT * from omenu where omenu_ust=0 order by omenu_sira DESC");
$menulist->execute();
while($menulistprint=$menulist->fetch(PDO::FETCH_ASSOC)) { ?>
<option value="<?php echo $menulistprint['omenu_id']; ?>"><?php echo $menulistprint['omenu_ad']; ?></option>
<?php } ?>
</select>
</div>
<div class="col-md-2">
<label>*İşlem</label>
<div>
<button style="cursor: pointer;" type="submit" name="omenuekle" class="btn btn-success btn-icon"><i class="fa fa-floppy-o "></i>Ekle</button>
</div>
</div>
</div>
</div>
</form>
<br />
<hr>
<br />
<h5 style="color: green;">Var Olan Menüler</h5>
<?php
while ($omenuprint=$omenu->fetch(PDO::FETCH_ASSOC)) {
?>
<form method="POST" action="controller/function.php" class="form-horizontal">
<div class="form-group">
<div class="row">
<input type="hidden" name="omenu_id" value="<?php echo $omenuprint['omenu_id']; ?>" class="form-control">
<div class="col-md-3">
<label>Menü Adı</label>
<input type="text" name="omenu_ad" value="<?php echo $omenuprint['omenu_ad']; ?>" class="form-control">
</div>
<div class="col-md-3">
<label>Menü Link</label>
<input type="text" name="omenu_link" value="<?php echo $omenuprint['omenu_link']; ?>" class="form-control">
</div>
<div class="col-md-2">
<label>Menü Sıra</label>
<input type="text" name="omenu_sira" value="<?php echo $omenuprint['omenu_sira']; ?>" class="form-control">
</div>
<input type="hidden" name="eski_ust" value="<?php echo $omenuprint['omenu_ust']; ?>" class="form-control">
<div class="col-md-2">
<label>Üst Menü</label>
<input type="hidden" name="eski_ust" value="<?php echo $omenuprint['omenu_ust']; ?>" class="form-control">
<select name="omenu_ust" class="form-control m-b">
<?php
$omenedit=$db->prepare("SELECT * from omenu where omenu_id=:omenu_id");
$omenedit->execute(array(
'omenu_id' => $omenuprint['omenu_ust']
));
$VarmiKont=$omenedit->rowCount();
$omeneditwrite=$omenedit->fetch(PDO::FETCH_ASSOC); ?>
<option value="0"> ÜST MENÜ YOK</option>
<?php
$menulistix=$db->prepare("SELECT * from omenu where omenu_ust=0 order by omenu_sira DESC");
$menulistix->execute();
while($menulistprintx=$menulistix->fetch(PDO::FETCH_ASSOC)) { ?>
<option <?php if ($omenuprint['omenu_ust']==$menulistprintx['omenu_id']) { echo "selected"; } ?> value="<?php echo $menulistprintx['omenu_id']; ?>"><?php echo $menulistprintx['omenu_ad']; ?></option>
<?php } ?>
</select>
</div>
<div class="col-md-2">
<label>*İşlem</label>
<div>
<button style="cursor: pointer;" type="submit" name="omenuduzenle" class="btn btn-success btn-icon"><i class="fa fa-floppy-o "></i>Kaydet</button>
<a href="controller/function.php?omenusil=ok&omenu_id=<?php echo $omenuprint['omenu_id']; ?>&omenu_ust=<?php echo $omenuprint['omenu_ust']; ?>" style="cursor: pointer;" type="submit" name="omenusil" class="btn btn-danger btn-icon"><i class="fa fa-trash-o"></i>Sil</a>
</div>
</div>
</div>
</div>
</form>
<?php } ?>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>