<!DOCTYPE HTML>
<!--[if IE 8]> <html class="ie8 no-js"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
<!--#include file ="veriables.asp"-->
<!--#include file ="sayac.asp"-->
<% 
if request.querystring("lang")<>"" then

if request.querystring("lang")="es" then
session("lang")="tr"
end if
if request.querystring("lang")="en" then
session("lang")="en"
end if
if request.querystring("lang")="fr" then
session("lang")="fr"
end if
if request.querystring("lang")="de" then
session("lang")="ru"
end if
if request.querystring("lang")="it" then
session("lang")="ar"
end if

end if

Response.ContentType = "text/html" 
Response.Charset = "UTF-8" 

veritabanidizin="db/"&datayol&".mdb"

Set Baglanti = Server.CreateObject("ADODB.Connection")

Baglanti.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(veritabanidizin)

Dim Ayarlar
Set Ayarlar = Server.CreateObject("Adodb.Recordset")
sql="Select * From admin"
Ayarlar.Open sql,Baglanti,1,3

if session("lang")="" then
dil="tr"
session("lang")="tr"
else
dil=session("lang")
end if

tr = ayarlar("tr")
en = ayarlar("en")
fr = ayarlar("fr")
ru = ayarlar("ru")
ar = ayarlar("ar")

if dil="tr" then
keywords = ayarlar("anahtartr")
sitebaslik = ayarlar("sitebasliktr")
description = ayarlar("faaliyettr")
slogan = ayarlar("slogantr")
end if
if dil="en" then
keywords = ayarlar("anahtaren")
sitebaslik = ayarlar("sitebasliken")
description = ayarlar("faaliyeten")
slogan = ayarlar("sloganen")
end if
if dil="fr" then
keywords = ayarlar("anahtarfr")
sitebaslik = ayarlar("sitebaslikfr")
description = ayarlar("faaliyetfr")
slogan = ayarlar("sloganfr")
end if
if dil="ru" then
keywords = ayarlar("anahtarru")
sitebaslik = ayarlar("sitebaslikru")
description = ayarlar("faaliyetru")
slogan = ayarlar("sloganru")
end if
if dil="ar" then
keywords = ayarlar("anahtarar")
sitebaslik = ayarlar("sitebaslikar")
description = ayarlar("faaliyetar")
slogan = ayarlar("sloganar")
end if

logo = ayarlar("logo")
background = ayarlar("background")
facebook=ayarlar("googleanaliz")
twitter=ayarlar("kutucuk")
rss=ayarlar("reklam")
seemail = ayarlar("form")
seephone = ayarlar("telefon")

duyuruaciklama = ayarlar("duyuruaciklama")

slider = ayarlar("slider")
galeri = ayarlar("galeri")
urun = ayarlar("urun")
referans = ayarlar("referans")
hizmet = ayarlar("hizmet")
bg1 = ayarlar("image1")
bg2 = ayarlar("image2")

Response.ContentType = "text/html" 
Response.Charset = "UTF-8" 

%>
<head>
	<!-- begin meta -->
	
	<meta charset="utf-8">
	<meta name="description" content="<%=description%>" />
	<meta name="keywords" content="<%=keywords%>" />
	<meta name="author" content="hyldrm">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<!-- end meta -->
	
	<!-- begin CSS -->
	<link href="style.css" type="text/css" rel="stylesheet">
