<!--#include file="../../owFunctions/I_GeneralFunctions.asp"-->
<!--#include file="../header.asp"-->
<%
	'************************************************************************************
	'*																					*
	'*	MODIFICATION TO THIS SCRIPT OR ANY FILES INCLUDED WITH 							*
	'*		ONEWORLDSTORE IS DONE AT YOUR OWN RISK!										*
	'*	Product  : OneWorldStore														*
	'*	Version  : 9.0000																*
	'*	Modified : June 2004															*
	'*	Copyright:	Copyright (C) 2004 OneWorldStore.Com								*
	'*				Registration Number: 1024507										*
	'*				http://strategis.ic.gc.ca/											*
	'*																					*
	'************************************************************************************
	%>

	<script language = "javascript">

		parent.owBodyTopNav.location="owBodyTopNav.asp?sPage=AddOptions"
		parent.owBodyFooter.location="owBodyFooter.asp?sAction=Null"
		
	</script>

	<body onLoad = 'toForm()' style="font-family: Arial; font-size: 11px;" topmargin="0" leftmargin="0" bgcolor=C3DAF9>
	
	<style>
		input.owDisabled, select.owDisabled, textarea.owDisabled {
			border: 2px inset #FFFFFF;
			background-color: #BBBBBB;
		}
		.owDisabledContainerW {
			font-family: verdana, arial, helvetica, sans-serif;
			font-size: 10px;
			position: relative; left: 1px; top: 1px; color: #777777;
		}
		.owDisabledTextW {
			font-family: verdana, arial, helvetica, sans-serif;
			font-size: 10px;
			position: absolute; left: -1px; top: -1px; color: #DDDDDD;
		} 
	</style>
	
	<form method="post" name="AddOptions" action='owAddOptionsExec.asp'>
		<input type='hidden' name='sAction' value='AddOptions'>
		<input type='hidden' name='sSort' value='<%=sSort%>'>
		<input type='hidden' name='sSearchText' value='<%=sSearchText%>'>
		<input type='hidden' name='sSearch' value='<%=sSearch%>'>
		<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding:5px; FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#ffffff"><tr><td>
		<table border="0" cellpadding="0" cellspacing="0" width="100%" style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#ffffff">
			<tr>
				<td style='padding-top: 5px;'>
					<%=LANG_DT( "OPTION_DESC", "Option Description" )%>
				</td>
				<td>
					<%=LANG_DT( "OPTION_PRICE", "Aditional Price" )%>
				</td>
				<td>
					<span class="owDisabledContainerW"><%=LANG_DT( "OPTION_WEIGHT", "Additional Weight" )%><font color="#FFFFFF" class="owDisabledTextW"><%=LANG_DT( "OPTION_WEIGHT", "Additional Weight" )%></font></span>
				</td>
			</tr>
			<tr>
				<td valign=top>
					<%VALIDATE_textbox "optionDescrip", "", 25, "textbox", "blank"%>
				</td>
				<td valign=top>
					<%VALIDATE_textbox "priceToAdd", "", 25, "textbox", "money|,.|bok"%>
				</td>
				<td valign=top>
					<input type='text' name='' value='' class='owDisabled' size=25 readonly>
				</td>
			</tr>
			<tr>
				<td colspan=4 style='padding-bottom: 2px; padding-top: 16px;' align=center>
					<hr size=1 color=2A5CB2><br>
					<table border="0" cellpadding="0" cellspacing="0" width=100% style="FONT-WEIGHT: bold; FONT-SIZE: 11px; COLOR: #808080" bgcolor="#ffffff">
						<tr>
							<td valign=top align=center>
								<%=LANG_DT( "OPTION_EXISTINGOPTIONSASSIGNED", "Existing Options - Assigned to Option Groups" )%>
								<br>
								<textarea name="" rows="15" cols="50" readonly><%
								sSQLText = "SELECT O.optionDescrip, OG.OptionGroupDesc FROM Options O, OptionsGroups OG, Options_OptionsGroups OOG WHERE O.idOption = OOG.idOption AND OOG.idOptionGroup = OG.idOptionGroup ORDER BY OG.OptionGroupDesc, O.OptionDescrip"
								Call DB_getFromDatabase(sSQLText, rsStoreData, "") 
								While ( NOT rsStoreData.EOF )
									Response.Write Trim(rsStoreData("OptionGroupDesc")) & " -- " & Trim(rsStoreData("optionDescrip")) & VbCrlf
									rsStoreData.MoveNext
								Wend
								Call DB_closeRecordset(rsStoreData)
								%></textarea>
							</td>
							<td valign=top align=center>
								<%=LANG_DT( "OPTION_EXISTINGOPTIONSNOT", "Existing Options - <b>NOT</b> Assigned to Option Groups" )%>
								<br>
								<textarea name="" rows="15" cols="50" readonly><%
								sSQLText = "SELECT * FROM Options O WHERE O.idOption NOT IN (SELECT idOption FROM Options_OptionsGroups)"
								Call DB_getFromDatabase(sSQLText, rsStoreData, "") 
								While ( NOT rsStoreData.EOF )
									Response.Write Trim(rsStoreData("optionDescrip")) & VbCrlf
									rsStoreData.MoveNext
								Wend
								Call DB_closeRecordset(rsStoreData)
								%></textarea>
							</td>
						</tr>
						<tr>
							<td colspan=2 align=center>
								<%=LANG_DT( "OPTIONS_READONLY", "(Options are ""read-only"" on this page. Please go to <a href='owListOptions.asp'>""Edit Option""</a> to modify them.)" )%>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		</td></tr></table>
	</form>
	<!--#include file="../footer.asp"-->