<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>Add a Image and Products</title>
<link rel="stylesheet" href="../main.css" type="text/css">
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<script language="JavaScript">
<!--
// Show the extra colours
function showCols()
{	alert('abcd');
}

function fixPrice(whichOne)
{	var a;
	(whichOne == "1") ? a = document.form2.pPrice : a = document.form2.pPriceWS;
	
	if(a.value.length > 0)
	{	// if the correct number of decimal places is missing then add the extra 0's
		if(a.value.indexOf(".") < 0)
			a.value = a.value + ".00";
		else if(a.value.indexOf(".") == a.value.length-2)
			a.value = a.value + "0";
	}
}
function chkProd(text, what)
{	var myRegExp;
	if(what == "prod")
		myRegExp = /[^\w\s-/\\]/;
	else
		myRegExp = /[^\d\s\.]/;
	return !(myRegExp.test(text));
}
function chkForm()
{	var errMsg = "";
	var d = document.form2;

	// check the Product code
	var prodLen = d.pCode.value.length
	if(prodLen < 4)
		errMsg = " - The Product Code is too short\n";
	else if(chkProd(d.pCode.value, "prod") == false)
	{		errMsg += " - The Product Code is invalid\n";
	}
	
	// and the Product Description
	if(d.pDes.value.length < 5)
		errMsg += " - The Product Description is too short\n";
		
	// and the Product Price
	if((d.pPrice.value.length < 1) || (chkProd(d.pPrice.value, 'blah') == false))
		errMsg += " - Invalid Price\n";
	
	// If the error message is empty return true otherwise display it
	if(errMsg.length < 1)
		return true;
	else
	{	errMsg = "The form contains the following errors:   \n" + errMsg;
		alert(errMsg);
		return false;
	}
}
//-->
</script>
</head>
<body bgcolor="#000000" text="#CCCCCC">
<table border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td height="2" width="25" rowspan="2">&nbsp;</td>
    <td>&nbsp;</td>

  </tr>
  <tr> 
    <td> 
      <p class="pStrong">Step 2 : Add the products</p>
      <table>
        <tr> 
          <td colspan="2"> 
            <h3>Check the Images</h3>
          </td>
        </tr>

        <tr> 
          <td align="center">Main Pic</td>
          <td align="center">Thumbnail</td>
        </tr>
        <tr> 
          <td valign="top"><img src="../images/products/pics/175.jpg" width="200"></td>
          <td valign="top"><img src="../images/products/thumbs/175.jpg"></td>
        </tr>
      </table>

      <p>The code for this image is: 175</p>
      &nbsp;&nbsp;&nbsp;- If the wrong image is showing <a href="/admin/prod-add.php?prodType=w">click 
        here</a></p>
      <form name="form2" method="post" action="/admin/prod-add.php" onSubmit="return chkForm();">
	  <input type="hidden" name="imgCode" value="175">
	  <input type="hidden" name="whatStage" value="2">
      <input type="hidden" name="prodType" value="w">
        <table border="0" cellpadding="3" cellspacing="0">

          <tr align="center" class="tblRownb"> 
            <td colspan="2"> 
              <b>Enter the Product Details</b>
			</td>
          </tr>
          <tr class="tblRowd"> 
            <td align="right">Product Code</td>
            <td> <input type="text" name="pCode" value="" class="inputTxt" size="12"> 
            </td>

          </tr>
          <tr class="tblRowl"> 
            <td align="right">Description</td>
            <td> <input type="text" name="pDes" value="" class="inputTxt" size="40"> 
            </td>
          </tr>
          <tr class="tblRowd"> 
            <td align="right" valign="top">Categories<br> <div class="pSmall">(Check 
                the clothes categories<br>

                this item falls under)</div></td>
            <td> 
                            <table cellspacing="2" cellpadding="3">
                <tr> 
                  <td class="tblRowl">Womens</td>
                                    <td class="tblRowl">General</td>
                </tr>
                <tr> 
                  <td class="tblRowd" valign="top">

	<input type="checkbox" name="catID12" value="addCategory" >Catsuits<br>
	<input type="checkbox" name="catID17" value="addCategory" >Coats/Capes<br>
	<input type="checkbox" name="catID8" value="addCategory" >Corsets<br>
	<input type="checkbox" name="catID37" value="addCategory" >Dresses (Alternative)<br>
	<input type="checkbox" name="catID26" value="addCategory" >Dresses (Gothic)<br>
	<input type="checkbox" name="catID10" value="addCategory" >Dresses (Sexy)<br>

	<input type="checkbox" name="catID9" value="addCategory" >Fancy Dress<br>
	<input type="checkbox" name="catID42" value="addCategory" >Fancy Dress Accessories<br>
	<input type="checkbox" name="catID33" value="addCategory" >Fishnet<br>
	<input type="checkbox" name="catID35" value="addCategory" >Gloves<br>
	<input type="checkbox" name="catID22" value="addCategory" >Hotpants<br>
	<input type="checkbox" name="catID13" value="addCategory" >Minis<br>

	<input type="checkbox" name="catID38" value="addCategory" >Skirts (Alternative)<br>
	<input type="checkbox" name="catID27" value="addCategory" >Skirts (Gothic)<br>
	<input type="checkbox" name="catID14" value="addCategory" >Skirts (Sexy)<br>
	<input type="checkbox" name="catID40" value="addCategory" >Tops (Alternative)<br>
	<input type="checkbox" name="catID24" value="addCategory" >Tops (Gothic)<br>
	<input type="checkbox" name="catID18" value="addCategory" >Tops (Sexy)<br>

	<input type="checkbox" name="catID25" value="addCategory" >Trousers<br>
