6 Replies - 602 Views - Last Post: 10 November 2011 - 07:03 PM Rate Topic: -----

#1 Riccii  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 11-March 10

need help in removing duplicate objects that shows up on my website

Posted 10 October 2011 - 09:48 PM

I am not receiving an error that I can give a code for but my website just started displaying products in duplicates. Although this is not the case in the database, I am uncertain as to why this is happening. Im willing to pay someone to look at this for me asap.
Is This A Good Question/Topic? 0
  • +

Replies To: need help in removing duplicate objects that shows up on my website

#2 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1817
  • View blog
  • Posts: 4,625
  • Joined: 14-March 10

Re: need help in removing duplicate objects that shows up on my website

Posted 10 October 2011 - 10:02 PM

At least if we see how you load those products from your database to the form, we may have something to say...
Was This Post Helpful? 0
  • +
  • -

#3 Nakor  Icon User is offline

  • Professional Lurker
  • member icon

Reputation: 441
  • View blog
  • Posts: 1,488
  • Joined: 28-April 09

Re: need help in removing duplicate objects that shows up on my website

Posted 11 October 2011 - 09:18 AM

if you know there is not a problem with duplicates in the database then you're going to have to run through the code that is loading the data. Either something is coded incorrectly or something might be happening in an incorrect page life cycle event that is causing it to load more than once. Either way, without being able to see any of the code it is impossible for anyone to offer any real help. The only suggestion I can give is to step through it in debug mode and see if something comes up.
Was This Post Helpful? 0
  • +
  • -

#4 Frinavale  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 203
  • View blog
  • Posts: 776
  • Joined: 03-June 10

Re: need help in removing duplicate objects that shows up on my website

Posted 17 October 2011 - 09:46 AM

It sounds like you're retrieving from the database more than once and that you are adding the data twice to the datasource that you're using.

It's pretty hard to guess what you're doing unless you share with us the method used for populating the datasource and give us an idea of where you are calling that method from (eg: are you calling it in your Page Load event and then again in another event?)

-Frinny
Was This Post Helpful? 0
  • +
  • -

#5 Riccii  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 11-March 10

Re: need help in removing duplicate objects that shows up on my website

Posted 09 November 2011 - 08:56 AM

Thank you for your responses. I will PM you the website so you can take a look. Appreciate it


View Postsmohd, on 10 October 2011 - 10:02 PM, said:

At least if we see how you load those products from your database to the form, we may have something to say...



View PostNakor, on 11 October 2011 - 09:18 AM, said:

if you know there is not a problem with duplicates in the database then you're going to have to run through the code that is loading the data. Either something is coded incorrectly or something might be happening in an incorrect page life cycle event that is causing it to load more than once. Either way, without being able to see any of the code it is impossible for anyone to offer any real help. The only suggestion I can give is to step through it in debug mode and see if something comes up.



View PostFrinavale, on 17 October 2011 - 09:46 AM, said:

It sounds like you're retrieving from the database more than once and that you are adding the data twice to the datasource that you're using.

It's pretty hard to guess what you're doing unless you share with us the method used for populating the datasource and give us an idea of where you are calling that method from (eg: are you calling it in your Page Load event and then again in another event?)

-Frinny

Was This Post Helpful? 0
  • +
  • -

#6 Nakor  Icon User is offline

  • Professional Lurker
  • member icon

Reputation: 441
  • View blog
  • Posts: 1,488
  • Joined: 28-April 09

Re: need help in removing duplicate objects that shows up on my website

Posted 09 November 2011 - 09:21 PM

Looking at the site I can definitely see that you are getting duplicates but seeing the page doesn't tell me anything about the code that is being used to pull the data from the database or how it is being provided to the page. Need to see some actual code. Also, is this done with MVC, WebForms, or WebPages?

This post has been edited by Nakor: 09 November 2011 - 09:22 PM

Was This Post Helpful? 0
  • +
  • -

#7 Riccii  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 11-March 10

Re: need help in removing duplicate objects that shows up on my website

Posted 10 November 2011 - 07:03 PM

Here is the code for the form

Language is VB script.

<% response.Buffer=true %>

<%PmAdmin=2%><!--#include file="adminv.asp"-->
<!--#include file="../includes/settings.asp"-->
<!--#include file="../includes/storeconstants.asp"-->
<!--#include file="../includes/opendb.asp"-->
<!--#include file="../includes/languages.asp" -->
<!--#include file="../includes/languagesCP.asp" -->
<!--#include file="../includes/currencyformatinc.asp" -->
<!--#include file="../includes/shipFromSettings.asp" -->
<%
Dim pageTitle, section
section="products"
pageTitle=dictLanguageCP.Item(Session("language")&"_cpInstPrd_1")
%>
<!--#include file="AdminHeader.asp"-->
<style type="text/css">
.SpryHiddenRegion {
visibility: hidden;
}
</style>
<%
'// START - Spry-based Add New Category Scripts
%>
<script src="../includes/javascripts/AJAXForm.js" type="text/javascript"></script>
<script language="Javascript" type="text/Javascript">
<!--
function AJAXSubmitForm (form, debug, resultFunc, validationFunc) {
document.MM_returnValue = submitForm(form, debug, resultFunc, validationFunc);

}

//Response Handler Function
function handleFormResponse(textData, xmlData) {
var theForm = document.getElementById("test");
var theDiv = document.getElementById("test");

//Set the contents of the DIV to the server's response
theForm.innerHTML = textData;

//Replace the Message DIVE with the DIV that contains the server's response
theForm.parentNode.replaceChild(theDiv, theForm);

//Refresh SPRY content with new data
dsCatRefresh();

var str = textData

str = str.substring(0,5);
var a = 'Error'

if (a != str) dsClosePanel();

}

