<!--#include file="sifre.asp"-->
<% 
	if Request.QueryString("sil")="eminim" and Request.QueryString("id")<>"" then
		rs.open "delete * from urun where id="&Request.QueryString("id") , baglantim ,1,3
	end if 
%>


<table width="100%" border="0" cellpadding="0" cellspacing="0" id="Table_01">
  <tr>
    <td colspan="3" bgcolor="#FFFFFF"><table width="100%" border="0" >
        <tr>
    <td width="70"><div align="center"><strong>Resim</strong></div></td>
    <td width="974"><div align="left" style="font-weight: bold">&Uuml;r&uuml;n K&#305;sa &Ouml;zeti </div></td>
    <td width="80"><div align="center"><strong>G&ouml;ster</strong></div></td>
    <td width="70"><div align="center"><strong>&#304;&#351;lemler</strong></div></td>
  </tr>
  <tr>
    <td colspan="4"><img src="../tema/<%=sitetema%>/bg_cizgi.gif" width="100%" height="11"></td>
  </tr>
        <% 	
if skodu<>"" then
	sorgum="Select * from Urun where skodu="&skodu&" order by id desc"
else
	sorgum="Select * from Urun order by id desc"
end if

if askodu<>"" then
	sorgum="Select * from Urun where skodu like '%"&skodu&"%'"
end if
rs.Open Sorgum, Baglantim, 1, 3  
	if rs.eof or rs.bof then 
		Response.Write("<td>Kayit Bulunmadi</td></tr></table>  ")
	else
	    shf = Request.QueryString("shf")
		if shf="" then shf=1 end if %>
        <% rs.pagesize = 10 
		   rs.absolutepage = shf
		   cellcolor="#FFFFFF"
		   sayfa = rs.pagecount
	  									
		   for i=1 to 5
			  if rs.eof then exit for 
			  If i mod 2 Then  
		       Response.Write("")
			  End If  %>
        <tr><td colspan="4" > 
		<table width="100%" border="0" cellpadding="3" cellspacing="0"
				  onmouseover="this.style.backgroundColor='#f7f5c4';" 
				  onmouseout="this.style.backgroundColor='#FFFFFF';">
          <tr >
            <td width="70"><div align="center" style="cursor:hand;">
           <a onClick="yenipencere('/urunler-<%= rs("id")%>-<%=cevir(rs("adi"))%>.html',700,400)">
		     <% if Rs("resim")<>"" then  %>
               <img src="../<%=Rs("resim")%>" width="70" border="0"  height="70"> 
              <% else %>
              <img src="../images/urunyok.jpg" width="70" height="70" border="0">
              <% end if %></a>
            </div></td>
            <td width="974" valign="top"><p><%= Rs("adi") %></p>
              <p><%= Rs("aciklama") %></p>
              <p>
              <%firmabul(rs("fkodu")) %>
            </p></td><td width="80">
              <div align="left">
                <%if rs("goster")=true then%>
                  <img src="images/true.gif" />
                  <%else%>
                  <img src="images/false.gif" />
                  <%end if%>
                </div></td>
            <td width="60"><div align="center"><img src="images/detay.jpg" onclick="yenipencere('/urunler-<%= rs("id")%>-<%=cevir(rs("adi"))%>.html',700,400)" style="cursor:hand;" /><br />
               <br />
              <a href="?sil=eminim&amp;id=<%= rs("id") %>" onclick="return confirm('Dikkat! &Uuml;r&uuml;n Tamamen Silinecektir.')"><img src="images/sil.jpg"  border="0" /></a></div></td>
          </tr>
        </table>
	<hr/>	
		
		
		
		</td>
        <%	rs.movenext
			next %>
      </tr>
    </table>
        <div align="center">
		        <p class="mc">
                         <%for y=1 to sayfa 
							if cint(shf)=cint(y) then %>
						 	<strong>[<%= y %>]</strong>
							<% else %>
				 			 <a href="?sayfa=urun&shf=<%= y %>"><%= y %></a>	
							<% end if
		                 next %> </p>
        
        </div>
      <% end if %>
    </td>
  </tr>
</table>
