    <%@ Import Namespace="System.Collections" %>


    <%
If (UCase(Request.ServerVariables("REQUEST_METHOD")) = "POST" And Request.Form("page") = "0") Then
    Session("Group_ID") = Request.Form("lodging_id")
End If


If (UCase(Request.ServerVariables("REQUEST_METHOD")) = "POST" And Request.Form("page") = "16") Then
    Dim i, Key, Count
    Dim SQL
    Dim Conn, RS
    Conn = Server.CreateObject("ADODB.Connection")
    Conn.Open ("DRIVER={SQL Server};SERVER=WEBSRV01;UID=web;PWD=web;DATABASE=AVANTE")

    For Each Key in Request.Form

   IF Request.Form(Key) = "" Or Request.Form(Key) = "0" Then

   Else
        SQL = "Update_Inventory '" & Session("Group_ID") & "','"
        SQL = SQL & Key & "','" & Request.Form(Key) & "'"
        Conn.Execute (SQL)
   End If
Next
    
    If Request.Form("cont") = "1" Then Response.Redirect ("default-lodging.asp")
    If Request.Form("cont") = "2" Then Response.Redirect ("on-site-features_admin.asp")

End If
%>


<html>
<STYLE>
BODY {SCROLLBAR-FACE-COLOR: #5e5ebe; SCROLLBAR-HIGHLIGHT-COLOR: #5e5ebe; SCROLLBAR-SHADOW-COLOR: #5e5ebe; SCROLLBAR-3DLIGHT-COLOR: #5e5ebe; SCROLLBAR-ARROW-COLOR:  #6666CC; SCROLLBAR-TRACK-COLOR: #E3E3E3; SCROLLBAR-DARKSHADOW-COLOR: #666666; }
</STYLE>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

//function Sub_Form(cont) {
//var errmsg, i;
//for (i=0; i<14; i++) if isNaN(form1.1.value) {alert('Entries must be Numeric');}
//form1.cont.value=cont;
//form1.submit();
//}

//-->
</script>
<link rel="stylesheet" href="../Style-sheets/standard-input-form.css" type="text/css">
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/icon-return-to-main-2.gif','images/icon-submit-changes-2.gif','images/icon-continue-wizard-2.gif')">
<Form id="form1" runat="server">
<asp:Table id="Table1" width="100%" border="0" cellspacing="0" cellpadding="0" align="center" runat="server">
<asp:TableRow bgcolor="#5e5ebe">
    <asp:TableCell width="9%">&nbsp;</asp:TableCell>
    <asp:TableCell bgcolor="#5e5ebe" align="right" width="91%"><a href="javascript:;" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','images/icon-return-to-main-2.gif',1)" onClick="MM_goToURL('parent','default-lodging.asp');return document.MM_returnValue"><img src="images/icon-return-to-main.gif" width="75" height="17" usemap="#returntomain" border="0" name="Image1"></a></asp:TableCell>
    </asp:TableRow>
  <asp:TableRow bgcolor="#5e5ebe">
    <asp:TableCell width="9%">&nbsp;</asp:TableCell>
    <asp:TableCell width="91%">&nbsp;</asp:TableCell>
  </asp:TableRow>
</asp:Table>
  <asp:Table id="Table2"  width="500" border="0" cellspacing="0" cellpadding="0" align="center" runat="server">
    <asp:TableRow>
      <asp:TableCell width="146" class="standard-input-form">Singles</asp:TableCell>
      <asp:TableCell width="197" class="form-captions" nowrap>
      <asp:TextBox id="RT1" size="4" runat="server" />
        Total Inventory on Property</asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell width="146" class="standard-input-form">Double Singles</asp:TableCell>
      <asp:TableCell width="197" class="form-captions" nowrap>
      <asp:TextBox id="RT2" size="4" runat="server" />
        Total Inventory on Property </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell width="146" class="standard-input-form">Single Doubles</asp:TableCell>
      <asp:TableCell width="197" class="form-captions" nowrap>
      <asp:TextBox id="RT3" size="4" runat="server" />
        Total Inventory on Property </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell width="146" class="standard-input-form">Double Doubles</asp:TableCell>
      <asp:TableCell width="197" class="form-captions" nowrap>
      <asp:TextBox id="RT4" size="4" runat="server" />
        Total Inventory on Property </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell width="146" class="standard-input-form">Single Kings</asp:TableCell>
      <asp:TableCell width="197" class="form-captions" nowrap>
      <asp:TextBox id="RT5" size="4" runat="server" />
        Total Inventory on Property </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell width="146" class="standard-input-form">Double Kings</asp:TableCell>
      <asp:TableCell width="197" class="form-captions" nowrap>
      <asp:TextBox id="RT6" size="4" runat="server" />
        Total Inventory on Property </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell width="146" class="standard-input-form">Single Queens</asp:TableCell>
      <asp:TableCell width="197" class="form-captions" nowrap>
      <asp:TextBox id="RT7" size="4" runat="server" />
        Total Inventory on Property </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell width="146" class="standard-input-form">Double Queens</asp:TableCell>
      <asp:TableCell width="197" class="form-captions" nowrap>
      <asp:TextBox id="RT8" size="4" runat="server" />
        Total Inventory on Property </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell width="146" class="standard-input-form">Suites</asp:TableCell>
      <asp:TableCell width="197" class="form-captions" nowrap>
      <asp:TextBox id="RT9" size="4" runat="server" />
        Total Inventory on Property </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell width="146" class="standard-input-form">Apartments</asp:TableCell>
      <asp:TableCell width="197" class="form-captions" nowrap>
      <asp:TextBox id="RT10" size="4" runat="server" />
        Total Inventory on Property </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell width="146" class="standard-input-form">Condominiums</asp:TableCell>
      <asp:TableCell width="197" class="form-captions" nowrap>
      <asp:TextBox id="RT11" size="4" runat="server" />
        Total Inventory on Property </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell width="146" class="standard-input-form">Cottages</asp:TableCell>
      <asp:TableCell width="197" class="form-captions" nowrap>
      <asp:TextBox id="RT12" size="4" runat="server" />
        Total Inventory on Property </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell width="146" class="standard-input-form">Houses</asp:TableCell>
      <asp:TableCell width="197" class="form-captions" nowrap>
      <asp:TextBox id="RT13" size="4" runat="server" />
        Total Inventory on Property </asp:TableCell>
    </asp:TableRow>
    <asp:TableRow>
      <asp:TableCell width="146" class="standard-input-form">&nbsp;</asp:TableCell>
      <asp:TableCell width="88" class="standard-input-form">&nbsp;</asp:TableCell>
      <asp:TableCell width="197" class="form-captions" nowrap>&nbsp;</asp:TableCell>
    </asp:TableRow>
</asp:Table>
  <asp:Table id="Table3"  width="100%" border="0" cellspacing="0" cellpadding="0" align="center" runat="server">
  <asp:TableRow bgcolor="#5e5ebe">
    <asp:TableCell align="right" width="49%"><a href="javascript:Sub_Form('1');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('submitchanges','','images/icon-submit-changes-2.gif',1)"><img src="images/icon-submit-changes.gif" width="200" height="15" name="submitchanges" border="0"></a></asp:TableCell>
    <asp:TableCell width="51%"><a href="javascript:Sub_Form('2');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','images/icon-continue-wizard-2.gif',1)"><img src="images/icon-continue-wizard.gif" width="150" height="15" usemap="#continue" border="0" name="Image2"></a></asp:TableCell>
  </asp:TableRow>
  <asp:TableRow>
    <asp:TableCell width="49%">&nbsp;</asp:TableCell>
    <asp:TableCell width="51%">&nbsp;</asp:TableCell>
  </asp:TableRow>
</asp:Table>
</Form>
</body>
</html>
