File size: 16,148 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
<?php 
session_start();
include 'include/menu.php'; 
include 'include/slide.php';

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 $settingsprint['ayar_title'] ?></title>
<meta name="description" content="<?php echo $settingsprint['ayar_description'] ?>">
<meta name="keywords" content="<?php echo $settingsprint['ayar_keywords'] ?>">
</head>



<?php if ($widgetprint['widget_diger']==1) { ?>
  <!-- BAŞLIK -->
  <div class="call-to-action call-to-action-colored cta-center p-b-50 p-t-50">
    <div class="container">
      <div class="row">
        <div class="col-md-10">
          <h3><?php echo $widgetprint['widget_bdiger'] ?></h3>
        </div>
      </div>
    </div></div>
    <!-- end: BAŞLIK -->
  <?php } ?>
  <!-- HİZMETLER -->
  <section class="p-b-20 p-t-0">
    <div class="container">
      <div class="row">
        <?php echo $widgetprint['widget_html']; ?>
      </div>
      <!-- end features box -->
    </div>
  </section>
  <?php if ($widgetprint['widget_hizmet']==1) { ?>

    <!-- HİZMETLER -->
    <section class="p-b-20 p-t-0">
      <div class="container">
        <div class="row">
          <div class="hr-title hr-long center"><abbr><?php echo $widgetprint['widget_bhizmet']; ?></abbr> </div>
          <?php 
          $hizmetarticle=$db->prepare("SELECT * from hizmetler where hizmet_vitrin=1 Limit 9");
          $hizmetarticle->execute(array(0));
          while ($hizmetarticleprint=$hizmetarticle->fetch(PDO::FETCH_ASSOC)) { ?>
            <!-- features box -->
            <div style="margin-bottom: 20px;" class="col-md-4">
              <a href="<?=seo('hizmet-'.$hizmetarticleprint["hizmet_baslik"]).'-'.$hizmetarticleprint["hizmet_id"]?>" alt="<?php echo $hizmetarticleprint['hizmet_baslik'] ?>" title="<?php echo $hizmetarticleprint['hizmet_baslik'] ?>"><img alt="<?php echo $hizmetarticleprint['hizmet_baslik'] ?>" title="<?php echo $hizmetarticleprint['hizmet_baslik'] ?>" style="height: 220px; width: 100%; border: 1px solid #f1f1f1;" src="admin/<?php echo $hizmetarticleprint['hizmet_resim']; ?>" class="img-responsive m-b-20"></a>
              <a href="<?=seo('hizmet-'.$hizmetarticleprint["hizmet_baslik"]).'-'.$hizmetarticleprint["hizmet_id"]?>" title="<?php echo $hizmetarticleprint['hizmet_baslik'] ?>"><h4 style="margin-top: -20px;"><?php echo $hizmetarticleprint['hizmet_baslik'] ?></h4></a>
            </div>
            <!-- end: features box -->
          <?php } ?>
        </div>
        <!-- end features box -->
      </div>
    </section>

  <?php } if ($widgetprint['widget_urun']==1) { ?>
    <!-- ÜRÜNLER -->
    <section class="p-t-100 p-b-30">
      <div class="container">
        <!--Shop products Carousel -->
        <div class="hr-title hr-long center"><abbr><?php echo $widgetprint['widget_burun']; ?></abbr> </div>

        <?php 
        $urunsor=$db->prepare("SELECT * from urunler where urun_paket='0' and urun_vitrin=1 order by urun_id DESC");
        $urunsor->execute();
        while($uruncek=$urunsor->fetch(PDO::FETCH_ASSOC)) { 

          $resimsor=$db->prepare("SELECT * from resim where resim_urun=:resim_urun Limit 2");
          $resimsor->execute(array(
           'resim_urun' => $uruncek['urun_id']
         ));

         ?>
         <div style="height: 300px;" class="product col-md-4">
          <div class="product-image">
            <?php while($resimcek=$resimsor->fetch(PDO::FETCH_ASSOC)) {  ?>
              <a href="<?=seo('urunler-'.$uruncek["urun_baslik"]).'-'.$uruncek["urun_id"]?>" title="<?php echo $uruncek['urun_baslik']; ?>"><img alt="<?php echo $uruncek['urun_baslik']; ?>" src="admin/<?php echo $resimcek['resim_link'] ?>">
              </a>
            <?php } if ($widgetprint['widget_ufiyat']==1) { ?>
              <span style="border-radius: 2%;
              color: #ffffff;
              font-size: 20px;
              font-weight: 600;
              height: 43px;
              right: 0;
              line-height: 42px;
              position: absolute;
              text-align: center;
              text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.14);
              top: 20px;
              width: 90px;
              opacity: .9;
              z-index: 5;" class="background-colored" ><i class="fa fa-try"></i><?php echo $uruncek['urun_fiyat']; ?></span>
            <?php } ?>
            <div class="col-md-6">
              <div class="product-overlay">
                <a target="_blank" href="<?php echo $uruncek['urun_demo']; ?>" title="<?php echo $uruncek['urun_baslik']; ?>" ><i class="fa fa-eye"></i> DEMO</a>
              </div>
            </div> 
            <div class="col-md-6">
              <div class="product-overlay">
                <a href="<?=seo('urunler-'.$uruncek["urun_baslik"]).'-'.$uruncek["urun_id"]?>" ><i class="fa fa-search"></i> DETAY</a>
              </div>
            </div>
          </div>

          <div class="product-description">
            <div class="product-category"><hr></div>
            <div class="product-title">
              <h4><a href="<?=seo('urunler-'.$uruncek["urun_baslik"]).'-'.$uruncek["urun_id"]?>" title="<?php echo $uruncek['urun_baslik']; ?>"><?php 
              $urunkarakter = strlen( $uruncek['urun_baslik'] );
              if ( $urunkarakter > 30 )
              {
                echo mb_substr($uruncek['urun_baslik'], 0,30, 'UTF-8');
              } else {
                echo $uruncek['urun_baslik']; 
              } ?></a></h4>
            </div>


          </div>
        </div>
      <?php } ?>
    </div>
    <!--END: Shop products Carousel -->
  </section>
  <!-- end: ÜRÜNLER -->