</td>
                                    <td class="tblRowd" valign="top">
	<input type="checkbox" name="catID7" value="addCategory" >Accessories<br>
	<input type="checkbox" name="catID36" value="addCategory" >Bags<br>
	<input type="checkbox" name="catID41" value="addCategory" >Make Up<br>
</td>
                </tr>

              </table>
			</td>
          </tr>
          <tr class="tblRowl"> 
            <td align="right">Price</td>
            <td> &pound; <input type="text" name="pPrice" value="0.00" class="inputTxt" size="5" onBlur="javascript:fixPrice(1)"> 
            </td>
          </tr>

          <tr class="tblRowd"> 
            <td align="right">Wholesale Price</td>
            <td> &pound; <input type="text" name="pPriceWS" value="0.00" class="inputTxt" size="5" onBlur="javascript:fixPrice(2)"> 
            </td>
          </tr>
          <tr class="tblRowl"> 
            <td align="right" valign="top">Colours<br> <div class="pSmall">(Check 
                the colours<br>

                this item comes in)</div></td>
            <td> 
			<table>
			  <tr>
		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID1" value="addColour">Black</td>
		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID4" value="addColour">Blue</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID9" value="addColour">Brocade</td>

		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID41" value="addColour">Burgandy</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID37" value="addColour">Gloss</td>
		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID38" value="addColour">Matt</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID42" value="addColour">Mint</td>
		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID35" value="addColour">Multi-coloured</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID16" value="addColour">Olive</td>

		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID18" value="addColour">Pink</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID5" value="addColour">Purple</td>
		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID2" value="addColour">Red</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID15" value="addColour">Rosa</td>
		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID6" value="addColour">Silver</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID3" value="addColour">White</td>

		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID10" value="addColour">Wine</td>
</tr></table>
		  <br>
		  <a href="javascript:showCols()">Show More Colours</a>
			<div style="display:none" id="xCols">
			  <table>
			    <tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID40" value="addColour">Back with Purple Front</td>

		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID26" value="addColour">Black & Green</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID25" value="addColour">Black & Pink</td>
		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID11" value="addColour">Black & Purple</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID8" value="addColour">Black & Red</td>
		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID7" value="addColour">Black & Silver</td>

