📄 viewphonedetails.aspx
字号:
<%@ Page Explicit="True" Language="VB" Debug="True" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.sqlclient" %>
<!--#include file="config.aspx" -->
<!--#include file="checklogin.aspx" -->
<!--#include file="man_menu.aspx" -->
<!--#include file="updateHits.aspx" -->
<!--#include file="ratings.aspx" -->
<Script Runat="Server">
public man_name1
Sub Page_Load( s As Object, e As EventArgs )
call checkstatus
if session("useriD")="" then
btnlogin.text="login"
end if
'if request.QueryString("man_ID")="" then
'response.Redirect("index.aspx")
'end if
If Not isPostBack Then
call fillmanu
ViewState("Start") = 0
if session("useriD")="" then
btnlogin.text="login"
end if
End If
call checkman
call manLogo
call showDetails
call updateHIts
call disprating
End Sub
sub checkman
call dbcon
mcmd=new sqlcommand("select phoneid,man_id from phone_details where phoneID='" & request.QueryString("phoneID") & "' and man_id=(select man_id from manufacturer where man_name='" & request.QueryString("man_name") & "')" ,bcon)
bcon.open
dr=mcmd.executereader
If dr.HasRows = False Then
session("invalidreq")="yes"
response.Redirect("requesterror.aspx")
End If
bcon.close
end sub
sub showDetails
call dbcon
bcmd=new sqlcommand("select phoneID,network,phone_details.man_ID,date_pub,status,dimension,weight,Disp_type,Disp_size,rng_type,custamization,vibration,phn_book,call_rec,card_slot,GPRS,HSCSD,EDGE,status_3g,WLAN,Blootooth,Infrared,USB,OS,Messeging,Browser,Clock,Games,Colors,Lang_stat,Camara,Other_features,Bat_type,Bat_standby,bat_talk,Hits,Price,Quantity,Reorder_lvl,BigImg,Smallimg,Thumnail,man_name from phone_Details,manufacturer where phone_details.man_Id=manufacturer.man_iD and phoneID= '" & cstr(request.querystring("phoneID")) & "'",bcon)
bcon.open
objreader=bcmd.executereader
objreader.read
end sub
sub addtocart(sender As Object, e As System.Web.UI.ImageClickEventArgs)
dim prodID,man_name,transID,secID as string
secID=session("secCode")
transID=cstr(session.SessionID)
prodID=request.QueryString("phoneID")
man_name=request.QueryString("man_name")
if session("userID")="" then
response.redirect("login.aspx")
else
Response.Redirect("addtocart.aspx?phoneID=" & _
ProdID & "&man_Name=" &man_name & "&transID=" &transID & "&secCode=" &secID)
end if
end sub
public hits as string
</script>
<html >
<head>
<title>GSM LANKA-View Phone Details</title>
<link href="stylesheet1.css" rel="stylesheet1" type="text/css" />
<SCRIPT language=JavaScript
src="javascript.js"></SCRIPT>
<style type="text/css">
<!--
.borderTable {padding: 0px 0px 0px 0px;
border: 1px solid #cccccc;
}
.borderTable {padding: 0px 0px 0px 0px;
border: 1px solid #CCCCCC;
}
-->
</style>
<link href="stylesheet1.css" rel="stylesheet1" type="text/css" />
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
<link href="stylesheet1.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {TEXT-TRANSFORM: capitalize; COLOR: #336699; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none; font-size: 11px;}
.style3 {font-weight: bold}
-->
</style>
</head>
<body><form runat="server">
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="800" height="32" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="307" height="4"></td>
<td width="493"></td>
</tr>
<tr>
<td height="28" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="imagenew/up_serch_ban.jpg">
<!--DWLayoutTable-->
<tr>
<td width="153" height="28"> </td>
<td width="150" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="157" height="28"><font color="#336699">
<asp:TextBox ID="txtSearch" Columns="6" width="104px" runat="server" TextMode="SingleLine" />
<asp:Button ID="btnSearch" Text="Go" Width="32" runat="server" />
</font></td>
</tr>
</table></td>
<td width="4"> </td>
</tr>
</table></td>
<td><table width="100%" height="28" border="0" align="center" cellpadding="0" cellspacing="0" background="imagenew/up_ban.jpg" bgcolor="#FFCC00">
<!--DWLayoutTable-->
<tr>
<td width="52" height="28"
align="center" valign="middle" nowrap="nowrap" class="navtopdark1"
onclick="jump(this)" onMouseOver="colorOnTop(this)" onMouseOut="colorOffTop(this)"><a class="toplink"
href="index.aspx"><span class="style1">Home</span></a></td>
<td width="55"
align="center" valign="middle" nowrap="nowrap" class="navtopdark1"
onclick="jump(this)" onMouseOver="colorOnTop(this)" onMouseOut="colorOffTop(this)"><a class="toplink"
href="signup.aspx"><span class="style1">Register</span></a></td>
<td width="58"
align="center" valign="middle" nowrap="nowrap" class="navtopdark1"
onclick="jump(this)" onMouseOver="colorOnTop(this)" onMouseOut="colorOffTop(this)"><a class="toplink"
href="forum.aspx"><span class="style1">Forums</span></a></td>
<td width="72"
align="center" valign="middle" nowrap="nowrap" class="navtopdark1"
onclick="jump(this)" onMouseOver="colorOnTop(this)" onMouseOut="colorOffTop(this)"><a class="toplink"
href="orderstatus.aspx"><span class="style1">Track Order </span></a></td>
<td width="66"
align="center" valign="middle" nowrap="nowrap" class="navtopdark1"
onclick="jump(this)" onMouseOver="colorOnTop(this)" onMouseOut="colorOffTop(this)"><a class="toplink"
href="multimedia.aspx">Multimedia</a></td>
<td width="42"
align="center" valign="middle" nowrap="nowrap" class="navtopdark1"
onclick="jump(this)" onMouseOver="colorOnTop(this)" onMouseOut="colorOffTop(this)"><a class="toplink"
href="faq.aspx"><span class="style1">Faq</span></a></td>
<td width="50"
align="center" valign="middle" nowrap="nowrap" class="navtopdark1"
onclick="jump(this)" onMouseOver="colorOnTop(this)" onMouseOut="colorOffTop(this)"><a class="toplink"
href="about.aspx"><span class="style1">About</span></a></td>
<td width="80"
align="center" valign="middle" nowrap="nowrap" class="navtopdark1"
onclick="jump(this)" onMouseOver="colorOnTop(this)" onMouseOut="colorOffTop(this)"><a class="toplink"
href="contact.aspx"><span class="style1">Contact Us </span></a></td>
<td width="18"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="799" border="0" align="center" cellpadding="0" cellspacing="0" class="border4">
<!--DWLayoutTable-->
<tr>
<td width="7" height="7"></td>
<td width="783"></td>
<td width="7"></td>
</tr>
<tr>
<td height="134"></td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="imagenew/main_ban.jpg">
<!--DWLayoutTable-->
<tr>
<td width="783" height="134" valign="top"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="783" height="134" title="Banner">
<param name="movie" value="Flash Banner/banner.swf">
<param name="quality" value="high">
<embed src="Flash Banner/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="783" height="134"></embed>
</object></td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td height="8"></td>
<td></td>
<td></td>
</tr>
</table>
<table width="799" border="0" align="center" cellpadding="0" cellspacing="0" class="border4">
<!--DWLayoutTable-->
<tr>
<td width="7" height="18"></td>
<td width="783" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="783" height="18"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="f3f3f3">
<!--DWLayoutTable-->
<tr>
<td width="203" height="24" valign="middle">You are logged in as
<asp:Label ID="lblusertext" runat="server" Text='Guest' Font-Bold="true" /></td>
<td width="203"> </td>
<td width="377" align="right" valign="middle"><span class="style3">
<asp:LinkButton ID="btnViewprof" Text="View Profile" runat="server" />
<asp:LinkButton runat="server" id="showcart" OnClick="viewthecart" />
<asp:linkButton ID="btnlogin" onclick="sign" runat="server" />
</span></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="7"></td>
</tr>
<tr>
<td height="9"></td>
<td></td>
<td></td>
</tr>
</table>
<table width="799" border="0" align="center" cellpadding="0" cellspacing="0" class="border4">
<!--DWLayoutTable-->
<tr>
<td width="7" height="769"></td>
<td width="783" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="96" rowspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="108"
height="143" valign="top"><asp:DataList id="phnlist"
cellpadding=0 cellspacing=0
RepeatColumns="0"
RepeatDirection="Vertical"
Width="100%" DataKeyField="man_ID"
OnItemCommand="Selectphn"
Runat="Server">
<itemtemplate>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="border6">
<!--DWLayoutTable-->
<td width="100"
height="18" valign="middle" class="navtendark"
onclick="jump(this)" onMouseOver="colorOn(this)" onMouseOut="colorOff(this)"><a class="leftlink"
> <span class="style1">»</font></strong></font>
<asp:LinkButton
cssclass="style1"
Text='<%# Container.DataItem("man_name") %>'
CommandArgument='<%# Container.DataItem("man_name") %>'
Runat="Server"/>
</span> </a> </td>
</table>
</itemtemplate>
</asp:datalist></td>
</tr>
<!--DWLayoutTable-->
</table></td>
<td width="10" height="18"></td>
<td colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="403" height="18" valign="middle" background="imagenew/detailview_bk_.gif" class="redfont"><%= request.QueryString("man_name") %>: <%= request.QueryString("phoneID") %> </td>
<td width="92"></td>
<td width="82" valign="top"><img src="<%= manPic %>"/></td>
</tr>
</table></td>
<td width="6" rowspan="4" valign="top"><!--DWLayoutEmptyCell--> </td>
<td width="96" rowspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#eeeeee">
<!--DWLayoutTable-->
<tr>
<td width="102" height="675"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="2"></td>
<td width="153"></td>
<td width="6"></td>
<td width="420"></td>
</tr>
<tr>
<td height="115"> </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -