gnopaste
Sorry for this ugly message. We are searching for some translators.
Please take a look here
Thanks to all translators, you're doing a great job!
Userdata
Name
reporter
Scriptlanguage
VB
Tabwidth
4
Date
08/03/2009 11:37:41 am
IP
62.154.152.196
Description
A suggenstion for http://www.selfhtml.de/forum/zeigebeitrag_7_128802__0.php
Code (
Hide rownumbers
)
<%
On
Error
Resume
Next
agruppe = request("agr")
Set
DataConn = Server.CreateObject("ADODB.Connection")
'DataConn.Open Application("db_name")
DBPath = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("./Ordner/Datei.mdb")
DataConn.
Open
DBPath
Set
rsgruppe = DataConn.Execute("
select
Bezeichnung from Artikelgruppen where Artikelgruppe=
'" & agruppe & "'")
grbezeichnung = rsgruppe(0)
rsgruppe.
close
()
sqlCommand = "
select
* from artikel where Artikelgruppe=
'" & agruppe & "' order by Artikelnummer"
set
rs = DataConn.Execute(sqlCommand)
anzahlspalten = 4
%>
<form
name
="itemsform">
<div align="center">
<center>
<table border="0" width="500">
<tr>
<%
ProductNumber = 1
Do
While
Not
rs.EOF
artikel = rs("artikelnummer")
stichwort = rs("stichwort")
stichwort = stichwort & ""
if
stichwort = ""
then
stichwort = " "
end
if
bezeichnung = rs("bezeichnung")
bez2 = stichwort
pos = InStr(bez2, chr(34))
while
pos > 0
bez2 = mid(bez2, 1, pos - 1) & mid(bez2, pos + 1,
len
(bez2))
pos = InStr(bez2, chr(34))
wend
pos = InStr(bez2, "
'")
while
pos > 0
bez2 = mid(bez2, 1, pos - 1) & mid(bez2, pos + 1,
len
(bez2))
pos = InStr(bez2, "
'")
wend
preis = rs("Preis")
pos = InStr(preis, ",")
if
pos = 0
then
preis = preis & ",00"
else
if
(
len
(preis) - pos) = 1
then
preis = preis & "0"
end
if
end
if
pos = InStr(preis, ",")
if
pos > 0
then
p2 = Mid(preis, 1, pos - 1) & "." & Mid(preis, pos + 1)
else
p2 = preis
end
if
if
InStr(p2, ".") = 0
then
p2 = p2 & ".00"
end
if
ProductNumber = ProductNumber + 1
%>
<td width="<%= anzahlspalten %>" height="180">
<%
If
len
(rs("picture")) > 0
then
%>
<a href="detail.asp?art=<%=artikel%>&pic=<%=rs("picture")%>" target="Oben"><img src="artimages/<%=rs("picture")%>t.jpg" alt="vergrößern" border="0"><img src="artimages/fuell.gif" width="1" height="50" border="0"><span class="es">Details</span></a>
<%
else
%>
<img src="artimages/fuell.gif" width="1" height="50" border="0">
<%
End
If
%>
<br>
<%
If
(ProductNumber
MOD
anzahlspalten)
then
%>
<tr>
<td colspan="<%= anzahlspalten %>"><hr></td>
</tr>
<tr>
<%
End
If
%>
<%
rs.movenext
loop
%>
<%
if
(rs.EOF
and
(ProductNumber
MOD
anzahlspalten))
then
%>
<td width="<%= anzahlspalten %>"></td>
<td width="<%= anzahlspalten %>"></td>
</tr>
<%
else
%>
<tr>
<td width="<%= anzahlspalten %>"></td>
</tr>
<%
End
If
%>
submitter »
gnopaster
|
imprint
« imprint
»
Terms of use
«