<style type="text/css">
	/* ---------------------------------------------------------------------- */
	/* Generic
	/* ---------------------------------------------------------------------- */
	* {
	margin: 0;
	padding: 0;
	outline: none;
	}

	body {
	font-family: 'Open Sans', sans-serif;
	font-size: 12px;
	line-height: 1.5em; /* 18px */
	color: #383838;
	background-image:url(images/bg/<%=bg1%>.png);
	background-repeat: repeat;
	background-position: left top;
	/* Fix for webkit rendering */
	-webkit-font-smoothing: antialiased; 
	-webkit-text-size-adjust: 100%;
	}

	iframe, img, video, audio {
	display: block;	
	}

	/*img,*/ embed, object, video { /* Note: keeping IMG here will cause problems if you're using foreground images as sprites. */
	max-width: 100%;
	}

	video {
	width: 100%;
    height: auto;
	}

	ul {
	list-style: none;	
	}

	/* Clearfix */

	.clear {
	clear: both;
	display: block;
	height: 0;
	overflow: hidden; 
	visibility: hidden;
	width: 0;
	}
	
	/* ---------------------------------------------------------------------- */
	/* Containers
	/* ---------------------------------------------------------------------- */
	#outer {
	border-top: 5px solid #383838;
	padding-top: 30px;
	overflow: hidden;
	width:1020px;
	margin: 0 auto;
	background-color: white;
	background-image:url(images/bg/<%=bg2%>.png);
	background-repeat: repeat;
	background-position: left top;
	box-shadow: 0 0 8px rgba(0,0,0,0.24);
	}

	.container {
	width: 940px;
	margin: 0 auto;
	}

	#content {
	margin: 0;	
	}

	</style>

	<!--[if IE]> <link href="css/ie.css" type="text/css" rel="stylesheet"> <![endif]-->
	<link href="css/colors/<%=background%>.css" type="text/css" rel="stylesheet" id="colors">
    <link href="style-switcher/style-switcher.css" type="text/css" rel="stylesheet">
	<!-- end CSS -->
	
	<link href="images/favicon.ico" type="image/x-icon" rel="shortcut icon">
	
	<!-- begin JS -->
    <!--<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>-->
    <!--<script src="js/respond.min.js"></script>-->

    <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script> <!-- jQuery -->
    <script src="js/ie.js" type="text/javascript"></script> <!-- IE detection -->
    <script src="js/jquery.easing.1.3.js" type="text/javascript"></script> <!-- jQuery easing -->
	<script src="js/modernizr.custom.js" type="text/javascript"></script> <!-- Modernizr -->
    <!--[if IE 8]><script src="js/respond.min.js" type="text/javascript"></script><![endif]--> <!-- Respond -->
    <!-- begin language switcher -->
	<script src="js/persist-min.js" type="text/javascript"></script>
    <script src="js/jquery.timer.js" type="text/javascript"></script>
	<script src="js/jquery.polyglot.language.switcher.js" type="text/javascript"></script>
    <!-- end language switcher -->
    
    <script src="js/ddlevelsmenu.js" type="text/javascript"></script>

    <script type="text/javascript">

		ddlevelsmenu.setup("nav", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar|sidebar")

	</script>

    <!-- end drop-down menu -->
    <script src="js/tinynav.min.js" type="text/javascript"></script> <!-- tiny nav -->
    <script src="js/jquery.validate.min.js" type="text/javascript"></script> <!-- form validation -->
    <script src="js/jquery.flexslider-min.js" type="text/javascript"></script> <!-- slider -->
    <script src="js/jquery.jcarousel.min.js" type="text/javascript"></script> <!-- carousel -->
    <script src="js/jquery.ui.totop.min.js" type="text/javascript"></script> <!-- scroll to top -->
    <script src="js/jquery.fancybox.pack.js" type="text/javascript"></script> <!-- lightbox -->
    <script src="js/jquery.cycle.all.js" type="text/javascript"></script> <!-- entry slider -->
    <script src="js/jquery.validate.min.js" type="text/javascript"></script> <!-- form validation -->
    <script src="js/mediaelement-and-player.min.js" type="text/javascript"></script> <!-- Video Player -->
    <script src="js/jquery.fitvids.js" type="text/javascript"></script> <!-- responsive video embeds -->
    <script src="js/jquery.touchSwipe.min.js" type="text/javascript"></script> <!-- touchSwipe -->
    <script src="js/custom.js" type="text/javascript"></script> <!-- jQuery initialization -->
	
		
	<title><%=sitebaslik%></title>
</head>

<body>
<!-- begin container -->
<div id="outer">
	<!-- begin centered container -->
	<div class="container">
        <!-- begin header -->
        <!--#INCLUDE file="inc/menu-logo-dil.asp"--> 
        <!-- end header -->
        
        <!-- begin content -->
        <section id="content" class="clearfix">
        <% 
set hafobaglan = Server.CreateObject("ADODB.Connection")
hafobaglan.Open "Provider=Microsoft.jet.OLEDB.4.0;Data Source=" & Server.MapPath("db/"&datayol&".mdb")
set hafogaleri = server.createobject("adodb.recordset")
galeriSirala = 2
tablo = "Select * from  galeri where yayin='acik' order by aciklama asc "
hafogaleri.pagesize = 15
hafogaleri.open tablo,hafobaglan,1,1
if not hafogaleri.eof then
if request.QueryString("s")="" or request.querystring("s")=0 then
s=1
else
s=request.QueryString("s")
end if
if slider="1" then 
%>
        	<!-- begin slider -->
            <section id="slider-home">
                <div class="flex-container">
                    <div class="flexslider">
                        <ul class="slides">
                        
<%
hafogaleri.AbsolutePage = s
for k=1 to hafogaleri.pagesize
if hafogaleri.eof or hafogaleri.bof then exit for
if yan=galeriSirala then 
response.write ("")
yan=0 
End if
%>
                            <li>
                                <img src="admin/<%=hafogaleri("resim")%>" alt="<%=hafogaleri("baslik")%>">
                                <% if hafogaleri("baslik")<>"" then %>
                                <div class="flex-caption">
                                <p><%=hafogaleri("baslik")%></p>
								</div>
                                <% end if %>
                            </li>
                            
                            <% yan=yan+1
					if yan = (galeriSirala+1) then  
					response.write ("")
					end if
				 hafogaleri.movenext : next
				 
				 %> 
                        </ul>
                    </div>
                </div>
            </section>
           
           <br><% 
		   end if
		   end if %>
           
<%
if session("lang")="" then
dil="tr"
else
dil=session("lang")
end if

if dil="tr" then
id="4"
end if
if dil="en" then
id="5"
end if
if dil="fr" then
id="6"
end if
if dil="ru" then
id="7"
end if
if dil="ar" then
id="8"
end if


Set yazi=Server.CreateObject("Adodb.Recordset")
ysorgu="Select * From sayfalar WHERE id =" & id
yazi.open ysorgu,hafobaglan,1,3
do while not yazi.eof
%>


		    <section id="main" class="blog-entry-list three-fourths">
            	<article class="entry clearfix">
            	  <div class="entry-body">
                        <h2 class="entry-title"><a><%=yazi("baslik")%></a></h2>
                        <div class="entry-content">
                        <% if yazi("resim")<>"" then %><div class="entry-image float-left"><a class="fancybox" href="admin/<%=yazi("resim")%>"><span class="overlay zoom"></span><img src="admin/<%=yazi("resim")%>" style="max-width:220px;" title="<%=yazi("baslik")%>"></a></div><% end if %>
                            <p><%=yazi("icerik")%></p>
                        </div>
                    </div>
				</article>
		   </section>
           <% 
yazi.movenext
loop
yazi.close
Set yazi=Nothing
%>
		    <aside id="sidebar" class="one-fourth column-last">
		      <!--#INCLUDE file="inc/duyuru.asp"-->
				</aside>
<% if urun="1" then %>
		  <div class="clear"></div>
		   
           
           
   		<section>

            	<h2><% 
					dil=session("lang") 
					if dil="tr" then 
					%>Bazı Ürünlerimiz<% 
					end if 
					if dil="en" then 
					%>Some products<% 
					end if 
					if dil="fr" then 
					%>Certains produits<% 
					end if 
					if dil="ru" then 
					%>некоторые продукты<%
					end if 
					if dil="ar" then 
					%>بعض المنتجات<% 
					end if 
					%></h2>



                <!-- begin project carousel -->

                <ul class="project-carousel">
                    
                    
               
<%

Set yazi=Server.CreateObject("Adodb.Recordset")
ysorgu="Select * From urunler WHERE vitrin='1' and yayin='1' order by sira asc "
yazi.open ysorgu,hafobaglan,1,3
do while not yazi.eof 
idm=yazi("id") 

Set bazi=Server.CreateObject("Adodb.Recordset")
ysorgum="Select * From urunresim where baslik='"&idm&"'"
bazi.open ysorgum,hafobaglan,1,3
if not bazi.eof then
%>

						<li class="entry">
						<div class="entry-slider">
                        <ul>
                                <li><a class="fancybox" rel="gallery-<%=yazi("id")%>" href="urun_detay.asp?id=<%=yazi("id")%>&current=4" title="<% 
					dil=session("lang") 
					if dil="tr" then 
					response.write yazi("baslik") 
					end if 
					if dil="en" then 
					response.write yazi("baslik10")  
					end if 
					if dil="fr" then 
					response.write yazi("baslik11") 
					end if 
					if dil="ru" then 
					response.write yazi("baslik12") 
					end if 
					if dil="ar" then 
					response.write yazi("baslik13")  
					end if 
					%>"><span class="overlay link"></span><img src="resim_boyut.asp?path=admin/<%=yazi("resim")%>&width=220&height=130" alt=""></a></li>


			<%
			set awk=Server.CreateOBject("Adodb.Recordset")
			sql0="Select * From urunresim where baslik='"&idm&"' order by sira asc"
			awk.open sql0,hafobaglan,1,3
			
			page = CInt(Request("page"))
	        If (page ="" or page = 0) Then page = 1 Else page=page
	        awk.pageSize=150
			if awk.eof then
			else
	        awk.absolutePage=page
            Do while not awk.eof
			%>
                    <li style="display: none;"><a class="fancybox" rel="gallery-<%=yazi("id")%>" href="urun_detay.asp?id=<%=yazi("id")%>&current=4" title="<% 
					dil=session("lang") 
					if dil="tr" then 
					response.write yazi("baslik") 
					end if 
					if dil="en" then 
					response.write yazi("baslik10")  
					end if 
					if dil="fr" then 
					response.write yazi("baslik11") 
					end if 
					if dil="ru" then 
					response.write yazi("baslik12") 
					end if 
					if dil="ar" then 
					response.write yazi("baslik13")  
					end if 
					%>"><span class="overlay link"></span><img src="resim_boyut.asp?path=admin/<%=awk("resim")%>&width=220&height=130" alt=""></a></li>
			<%
			awk.movenext
			loop
			end if
			%>
                               
                        </ul>
						</div>
						<h4 class="entry-title"><a href="urun_detay.asp?id=<%=yazi("id")%>&current=4"><% 
						dil=session("lang") 
						if dil="tr" then 
						response.write yazi("baslik") 
						end if 
						if dil="en" then 
						response.write yazi("baslik10")  
						end if 
						if dil="fr" then 
						response.write yazi("baslik11") 
						end if 
						if dil="ru" then 
						response.write yazi("baslik12") 
						end if 
						if dil="ar" then 
						response.write yazi("baslik13")  
						end if 
						%></a></h4>
						</li>


<%
else
%>


					<li class="entry">

					<div class="entry-image">
                    <a href="urun_detay.asp?id=<%=yazi("id")%>&current=4" title="<% 
					dil=session("lang") 
					if dil="tr" then 
					response.write yazi("baslik") 
					end if 
					if dil="en" then 
					response.write yazi("baslik10")  
					end if 
					if dil="fr" then 
					response.write yazi("baslik11") 
					end if 
					if dil="ru" then 
					response.write yazi("baslik12") 
					end if 
					if dil="ar" then 
					response.write yazi("baslik13")  
					end if 
					%>">
					<span class="overlay link"></span><img src="resim_boyut.asp?path=admin/<%=yazi("resim")%>&width=220&height=130" alt=""></a></div>
					<h4 class="entry-title"><a href="urun_detay.asp?id=<%=yazi("id")%>&current=4"><% 
					dil=session("lang") 
					if dil="tr" then 
					response.write yazi("baslik") 
					end if 
					if dil="en" then 
					response.write yazi("baslik10")  
					end if 
					if dil="fr" then 
					response.write yazi("baslik11") 
					end if 
					if dil="ru" then 
					response.write yazi("baslik12") 
					end if 
					if dil="ar" then 
					response.write yazi("baslik13")  
					end if 
					%></a></h4>

					</li>
                    
                    
<%               
end if
bazi.close
Set bazi=Nothing

yazi.movenext
loop
yazi.close
Set yazi=Nothing
%>

       </ul>

                <!-- end project carousel -->

            </section>
            <% end if %>
            </div>
    
    
	<!-- begin footer -->
	<footer id="footer">
    	<div class="container">
            <!-- begin footer top -->
            <!-- end footer top -->
            <!-- begin footer bottom -->
<!--#INCLUDE file="inc/alt-menu.asp"-->
            <!-- end footer bottom -->
      </div>
	</footer>
	<!-- end footer -->
</div>
<!-- end container -->
</body>
</html>