Thursday, March 18, 2010

addhandsetkeyfeatures



<%
if session("isadminloggedin")=true then
userid = 1
end if
conn.open MyDsn
Manufacturer = Request.Form("manufact")
HandsetId = Request.Form("phName")
HandsetKeyFeatures = Replace(Request.Form("ph_key"), "'", "''")

If Request.Form("submit") <> "" Then
sql="Exec [dbo].[USP_AddUpdHandsetKeyFeatures] 1,"& HandsetId &",'"& HandsetKeyFeatures &"','" & userid & "',1"
msg="Handset KeyFeatures added successfully for handset id= "& HandsetId
conn.execute sql
End if
%>
Admin Pannel :







<%=msg%>



Add
New Phone
















Manufacturer
Handset name
<%
if Request.form("manufact") <>"" then
sqlPHn="select distinct ph_id, ph_name from saf_phone where ph_id not in (select handsetId from tblHandsetKeyFeatures where manufacturer = '"& manufacturer &"') and manufacturer='"&Request.form("manufact")&"' order by ph_name asc"
else
sqlPHn="select distinct ph_id,ph_name from saf_phone where ph_Id=0"
end if
set rsPhn=conn.execute(sqlPHn)
%>
Phone KeyFeatures
 

  

<%conn.close%>

<% set conn = nothing %>

No comments:

Post a Comment