<?php } if ($widgetprint['widget_welcome1']==1) { ?>
  <!-- Pricing Table Default -->
  <section id="content">
    <div class="container"> 

      <!-- Pricing Table -->
      <div class="hr-title hr-long center"><abbr><?php echo $widgetprint['widget_bwelcome1']; ?></abbr> </div>
      <div class="row">
        <div class="pricing-table">
         <?php 
         $urunsor=$db->prepare("SELECT * from urunler where urun_paket='1' and urun_vitrin=1 order by urun_id ASC");
         $urunsor->execute();
         while($uruncek=$urunsor->fetch(PDO::FETCH_ASSOC)) {  ?>
          <div style="height: 700px;" class="col-md-4" id="<?php echo $uruncek['urun_id']; ?>">
            <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>
  <div class="call-to-action call-to-action-colored">
    <div class="col-md-10">
      <h3stediğiniz paketi bulamadınız mı? Tüm paketlerimizi inceleyin.</h3>
    </div>
    <div class="col-md-2">
      <a style="margin-top: 8px;margin-bottom: 20px" href="paketler" class="btn btn-light btn-outline">TÜM PAKETLER</a> </div>
    </div>
  </section>
  <!-- end: Pricing Table Default --> 

<?php } if ($widgetprint['widget_bilgi']==1) {  ?>
  <!-- NELER YAPARIZ -->
  <section class="p-b-0 p-t-50">
    <div class="container">
      <div class="heading text-left">
        <div class="row">
          <!--Process icons-->
          <div style="margin-bottom: -10px;" class="hr-title hr-long center"><abbr><?php echo $widgetprint['widget_bbilgi']; ?></abbr> </div>

          <?php 
          $bilgisor=$db->prepare("SELECT * from bilgi");
          $bilgisor->execute(array(0));
          while ($bilgicek=$bilgisor->fetch(PDO::FETCH_ASSOC)) {?>
            <div class="col-md-4">
              <div style="padding-top: 20px;" class="icon-box effect medium center process">
                <h3><?php echo $bilgicek['bilgi_baslik'] ?></h3>
                <p><?php echo $bilgicek['bilgi_aciklama'] ?></p>
              </div>
            </div>
          <?php } ?>
        </div>
      </div>
      <!--End: Process icons-->
    </div>
  </section>
  <!-- NELER YAPARIZ -->
<?php } if ($widgetprint['widget_proje']==1) { ?>
  <!-- PROJELER -->
  <section class="p-t-50 p-b-50">
    <div class="container">
      <div class="row">
        <div class="col-md-7 m-b-30">

          <div class="carousel" data-items="1"  data-lightbox="gallery">
            <?php 
            $projearticle=$db->prepare("SELECT * from projeler");
            $projearticle->execute(array(0));
            while ($projearticleprint=$projearticle->fetch(PDO::FETCH_ASSOC)) { ?>
              <a href="admin/<?php echo $projearticleprint['proje_resim']; ?>" data-lightbox="gallery-item" title="<?php echo $projearticleprint['proje_baslik']; ?>"><img src="admin/<?php echo $projearticleprint['proje_resim']; ?>" alt="<?php echo $projearticleprint['proje_baslik']; ?>"></a>
            <?php } ?>
          </div>
        </div>
        <div class="col-md-5 p-l-40 p-r-40">
          <div class="m-b-40">
            <h2><?php echo $widgetprint['widget_bproje']; ?></h2>
            <p><?php echo $widgetprint['widget_pyazi']; ?></p>
          </div>
          <a class="btn" href="<?php echo $widgetprint['widget_plink']; ?>"><span><?php echo $widgetprint['widget_pbuton']; ?></span></a>
        </div>
      </div>
    </div>

  </section>
  <!-- end: PROJELER -->
<?php } if ($widgetprint['widget_referans']==1) { ?>
  <!-- REFERANSLAR -->
  <section class="p-t-20">
    <div class="container">
      <div class="hr-title hr-long center"><abbr><?php echo $widgetprint['widget_breferans']; ?></abbr> </div>
      <div class="carousel" data-items="4" data-items-sm="4" data-items-xs="3"  data-items-xxs="2"  data-margin="20" data-arrows="false" data-autoplay="true" data-autoplay-timeout="3000" data-loop="true">
       <?php 
       $refsor=$db->prepare("SELECT * from referanslar");
       $refsor->execute(array(0));
       while ($refprint=$refsor->fetch(PDO::FETCH_ASSOC)) { ?>
         <div>
           <a target="_blank" href="<?php echo $refprint['referans_link'] ?>"><img alt="<?php echo $refprint['referans_adi']; ?>" title="<?php echo $refprint['referans_adi'].' - '; ?><?php echo $refprint['referans_kategori']; ?>" src="admin/<?php echo $refprint['referans_resim1'] ?>"></a>
         </div>
       <?php } ?>
     </div>
   </div>
 </section>
 <!-- end: REFERANSLAR -->
<?php } if ($widgetprint['widget_counter']==1) { ?>

 <!-- COUNTERS -->



 <!-- Our numbers -->
 <section class="background-colored p-t-120 p-b-40">
  <div id="particles-js" class="particles"></div>
  <div class="container xs-text-center sm-text-center text-light">
    <div class="row">
      <?php 
      $counterarticle=$db->prepare("SELECT * from counter");
      $counterarticle->execute(array(0)); 
      while ($counterarticleprint=$counterarticle->fetch(PDO::FETCH_ASSOC)) { ?>

        <div class="col-md-3">

          <div class="text-center">
            <div class="icon"><i class="fa fa-3x <?php echo $counterarticleprint['counter_icon']; ?>"></i></div>
            <div class="counter"> <span data-speed="3000" data-refresh-interval="50" data-to="<?php echo $counterarticleprint['counter_rakam']; ?>" data-from="600" data-seperator="true"></span> </div>
            <div class="seperator seperator-small"></div>
            <p><?php echo $counterarticleprint['counter_isim']; ?></p>
          </div>
        </div>
      <?php } ?>
    </div>
  </div>
</section>
<!-- end: COUNTERS -->
<?php } if ($widgetprint['widget_yorum']==1) {  ?>
  <!-- YORUMLAR -->
  <section>
    <div class="container">
      <!-- Heading -->
      <div class="text-center m-b-20">
        <div class="hr-title hr-long center"><abbr><?php echo $widgetprint['widget_byorum']; ?></abbr> </div>
      </div>
      <!-- end: Heading -->

      <!-- Testimonials -->
      <div class="carousel arrows-visibile testimonial testimonial-single" data-items="2" data-loop="true" data-autoplay="true" data-autoplay-timeout="3500" data-arrows="false">
        <?php 
        $yorum=$db->prepare("SELECT * from yorumlar order by yorum_id");
        $yorum->execute();
        while($yorumcek=$yorum->fetch(PDO::FETCH_ASSOC)) { ?>
          <!-- Testimonials item -->
          <div class="testimonial-item">
            <img src="admin/<?php echo $yorumcek['yorum_resim']; ?>" alt="<?php echo $yorumcek['yorum_isim']; ?>">
            <p><?php echo $yorumcek['yorum_icerik']; ?></p>
            <span><?php echo $yorumcek['yorum_isim']; ?></span>
          </div>
          <!-- end: Testimonials item-->
        <?php } ?>

      </div>
      <!-- end: Testimonials -->
    </div>
  </section>
  <!-- end: YORUMLAR -->
<?php } if ($widgetprint['widget_blog']==1) { ?>
  <!-- Blog -->
  <section class="p-t-0">
    <div class="container">
      <div class="hr-title hr-long center"><abbr><?php echo $widgetprint['widget_bblog']; ?></abbr> </div>
      <div class="carousel" data-items="3" data-item="post-item" data-margin="20">
       <?php 
       $blog=$db->prepare("SELECT * from blog order by blog_id Limit 5");
       $blog->execute();
       while($blogcek=$blog->fetch(PDO::FETCH_ASSOC)) { ?>
         <!-- Post item-->
         <div class="post-item border">
          <div class="post-item-wrap">
            <div class="post-image">
              <a href="<?=seo('blog-'.$blogcek["blog_baslik"]).'-'.$blogcek["blog_id"]?>">
                <img alt="<?php echo $blogcek['blog_baslik']; ?>" src="admin/<?php echo $blogcek['blog_resim']; ?>">
              </a>
            </div>
            <div class="post-item-description">
              <span class="post-meta-date"><i class="fa fa-calendar-o"></i><?php echo substr($blogcek['blog_tarih'], 0,10); ?></span>
              <h2><a href="<?=seo('blog-'.$blogcek["blog_baslik"]).'-'.$blogcek["blog_id"]?>"><?php 
              $karakter = strlen( $blogcek['blog_baslik'] );
              if ( $karakter > 35 )
              {
                echo mb_substr( $blogcek['blog_baslik'], 0, 35, 'UTF-8' ) . '...';
              }
              else
              {
                echo $blogcek['blog_baslik'];
              }
              ?>
            </a></h2>
            <p><?php echo substr($blogcek['blog_detay'], 0,100).'...'; ?></p>

            <a href="<?=seo('blog-'.$blogcek["blog_baslik"]).'-'.$blogcek["blog_id"]?>" class="item-link">Devamını Oku <i class="fa fa-arrow-right"></i></a>

          </div>
        </div>
      </div>
      <!-- end: Post item-->
    <?php } ?>

  </div>
  <!--END: Post Carousel -->
</div>
</section>
<!-- end: Blog -->
<?php } include 'include/footer.php'; ?>