<% Server.ScriptTimeout = 100 varProductIDNumber = request.querystring("ProductID") 'response.write varProductIDNumber %> <% sDOMAIN = Request.ServerVariables("SERVER_NAME") aParts = Split(sDOMAIN, ".") sDOMAINSUFFIX = aParts(UBound(aParts)) IF sDOMAINSUFFIX = "com" THEN sPATH = Request.ServerVariables("URL") sQUERY = Request.ServerVariables("QUERY_STRING") If sQUERY = "" Then rURL = "http://www.spanglecat.co.uk" & sPATH Response.Status = "301 Moved Permanently" Response.AddHeader "Location", rURL Response.End ELSE rURL = "http://www.spanglecat.co.uk" & sPATH & "?" & sQUERY Response.Status = "301 Moved Permanently" Response.AddHeader "Location", rURL Response.End END IF ELSE END IF %> <!-- #include file="adovbs.inc" --> <!-- #include file="connection.inc" --><% varCategory = request.querystring("Category") varProductIDNumber = request.querystring("ProductID") varSubCategory = request.querystring("SubCategory") strSQL = "SELECT * FROM Products WHERE CategoryID = " &varCategory &" AND ProductID=" &varProductIDNumber &" order by ProductCode" IF varProductIDNumber > "0" THEN Set objRS = Server.CreateObject("ADODB.RecordSet") objRS.Open strSQL, objConn objRS.MoveFirst response.write objRS("Description") response.write " " END IF IF varCategory = "6" THEN response.write "Crystal Bracelets – Diamante Bracelets – Crystal Bangles – " ELSEIF varCategory = "1" THEN response.write "Crystal Belly Jewellery and Belly Bars – " ELSEIF varCategory = "14" THEN response.write "Crystal Brooches – " ELSEIF varCategory = "3" THEN response.write "Crystal and Diamante Earrings – Pierced & Clip On Earrings – " ELSEIF varCategory = "7" THEN response.write "Hair Accessories – " ELSEIF varCategory = "9" THEN response.write "Handbag Charms – " ELSEIF varCategory = "11" THEN response.write "Miscellaneous - Business Card Holders – Purses and Anklets – " ELSEIF varCategory = "12" THEN response.write "Crystal Necklaces and Pendants – Diamante Necklaces – Wedding Necklace – " ELSEIF varCategory = "2" THEN response.write "Bridal and Wedding Jewellery - Crystal and Diamante Necklaces – Necklace Set – " ELSEIF varCategory = "5" THEN response.write "Nose Studs – Nose Jewellery – " ELSEIF varCategory = "8" THEN response.write "Phone Charms – Crystal Mobile Phone Charms – " ELSEIF varCategory = "16" THEN response.write "Sterling Silver Rings and Jewellery Rings – " ELSEIF varCategory = "15" THEN response.write "Toe Rings – " ELSEIF varCategory = "4" THEN response.write "Tongue Bars – " ELSEIF varCategory = "13" THEN response.write "Fashion Crystal Watch - Fashion Watches – " ELSEIF varCategory = "20" THEN response.write "Bracelet Gems & Glass – " ELSEIF varCategory = "18" THEN response.write "Diamante Tiara - Tiaras - Hairbands – " ELSEIF varCategory = "17" THEN response.write "Christmas Jewellery - Xmas Jewellery – " ELSEIF varCategory = "21" THEN response.write "Sale Items - £5 & Less – " ELSE END IF %> Spanglecat <% IF varProductIDNumber > "0" THEN %> "> <% objRS.Close Set objRS = Nothing END IF %>
 

About Us

Shop

Contact Us

Home

   Wish list  Check Out  Basket

<% varCategory = request.querystring("Category") %> <% strSQL = "SELECT * FROM SubCategory WHERE CategoryID = " &varCategory &" Order by SubCategory" 'response.write strSQL Set objRS = Server.CreateObject("ADODB.RecordSet") objRS.Open strSQL, objConn ON ERROR RESUME NEXT objRS.MoveFirst Do While Not objRS.EOF %> <% objRS.MoveNext Loop objRS.Close Set objRS=nothing %>
&SubCategory=<%=objRS("SubCategoryID")%>"><% response.write objRS("SubCategory") %>

 