function dsCatRefresh(){
// Refresh dataset
dsCategoriesList.loadData();
document.hForm.idCategory.focus();
}

function dsClosePanel(){
//Close panel
CollapsiblePanelCatList.enableAnimation = false;
CollapsiblePanelCatList.close();

}

//-->
</script>

<script src="../includes/spry/SpryCollapsiblePanel.js" type="text/javascript"></script>
<script src="../includes/spry/xpath.js" type="text/javascript"></script>
<script src="../includes/spry/SpryData.js" type="text/javascript"></script>
<% pcv_IdRootCategory=request("idRootCategory")
if NOT isNumeric(pcv_IdRootCategory) or pcv_IdRootCategory="" then
pcv_IdRootCategory=1
end if
%>
<script type="text/javascript">
<!--
var dsCategoriesList = new Spry.Data.XMLDataSet("pcSpryCategoriesXML.asp?idRootCategory=<%=pcv_IdRootCategory%>", "categories/category",{sortonload:"categoryDesc",sortOrderonload:"ascending",useCache:false});
dsCategoriesList.setColumnType("idCategory", "number");
dsCategoriesList.setColumnType("idParentCategory", "number");
//-->
</script>
<%
'// END - Spry-based Add New Category Scripts

dim f, query, conntemp, rstemp
call openDB()

'if form submitted
if request("catCnt")<>"" then %>
<script language="Javascript">
<!--
<%' GGG add-on start%>
function check_date(field){
var checkstr = "0123456789";
var DateField = field;
var Datevalue = "";
var DateTemp = "";
var seperator = "/";
var day;
var month;
var year;
var leap = 0;
var err = 0;
var i;
err = 0;
DateValue = DateField.value;
/* Delete all chars except 0..9 */
for (i = 0; i < DateValue.length; i++) {
if (checkstr.indexOf(DateValue.substr(i,1)) >= 0) {
DateTemp = DateTemp + DateValue.substr(i,1);
}
else
{
if (DateTemp.length == 1)
{
DateTemp = "0" + DateTemp
}
else
{
if (DateTemp.length == 3)
{
DateTemp = DateTemp.substr(0,2) + '0' + DateTemp.substr(2,1);
}
}
}
}
DateValue = DateTemp;
/* Always change date to 8 digits - string*/
/* if year is entered as 2-digit / always assume 20xx */
if (DateValue.length == 6) {
DateValue = DateValue.substr(0,4) + '20' + DateValue.substr(4,2); }
if (DateValue.length != 8) {
return(false);}
/* year is wrong if year = 0000 */
year = DateValue.substr(4,4);
if (year == 0) {
err = 20;
}
/* Validation of month*/
<%if scDateFrmt="DD/MM/YY" then%>
month = DateValue.substr(2,2);
<%else%>
month = DateValue.substr(0,2);
<%end if%>
if ((month < 1) || (month > 12)) {
err = 21;
}
/* Validation of day*/
<%if scDateFrmt="DD/MM/YY" then%>
day = DateValue.substr(0,2);
<%else%>
day = DateValue.substr(2,2);
<%end if%>
if (day < 1) {
err = 22;
}
/* Validation leap-year / february / day */
if ((year % 4 == 0) || (year % 100 == 0) || (year % 400 == 0)) {
leap = 1;
}
if ((month == 2) && (leap == 1) && (day > 29)) {
err = 23;
}
if ((month == 2) && (leap != 1) && (day > 28)) {
err = 24;
}
/* Validation of other months */
if ((day > 31) && ((month == "01") || (month == "03") || (month == "05") || (month == "07") || (month == "08") || (month == "10") || (month == "12"))) {
err = 25;
}
if ((day > 30) && ((month == "04") || (month == "06") || (month == "09") || (month == "11"))) {
err = 26;
}
/* if 00 ist entered, no error, deleting the entry */
if ((day == 0) && (month == 0) && (year == 00)) {
err = 0; day = ""; month = ""; year = ""; seperator = "";
}
/* if no error, write the completed date to Input-Field (e.g. 13.12.2001) */
if (err == 0) {
<%if scDateFrmt="DD/MM/YY" then%>
DateField.value = day + seperator + month + seperator + year;
<%else%>
DateField.value = month + seperator + day + seperator + year;
<%end if%>
return(true);
}
/* Error-message if err != 0 */
else {
return(false);
}
}
<%' GGG add-on end%>

function isDigit(s)
{
var test=""+s;
if(test=="0"||test=="1"||test=="2"||test=="3"||test=="4"||test=="5"||test=="6"||test=="7"||test=="8"||test=="9")
{
return(true) ;
}
return(false);
}

function allDigit(s)
{
var test=""+s ;
for (var k=0; k <test.length; k++)
{
var c=test.substring(k,k+1);
if (isDigit©==false)
{
return (false);
}
}
return (true);
}

function Form1_Validator(theForm)
{
if (theForm.sku.value == "")
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_1")%>");
theForm.sku.focus();
return (false);
}
if (theForm.description.value == "")
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_2")%>");
theForm.description.focus();
return (false);
}
if (theForm.details.value == "")
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_3")%>");
theForm.details.focus();
return (false);
}

if (theForm.idCategory1.value == "")
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_4")%>");
theForm.idCategory1.focus();
return (false);
}

if (theForm.downloadable1.value == "1")
{

if (theForm.producturl.value == "")
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_5")%>");
theForm.producturl.focus();
return (false);
}

if (theForm.urlexpire1.value == "1")
{

if (theForm.expiredays.value == "")
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_6")%>");
theForm.expiredays.focus();
return (false);
}

if (allDigit(theForm.expiredays.value) == false)
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_6")%>");
theForm.expiredays.focus();
return (false);
}

if (theForm.expiredays.value == "0")
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_7")%>");
theForm.expiredays.focus();
return (false);
}
}

if (theForm.license1.value == "1")
{

if ((theForm.locallg.value == "") && ((theForm.remotelg.value == "") || (theForm.remotelg.value == "http://")) )
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_8")%>");
theForm.locallg.focus();
return (false);
}

if ((theForm.locallg.value != "") && (theForm.remotelg.value != "") && (theForm.remotelg.value != "http://") )
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_9")%>");
theForm.locallg.focus();
return (false);
}

if ((theForm.licenselabel1.value == "") && (theForm.licenselabel2.value == "") && (theForm.licenselabel3.value == "") && (theForm.licenselabel4.value == "") && (theForm.licenselabel5.value == ""))
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_10")%>");
theForm.licenselabel1.focus();
return (false);
}
}

}

<%' GGG add-on start%>

if (theForm.GC[0].checked == true)
{
if (theForm.GCExp[1].checked == true)
{
if (theForm.GCExpDate.value == "")
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_11")%>");
theForm.GCExpDate.focus();
return (false);
}
if (check_date(theForm.GCExpDate) == false)
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_11")%>");
theForm.GCExpDate.focus();
return (false);
}
}
if (theForm.GCExp[2].checked == true)
{
if (theForm.GCExpDay.value == "")
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_6")%>");
theForm.GCExpDay.focus();
return (false);
}

if (allDigit(theForm.GCExpDay.value) == false)
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_6")%>");
theForm.GCExpDay.focus();
return (false);
}

if (theForm.GCExpDay.value == "0")
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_7")%>");
theForm.GCExpDay.focus();
return (false);
}

}

if (theForm.GCGen[1].checked == true)
{
if (theForm.GCGenFile.value == "")
{
alert("<%=dictLanguageCP.Item(Session("language")&"_cpAlert_12")%>");
theForm.GCGenFile.focus();
return (false);
}

}

}

<%' GGG add-on end%>
try
{
document.hForm.pcIDDropShipper.disabled=false;
document.hForm.pcIDSupplier.disabled=false;
}
catch(err)
{
//Do nothing
}
return (true);
}
//-->
</script>
<script language="Javascript">
<!-- Beginning of Javascript -
function CheckWindow() {
options = "toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0,width=600,height=400";
myloc='testurl.asp?file1=' + document.hForm.producturl.value + '&file2=' + document.hForm.locallg.value + '&file3=' + document.hForm.remotelg.value;
newcheckwindow=window.open(myloc,"mywindow", options);
}

function newWindow(file,window) {
msgWindow=open(file,window,'resizable=no,width=400,height=500');
if (msgwindow.opener == null) msgwindow.opener = self;
}

function chgWin(file,window) {
msgWindow=open(file,window,'scrollbars=yes,resizable=yes,width=500,height=500');
if (msgwindow.opener == null) msgwindow.opener = self;
}

// - End of Javascript - -->
</script>


<%
'// START - Interface for add/selecting the category
%>

<table class="pcCPcontent">
<tr>
<td colspan="2">
<table class="pcCPcontent">
<tr>
<td align="left"><a href="LocateProducts.asp?cptype=0"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_2")%></a><br><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_3")%></td>
<td align="right" valign="bottom"><img src="images/pc_required.gif" alt="required field" width="9" height="9" hspace="5"><font color="#FF0000"><%=dictLanguageCP.Item(Session("language")&"_cpAlert_0")%></font></td>
</tr>
</table>
</td>
</tr>

<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<th colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_152")%></th>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<td colspan="2">
<div id="CollapsiblePanelCatList" class="CollapsiblePanel">
<div class="CollapsiblePanelTab"><span class="CollapsiblePanelTabInfo"><img src="images/step1a.gif" alt="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_106")%>" hspace="5"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_62")%></span></div>
<div class="CollapsiblePanelContent">
<form id="FormAddCat" action="pcSpryAddCatAction.asp" method="post" enctype="application/x-www-form-urlencoded" onsubmit="AJAXSubmitForm(this, false, handleFormResponse);return document.MM_returnValue" class="pcForms">
<br>
<fieldset>
<br>
<label><%=dictLanguageCP.Item(Session("language")&"_cpCommon_157")%>:&nbsp;<input name="CategoryName" type="text" value="" /></label>
<div spry:region="dsCategoriesList" style="padding-top: 10px;" class="SpryHiddenRegion">
<div spry:state="ready">
<label><%=dictLanguageCP.Item(Session("language")&"_cpCommon_158")%>:&nbsp;
<select name="ParentCatID" spry:repeatchildren="dsCategoriesList">
<option value="{idCategory}">{categoryDesc} {pcCats_BreadCrumbs}</option>
</select>
</label>
</div>
<div spry:state="loading">Loading...</div>
</div>
<br />
<input type="submit" value="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_106")%>" class="submit2" />
</fieldset>
</form>
<div id="test" class="message" style="margin-top:5px;"></div>
</div>
</div>
<script type="text/javascript">
<!--
var CollapsiblePanelCatList = new Spry.Widget.CollapsiblePanel("CollapsiblePanelCatList", {contentIsOpen:false, enableAnimation:true});
//-->
</script>
</td>
</tr>
</table>

<%
'// END - Interface for add/selecting the category
%>

