<?php include_once('theme/header.php');?>



    <section>

        <div class="container">

            <div class="row">

                <div class="content m-r-l-86px">

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

                        <div class="categories">

                            <h5 class="title">KATEGORİLER</h5>

                            <ul>

                                <?php

                                $cat = mysql_query("SELECT * FROM kategoriler WHERE uskat='0'");

                                while($cr = mysql_fetch_object($cat)){

                                    ?>

                                    <li>

                                        <a href="javascript:;"><?=$cr->kategori;?></a>

                                        <ul>

                                            <?php

                                            $cata = mysql_query("SELECT * FROM kategoriler WHERE uskat='".$cr->kID."'");

                                            while($cra = mysql_fetch_object($cata)){

                                                ?>

                                                <li><a href="/kategori/<?=$cra->kID;?>/<?=$st->sef_link($cra->kategori);?>.html#products"><?=$cra->kategori;?></a></li>

                                                <?php

                                            }

                                            ?>

                                            <li><a href="/kategori/<?=$cr->kID;?>/<?=$st->sef_link($cr->kategori);?>.html#products">Tüm Ürünler</a></li>

                                        </ul>

                                    </li>

                                    <?php

                                }

                                ?>

                            </ul>

                        </div>

                        <div class="widget">

                            <h5 class="title">

                                KURUMSAL ÇÖZÜMLER

                            </h5>

                            <a href="javascript:;">

                                <img src="/assets/images/bannerkurumsal.png" class="img-responsive">

                            </a>

                        </div>

                        <div class="widget">

                            <a href="javascript:;">

                                <img src="/assets/images/cards-2.png" class="img-responsive">

                            </a>

                        </div>

                        <div class="widget">

                            <h5 class="title">

                                TEKLİF FORMU

                            </h5>

                            <a href="/teklif.html">

                                <img src="/assets/images/bannerform.png" class="img-responsive">

                            </a>

                        </div>

                    </div>



                    <div class="right-side col-md-9" id="products">

                        <h4 class="title"><?=$st->strtoupperTR($st->getCategory($kID));?> <span>KATEGORİSİ ÜRÜNLERİ</span></h4>

                        <div class="products row">

                            <?php

                            $h1 = mysql_query("SELECT * FROM  urunler WHERE kategori='$kID'");

                            while($g = mysql_fetch_object($h1)){

                                $cad = $st->getCategory($g->kategori);

                                ?>



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

                                    <div class="product">

                                        <a href="/detay/<?=$g->firsatID;?>/<?=$st->sef_link($cad);?>/<?=$st->sef_link($g->isim);?>.html">

                                            <?php

                                            if($g->kategori==124){

                                                ?>

                                                <div class="photo">

                                                    <img src="<?=$g->resim;?>" alt=""

                                                         class="img-responsive">

                                                </div>

                                                <?php

                                            }else{

                                                ?>



                                                <div class="photo">

                                                    <img src="/upload/product/thumb_<?=$g->resim;?>" alt=""

                                                         class="img-responsive">

                                                </div>

                                                <?php

                                            }

                                            ?>



                                            <div class="product-title"><?=$g->isim;?></div>

                                        </a>

                                        <div class="action">

                                            <a href="/detay/<?=$g->firsatID;?>/<?=$st->sef_link($cad);?>/<?=$st->sef_link($g->isim);?>.html" class="detail">ÜRÜNÜ İNCELE</a>

                                            <a href="/form/3/siparis.html?fID=<?=$g->firsatID;?>" class="offer">TEKLİF İSTE</a>

                                        </div>

                                    </div>

                                </div>

                                <?php

                            }

                            ?>



                        </div>

                    </div>

                    <div class="clearfix"></div>

                </div>

            </div>

        </div>

    </section>

<?php include_once('theme/footer.php');?>