Buy With Confidence
using our Secure Servers
with 128 BIT encryption.

<% varNext = request.querystring("Next") varNextNumber = 0 varNextNumber = request.querystring("NextNumber") + 1 'response.write varNextNumber varMyNumber = request.querystring("ProductID") 'response.write varMyNumber varMove0 = request.querystring("Move") IF varMove0 = "" or varMove0 = "0" THEN varMove = "0" Else varMove = varMove0 End If 'response.write varMove ' THIS IS FOR THE IMAGE FUNCTION FURTHER DOWN '============================================ dim fso Set fso=Server.CreateObject("Scripting.FileSystemObject") IF varNext = "Yes" Then strSQL = "SELECT * FROM Products WHERE CategoryID = " &varCategory &" AND display='yes' order by ProductCode" Set objRS = Server.CreateObject("ADODB.RecordSet") objRS.Open strSQL, objConn objRS.Move varNextNumber -1 ELSE IF varMyNumber = "0" THEN strSQL = "SELECT * FROM Products WHERE CategoryID = " &varCategory &" AND display='yes' order by ProductCode" Set objRS = Server.CreateObject("ADODB.RecordSet") objRS.Open strSQL, objConn objRS.MoveFirst ELSE IF varMyNumber = "" THEN strSQL = "SELECT * FROM Products WHERE CategoryID = " &varCategory &" AND display='yes' order by ProductCode" Set objRS = Server.CreateObject("ADODB.RecordSet") objRS.Open strSQL, objConn objRS.Move varMove ELSE strSQL = "SELECT * FROM Products WHERE CategoryID = " &varCategory &" AND ProductID=" &varMyNumber &" AND display='yes' order by ProductCode" Set objRS = Server.CreateObject("ADODB.RecordSet") objRS.Open strSQL, objConn objRS.MoveFirst END IF END IF END IF 'response.write strSQL 'response.write objRS("ProductID") ' FUNCTION TO STOP ERRORS WHEN THERE IS NO NEXT 9 If objRS.EOF Then response.write "


Sorry - There are no more products in this category.
" response.write "Please click your back button or select another category
" objRS.Close Set objRS=nothing objConn.Close ' CLOSE THE IMAGE FUNCTION '========================= Set fso = nothing response.end ELSE END IF varPhotoNumber = objRS("ProductID") %>

<% End If %>

<%=objRS("Description")%>

','<%=objRS("Description")%>')"> a.JPG" width="319" style="border: 1px solid #000000" alt="CLICK ME to view a bigger photo">

<%=objRS("Description")%>
<%=objRS("Notes")%> Available in <% varColour = objRS("Colour") varColour = replace(varColour, "," , " ") response.write varColour %>

<% strImgPath = "e:\domains\s\spanglecat.co.uk\user\htdocs\Products\" & objRS("ProductID") &"b.jpg" 'strImgPath = "D:\s\p\spanglecat\www\Products\" & objRS("ProductID") &"b.jpg" blnImgExists = fso.FileExists(strImgPath) 'response.write strImgPath 'response.write blnImgExists IF blnImgExists = "True" THEN %> b.jpg','<%=objRS("Description")%>')"> b.JPG" width="103" ONMOUSEOVER="hiLite('Pic000','nav3')" ONMOUSEOUT="hiLite('Pic000','nav3a')" style="border: 1px solid #000000" alt="CLICK ME to view a bigger photo">