<form method="post" name="hForm" action="instPrdb.asp" onsubmit="return Form1_Validator(this)" class="pcForms">
<table class="pcCPcontent">
<tr>
<td colspan="2"><img src="images/step2a.gif" alt="Select an existing category" hspace="5"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_63")%>&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_402")%></td>
</tr>
<tr>
<td colspan="2" align="left" style="padding: 15px;">
<div spry:region="dsCategoriesList" class="SpryHiddenRegion">
<div spry:state="ready">
<select name="idCategory1" size="10" multiple spry:repeatchildren="dsCategoriesList" style="width: 600px;">
<option value="{idCategory}">{categoryDesc} {pcCats_BreadCrumbs}</option>
</select>
</div>
<div spry:state="loading">Loading...</div>
</div>
</td>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<th colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_4")%></th>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_26")%>:</td>
<td>
<input type="text" name="sku" size="30">
<img src="images/pc_required.gif" alt="required field" width="9" height="9">
</td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_28")%>:</td>
<td>
<input type="text" name="description" size="40">
<img src="images/pc_required.gif" alt="required field" width="9" height="9">
</td>
</tr>
<tr>
<td valign="top"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_27")%>:</td>
<td>
<textarea name="details" rows="6" cols="60"></textarea>
<img src="images/pc_required.gif" alt="required field" width="9" height="9">
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<input type="button" value="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_401")%>" onclick="newWindow('pop_HtmlEditor.asp','window2')">&nbsp;<a href="Javascript:win('helpOnline.asp?ref=400')"><img src="images/pcv3_infoIcon.gif" alt="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_400")%>"></a>
</td>
</tr>
<tr>
<td valign="top"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_29")%>:&nbsp;<a href="Javascript:win('helpOnline.asp?ref=401')"><img src="images/pcv3_infoIcon.gif" alt="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_400")%>"></a></td>
<td><textarea name="sdesc" rows="6" cols="60"></textarea></td>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<th colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_5")%></th>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_30")%>:</td>
<td><%=scCurSign%> <input type="text" name="price" value="0" size="10"></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_31")%>:</td>
<td><%=scCurSign%> <input type="text" name="listPrice" value="0" size="10"></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_34")%>:</td>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%> <input type="checkbox" name="listhidden" value="-1" class="clearBorder">
</td>
</tr>
<% 'START CT ADD %>
<% 'if there are customer type categories - List them here
dim intATBExists
intATBExists=0
query="SELECT idcustomerCategory, pcCC_Name, pcCC_CategoryType FROM pcCustomerCategories;"
SET rs=Server.CreateObject("ADODB.RecordSet")
SET rs=conntemp.execute(query)
if NOT rs.eof then
do until rs.eof
intIdcustomerCategory=rs("idcustomerCategory")
strpcCC_Name=rs("pcCC_Name")
strpcCC_CategoryType=rs("pcCC_CategoryType")
%>
<tr>
<td><%=strpcCC_Name%></td>
<td><%=scCurSign%><input type="text" name="pcCC_<%=intIdcustomerCategory%>" value="0" size="10">
<% if strpcCC_CategoryType="ATB" then %>
<%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_6")%>&nbsp;<a href="Javascript:win('helpOnline.asp?ref=308')"><img src="images/pcv3_infoIcon.gif" alt="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_400")%>"></a>

<% end if %>
</td>
</tr>
<% rs.moveNext
loop
end if
SET rs=nothing
'END CT ADD %>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_32")%>:</td>
<td><%=scCurSign%> <input type="text" name="bToBprice" value="0" size="10"></td>
</tr>
<%'Start SDBA%>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_33")%>:</td>
<td><%=scCurSign%> <input type="text" name="cost" value="0" size="10"></td>
</tr>
<%'End SDBA%>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<th colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_7")%></th>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<td colspan="2">
<!--#include file="uploadresize/checkImgUplResizeObjs.asp"-->
<img src="images/sortasc_blue.gif" alt="Upload your images">&nbsp;
<%If HaveImgUplResizeObjs=1 then%>
<%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_8")%><a href="javascript:;" onclick="window.open('uploadresize/productResizea.asp','popup','toolbar=no,status=no,location=no,menubar=no,height=350,width=400,scrollbars=no'); return false;"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_303")%></a>.
<% Else %>
<%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_9")%><a href="javascript:;" onclick="window.open('imageuploada_popup.asp','_blank', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=400,height=360')"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_303")%></a>.
<% End If %>
</td>
</tr>
<tr>
<script language="Javascript"><!--
function chgWin(file,window) {
msgWindow=open(file,window,'scrollbars=yes,resizable=yes,width=500,height=500');
if (msgwindow.opener == null) msgwindow.opener = self;
}
//--></script>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_10")%>:</td>
<td>
<input type="text" name="smallImageUrl" value="" size="30"><a href="javascript:;" onclick="chgWin('../pc/imageDir.asp?ffid=smallImageUrl&fid=hForm','window2')"><img src="images/search.gif" alt="locate images previously uploaded" width="16" height="16" border=0 hspace="3"></a>
&nbsp;<a href="Javascript:win('helpOnline.asp?ref=446')"><img src="images/pcv3_infoIcon.gif" alt="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_400")%>"></a>
</td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_11")%>:</td>
<td>
<input type="text" name="imageUrl" value="" size="30"><a href="javascript:;" onclick="chgWin('../pc/imageDir.asp?ffid=imageUrl&fid=hForm','window2')"><img src="images/search.gif" alt="locate images previously uploaded" width="16" height="16" border=0 hspace="3"></a>
&nbsp;<a href="Javascript:win('helpOnline.asp?ref=446')"><img src="images/pcv3_infoIcon.gif" alt="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_400")%>"></a>
</td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_12")%>:</td>
<td>
<input type="text" name="largeImageUrl" value="" size="30"><a href="javascript:;" onclick="chgWin('../pc/imageDir.asp?ffid=largeImageUrl&fid=hForm','window2')"><img src="images/search.gif" alt="locate images previously uploaded" width="16" height="16" border=0 hspace="3"></a>
&nbsp;<a href="Javascript:win('helpOnline.asp?ref=446')"><img src="images/pcv3_infoIcon.gif" alt="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_400")%>"></a>
</td>
</tr>

