|
|
|
แปลงโค้ด php เป็น asp ให้หน่อยคับ ต้องการใช้จิง ขอบคุณคับ |
|
|
|
|
|
|
|
Code (ASP)
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<style>
table.model_show td{
padding:30px;
text-align:center;
}
table.model_show input{
width:auto;
cursor:pointer;
}
</style>
<!--#include file="config.inc.asp"-->
<%
If Request.QueryString("ID") <> "" Then
sql = "select ID, CONCAT(TFName,' ',TLName) as TName ,NickN,DeptName, TitleName from tb_contest"
Set result = Conn.Execute(sql)
max_col = 3
max_row = 5
col_amount = 1
Response.write "<table class=""model_show"">"
While NOT result.EOF
If CInt(col_amount) =1 Then
Response.write "<tr>"
Response.write "<td><img src=images/idol_" & result["ID"] & ".jpg><br>"
Response.write result["TName"] & " (" & result["NickN"] & ")<br>" & result["DeptName"] & "<br><br>"
Response.write "<input type=button alt=ดูรายละเอียดของคุณ" & result["TName"] & " title=ดูรายละเอียดของคุณ " & result["TName"] & " onclick=""location='detail.php?ID=" & result["ID"] & "'"" value=ดูรายละเอียดและโหวต></td>"
col_amount = $col_amount + 1
If $col_amount > $max_col Then
Response.write "</tr>"
col_amount = 1
End IF
result.MoveNext
Wend
Response.write "</table>"
End IF
%>
|
|
|
|
|
Date :
2010-09-15 16:16:55 |
By :
webmaster |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ขอบคุณคับ
|
|
|
|
|
Date :
2010-09-15 16:20:58 |
By :
zero113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|