</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID12" value="addColour">Black & White</td>
		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID13" value="addColour">Black & Wine</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID39" value="addColour">Black and Leopard</td>
		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID23" value="addColour">Black with Blue Brocade</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID28" value="addColour">Black with Green Tartan</td>

		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID22" value="addColour">Black with Red Brocade</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID27" value="addColour">Black with Red Tartan</td>
		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID21" value="addColour">Black with Silver Brocade</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID30" value="addColour">Blue & Pink</td>
		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID19" value="addColour">Blue + White</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID36" value="addColour">Brown & Grey</td>

		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID32" value="addColour">Camo (Brown)</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID33" value="addColour">Camo (Green)</td>
		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID34" value="addColour">Camo (Grey)</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID29" value="addColour">Pink & Black</td>
		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID17" value="addColour">Red + White</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID24" value="addColour">Red Tartan</td>

		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID31" value="addColour">White & Green</td>
</tr><tr>		<td valign="top"  class="tblRowl"><input type="checkbox" name="colourID20" value="addColour">White + Blue</td>
<td></td></tr></table></div>            </td>
          </tr>
          <tr class="tblRowl"> 
            <td align="right">&nbsp;</td>
            <td><br> Add New Colour<br> <input type="text" name="newColour" class="inputTxt" size="15" maxlength="30"> 
              <input type="Button" name="AddColour" value="Add" class="inputBtn" onClick="javascript:form.submit()"> 
            </td>

          </tr>
          <tr class="tblRowl"> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr class="tblRowd"> 
            <td align="right" valign="top">Sizes<br> <div class="pSmall">(Check 
                the sizes<br>
                this item comes in) </div></td>

            <td> 
              <table cellspacing="2" cellpadding="3">
                <tr> 
                  <td class="tblRowl">General</td>
                  <td class="tblRowl">Womens</td>
                                  </tr>
                <tr> 
                  <td class="tblRowd" valign="top">
	<input type="checkbox" name="sizeID23" value="addSize" >Extra Small<br>

	<input type="checkbox" name="sizeID1" value="addSize" >Small<br>
	<input type="checkbox" name="sizeID2" value="addSize" >Medium<br>
	<input type="checkbox" name="sizeID3" value="addSize" >Large<br>
	<input type="checkbox" name="sizeID4" value="addSize" >Extra Large<br>
	<input type="checkbox" name="sizeID20" value="addSize" >Extra Extra Large<br>
	<input type="checkbox" name="sizeID19" value="addSize" >One Size<br>

</td>
                  <td class="tblRowd" valign="top">
	<input type="checkbox" name="sizeID12" value="addSize" >08<br>
	<input type="checkbox" name="sizeID13" value="addSize" >10<br>
	<input type="checkbox" name="sizeID14" value="addSize" >12<br>
	<input type="checkbox" name="sizeID15" value="addSize" >14<br>
	<input type="checkbox" name="sizeID16" value="addSize" >16<br>

	<input type="checkbox" name="sizeID17" value="addSize" >18<br>
	<input type="checkbox" name="sizeID18" value="addSize" >20<br>
	<input type="checkbox" name="sizeID22" value="addSize" >22<br>
	<input type="checkbox" name="sizeID24" value="addSize" >24<br>
	<input type="checkbox" name="sizeID25" value="addSize" >26<br>
</td>
                                  </tr>

              </table>
            </td>
          </tr>
          <tr class="tblRowd"> 
            <td align="right">&nbsp;</td>
            <td>Add New Size<br> <input type="text" name="newSize" class="inputTxt" size="15" maxlength="30"> 
              <select name="sizeType">
                <option value="w" selected>Womens</option>

                <option value="m">Mens</option>
                <option value="g">General</option>
              </select> <input type="Button" name="AddSize" value="Add" class="inputBtn" onClick="javascript:form.submit()"> 
            </td>
          </tr>
          <tr class="tblRowd"> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>

          </tr>
          <tr class="tblRowl"> 
            <td align="right" valign="top">Note about Product</td>
            <td> <textarea name="pNote" class="inputTxt" cols="40" rows="4"></textarea> 
            </td>
          </tr>
          <tr class="tblRowl"> 
            <td align="right">&nbsp;</td>
            <td>&nbsp;</td>

          </tr>
          <tr align="center"> 
            <td colspan="2" class="tblRownb"> 
                            <input type="submit" name="SubmitForm" value="Add Product" class="inputBtn"> 
            </td>
          </tr>
          <tr> 
            <td align="right">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>

      </form>
    </td>
  </tr>
</table>
</body>
</html>