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 / restaurant1.snrsoft.com.tr / xpanel / | Server Ip : 172.67.216.244 |
Filename | /home/cuneytsener53/restaurant1.snrsoft.com.tr/xpanel/porsiyon-ekle.php |
Size | 7.82 kb |
Permission | rw-r--r-- |
Owner | |
Create time | 02-Mar-2025 05:46 |
Last modified | 18-Nov-2020 19:27 |
Last accessed | 05-Apr-2025 10:29 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php $blok="urun-yonetim"; $sayfa="porsiyon-liste"; ?>
<?php include 'inc/header.php';?>
<?php include 'inc/sidebar.php';?>
<?php include 'inc/navbar.php';?>
<?php
if ($_POST) {
$serving_name = $_POST['serving_name'];
$parent = $_POST['parent'];
$serving_price = $_POST['serving_price'];
if ($serving_name <> "" && $parent <> "" && $serving_price <> "" )
$satir = [
'serving_name' => $serving_name,
'parent' => $parent,
'serving_price' => $serving_price,
];
$sql = "INSERT INTO product_serving SET serving_name=:serving_name, parent=:parent, serving_price=:serving_price;";
/** @var PDO $dbh */
$durum = ($dbh->prepare($sql))->execute($satir);
if ($durum) {
$sonId = $dbh->lastInsertId();
echo ' <div class="card-body collapse show" id="collapse8">
<div class="error-notice">
<div class="oaerror success">
<strong>Başarılı :</strong> - Belirtilen veriler eklenmiştir. <a href="haber-liste.php">Buradan Haber Listesine Erişebilirsiniz</a>
</div>
</div>
</div>';
}
}
?>
<!-- Page Inner Start -->
<!--================================-->
<div class="page-inner">
<!-- Main Wrapper -->
<div id="main-wrapper">
<!--================================-->
<!-- Breadcrumb Start -->
<!--================================-->
<div class="pageheader pd-t-25 pd-b-35">
<div class="pd-t-5 pd-b-5">
<h1 class="pd-0 mg-0 tx-20">Porsiyon Ekle </h1>
</div>
<div class="breadcrumb pd-0 mg-0">
<a class="breadcrumb-item" href="index.php"> Anasayfa</a>
<span class="breadcrumb-item active"> Porsiyon Ekle</span>
</div>
</div>
<!--/ Breadcrumb End -->
<!--================================-->
<!--/ Orta Alanın Başlangıç Noktası -->
<div class="row row-xs clearfix">
<!-- Striped Table Start -->
<!--================================-->
<div class="col-md-12 col-lg-12">
<div class="card mg-b-20">
<div class="card-header">
<h4 class="card-header-title">
Porsiyon Ekle
</h4>
<div class="card-header-btn">
<a href="#" data-toggle="collapse" class="btn card-collapse" data-target="#collapse1" aria-expanded="true"><i class="ion-ios-arrow-down"></i></a>
<a href="#" data-toggle="refresh" class="btn card-refresh"><i class="ion-android-refresh"></i></a>
<a href="#" data-toggle="expand" class="btn card-expand"><i class="ion-android-expand"></i></a>
</div>
</div>
<div class="card-body collapse show" id="collapse1">
<div class="form-layout form-layout-1">
<form action="" method="post" enctype="multipart/form-data">
<div class="row mg-b-25">
<div class="col-lg-12">
<div class="form-group">
<label class="form-control-label active">Ürün Seçimi: <span class="tx-danger">*</span></label>
<select class="form-control" name="parent">
<option hidden selected value=""> Ürün Seçiniz </option>
<?php
$alt = $dbh->query("select * from product ", PDO::FETCH_ASSOC);
if ($alt->rowCount()) {
foreach ($alt as $alt) {
echo '<option value="' . $alt['id'] . '">' . $alt['product_name'] . '</option>';
echo '</optgroup>';
}
}
?>
</select>
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-control-label active">Porsiyon Adı : <span class="tx-danger">*</span></label>
<input class="form-control" type="text" name="serving_name" >
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-control-label active">Porsiyon Fiyatı (ürün fiyatı 10 tl ise porsiyon fark fiyatını yazın.) : <span class="tx-danger">*</span></label>
<input class="form-control" type="text" name="serving_price" >
</div>
</div>
<!-- col-4 -->
</div>
<!-- kaydet -->
<div class="form-layout-footer">
<div class="col-sm-12 col-md-12">
<button type="submit" class="btn btn-success btn-with-icon btn-block mg-t-10">
<div class="ht-40">
<span class="icon wd-40"><i class="fa fa-spin fa-circle-o-notch"></i></span>
<span class="pd-x-15"><?php echo $dil["kaydet"];?> </span>
</div>
</button>
</div>
</div>
<!-- kaydetme bitişi -->
</form>
</div>
</div>
</div>
</div>
<!--/ Top Label Layout End -->
<!--================================-->
<!--================================-->
</div>
</div>
<!--/ Main Wrapper End -->
</div>
<!--/ Page Inner End -->
<?php include 'inc/footer.php';?>
<?php include 'inc/header.php';?>
<?php include 'inc/sidebar.php';?>
<?php include 'inc/navbar.php';?>
<?php
if ($_POST) {
$serving_name = $_POST['serving_name'];
$parent = $_POST['parent'];
$serving_price = $_POST['serving_price'];
if ($serving_name <> "" && $parent <> "" && $serving_price <> "" )
$satir = [
'serving_name' => $serving_name,
'parent' => $parent,
'serving_price' => $serving_price,
];
$sql = "INSERT INTO product_serving SET serving_name=:serving_name, parent=:parent, serving_price=:serving_price;";
/** @var PDO $dbh */
$durum = ($dbh->prepare($sql))->execute($satir);
if ($durum) {
$sonId = $dbh->lastInsertId();
echo ' <div class="card-body collapse show" id="collapse8">
<div class="error-notice">
<div class="oaerror success">
<strong>Başarılı :</strong> - Belirtilen veriler eklenmiştir. <a href="haber-liste.php">Buradan Haber Listesine Erişebilirsiniz</a>
</div>
</div>
</div>';
}
}
?>
<!-- Page Inner Start -->
<!--================================-->
<div class="page-inner">
<!-- Main Wrapper -->
<div id="main-wrapper">
<!--================================-->
<!-- Breadcrumb Start -->
<!--================================-->
<div class="pageheader pd-t-25 pd-b-35">
<div class="pd-t-5 pd-b-5">
<h1 class="pd-0 mg-0 tx-20">Porsiyon Ekle </h1>
</div>
<div class="breadcrumb pd-0 mg-0">
<a class="breadcrumb-item" href="index.php"> Anasayfa</a>
<span class="breadcrumb-item active"> Porsiyon Ekle</span>
</div>
</div>
<!--/ Breadcrumb End -->
<!--================================-->
<!--/ Orta Alanın Başlangıç Noktası -->
<div class="row row-xs clearfix">
<!-- Striped Table Start -->
<!--================================-->
<div class="col-md-12 col-lg-12">
<div class="card mg-b-20">
<div class="card-header">
<h4 class="card-header-title">
Porsiyon Ekle
</h4>
<div class="card-header-btn">
<a href="#" data-toggle="collapse" class="btn card-collapse" data-target="#collapse1" aria-expanded="true"><i class="ion-ios-arrow-down"></i></a>
<a href="#" data-toggle="refresh" class="btn card-refresh"><i class="ion-android-refresh"></i></a>
<a href="#" data-toggle="expand" class="btn card-expand"><i class="ion-android-expand"></i></a>
</div>
</div>
<div class="card-body collapse show" id="collapse1">
<div class="form-layout form-layout-1">
<form action="" method="post" enctype="multipart/form-data">
<div class="row mg-b-25">
<div class="col-lg-12">
<div class="form-group">
<label class="form-control-label active">Ürün Seçimi: <span class="tx-danger">*</span></label>
<select class="form-control" name="parent">
<option hidden selected value=""> Ürün Seçiniz </option>
<?php
$alt = $dbh->query("select * from product ", PDO::FETCH_ASSOC);
if ($alt->rowCount()) {
foreach ($alt as $alt) {
echo '<option value="' . $alt['id'] . '">' . $alt['product_name'] . '</option>';
echo '</optgroup>';
}
}
?>
</select>
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-control-label active">Porsiyon Adı : <span class="tx-danger">*</span></label>
<input class="form-control" type="text" name="serving_name" >
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label class="form-control-label active">Porsiyon Fiyatı (ürün fiyatı 10 tl ise porsiyon fark fiyatını yazın.) : <span class="tx-danger">*</span></label>
<input class="form-control" type="text" name="serving_price" >
</div>
</div>
<!-- col-4 -->
</div>
<!-- kaydet -->
<div class="form-layout-footer">
<div class="col-sm-12 col-md-12">
<button type="submit" class="btn btn-success btn-with-icon btn-block mg-t-10">
<div class="ht-40">
<span class="icon wd-40"><i class="fa fa-spin fa-circle-o-notch"></i></span>
<span class="pd-x-15"><?php echo $dil["kaydet"];?> </span>
</div>
</button>
</div>
</div>
<!-- kaydetme bitişi -->
</form>
</div>
</div>
</div>
</div>
<!--/ Top Label Layout End -->
<!--================================-->
<!--================================-->
</div>
</div>
<!--/ Main Wrapper End -->
</div>
<!--/ Page Inner End -->
<?php include 'inc/footer.php';?>