test / paketler.php
canerky3636's picture
Upload 28 files
bdb1674
<?php
include 'include/menu.php';
$metakey=$db->prepare("SELECT * from meta where meta_id=12");
$metakey->execute(array(0));
$metakeyprint=$metakey->fetch(PDO::FETCH_ASSOC);
if ( isset( $_POST[ 'sepetle' ] ) )
{
ob_start();
session_start();
$update = array(
'id' => $_POST['urun_id'],
'paket' => $_POST['urun_paket'],
'urun' => $_POST['urun_adi'],
'adet' => $_POST['urun_adet'],
'fiyat' => $_POST['urun_fiyat']
) ;
$_SESSION['urunler'][]=$update;
if ( $update )
{
Header( "Location:sepet" );
}
else
{
Header( "Location:sepet" );
}
}
?>
<title><?php echo $metakeyprint['meta_title'] ?></title>
<meta name="description" content="<?php echo $metakeyprint['meta_descr'] ?>">
<meta name="keywords" content="<?php echo $metakeyprint['meta_keyword'] ?>">
</head>
<!-- Page title -->
<section class="p-t-100 p-b-50 text-light" id="page-title" data-parallax-image="trex/assets/img/genel/data.jpg">
<div id="particles-js" class="particles text-light"></div>
<div class="container">
<div class="breadcrumb">
<ul>
<li><a href="<?php echo $settingsprint['ayar_siteurl']; ?>">AnaSayfa</a> </li>
<li class="active">PAKETLERİMİZ</li>
</ul>
</div>
<div class="page-title">
<h1>PAKETLERİMİZ</h1>
</div>
</div>
</section>
<!-- end: Page title -->
<!-- ÜRÜNLER -->
<!-- Pricing Table Default -->
<section id="content">
<div class="container">
<div class="row">
<div class="pricing-table">
<?php
$urunsor=$db->prepare("SELECT * from urunler where urun_paket='1' order by urun_id ASC");
$urunsor->execute();
while($uruncek=$urunsor->fetch(PDO::FETCH_ASSOC)) { ?>
<div style="height: 750px;" class="col-md-3 col-sm-12 col-xs-12">
<div style="border: 1px solid #f1f1f1;" class="plan">
<div class="plan-header">
<h4><?php echo $uruncek['urun_baslik']; ?></h4>
<div style="font-size: 50px" class="plan-price"><?php echo $uruncek['urun_fiyat']; ?><i style="font-size: 30px;" class="fa fa-try"></i></div>
</div>
<div style="padding-top: 0;" class="plan-list">
<hr>
<ul>
<?php echo $uruncek['urun_aciklama']; ?>
</ul>
<?php if ($widgetprint['widget_usatinal']==1) { ?>
<!-- Form -->
<form method="post" action="">
<input type="hidden" name="urun_adi" value="<?php echo $uruncek['urun_baslik']; ?>">
<input type="hidden" name="urun_paket" value="<?php echo $uruncek['urun_paket']; ?>">
<input type="hidden" name="urun_adet" value="1">
<input type="hidden" name="urun_fiyat" value="<?php echo $uruncek['urun_fiyat']; ?>">
<input type="hidden" name="urun_id" value="<?php echo $uruncek['urun_id']; ?>">
<!-- Form Group -->
<div class="plan-button">
<button name="sepetle" type="submit" class="btn"><i class="fa fa-shopping-cart"></i>Sepete Ekle</button>
</div><!-- /End Form Group -->
</form><!-- /End Form -->
<?php } ?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</section>
<!-- end: Pricing Table Default -->
<?php include 'include/footer.php'; ?>