<%'Start SDBA%>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<th colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_13")%></th>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_14")%>:</td>
<td><input type="checkbox" name="noStock" value="-1" class="clearBorder"></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_15")%>:</td>
<td>
<input name="stock" type="text" value="0" size="10" maxlength="10">
<input type="hidden" name="deliveringTime" value="0">
</td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_16")%>:</td>
<td><input name="minimumqty" type="text" value="0" size="10" maxlength="10">
&nbsp;&nbsp;&nbsp;&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_17")%>:<font color="#666666">
<input type="checkbox" name="qtyvalidate" value="1" class="clearBorder">
</font>
</td>
</tr>
<tr>
<td valign="top"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_18")%>:&nbsp;<a href="Javascript:win('helpOnline.asp?ref=447')"><img src="images/pcv3_infoIcon.gif" alt="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_400")%>"></a></td>
<td>
<input type="radio" name="pcbackorder" value="1" class="clearBorder">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>&nbsp;
<input type="radio" name="pcbackorder" value="0" checked class="clearBorder">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_311")%>&nbsp;&nbsp;&nbsp;
<%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_19")%><input type="text" size="5" value="0" name="pcShipNDays"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_304")%></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_20")%>:&nbsp;<a href="Javascript:win('helpOnline.asp?ref=448')"><img src="images/pcv3_infoIcon.gif" alt="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_400")%>"></a></td>
<td><input type="radio" name="pcnotifystock" value="1" class="clearBorder">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>&nbsp;
<input type="radio" name="pcnotifystock" value="0" checked class="clearBorder">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_311")%></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_21")%>:</td>
<td>
<input name="pcreorderlevel" type="text" value="0" size="10" maxlength="10"></td>
</tr>
<%'End SDBA%>

<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<th colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_22")%></th>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>

<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_37")%>:</td>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>&nbsp;<input type="checkbox" name="active" value="-1" checked class="clearBorder"></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_24")%>:</td>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>&nbsp;<input type="checkbox" name="formQuantity" value="-1" class="clearBorder">&nbsp;&nbsp;&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_25")%>:&nbsp;<input type="text" name="emailText" value="" size="30"></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_26")%>:</td>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>&nbsp;<input type="checkbox" name="notax" value="-1" class="clearBorder"></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_38")%>:</td>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>&nbsp;<input type="checkbox" name="hotDeal" value="-1" class="clearBorder"></td>
</tr>
<% 'RP ADDON-S
If RewardsActive <> 0 Then %>
<tr>
<td><%=RewardsLabel%>:</td>
<td><input type="text" name="iRewardPoints" width="10" size="20"></td>
</tr>
<% End If
'RP ADDON-E %>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_39")%>:</td>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>&nbsp;<input type="checkbox" name="showInHome" value="-1" class="clearBorder"></td>
</tr>
<%'Display Layout%>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_500")%>:</td>
<td>
<select name="displayLayout" id="displayLayout">
<option value="" selected><%=dictLanguageCP.Item(Session("language")&"_cpCommon_501")%></option>
<option value="c"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_502")%></option>
<option value="l"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_503")%></option>
<option value="o"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_504")%></option>
</select>
</td>
</tr>
<%query="Select IDBrand, BrandName from Brands order by BrandName asc"
set rs=server.CreateObject("ADODB.RecordSet")
set rs=connTemp.execute(query)
if not rs.eof then%>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_35")%>:</td>
<td>
<select name="IDBrand">
<option value="0" selected></option>
<% do while not rs.eof
intIDBrand=rs("IDBrand")
strBrandName=rs("BrandName") %>
<option value="<%=intIDBrand%>"><%=strBrandName%></option>
<% rs.MoveNext
loop
set rs=nothing %>
</select>
</td>
</tr>
<% else
set rs=nothing %>
<tr>
<td colspan="2">
<input type=hidden name=IDBrand value="0">
</td>
</tr>
<%end if%>
<tr>
<td colspan="2"><hr></td>
</tr>

