File size: 3,393 Bytes
bdb1674
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?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'; ?>