<!--#include virtual="/includes/topofpage.asp"-->
<%
Dim Conn
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open Application("conn_string")

Dim Lodging_ID

If (UCase(Request.ServerVariables("REQUEST_METHOD")) = "POST" And Request.Form("page") = "0") Then

	Lodging_ID = Request.Form("Lodging_ID")

	If Request.Form("Lodging_ID") = "" Then
		Lodging_ID = "0"
	End If

	Session("Admin_Group_ID") = Lodging_ID	

End If

Dim SQLName, RSName
SQLName = "get_entity_from_group @Group_ID='" & Session("Admin_Group_ID") & "'"
Set RSName=Conn.Execute(SQLName)
%>

<%' Getting data for page if avaiable for autofilling page
	Dim SQL4, RS4
	Dim Num_Room_Types, Rows, Cols, iRows, iCols
	Dim Rooms(554) ' Must enter the max number of the att_ID to be displayed on this page
	
	SQL4="Get_Attribute_Values @GroupID='" & Session("Admin_Group_ID") & "', @Att_group_id='7'" 'Att_Group_ID = 7 displays only the Lodging-Accomodation-Types Attributes
	'Response.Write SQL4
	
	Set RS4 = Conn.Execute(SQL4)
	
	
	If Not RS4.EOF Then
		Num_Room_Types = RS4.GetRows() 'Builds Array from SQL Call
		
		Cols = Ubound(Num_Room_Types,1) ' Getting total number of Cols in Array (-1)  Array starts at xx(0,0,...)
		Rows = Ubound(Num_Room_Types,2) ' Getting total number of Rows in Array (-1)  Array starts at xx(0,0,...)
	
		For iRows = 0 to Rows
			Rooms(Num_Room_Types(2,iRows))=Num_Room_Types(1,iRows)
			'Response.Write Rooms(Num_Room_Types(2,iRows)) & "  " 
		Next
	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]+"'");
}
//-->
</script>
<link rel="stylesheet" href="../Style-sheets/standard-input-form.css" type="text/css">
<link rel="stylesheet" href="/Style-sheets/headline.css" type="text/css">
<link rel="stylesheet" href="/Style-sheets/galley-text-indent.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 name="form1" method="post" action="">
  <table width="525" border="0" cellspacing="0" cellpadding="2" align="center">
    <tr> 
      <td width="338">&nbsp;</td>
      <td align="right" width="187">&nbsp;</td>
    </tr>
    <tr> 
      <td width="338" bgcolor="#5e5ebe" class="headline-ffffff" 

align="middle">Amenity Package Assignment</td>

      <td bgcolor="#5e5ebe" align="right" width="187"><A onmouseover="MM_swapImage('Image1','','images/icon-return-to-main-2.gif',1)" onmouseout=MM_swapImgRestore() href="default.asp"><IMG height=17 src="images/icon-return-to-main.gif" width=75 useMap=#returntomain border=0 name=Image1></A></td>
    </tr>
    <% If Not RSName.EOF Then %>
    <tr> 
      <td class="galley-text-indent" colspan="2"><%=RSName("Name")%>                                           - <%=RSName("City")%>                                                 , 
        <%=RSName("State")%>&nbsp; <%=RSName("ZIP")%></td>
    </tr>
    <% Else %>
    <tr> 
      <td class="galley-text-indent-alert" colspan="2">No Entity Selected! Go 
        back and choose a location to edit from the dropdown menu.</td>
    </tr>
    <% End If %>
    <% RSName.Close %>
  </table>
<TABLE cellSpacing=0 cellPadding=0 width="499" align=center border=0>
  <TR>
    <TD colSpan=4 bgcolor="#5e5ebe"><font color="#ffffff"><span class="headline-ffffff">Total Available Rooms for Property</span></font></TD></TR>
  <TR>
    <TD width="200" class="manage-menu-bold">Singles</TD>
    <TD width="49" class="manage-menu"><%If Rooms(411)>0 Then Response.Write Rooms(411) Else Response.Write "0" End If%></TD>
    <TD width="200" class="manage-menu-bold">Double Singles</TD>
    <TD width="49" class="manage-menu"><%If Rooms(550)>0 Then Response.Write Rooms(550) Else Response.Write "0" End If%></TD></TR>
  <TR>
    <TD width="200" class="manage-menu-bold">Single Doubles</TD>
    <TD width="49" class="manage-menu"><%If Rooms(412)>0 Then Response.Write Rooms(412) Else Response.Write "0" End If%></TD>
    <TD width="200" class="manage-menu-bold">Single Kings</TD>
    <TD width="49" class="manage-menu"><%If Rooms(413)>0 Then Response.Write Rooms(413) Else Response.Write "0" End If%></TD></TR>
  <TR>
    <TD width="200" class="manage-menu-bold">Double Kings</TD>
    <TD width="49" class="manage-menu"><%If Rooms(143)>0 Then Response.Write Rooms(143) Else Response.Write "0" End If%></TD>
    <TD width="200" class="manage-menu-bold">Single Queens</TD>
    <TD width="49" class="manage-menu"><%If Rooms(414)>0 Then Response.Write Rooms(414) Else Response.Write "0" End If%></TD></TR>
  <TR>
    <TD width="200" class="manage-menu-bold">Double Queens</TD>
    <TD width="49" class="manage-menu"><%If Rooms(144)>0 Then Response.Write Rooms(144) Else Response.Write "0" End If%></TD>
    <TD width="200" class="manage-menu-bold">Double Doubles</TD>
    <TD width="49" class="manage-menu"><%If Rooms(142)>0 Then Response.Write Rooms(142) Else Response.Write "0" End If%></TD></TR>
  <TR>
    <TD width="200" class="manage-menu-bold">Suites</TD>
    <TD width="49" class="manage-menu"><%If Rooms(435)>0 Then Response.Write Rooms(435) Else Response.Write "0" End If%></TD>
    <TD width="200" class="manage-menu-bold">Apartments</TD>
    <TD width="49" class="manage-menu"><%If Rooms(551)>0 Then Response.Write Rooms(551) Else Response.Write "0" End If%></TD></TR>
  <TR>
    <TD width="200" class="manage-menu-bold">Condominums</TD>
    <TD width="49" class="manage-menu"><%If Rooms(552)>0 Then Response.Write Rooms(552) Else Response.Write "0" End If%></TD>
    <TD width="200" class="manage-menu-bold">Cottages</TD>
    <TD width="49" class="manage-menu"><%If Rooms(553)>0 Then Response.Write Rooms(553) Else Response.Write "0" End If%></TD></TR>
  <TR>
    <TD width="200" class="manage-menu-bold">Houses</TD>
    <TD width="49" class="manage-menu"><%If Rooms(554)>0 Then Response.Write Rooms(554) Else Response.Write "0" End If%></TD>
    <TD width="200" class="manage-menu-bold"></TD>
    <TD width="49" class="manage-menu"></TD></TR>
  <TR><TD colspan = 4><HR id=HR1></TD></TR>    
</TABLE>
<table width="499" border="0" cellspacing="2" cellpadding="0" align="center" id=TABLE1 style="LEFT: 366px; TOP: 90px">
    <tr> 
      <td colspan="2" class="manage-menu">Assign By Amenity Package 
        <input type="radio" name="radiobutton" value="radiobutton">
        {exampled below}</td>
    </tr>
    <tr> 
      <td colspan="2" class="manage-menu">Assign By Room Type 
        <input type="radio" name="radiobutton" value="radiobutton">
      </td>
    </tr>
</Table>
<% ' Displaying Amenity Packages for Property %>
  <% ' Begining list table 
  
  Dim SQL1, RS1
  
  SQL1 = "Get_Amenity_List @Group_ID = '" & Session("Admin_Group_ID") & "'"
  'Response.Write SQL1
  Set RS1=Conn.Execute(SQL1)
  
  %>
  
  <% 'Checking for No Data
  if rs1.eof then
  %>
  
	<p><CENTER><FONT face=Verdana color=#cc0000 size=2>Entity has 
no Amenity Packages, Please go back and create a new Package</FONT>             </CENTER>
<P><FONT face=Txt></FONT></P>
  
  <% 'Writting Table if Data is Available
  Else
  %>
  
  <% ' Writting Data if Data Present to Table
		Do while not rs1.eof
  %>