<%'Start SDBA
'Get Suppliers List
query="Select pcSupplier_ID,pcSupplier_Company,pcSupplier_FirstName,pcSupplier_LastName from pcSuppliers order by pcSupplier_Company asc"
set rs=connTemp.execute(query)
if not rs.eof then
pcArray=rs.getRows()
intCount=ubound(pcArray,2)
%>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_36")%>:</td>
<td>
<select name="pcIDSupplier" onchange="javascript:TestDropShipper();">
<option value="0" selected></option>
<%For i=0 to intCount%>
<option value="<%=pcArray(0,i)%>"><%=pcArray(1,i)%>&nbsp;<%if pcArray(2,i) & pcArray(3,i)<>"" then%>(<%=pcArray(2,i) & " " & pcArray(3,i)%>)<%end if%></option>
<%Next%>
</select>
</td>
</tr>
<%else%>
<tr>
<td colspan="2">
<input type=hidden name="pcIDSupplier" value="0">
</td>
</tr>
<%end if
set rs=nothing
%>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_23")%>:</td>
<td>
<input type="radio" name="pcIsdropshipped" value="1" class="clearBorder" onclick="javascript:TurnondropShipper();">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>
&nbsp;<input type="radio" name="pcIsdropshipped" value="0" checked class="clearBorder" onclick="javascript:TurnOffDropShipper();">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_311")%>
</td>
</tr>
<%
'Get stores List
query="SELECT pcDropShipper_ID,pcDropShipper_Company,pcDropShipper_FirstName,pcDropShipper_LastName,0 As IsSupplier FROM pcDropShippers UNION (SELECT pcSupplier_ID,pcSupplier_Company,pcSupplier_FirstName,pcSupplier_LastName,1 FROM pcSuppliers WHERE pcSupplier_IsDropShipper=1) ORDER BY pcDropShipper_Company ASC"
set rs=connTemp.execute(query)
if not rs.eof then
pcArray=rs.getRows()
intCount=ubound(pcArray,2)
%>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_36b")%>:</td>
<td>
<select name="pcIDDropShipper" onchange="javascript:TestSupplier()">
<option value="0" selected></option>
<%For i=0 to intCount%>
<option value="<%=pcArray(0,i)%>_<%=pcArray(4,i)%>"><%=pcArray(1,i)%>&nbsp;<%if pcArray(2,i) & pcArray(3,i)<>"" then%>(<%=pcArray(2,i) & " " & pcArray(3,i)%>)<%end if%></option>
<%Next%>
</select>
</td>
</tr>
<%else%>
<tr>
<td colspan="2">
<input type=hidden name="pcIDDropShipper" value="0">
</td>
</tr>
<%end if
set rs=nothing%>
<script>
function TestDropShipper()
{
var tmp1=document.hForm.pcIDSupplier.value;
try
{
var j=document.hForm.pcIDDropShipper.length;
var i=0;
var test=0;
do
{
i=j-1;
if (tmp1 + "_1" == document.hForm.pcIDDropShipper.options[i].value)
{
document.hForm.pcIDDropShipper.options[i].selected=true;
document.hForm.pcIDDropShipper.disabled=true;
document.hForm.pcIsdropshipped[0].checked=true;
test=1;
break;
}
}
while (--j);
if (test==0)
{
if (document.hForm.pcIsdropshipped[0].checked==true)
{
document.hForm.pcIDDropShipper.disabled=false;
}
var tmp1=document.hForm.pcIDDropShipper.value;
var tmp2=tmp1.split("_");
if (tmp2[1]==1)
{
document.hForm.pcIDDropShipper.options[0].selected=true;
}
}
}
catch(err)
{
return(true);
}
}
function TestSupplier()
{
var tmp1=document.hForm.pcIDDropShipper.value;
var tmp2=tmp1.split("_");
try
{
var test=0;
if (tmp2[1]=="1")
{
var j=document.hForm.pcIDSupplier.length;
var i=0;

do
{
i=j-1;
if (tmp2[0] == document.hForm.pcIDSupplier.options[i].value)
{
document.hForm.pcIDSupplier.options[i].selected=true;
document.hForm.pcIDSupplier.disabled=true;
test=1;
break;
}
}
while (--j);
}
if (test==0)
{
if (document.hForm.pcIDSupplier.disabled==true)
{
document.hForm.pcIDSupplier.disabled=false;
document.hForm.pcIDSupplier.options[0].selected=true;
}
}
}
catch(err)
{
return(true);
}

}

function TurnondropShipper()
{
try
{
document.hForm.pcIDDropShipper.disabled=false;
document.hForm.pcIDSupplier.disabled=false;
}
catch(err)
{
//Do nothing
}

}

function TurnOffDropShipper()
{
try
{
document.hForm.pcIDDropShipper.disabled=true;
document.hForm.pcIDSupplier.disabled=false;
var tmp1=document.hForm.pcIDDropShipper.value;
if (tmp1!="0")
{
var tmp2=tmp1.split("_");
if (tmp2[1]=="1")
{
document.hForm.pcIDSupplier.options[0].selected=true;
}
}
document.hForm.pcIDDropShipper.options[0].selected=true;
}
catch(err)
{
//Do nothing
}

}

TurnOffDropShipper();

</script>
<%'End SDBA%>

<tr>
<td colspan="2" class="pcCPSpacer"><hr></td>
</tr>

<% If scShipFromWeightUnit="KGS" then %>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_40")%>:</td>
<td>
<input type="text" name="weight_kg" value="0" size="4">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_305")%>
<input type="text" name="weight_g" value="0" size="4">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_306")%>
</td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_28")%></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_27")%>:</td>
<td><input name="QtyToPound" type="text" id="QtyToPound" size="10" maxlength="10"></td>
</tr>
<% else %>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_40")%>:</td>
<td>
<input type="text" name="weight" value="0" size="4">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_307")%>
<input type="text" name="weight_oz" value="0" size="4">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_308")%>
</td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_30")%></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_29")%>:</td>
<td><input name="QtyToPound" type="text" id="QtyToPound" size="10" maxlength="10"></td>
</tr>
<% end if %>

<tr>
<td colspan="2" class="pcCPSpacer"><hr></td>
</tr>