<% ELSE END IF %> <% strImgPath = "e:\domains\s\spanglecat.co.uk\user\htdocs\Products\" & objRS("ProductID") &"c.jpg" 'strImgPath = "D:\s\p\spanglecat\www\Products\" & objRS("ProductID") &"c.jpg" blnImgExists = fso.FileExists(strImgPath) 'response.write strImgPath 'response.write blnImgExists IF blnImgExists = "True" THEN %> c.jpg','<%=objRS("Description")%>')"> c.JPG" width="103" ONMOUSEOVER="hiLite('Pic000','nav4')" ONMOUSEOUT="hiLite('Pic000','nav4a')" style="border: 1px solid #000000" alt="CLICK ME to view a bigger photo">

<% ELSE END IF %> <% strImgPath = "e:\domains\s\spanglecat.co.uk\user\htdocs\Products\" & objRS("ProductID") &"d.jpg" 'strImgPath = "D:\s\p\spanglecat\www\Products\" & objRS("ProductID") &"d.jpg" blnImgExists = fso.FileExists(strImgPath) 'response.write strImgPath 'response.write blnImgExists IF blnImgExists = "True" THEN %> d.jpg','<%=objRS("Description")%>')"> d.JPG" width="103" ONMOUSEOVER="hiLite('Pic000','nav5')" ONMOUSEOUT="hiLite('Pic000','nav5a')" style="border: 1px solid #000000" alt="CLICK ME to view a bigger photo"> <% ELSE END IF %> <% varAuthorised = Request.Cookies("SpangleCat")("Authorised") 'response.write varAuthorised If varAuthorised = "True" Then varPrice = objRS("TradePrice") Else varPrice = objRS("CostPrice") End If %>
Price: £<%=varPrice%>
<% varSpecial = objRS("SpecialPrice") If varSpecial = "" Then Else response.write "In Special Offers this item is only £" &varSpecial &"" End If %>
<% 'response.write objRS("Stock") varStockLeft = objRS("Stock") IF objRS("Stock") < 1 Then Response.Write "

Sorry this item is currently out of stock.

" Else %>
Name Size Colour Qty
<%=objRS("Description")%> 
   

- ' + document.itemsform.size.options[document.itemsform.size.selectedIndex].text + ' ' + document.itemsform.colour.options[document.itemsform.colour.selectedIndex].text + '','<%=objRS("ProductID")%>','<%=varPrice%>',document.itemsform.Qty1.value,'<%=varStockLeft%>')" vspace="1" alt="Add to Basket" hspace="2">

','7')" src="images/add_to_wishlist.gif" width="49" height="20" vspace="1" alt="Add to Wishlist">

<% varDisplay10 = 0 strSQL = "SELECT * FROM Products WHERE CategoryID = " &varCategory &" AND display='yes' order by ProductCode" Set objRS = Server.CreateObject("ADODB.RecordSet") objRS.Open strSQL, objConn 'response.write strSQL IF objRS.EOF = "True" THEN Response.write "
Sorry no more products available

" ELSE END IF %>
<% varMyNumber = request.querystring("ProductID") 'response.write varMyNumber response.write "" objRS.Move varMove varProductID = objRS("ProductID") Do While Not varDisplay10 = "9" If objRS.EOF Then %>
<% If varMove >= 9 Then %>

< PREVIOUS 9   

<% End If %>
<% response.end Else End If varDisplay10 = varDisplay10 + 1 'response.write varDisplay10 response.write "" 'PUT TABLE RESULTS HERE varAuthorised = Request.Cookies("SpangleCat")("Authorised") 'response.write varAuthorised If varAuthorised = "True" Then varPrice = objRS("TradePrice") Else varPrice = objRS("CostPrice") End If %>

&Category=<%=varCategory%>&Move=<%=varMove%>"> a.jpg" width="131" border="0">

£<%=varPrice%>

<% response.write "" IntCount = IntCount+1 if IntCount=3 Then Response.Write "" IntCount = 0 End If %> <% objRS.MoveNext Loop objRS.Close Set objRS=nothing objConn.Close ' CLOSE THE IMAGE FUNCTION '========================= Set fso = nothing %>

< <% IF varMove < 9 THEN %> PREVIOUS 9  <% ELSE %> PREVIOUS 9  <% END IF %>   NEXT 9 ITEMS >