<table width="499" border="0" cellspacing="2" cellpadding="0" align="center" id=TABLE1 style="LEFT: 366px; TOP: 90px">
    <tr> 
      <td colspan="2" bgcolor="#5e5ebe"><font color="#ffffff"><span class="headline-ffffff"><%=RS1("Name")%></span><br>
        <font size="1" class="input-box"><%=RS1("Description")%></font></font></td>
    </tr>
    <tr bgcolor="#cccccc"> 
      <td colspan="2"><IMG height=3 src="../images/shim.gif" width=1></td>
    </tr>
    <tr> 
      <td width="254" class="manage-menu-bold">Singles</td>
      <td width="245" class="manage-menu-bold"> Double Singles </td>
    </tr>
    <tr> 
      <td width="254" height="26" class="manage-menu">Package Assigned to 
        <input name="textfield2" size="4" >
        Rooms </td>
      <td width="245" height="26" class="manage-menu"> Package assigned to 
        <input name="textfield24" size="4" >
        Rooms </td>
    </tr>
    <tr bgcolor="#cccccc"> 
      <td colspan="2"><IMG height=3 src="../images/shim.gif" width=1></td>
    </tr>
    <tr> 
      <td width="254" class="manage-menu-bold">Single Doubles</td>
      <td width="245" class="manage-menu-bold">Single Kings </td>
    </tr>
    <tr> 
      <td width="254" class="manage-menu"> Package assigned to 
        <input name="textfield22" size="4" >
        Rooms </td>
      <td width="245" class="manage-menu"> Package assigned to 
        <input name="textfield23" size="4" >
        Rooms </td>
    </tr>
    <tr> 
      <td colspan="2" bgcolor="#cccccc" height="2"><IMG height=3 src="../images/shim.gif" width=1></td>
    </tr>
    <tr> 
      <td width="254" class="manage-menu-bold" >Double Kings</td>
      <td width="245" class="manage-menu-bold" >Single Queens </td>
    </tr>
    <tr> 
      <td width="254" class="manage-menu" > Package assigned to 
        <input name="textfield25" size="4" >
        Rooms </td>
      <td width="245" class="manage-menu" > Package assigned to 
        <input name="textfield26" size="4" >
        Rooms </td>
    </tr>
    <tr> 
      <td colspan="2" bgcolor="#cccccc"><IMG height=3 src="../images/shim.gif" width=1></td>
    </tr>
    <tr> 
      <td width="254"  height="16" class="manage-menu-bold">Double Queens</td>
      <td width="245"  height="16" class="manage-menu-bold"> Double Doubles </td>
    </tr>
    <tr> 
      <td width="254" class="manage-menu" > Package assigned to 
        <input name="textfield27" size="4" >
        Rooms </td>
      <td width="245" class="manage-menu" > Package assigned to 
        <input name="textfield28" size="4" >
        Rooms </td>
    </tr>
    <tr> 
      <td colspan="2" bgcolor="#cccccc"><IMG height=3 src="../images/shim.gif" width=1></td>
    </tr>
    <tr> 
      <td width="254" class="manage-menu-bold" >Suites</td>
      <td width="245" class="manage-menu-bold" >Apartments </td>
    </tr>
    <tr> 
      <td width="254" class="manage-menu" > Package assigned to 
        <input name="textfield29" size="4" >
        Rooms </td>
      <td width="245" class="manage-menu" > Package assigned to 
        <input name="textfield210" size="4" >
        Rooms </td>
    </tr>
    <tr> 
      <td colspan="2" bgcolor="#cccccc"><IMG height=3 src="../images/shim.gif" width=1></td>
    </tr>
    <tr> 
      <td width="254" class="manage-menu-bold" >Condominiums</td>
      <td width="245" class="manage-menu-bold" >Cottages </td>
    </tr>
    <tr> 
      <td width="254" class="manage-menu" > Package assigned to 
        <input name="textfield211" size="4" >
        Rooms </td>
      <td width="245" class="manage-menu"> Package assigned to 
        <input name="textfield212" size="4" >
        Rooms </td>
    </tr>
    <tr bgcolor="#cccccc"> 
      <td colspan="2"><IMG height=3 src="../images/shim.gif" width=1></td>
    </tr>
    <tr> 
      <td width="254" class="manage-menu-bold" >Houses</td>
      <td width="245" class="manage-menu-bold">&nbsp; </td>
    </tr>
    <tr> 
      <td width="254" class="manage-menu" > Package assigned to 
        <input name="textfield213" size="4" >
        Rooms </td>
      <td width="245" class="manage-menu">&nbsp;</td>
    </tr>
  </table>
  <% ' End List Table
			rs1.movenext
		Loop
	End If	
  %>
  <table width="525" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr bgcolor="#5e5ebe"> 
      <td align="right" width="49%" bgcolor="#5e5ebe"><A onmouseover="MM_swapImage('submitchanges','','images/icon-submit-changes-2.gif',1)" onclick="MM_goToURL('parent','default.asp');return document.MM_returnValue" onmouseout=MM_swapImgRestore() href="javascript:;" ><IMG height=15 src="images/icon-submit-changes.gif" width=200 border=0 name=submitchanges></A></td>
      <td width="51%"><A onmouseover="MM_swapImage('Image2','','images/icon-continue-wizard-2.gif',1)" onclick="MM_goToURL('parent','room-rates_seasonality_define.asp');return document.MM_returnValue" onmouseout=MM_swapImgRestore() href="javascript:;" ><IMG height=15 src="images/icon-continue-wizard.gif" width=150 useMap=#continue border=0 name=Image2></A></td>
  </tr>
  <tr> 
    <td width="49%">&nbsp;</td>
    <td width="51%">&nbsp;</td>
  </tr>
</table>
</form>
</body>
</html>
<% Set Conn = Nothing %>