<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_31")%>:&nbsp;<a href="Javascript:win('helpOnline.asp?ref=449')"><img src="images/pcv3_infoIcon.gif" alt="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_400")%>"></a></td>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>&nbsp;<input type="checkbox" name="noshipping" value="-1" class="clearBorder"></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_32")%>:</td>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>&nbsp;<input type="checkbox" name="noshippingtext" value="-1" class="clearBorder"></td>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_33")%></td>
</tr>
<tr>
<td colspan="2">
<input name="OverSizeSpec" type="radio" value="YES" class="clearBorder">&nbsp;
<%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>&nbsp;
<input name="OverSizeSpec" type="radio" value="NO" checked class="clearBorder">
<%=dictLanguageCP.Item(Session("language")&"_cpCommon_311")%>
</td>
</tr>
<tr>
<td colspan="2">
<table class="pcCPcontent">
<tr>
<td width="11%"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_41")%>:</td>
<td width="15%">
<input name="os_height" type="text" id="os_height" size="3" maxlength="3"> </td>
<td rowspan="3" align="left" valign="top">
<!-- only show for UPS active carts -->
<% query="Select active from ShipmentTypes WHERE shipmentDesc='UPS';"
set rstemp=connTemp.execute(query)
DIM upsActive
upsActive=rstemp("active")
if upsActive="-1" then %>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_34")%><a href="http://www.ups.com/content/us/en/resources/prepare/oversize.html" target="_blank"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_303")%></a>.</td>
<td><a href="http://www.ups.com/content/us/en/resources/prepare/oversize.html" target="_blank"><img src="../UPSLicense/LOGO_S2.gif" alt="More information about shipping oversized packages with UPS" width="45" height="50" border="0"></a></td>
</tr>
<tr>
<td colspan="2" align="center"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_35")%></td>
</tr>
</table>
<% else %>
&nbsp;
<% end if %>
<!-- end of ups enabled only--></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_42")%>:</td>
<td width="15%">
<input name="os_width" type="text" id="os_width" size="3" maxlength="3"></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpCommon_43")%>:</td>
<td width="15%">
<input name="os_length" type="text" id="os_length" size="3" maxlength="3"></td>
</tr>
</table>
</td>
</tr>

<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<th colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_153")%>&nbsp;<a href="Javascript:win('helpOnline.asp?ref=204')"><img src="images/pcv3_infoIcon.gif" alt="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_400")%>"></a></th>
</tr>
<tr>
<td class="pcCPspacer" colspan="2"></td>
</tr>
<tr>
<td align="right" valign="top"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_154")%></td>
<td><textarea name="PrdMetaTitle" cols="50" rows="3"><%=pStrPrdMetaTitle%></textarea>
</tr>
<tr>
<td align="right" valign="top"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_155")%></td>
<td><textarea name="PrdMetaDesc" cols="50" rows="6"><%=pStrPrdMetaDesc%></textarea>
</tr>
<tr>
<td align="right" valign="top"><%=dictLanguageCP.Item(Session("language")&"_cpCommon_156")%></td>
<td><textarea name="PrdMetaKeywords" cols="50" rows="4"><%=pStrPrdMetaKeywords%></textarea>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<th colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_36")%></th>
</tr>
<tr>
<td colspan="2" class="pcCPspacer">
<input type=hidden name="downloadable1" value="0">
<input type=hidden name="urlexpire1" value="0">
<input type=hidden name="license1" value="0">
</td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_37")%>&nbsp;
<input name="downloadable" type="radio" value="1" onclick="document.hForm.GC[1].checked='true'; document.hForm.downloadable1.value='1'; document.getElementById('show_19').style.display=''; document.getElementById('show_20').style.display='none'" class="clearBorder">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>&nbsp;
<input name="downloadable" type="radio" value="0" checked onclick="document.hForm.downloadable1.value='0'; document.hForm.urlexpire1.value='0'; document.hForm.license1.value='0'; document.getElementById('show_19').style.display='none'" class="clearBorder">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_311")%>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<table id="show_19" style="display:none" class="pcCPcontent">
<tr>
<td colspan="2"><p><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_38")%></p>
<ul>
<li><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_39")%><br>
<img src="images/spacer.gif" height="15" width="1"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_40")%><%=Server.MapPath("/")%></li>
<li><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_41")%></li>
</ul>
</td>
</tr>
<tr>
<td colspan="2"><input type="text" name="producturl" size="70"></td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_42")%>&nbsp;
<input name="urlexpire" type="radio" value="1" onclick="document.hForm.urlexpire1.value='1';" class="clearBorder">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>
<input name="urlexpire" type="radio" value="0" checked onclick="document.hForm.urlexpire1.value='0'; document.hForm.expiredays.value='';" class="clearBorder">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_311")%>
</td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_43")%><input type="text" name="expiredays" size="5">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_304")%></td>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_44")%>&nbsp;
<input name="license" type="radio" value="1" onclick="document.hForm.license1.value='1';" class="clearBorder">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>
<input name="license" type="radio" value="0" checked onclick="document.hForm.license1.value='0'; document.hForm.locallg.value=''; document.hForm.remotelg.value='http://';" class="clearBorder">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_311")%>
</td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_45")%></td>
</tr>
<tr>
<td colspan="2"><input type="text" name="locallg" size="70"></td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_46")%></td>
</tr>
<tr>
<td colspan="2">
<input type="text" name="remotelg" value="http://" size="70"></td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_47")%></td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_48")%> (1):&nbsp;
<input type="text" name="licenselabel1" size="36" value=""></td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_48")%> (2):&nbsp;
<input type="text" name="licenselabel2" size="36" value=""></td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_48")%> (3):&nbsp;
<input type="text" name="licenselabel3" size="36" value=""></td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_48")%> (4):&nbsp;
<input type="text" name="licenselabel4" size="36" value=""></td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_48")%> (5):&nbsp;
<input type="text" name="licenselabel5" size="36" value=""></td>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_49")%></td>
</tr>
<tr>
<td colspan="2"><textarea name="addtomail" rows="9" cols="65"></textarea></td>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" name="checkbutton" value=" Verify Download URL " onclick="javascript:CheckWindow();"></td>
</tr>
</table>
</td>
</tr>

