BlackReef
08-14-2010, 12:35 AM
Hello,
So, I have been playing around with this for awhile now, trying to move snippets of .asp code around to try and reorganize these 'option' boxes.
Basically, there are (2) product option dropdown boxes. Currently these are located above the 'Add to Cart' are. We are trying to align them so they are horizontally flush with the add to cart.
Please see examples below:
Currently:
http://blackreefdesigns.com/misc/example.jpg
And the way we are trying to get it:
http://blackreefdesigns.com/misc/example1.jpg
Any time we make changes - it prompts an .ASP error, and my custom .ASP programmer is out of town for the next week.
Is this relatively simple to do, or is this going to take some time?
Here is the code:
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' START: Options (N)
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Public Sub pcs_OptionsN
' SELECT DATA SET
' TABLES: products, pcProductsOptions, optionsgroups, ptions_optionsGroups
query = "SELECT DISTINCT optionsGroups.OptionGroupDesc, pcProductsOptions.idOptionGroup, pcProductsOptions.pcProdOpt_Required, pcProductsOptions.pcProdOpt_Order "
query = query & "FROM products "
query = query & "INNER JOIN ( "
query = query & "pcProductsOptions INNER JOIN ( "
query = query & "optionsgroups "
query = query & "INNER JOIN options_optionsGroups "
query = query & "ON optionsgroups.idOptionGroup = options_optionsGroups.idOptionGroup "
query = query & ") ON optionsGroups.idOptionGroup = pcProductsOptions.idOptionGroup "
query = query & ") ON products.idProduct = pcProductsOptions.idProduct "
query = query & "WHERE products.idProduct=" & pidProduct &" "
query = query & "AND options_optionsGroups.idProduct=" & pidProduct &" "
query = query & "ORDER BY pcProductsOptions.pcProdOpt_Order, optionsGroups.OptionGroupDesc;"
set rs=server.createobject("adodb.recordset")
set rs=conntemp.execute(query)
if err.number<>0 then
call LogErrorToDatabase()
set rs=nothing
call closedb()
response.redirect "techErr.asp?err="&pcStrCustRefID
end if
' If we have data
if NOT rs.eof then
pcv_intOptionGroupCount = 0 '// keeps count of the number of options
xOptionsCnt = 0 '// keeps count of the number of required options
do until rs.eof
'if pcv_intOptionGroupCount <= 5 then ' // start limit to 5 options
'// Get the Group Name
pcv_strOptionGroupDesc=rs("OptionGroupDesc")
'// Get the Group ID
pcv_strOptionGroupID=rs("idOptionGroup")
'// Is it required
pcv_strOptionRequired=rs("pcProdOpt_Required")
'// Start: Do Option Count
pcv_intOptionGroupCount = pcv_intOptionGroupCount + 1
'// End: Do Option Count
'// Get the number of the Option Group
pcv_strOptionGroupCount = pcv_intOptionGroupCount
'// Start: Do Required Option Count AND generate validation string
if IsNull(pcv_strOptionRequired) OR pcv_strOptionRequired="" then
pcv_strOptionRequired=0 '// not required // else it is "1"
end if
if pcv_strOptionRequired=1 then
' Keep Tally
xOptionsCnt = xOptionsCnt + 1
' Generate String
if xOtionrequired="1" then
pcv_strReqOptString = pcv_strReqOptString & ","
end if
xOtionrequired="1"
pcv_strOptionGroupDesc2=pcv_strOptionGroupDesc
pcv_strOptionGroupDesc2=replace(pcv_strOptionGroupDesc2,"'","")
pcv_strOptionGroupDesc2=replace(pcv_strOptionGroupDesc2,"""","\'\'")
pcv_strReqOptString = pcv_strReqOptString & "document.additem.idOption" & pcv_strOptionGroupCount & ".selectedIndex,'"& pcv_strOptionGroupDesc2 &"'"
end if
'// End: Do Required Option Count
'// Make the Option Box
pcs_makeOptionBox
'end if ' // end limit to 5 options
rs.movenext
loop
end if
set rs=nothing
%>
<input type="hidden" name="OptionGroupCount" value="<%=pcv_intOptionGroupCount%>">
<%
End Sub
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END: Options (N)
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' START: Options Box
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Public Sub pcs_makeOptionBox
' SELECT DATA SET
' TABLES: options_optionsGroups, options
query = "SELECT options_optionsGroups.InActive, options_optionsGroups.price, options_optionsGroups.Wprice, "
query = query & "options_optionsGroups.idoptoptgrp, options.idoption, options.optiondescrip "
query = query & "FROM options_optionsGroups "
query = query & "INNER JOIN options "
query = query & "ON options_optionsGroups.idOption = options.idOption "
query = query & "WHERE options_optionsGroups.idOptionGroup=" & pcv_strOptionGroupID &" "
query = query & "AND options_optionsGroups.idProduct=" & pidProduct &" "
query = query & "ORDER BY options_optionsGroups.sortOrder, options.optiondescrip;"
set rs2=server.createobject("adodb.recordset")
set rs2=conntemp.execute(query)
if err.number<>0 then
call LogErrorToDatabase()
set rs2=nothing
call closedb()
response.redirect "techErr.asp?err="&pcStrCustRefID
end if
' If we have data
if NOT rs2.eof then
'// clean up the option group description
if pcv_strOptionGroupDesc<>"" then
pcv_strOptionGroupDesc=replace(pcv_strOptionGroupDesc,"""",""")
end if
'// START SELECT
pcv_isOptionSelected="" '// Is this option box selected? Fill variable to "1" during the following loop.
%>
<div><%=pcv_strOptionGroupDesc%>:</div>
<select name="idOption<%=pcv_strOptionGroupCount%>" style="margin-top: 3px;">
<%
'// Only execute when the Remove Option Feature is activated.
if pcv_strRemoveFeature<>"1" then %>
<option value=""><%=dictLanguage.Item(Session("language")&"_viewPrd_61")%></option>
<% end if %>
<%
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' Start Loop
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
do until rs2.eof
OptInActive=rs2("InActive") ' Is it active?
if IsNull(OptInActive) OR OptInActive="" then
OptInActive="0"
end if
dblOptPrice=rs2("price") '// Price
dblOptWPrice=rs2("Wprice") '// WPrice
intIdOptOptGrp=rs2("idoptoptgrp") '// The Id of the Option Group
intIdOption=rs2("idoption") '// The Id of the Option
strOptionDescrip=rs2("optiondescrip") '// A description of the Option
'**************************************************************************************************
' START: Dispay the Options
'**************************************************************************************************
if OptInActive="0" then
If session("customerType")=1 then
optPrice=dblOptWPrice
Else
optPrice=dblOptPrice
End If
%>
<option value="<%=intIdOptOptGrp%>"
<%
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' START: Check if Option should be Selected
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dim xIdOptCounter
if tIndex<>0 then ' Check they are updating the product after adding it to the shopping cart
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pcCartArray=session("pcCartSession")
tempIdOpt = ""
tempIdOpt = pcCartArray(tIndex,11)
if tempIdOpt = "" then
response.write ">"
else
tempIdOpt = Split(trim(tempIdOpt),chr(124))
for xIdOptCounter = 0 to Ubound(tempIdOpt)
if clng(intIdOptOptGrp) = clng(tempIdOpt(xIdOptCounter)) then
response.write " selected"
end if
next
response.write ">"
end if
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
else
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tempIdOpt = ""
tempIdOpt = request.querystring("idOptionArray")
if tempIdOpt = "" then
response.write ">"
else
tempIdOpt = Split(trim(tempIdOpt),chr(124))
for xIdOptCounter = 0 to Ubound(tempIdOpt)
if clng(intIdOptOptGrp) = clng(tempIdOpt(xIdOptCounter)) then
response.write " selected"
pcv_isOptionSelected="1"
end if
next
response.write ">"
end if
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
end if
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END: Check if Option should be Selected
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' START: Display Option Name
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
response.write strOptionDescrip & " "
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END: Display Option Name
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' START: Display Pricing
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if optPrice>0 then
'// If there is a price thats greater than zero
%>
<%=" - " &dictLanguage.Item(Session("language")&"_prodOpt_1")&" "&scCurSign& money(optPrice)%>
<%
end if %>
<%
if optPrice<0 then
'// If there is not a price
%>
<%=" - " &dictLanguage.Item(Session("language")&"_prodOpt_2")&" "&scCurSign& money(optPrice)%>
<%
end if
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END: Display Pricing
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%>
</option>
<%
end if
'**************************************************************************************************
' END: Dispay the Options
'**************************************************************************************************
rs2.movenext
loop
'// Only execute when the Remove Option Feature is activated.
if pcv_strAdminPrefix="1" AND pcv_strRemoveFeature="1" then %>
<% if pcv_isOptionSelected="1" then %>
<option value=""></option>
<option value="">----- Remove Option -----</option>
<% else %>
<option value="" selected><%=dictLanguage.Item(Session("language")&"_viewPrd_61")%></option>
<% end if %>
<% end if
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END Loop
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
end if
set rs2=nothing
%>
</select>
<br />
<br />
<%
End Sub
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END: Options Box
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Any help on this would be GREATLY appreciated,
Thanks
So, I have been playing around with this for awhile now, trying to move snippets of .asp code around to try and reorganize these 'option' boxes.
Basically, there are (2) product option dropdown boxes. Currently these are located above the 'Add to Cart' are. We are trying to align them so they are horizontally flush with the add to cart.
Please see examples below:
Currently:
http://blackreefdesigns.com/misc/example.jpg
And the way we are trying to get it:
http://blackreefdesigns.com/misc/example1.jpg
Any time we make changes - it prompts an .ASP error, and my custom .ASP programmer is out of town for the next week.
Is this relatively simple to do, or is this going to take some time?
Here is the code:
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' START: Options (N)
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Public Sub pcs_OptionsN
' SELECT DATA SET
' TABLES: products, pcProductsOptions, optionsgroups, ptions_optionsGroups
query = "SELECT DISTINCT optionsGroups.OptionGroupDesc, pcProductsOptions.idOptionGroup, pcProductsOptions.pcProdOpt_Required, pcProductsOptions.pcProdOpt_Order "
query = query & "FROM products "
query = query & "INNER JOIN ( "
query = query & "pcProductsOptions INNER JOIN ( "
query = query & "optionsgroups "
query = query & "INNER JOIN options_optionsGroups "
query = query & "ON optionsgroups.idOptionGroup = options_optionsGroups.idOptionGroup "
query = query & ") ON optionsGroups.idOptionGroup = pcProductsOptions.idOptionGroup "
query = query & ") ON products.idProduct = pcProductsOptions.idProduct "
query = query & "WHERE products.idProduct=" & pidProduct &" "
query = query & "AND options_optionsGroups.idProduct=" & pidProduct &" "
query = query & "ORDER BY pcProductsOptions.pcProdOpt_Order, optionsGroups.OptionGroupDesc;"
set rs=server.createobject("adodb.recordset")
set rs=conntemp.execute(query)
if err.number<>0 then
call LogErrorToDatabase()
set rs=nothing
call closedb()
response.redirect "techErr.asp?err="&pcStrCustRefID
end if
' If we have data
if NOT rs.eof then
pcv_intOptionGroupCount = 0 '// keeps count of the number of options
xOptionsCnt = 0 '// keeps count of the number of required options
do until rs.eof
'if pcv_intOptionGroupCount <= 5 then ' // start limit to 5 options
'// Get the Group Name
pcv_strOptionGroupDesc=rs("OptionGroupDesc")
'// Get the Group ID
pcv_strOptionGroupID=rs("idOptionGroup")
'// Is it required
pcv_strOptionRequired=rs("pcProdOpt_Required")
'// Start: Do Option Count
pcv_intOptionGroupCount = pcv_intOptionGroupCount + 1
'// End: Do Option Count
'// Get the number of the Option Group
pcv_strOptionGroupCount = pcv_intOptionGroupCount
'// Start: Do Required Option Count AND generate validation string
if IsNull(pcv_strOptionRequired) OR pcv_strOptionRequired="" then
pcv_strOptionRequired=0 '// not required // else it is "1"
end if
if pcv_strOptionRequired=1 then
' Keep Tally
xOptionsCnt = xOptionsCnt + 1
' Generate String
if xOtionrequired="1" then
pcv_strReqOptString = pcv_strReqOptString & ","
end if
xOtionrequired="1"
pcv_strOptionGroupDesc2=pcv_strOptionGroupDesc
pcv_strOptionGroupDesc2=replace(pcv_strOptionGroupDesc2,"'","")
pcv_strOptionGroupDesc2=replace(pcv_strOptionGroupDesc2,"""","\'\'")
pcv_strReqOptString = pcv_strReqOptString & "document.additem.idOption" & pcv_strOptionGroupCount & ".selectedIndex,'"& pcv_strOptionGroupDesc2 &"'"
end if
'// End: Do Required Option Count
'// Make the Option Box
pcs_makeOptionBox
'end if ' // end limit to 5 options
rs.movenext
loop
end if
set rs=nothing
%>
<input type="hidden" name="OptionGroupCount" value="<%=pcv_intOptionGroupCount%>">
<%
End Sub
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END: Options (N)
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' START: Options Box
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Public Sub pcs_makeOptionBox
' SELECT DATA SET
' TABLES: options_optionsGroups, options
query = "SELECT options_optionsGroups.InActive, options_optionsGroups.price, options_optionsGroups.Wprice, "
query = query & "options_optionsGroups.idoptoptgrp, options.idoption, options.optiondescrip "
query = query & "FROM options_optionsGroups "
query = query & "INNER JOIN options "
query = query & "ON options_optionsGroups.idOption = options.idOption "
query = query & "WHERE options_optionsGroups.idOptionGroup=" & pcv_strOptionGroupID &" "
query = query & "AND options_optionsGroups.idProduct=" & pidProduct &" "
query = query & "ORDER BY options_optionsGroups.sortOrder, options.optiondescrip;"
set rs2=server.createobject("adodb.recordset")
set rs2=conntemp.execute(query)
if err.number<>0 then
call LogErrorToDatabase()
set rs2=nothing
call closedb()
response.redirect "techErr.asp?err="&pcStrCustRefID
end if
' If we have data
if NOT rs2.eof then
'// clean up the option group description
if pcv_strOptionGroupDesc<>"" then
pcv_strOptionGroupDesc=replace(pcv_strOptionGroupDesc,"""",""")
end if
'// START SELECT
pcv_isOptionSelected="" '// Is this option box selected? Fill variable to "1" during the following loop.
%>
<div><%=pcv_strOptionGroupDesc%>:</div>
<select name="idOption<%=pcv_strOptionGroupCount%>" style="margin-top: 3px;">
<%
'// Only execute when the Remove Option Feature is activated.
if pcv_strRemoveFeature<>"1" then %>
<option value=""><%=dictLanguage.Item(Session("language")&"_viewPrd_61")%></option>
<% end if %>
<%
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' Start Loop
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
do until rs2.eof
OptInActive=rs2("InActive") ' Is it active?
if IsNull(OptInActive) OR OptInActive="" then
OptInActive="0"
end if
dblOptPrice=rs2("price") '// Price
dblOptWPrice=rs2("Wprice") '// WPrice
intIdOptOptGrp=rs2("idoptoptgrp") '// The Id of the Option Group
intIdOption=rs2("idoption") '// The Id of the Option
strOptionDescrip=rs2("optiondescrip") '// A description of the Option
'**************************************************************************************************
' START: Dispay the Options
'**************************************************************************************************
if OptInActive="0" then
If session("customerType")=1 then
optPrice=dblOptWPrice
Else
optPrice=dblOptPrice
End If
%>
<option value="<%=intIdOptOptGrp%>"
<%
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' START: Check if Option should be Selected
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dim xIdOptCounter
if tIndex<>0 then ' Check they are updating the product after adding it to the shopping cart
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pcCartArray=session("pcCartSession")
tempIdOpt = ""
tempIdOpt = pcCartArray(tIndex,11)
if tempIdOpt = "" then
response.write ">"
else
tempIdOpt = Split(trim(tempIdOpt),chr(124))
for xIdOptCounter = 0 to Ubound(tempIdOpt)
if clng(intIdOptOptGrp) = clng(tempIdOpt(xIdOptCounter)) then
response.write " selected"
end if
next
response.write ">"
end if
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
else
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tempIdOpt = ""
tempIdOpt = request.querystring("idOptionArray")
if tempIdOpt = "" then
response.write ">"
else
tempIdOpt = Split(trim(tempIdOpt),chr(124))
for xIdOptCounter = 0 to Ubound(tempIdOpt)
if clng(intIdOptOptGrp) = clng(tempIdOpt(xIdOptCounter)) then
response.write " selected"
pcv_isOptionSelected="1"
end if
next
response.write ">"
end if
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
end if
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END: Check if Option should be Selected
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' START: Display Option Name
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
response.write strOptionDescrip & " "
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END: Display Option Name
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' START: Display Pricing
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if optPrice>0 then
'// If there is a price thats greater than zero
%>
<%=" - " &dictLanguage.Item(Session("language")&"_prodOpt_1")&" "&scCurSign& money(optPrice)%>
<%
end if %>
<%
if optPrice<0 then
'// If there is not a price
%>
<%=" - " &dictLanguage.Item(Session("language")&"_prodOpt_2")&" "&scCurSign& money(optPrice)%>
<%
end if
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END: Display Pricing
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%>
</option>
<%
end if
'**************************************************************************************************
' END: Dispay the Options
'**************************************************************************************************
rs2.movenext
loop
'// Only execute when the Remove Option Feature is activated.
if pcv_strAdminPrefix="1" AND pcv_strRemoveFeature="1" then %>
<% if pcv_isOptionSelected="1" then %>
<option value=""></option>
<option value="">----- Remove Option -----</option>
<% else %>
<option value="" selected><%=dictLanguage.Item(Session("language")&"_viewPrd_61")%></option>
<% end if %>
<% end if
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END Loop
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
end if
set rs2=nothing
%>
</select>
<br />
<br />
<%
End Sub
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END: Options Box
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Any help on this would be GREATLY appreciated,
Thanks