elimdeki siteye yeni tasarım yaptım, herşey tamam ama sayfaların çağrıldığı default asp de bir yerde hata yapıyorum. yeni tasarımda sayfalar çağrıldığında gelmiyor. Tabloları tek tek defalarca kontrol ettim bilen bir arkadaş varsa bakabilirmi nerede hata yapıyorum.
<!--#include file="baglanti.asp" -->
<!--#include file="sayac.asp" -->
<%xpanel = Request("sayfa")%>
<%ad=request.querystring("ad")%>
<%Set ayar = Server.CreateObject("ADODB.RecordSet")
sql_ana="select baslik from sayfalar "
Set ayar=ders.execute(sql_ana)
dizim=ayar.getrows
ayar.close
sqlayar = "Select * from ayarlar"
ayar.open sqlayar,ders,1,3
%>
<%Set duyuru = Server.CreateObject("ADODB.RecordSet")
sqlduyuru = "Select * from duyuru order by id desc limit 0,4"
duyuru.open sqlduyuru,ders,1,3
%>
<%Set galeri = Server.CreateObject("ADODB.RecordSet")
sqlgaleri = "Select * from galeri order by id desc limit 0,3"
galeri.open sqlgaleri,ders,1,3
%>
<%Set vgaleri = Server.CreateObject("ADODB.RecordSet")
sqlvgaleri = "Select * from videogaleri order by id desc limit 0,2"
vgaleri.open sqlvgaleri,ders,1,3
%>
<html>
<head>
<title>.:: DERYA</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<style type="text/css">
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
#invertedtabs{
margin-left: 4px;
padding: 0;
width: 100%;
background: transparent;
voice-family: "\"}\"";
voice-family: inherit;
padding-left: 5px;
text-align:center;
}
#invertedtabs ul{
font: bold 11px Arial, Verdana, sans-serif;
margin:0;
margin-bottom: 1em; /*margin between menu and rest of content*/
padding:0;
list-style:none;
}
#invertedtabs li{
display:inline;
margin:0 2px 0 0;
padding:0;
line-height: 1.5em;
}
#invertedtabs a{
float:left;
color: white;
background: #2273ad url(media/color_tabs_left2.gif) no-repeat left bottom;
margin:0 2px 0 0;
padding:0 0 0 3px;
text-decoration:none;
letter-spacing: 1px;
}
#invertedtabs a span{
float:left;
display:block;
background: transparent url(media/color_tabs_right2.gif) no-repeat right bottom;
padding:3px 9px 3px 6px;
}
#invertedtabs a span{
float:none;
}
#invertedtabs a:hover{
background-color: gray;
}
#invertedtabs a:hover span{
background-color: gray;
}
#invertedtabs #current a, #invertedtabs #current span{ /*currently selected tab*/
background-color: #d50509;
}
#invertedtabsline{
clear: both;
padding: 0;
width: 100%;
height: 3px;
line-height: 3px;
background: #2273ad;
/*border-bottom: 1px solid #fff; Remove this to remove border between bar and tabs*/
}
</style>
<link rel="stylesheet" href="genel.css" type="text/css" />
<script type="text/javascript" src="jquery-1.2.6.pack.js"></script>
<style type="text/css">
/*Make sure your page contains a valid doctype at the top*/
#simplegallery1{ //CSS for Simple Gallery Example 1
position: relative; /*keep this intact*/
visibility: hidden; /*keep this intact*/
border:0px solid darkred;
}
#simplegallery1 .gallerydesctext{ //CSS for description DIV of Example 1 (if defined)
text-align: left;
padding: 2px 5px;
}
</style>
<%If xpanel="galeri" then%>
<script type="text/javascript">
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Timothy Groves | http://www.brandspankingnew.net/ */
var useBSNns;
if (useBSNns) {
if (typeof(bsn) == "undefined")
bsn = {}
var _bsn = bsn;
} else {
var _bsn = this;
}
_bsn.Crossfader = function (divs, fadetime, delay ) {
this.nAct = -1;
this.aDivs = divs;
for (var i=0;i<divs.length;i++) {
document.getElementById(divs[i]).style.opacity = 0;
document.getElementById(divs[i]).style.position = "absolute";
document.getElementById(divs[i]).style.filter = "alpha(opacity=0)";
document.getElementById(divs[i]).style.visibility = "hidden";
}
this.nDur = fadetime;
this.nDelay = delay;
this._newfade();
}
_bsn.Crossfader.prototype._newfade = function() {
if (this.nID1)
clearInterval(this.nID1);
this.nOldAct = this.nAct;
this.nAct++;
if (!this.aDivs[this.nAct]) this.nAct = 0;
if (this.nAct == this.nOldAct)
return false;
document.getElementById( this.aDivs[this.nAct] ).style.visibility = "visible";
this.nInt = 50;
this.nTime = 0;
var p=this;
this.nID2 = setInterval(function() { p._fade() }, this.nInt);
}
_bsn.Crossfader.prototype._fade = function() {
this.nTime += this.nInt;
var ieop = Math.round( this._easeInOut(this.nTime, 0, 1, this.nDur) * 100 );
var op = ieop / 100;
document.getElementById( this.aDivs[this.nAct] ).style.opacity = op;
document.getElementById( this.aDivs[this.nAct] ).style.filter = "alpha(opacity="+ieop+")";
if (this.nOldAct > -1) {
document.getElementById( this.aDivs[this.nOldAct] ).style.opacity = 1 - op;
document.getElementById( this.aDivs[this.nOldAct] ).style.filter = "alpha(opacity="+(100 - ieop)+")";
}
if (this.nTime == this.nDur) {
clearInterval( this.nID2 );
if (this.nOldAct > -1)
document.getElementById( this.aDivs[this.nOldAct] ).style.visibility = "hidden";
var p=this;
this.nID1 = setInterval(function() { p._newfade() }, this.nDelay);
}
}
_bsn.Crossfader.prototype._easeInOut = function(t,b,c,d) {
return c/2 * (1 - Math.cos(Math.PI*t/d)) + b;
}
</script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<link href="default.css" rel="stylesheet" type="text/css" />
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">AC_FL_RunContent = 0;</script>
<script language="JavaScript" src="AC_RunActiveContent.js" type="text/javascript"></script>
<%End if%>
<script language="JavaScript">
<!--
function denetle()
{
var ad=document.mesaj_formu.ad.value;
var mail=document.mesaj_formu.mail.value;
var mesaj=document.mesaj_formu.mesaj.value;
if (ad=="" || mail=="" || mesaj=="")
{
alert("Lütfen formdaki tüm alanları doldurunuz");
return false
}
return true
}
//-->
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top" background="solsadeback.png"><table width="898" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="129" background="header.png"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="51" background="menu_bar.png"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="18%"><img src="anasayfa.png" width="165" height="51" /></td>
<td width="16%"><img src="hakkimizda.png" width="144" height="51" /></td>
<td width="16%"><img src="dairelerimiz.png" width="142" height="51" /></td>
<td width="16%"><img src="hizmetler.png" width="140" height="51" /></td>
<td width="16%"><img src="iletisim.png" width="141" height="51" /></td>
<td width="12%"> </td>
<td width="52" align="right" valign="middle" background="menubarson.png"></td>
</tr>
</table></td>
</tr>
</table>
<table width="898" background="tab.png" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="15" scope="row"> </th>
<td width="872" valign="top" id="baslik_alani">
<table width="870" border="0" cellspacing="0" cellpadding="0">
<tr>
<th height="100%" scope="col">
<!-- orta gelecek -->
<br>
<div id="orta_yazi">
<%
xpanel = Request("sayfa")
Select Case xpanel
Case "duyuruoku"%> <!--#include file="duyuruoku.asp" -->
<%Case "goster"%> <!--#include file="sayfalar.asp" -->
<%Case "duyurutum"%> <!--#include file="duyurutum.asp" -->
<%Case "galeri"%> <!--#include file="galeri.asp" -->
<%Case "vgaleri"%> <!--#include file="vgaleri.asp" -->
<%End Select%>
</div>
<script language="JavaScript">
<!--
var orta_y=document.getElementById("orta_yazi").innerHTML;
var uzunluk=orta_y.length;
if (uzunluk>700)
{
//document.getElementById("sol_td").innerHTML=" "
document.getElementById("sol_td").style.backgroundImage="url(images/osta_bos_16.png)";
//document.getElementById("sol_td").style.background-repeat="repeat-y";
}
//-->
</script>
<!-- orta biter -->
</th>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
<td width="11"> </td>
</tr>
</table>
<table width="898" border="0" cellspacing="0" cellpadding="0">
<tr>
<th height="161" align="left" background="footer.png" scope="col"><table width="472" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="33" scope="row"> </th>
<td width="388">
<font face="Tahoma" style="font-size: 8pt; font-weight: 700" class="style1">
Bugün : <%=FormatDateTime(Date(),1)%> <%=Hour(now)%>:<%=minute(now)%></font></td>
<td width="181" class="style1">
<font face="Tahoma" style="font-size: 8pt; font-weight: 700" class="style1">
Günlük Ziyaretçi : <%=buguntoplam%></font></td>
<td width="181">
<font face="Tahoma" style="font-size: 8pt; font-weight: 700" class="style1">
Günlük Gösterim : <%=buguncogul%></font></td>
<td width="182">
<font face="Tahoma" style="font-size: 8pt; font-weight: 700" class="style1">
Toplam Gösterim : <%=toplamcogul%></font>
</td>
<td width="51"> </td>
</tr>
</table></th>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>