<%' GGG add-on start%>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<th colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_50")%></th>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_51")%>&nbsp;
<input name="GC" type="radio" value="1" onclick="document.hForm.downloadable[1].checked='true'; document.hForm.downloadable1.value='0'; document.hForm.urlexpire1.value='0'; document.hForm.license1.value='0'; document.getElementById('show_19').style.display='none'; document.getElementById('show_20').style.display=''" class="clearBorder">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_310")%>&nbsp;
<input name="GC" type="radio" value="0" checked onclick="document.getElementById('show_20').style.display='none'" class="clearBorder">&nbsp;<%=dictLanguageCP.Item(Session("language")&"_cpCommon_311")%>
</td>
</tr>
<tr>
<td colspan="2">
<table id="show_20" style="display:none" class="pcCPcontent">
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_52")%>:</td>
</tr>
<tr>
<td align="right">
<input name="GCExp" type="radio" value="0" checked class="clearBorder">
</td>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_53")%></td>
</tr>
<tr>
<td align="right" valign="top">
<input name="GCExp" type="radio" value="1" class="clearBorder">
</td>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_54")%>&nbsp;<input type="text" name="GCExpDate" size="25">&nbsp;(<i></i><%=dictLanguageCP.Item(Session("language")&"_cpCommon_233")%>: <%if scDateFrmt="DD/MM/YY" then%><%=dictLanguageCP.Item(Session("language")&"_cpCommon_234")%><%else%><%=dictLanguageCP.Item(Session("language")&"_cpCommon_235")%><%end if%></i>)
</td>
</tr>
<tr>
<td align="right" valign="top">
<input name="GCExp" type="radio" value="2" class="clearBorder">
</td>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_55")%><input type="text" name="GCExpDay" size="5">
</td>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_56")%>:&nbsp;<input name="GCEOnly" type="checkbox" value="1" checked class="clearBorder">
</td>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<td colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_57")%></td>
</tr>
<tr>
<td align="right">
<input name="GCGen" type="radio" value="0" checked class="clearBorder">
</td>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_58")%></td>
</tr>
<tr>
<td align="right" valign="top">
<input name="GCGen" type="radio" value="1" class="clearBorder">
</td>
<td><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_59")%><input type="text" name="GCGenFile" size="53">
<div class="pcCPnotes"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_60")%></div>
</td>
</tr>
</table>
</td>
</tr>
<%'GGG add-on end%>

<tr>
<td colspan="2"><hr></td>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>

<tr>
<td colspan="2" align="center">
<input type="hidden" name="idsupplier" value="10">
<input type="submit" name="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_100")%>" value="Add" class="submit2">
&nbsp;
<input type="button" value="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_103")%>" onclick="location.href='LocateProducts.asp?cptype=0'">
</td>
</tr>
</table>
</form>
<% else
'count categories, if too many are present, show alternate page
dim iCatCnt
iCatCnt=0
query="SELECT idcategory FROM categories WHERE tier=3 or tier=4;"
set rstemp=conntemp.execute(query)
do until rstemp.eof or iCatCnt>200
iCatCnt=iCatCnt+1
rstemp.movenext
loop
if iCatCnt<200 then
response.redirect "instPrda.asp?catCnt=100"
else %>
<form method="post" name="RootCatForm" action="instPrda.asp" class="pcForms">
<input type="hidden" name="catCnt" value="200">
<table class="pcCPcontent">
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<th colspan="2"><%=dictLanguageCP.Item(Session("language")&"_cpInstPrd_61")%></th>
</tr>
<tr>
<td colspan="2" class="pcCPspacer"></td>
</tr>
<tr>
<td>
<select name="idRootCategory">
<%' get leaf categories
query="SELECT idCategory, categoryDesc, idparentCategory FROM categories WHERE idparentCategory=1 ORDER BY categoryDesc"
set rstemp=conntemp.execute(query)
if err.number <> 0 then
call closedb()
response.redirect "techErr.asp?error="& Server.Urlencode("Error: "&Err.Description)
end if
if rstemp.eof then
call closedb()
response.redirect "techErr.asp?error="& Server.Urlencode("<b><i>No categories defined:</i></b><br><br>Before you can add products to your store, you need to add at least one category.<br><br><a href=instCata.asp>Click here to add categories to your store.</a>")
end if
dim parent
do until rstemp.eof
idcategory=rstemp("idCategory")
idparentCategory=rstemp("idparentCategory")
categoryDesc=rstemp("categoryDesc") %>
<option value='<%=idcategory%>'><%=categoryDesc%></option>
<% rstemp.movenext
loop
%>
</select>
</td>
</tr>
<tr>
<td><hr></td>
</tr>
<tr>
<td>
<input type="submit" name="Submit" value="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_105")%>" class="submit2">
&nbsp;
<input type="button" value="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_103")%>" onclick="location.href='LocateProducts.asp?cptype=0'">
&nbsp;
<input type="button" value="<%=dictLanguageCP.Item(Session("language")&"_cpCommon_104")%>" onclick="location.href='manageCategories.asp'">
</td>
</tr>
</table>
</form>
<% end if
end if %><!--#include file="AdminFooter.asp"-->


View PostNakor, on 09 November 2011 - 09:21 PM, said:

Looking at the site I can definitely see that you are getting duplicates but seeing the page doesn't tell me anything about the code that is being used to pull the data from the database or how it is being provided to the page. Need to see some actual code. Also, is this done with MVC, WebForms, or WebPages?

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1