- Mesajlar
- 1,263
teion' Alıntı:Hocam 2.0 ı kullanmaya başladık. Çok güzel olmuş elinize sağlık. Yalnız birkaç yerde sıkıntımız var. Haberlerin altındaki "Eklenme tarihi, ekleyen, okunma" kısımlarını da isteğe bağlı yapsaydınız keşke. İlçe Milli Eğitim Müdürünün altında pek hoş durmuyor sankiBir de haberleri sıralayabilsek çok iyi olur. Kategorilerin altına eklenen menüler de haberler kısmından yapıldığı için sıralama özelliğine ihtiyaç duyuluyor.Güncelleme yapacağınız zaman bunları dikkate alırsanız çok iyi olur. Teşekkürler....
illa silinmesini istiyorsan haberdetay.asp' yi not defterinde aç, içindekilerin hepsini sil ve aşağıdaki kodları ekle, sunucuya gönder.
Çok daha geliştirebiliriz zamanla. Ama sistemi kullandıkları halde bildirimde bulunmayan, sistemi kullandığı halde alttaki lisans metnini silen bir çok arkadaş var. Bunları gördükçe boşa gece-gündüz kendimizi yıprattığımızı düşünüyorum.
Kod:
<!--#include file="meb_global_setting.asp"-->
<!--#include file="veritabani.asp"-->
<!--#include file="ayarlar.asp"-->
<!--#include file="meb_header_lang.asp"-->
<!--#include file="meb_js.asp"-->
<%
ipno = Request.ServerVariables("REMOTE_ADDR")
ID=guvenlik(request("ID"))
If Not Isnumeric(ID) Or Len(ID)=0 Then
response.redirect ""&webadresi&""&klasor&"hata.asp"
End If
Set rs= mebsablon.execute("SELECT * FROM haber WHERE haberonay=true and ID="&cint(ID)& "")
If rs.eof Then
response.redirect ""&webadresi&""&klasor&"hata.asp"
End If
%>
<head>
<title><%=guvenlik(rs("kategoriadi"))%> - <%=guvenlik(rs("baslik"))%> - <%=siteadi%></title>
<META name="Keywords" content="<%=anahtarkelime%>">
<META name="Description" content="<%=aciklama%>">
<link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
<script src="js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<SCRIPT>
function yorumekle(url)
{
mywin = window.open(url,"window","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=420,height=400" );
}
function YorumAlinti(url)
{
mywin = window.open(url,"window","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=yes,width=500,height=550" );
}
function tavsiye(url)
{
mywin = window.open(url,"window","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=480,height=450" );
}
function yazdir(url)
{
mywin = window.open(url,"window","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=700,height=500" );
}
function resimac(grafik){
resim1= new Image();
resim1.src=(grafik);
Kontrol(grafik);
}
function Kontrol(grafik){
if((resim1.width!=0)&&(resim1.height!=0)){
resmigoster(grafik);
}
else{
fonksiyon2="Kontrol('"+grafik+"')";
aktif=setTimeout(fonksiyon2,20);
}
}
function resmigoster(grafik){
buyuk_resim=resim1.width+20;
normal_resim=resim1.height+20;
boyut="width="+buyuk_resim+",height="+normal_resim;
aktif2=window.open(grafik,"",boyut);
}
</script>
</head>
</head>
<body>
<!--#include file="meb_header.asp"-->
<!--#include file="meb_sidebar.asp"-->
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto();
});
</script>
<!--#include file="customization.asp"-->
<!--Nerdeyim Bilgisi-->
<div id="araSayfaNrmlSag">
<div id="araSayfaNrmlNavigasyon"><span><img src="images/ico/homeNavigasyon.png"/></span><span><a href="<%=site_url%>">Anasayfa</a></span><span><img src="images/ico/okNavigasyon.png"/></span><span>Haberler</span></div>
<hr />
<!--ICERIK-->
<div id="araSayfaNrmlicerik">
<%
set rs=server.createobject("adodb.recordset")
rs.open "haber where haberonay=true and ID="&cint(ID)& "",mebsablon,1,3
hit = rs("hit")
rs("hit") = hit+1
haber = rs("haber")
rs.update
%>
<%
puanlama = rs("puan_goster")
toolbar = rs("toolbar_goster")
yorum = rs("yorum_goster")
%>
<style type="text/css">
a:link { color: #333;} /* normal linkimiz siyah olsun*/
a:visited { color: #333;} /* tıklanmış linkimiz mavi olsun*/
a:hover { color: red} /* üzerine gelince kırmızı renk olsun */
a:active { color: aqua;} /* aktif yani linke tıklayınca turkuaz renk olsun */
</style>
<br />
<table border="0" align="center" width="96%">
<% if toolbar = true then %>
<tr>
<td>
<table width="480" cellspacing="0" cellpadding="0" align="right">
<tr>
<td align=right>
<a href="javascript:yazdir('<%=webadresi%><%=klasor%>yazdir.asp?ID=<%=guvenlik(rs("ID"))%>')"><img border="0" src="<%=webadresi%><%=klasor%>tema/<%=tema%>/yazdir.gif"></a>
<a href="<%=webadresi%><%=klasor%>word.asp?ID=<%=rs("ID")%>">
<img border="0" src="images/word.gif" width="30" height="33"></a>
<a href="javascript:yorumekle('<%=webadresi%><%=klasor%>yorumekle.asp?ID=<%=guvenlik(rs("ID"))%>')"><img border="0" src="<%=webadresi%><%=klasor%>tema/<%=tema%>/yorumekle.gif"></a>
</td>
</table>
</td>
</tr>
<% else %><% end if %>
<tr>
<td><h1><%=guvenlik(rs("baslik"))%></h1><br /></td>
</tr>
<tr>
<td><%=rs("haber")%></td>
</tr>
<%
galeri_list = rs("galeri")
if galeri_list = "0" then
%>
<% else %>
<tr>
<td>
<br />
<%
set rst=server.createobject("adodb.recordset")
rst.open "resimler where galeri_id =" & galeri_list & " order by resim_id desc",mebsablon,1,3
%>
<%
Dim girdap
girdap = 0
Do While Not rst.Eof
girdap = girdap + 1
%>
<a href="<%=rst("resim_url")%>" rel="prettyPhoto[pp_gal]" title="<%=rst("resim_aciklama")%>"><img src="<%=rst("resim_url")%>" alt="<%=rst("resim_aciklama")%>" width="80" height="60" style="opacity:0.6; filter:alpha(opacity=60);" onmouseover="this.style.opacity=1.0; this.filters.alpha.opacity=100" onmouseout="this.style.opacity=0.6; this.filters.alpha.opacity=60"/></a>
<%
if girdap = 8 then
girdap = 0
%>
<br /><br />
<% else %><% end if %>
<%
rst.MoveNext
Loop
rst.close
%>
</td>
</tr>
<% end if %>
<% if puanlama = true then %>
<!-- Puanlama Başladı -->
<script language="Javascript">
function Puan() {
document.PuanForm.submit();
}
</script>
<form name="PuanForm" action="<%=webadresi%><%=klasor%>puan.asp" method=POST>
<input type="hidden" name="ID" value="<%=guvenlik(rs("ID"))%>">
<input type="hidden" name="ipno" value="<%=ipno%>">
<input type="hidden" name="tarih" value="<%=now()%>">
<tr>
<td align="left"><br />
<table border="0" width="585" id="table51" align="left">
<tr>
<td style="border:medium none #E5E5E5; " width="27"><img border="0" src="<%=webadresi%><%=klasor%>tema/<%=tema%>/dusukpuan.gif"></td>
<td style="border:medium none #E5E5E5; " width="20" align="right"><font size="1" face="Verdana" style="font-size: 8pt" color="#FF6600">
<input type="radio" value="1" name="puan" onClick="javascript:Puan();" style="font-family: Verdana; font-size: 10px">
</td>
<td style="border:medium none #E5E5E5; " width="8" align="left">1</td>
<td style="border:medium none #E5E5E5; " width="20" align="right">
<input type="radio" value="2" name="puan" onClick="javascript:Puan();" style="font-family: Verdana; font-size: 10px">
</td>
<td style="border:medium none #E5E5E5; " width="8" align="left">2</td>
<td style="border:medium none #E5E5E5; " width="20" align="right">
<input type="radio" value="3" name="puan" onClick="javascript:Puan();" style="font-family: Verdana; font-size: 10px">
</td>
<td style="border:medium none #E5E5E5; " width="8" align="left">3</td>
<td style="border:medium none #E5E5E5; " width="20" align="right">
<input type="radio" value="4" name="puan" onClick="javascript:Puan();" style="font-family: Verdana; font-size: 10px">
</td>
<td style="border:medium none #E5E5E5; " width="8" align="left">4</td>
<td style="border:medium none #E5E5E5; " width="20" align="right">
<input type="radio" value="5" name="puan" onClick="javascript:Puan();" style="font-family: Verdana; font-size: 10px">
</td>
<td style="border:medium none #E5E5E5; " width="8" align="left">5</td>
<td style="border:medium none #E5E5E5; " width="31">
<img border="0" src="<%=webadresi%><%=klasor%>tema/<%=tema%>/yuksekpuan.gif">
</td>
<td style="border:medium none #E5E5E5; " width="263" align="left">
<% if rs("puan")="" or rs("puan")=0 then %>
<b>Puan Yok</b></font> <b> <% else %></b><font style="font-size: 8pt; font-weight: 700">Bu
<%if rs("koseyazisi")=true then %>Yazıya<% else %>Habere<%end if%> Toplam <%=rs("puan")%></font>
Puan </font>Verildi<%end if%>
</td>
</tr>
</table>
</td>
</tr>
<!-- Puanlama Bitti -->
<% else %><% end if %>
<style>
/* IE icin */
q {
font-style:normal;
}
/* Safari ve Firefox icin */
html:not([dummy]) q {
font-style:normal;
}
blockquote {
border : 1px solid #fff;
width: 446px;
margin: 0px;
padding: 10px;
background-color: #fff;
quotes: "\201C" "\201D";
}
blockquote:before { content: open-quote; font-weight: bold; color:#cc0000; }
blockquote:after { content: close-quote; font-weight: bold;color:#cc0000; }
}
cite
{
font-size: 12px/1.7em;
padding-bottom:5px;
display:block;
text-align:left;
color:#cc0000;
text-decoration:none;
width:500px;
}
.yorum1 {
border : 1px solid #f0f0f0;
width: 96%;
margin: 0px;
padding: 10px;
background-color: #fff;
}
</style>
<tr>
<td>
<img src="images/makas.jpg" align="left">
</td>
</tr>
<% if yorum = true then %>
<tr>
<td>
<%
set rsyorum=server.createobject("adodb.recordset")
rsyorum.open "Yorum where yorumonay=true and ID = "&cint(ID)& " order by tarih desc",mebsablon,1,3
yorumsayisi = rsyorum.recordcount
%>
<br />
<h1>Yorumlar (<%=yorumsayisi%>)</h1>
<br />
<br />
<%
i=0
Do While Not rsyorum.Eof
i = i +1
%>
<div class="yorum1">
<b><%=rsyorum("gonderen")%></b> | <%=rsyorum("tarih")%>
<br />
<%=rsyorum("mesaj")%>
<br />
</div>
<br />
<%
rsyorum.MoveNext
Loop
rsyorum.Close
%>
</td>
</tr>
<% else %><% end if %>
</table>
</div>
</div>
<!--ICERIK-->
<!--#include file="meb_foother.asp"-->