<?php
include 'ASEngine/AS.php';
if(!$login->isLoggedIn())
    header("Location: login.php");
$user = new ASUser(ASSession::get("user_id"));
$userInfo = $user->getInfo();

//basic include files
require_once("../db.php");

$nav = 'hotels';

//Messages
include 'inc/messages.php';

//Current Tab Active
	$label1 = '';
	$tab1 = '';
	$label2 = '';
	$tab2 = '';
	$label3 = '';
	$tab3 = '';
if(isset($_GET['tab'])) {
	if($_GET['tab'] == '2') {
	$label2 = 'class="active"';
	$tab2 = 'in active';
	}
	if($_GET['tab'] == '3') {
	$label3 = 'class="active"';
	$tab3 = 'in active';
	}
} else {
	$label1 = 'class="active"';
	$tab1 = 'in active';
}

//ID
$room_id = $_GET['roomid'];
$room_name = $_GET['roomname'];
$hotel_id = $_GET['hotelid'];
$hotel_name = $_GET['hotelname'];
//Hotel Room Data
$customroom = mysqli_query($conn, "SELECT * FROM hotel_room_type WHERE room_type_id = '$room_id'");
$customroomtotal = mysqli_num_rows($customroom);
$customroomData = mysqli_fetch_array($customroom);
//Variables
$room_name = $customroomData['room_type_name'];
$room_type_short_description = $customroomData['room_type_short_description'];
$room_type_description = $customroomData['room_type_description'];
$room_type_capacity = $customroomData['room_type_capacity'];
$max_adults = $customroomData['max_adults'];
$max_kids = $customroomData['max_kids'];
$roominventory = $customroomData['room_type_inventory'];
$preciosroom = array();
//creando precio por persona
for($aduorder = 1; $aduorder <= $max_adults; $aduorder++)											     
{
	$customroomprice = mysqli_query($conn, "SELECT * FROM hotel_room_price WHERE room_type_id = '$room_id' AND room_person = '$aduorder' AND price_status = 'Y' AND price_deleted = '0' LIMIT 1 ");
	$customroompriceData = mysqli_fetch_array($customroomprice);
	if($customroompriceData['price_id'] > 0)
	{
	$camposprecios        = array(
	        'price_room_id' => $customroompriceData['price_id'],
            'number_person' => $aduorder,
			'price_description' => $customroompriceData['price_description'],
            'price_room' => $customroompriceData['room_price']
    );
    array_push($preciosroom, $camposprecios);
	}elseif($customroompriceData['price_id'] == 0){
	$camposprecios        = array(
	        'price_room_id' => 0,
            'number_person' => $aduorder,
			'price_description' => 'Regular',
            'price_room' => '0.00'
    );
    array_push($preciosroom, $camposprecios);
	}	
}
//print_r($preciosroom);
//Hotel Room Price
$custom = mysqli_query($conn, "SELECT * FROM hotel_room_price WHERE room_type_id = '$room_id' AND price_deleted = '0' ");
$customtotal = mysqli_num_rows($custom);



//Obteniendo lista de disponibilidad
$customavailable = mysqli_query($conn, "SELECT * FROM booking_check_avilability WHERE room_type_id = '$room_id'");
$customavailabletotal = mysqli_num_rows($customavailable);
mysqli_close($conn);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php echo WEBSITE_NAME; ?></title>
    <meta name="author" content="Bookingo" />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <meta name="application-name" content="Bookingo" />

    <!-- Mobile Specific Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!-- Force IE9 to render in normla mode -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <!-- Le styles -->
    <!-- Use new way for google web fonts 
    http://www.smashingmagazine.com/2012/07/11/avoiding-faux-weights-styles-google-web-fonts -->
    <!-- Headings -->
    <!-- <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' />  -->
    <!-- Text -->
    <!-- <link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css' /> --> 
    <!--[if lt IE 9]>
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:400" rel="stylesheet" type="text/css" />
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:700" rel="stylesheet" type="text/css" />
    <link href="http://fonts.googleapis.com/css?family=Droid+Sans:400" rel="stylesheet" type="text/css" />
    <link href="http://fonts.googleapis.com/css?family=Droid+Sans:700" rel="stylesheet" type="text/css" />
    <![endif]-->

    <!-- Core stylesheets do not remove -->
    <link id="bootstrap" href="<?php echo SITE_URL; ?>css/bootstrap/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link id="bootstrap-responsive" href="<?php echo SITE_URL; ?>css/bootstrap/bootstrap-responsive.min.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo SITE_URL; ?>css/supr-theme/jquery.ui.supr.css" rel="stylesheet" type="text/css"/>
    <link href="<?php echo SITE_URL; ?>css/icons.css" rel="stylesheet" type="text/css" />

    <!-- Plugin stylesheets -->
    <link href="<?php echo SITE_URL; ?>plugins/misc/qtip/jquery.qtip.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo SITE_URL; ?>plugins/forms/uniform/uniform.default.css" type="text/css" rel="stylesheet" />        
    <link href="<?php echo SITE_URL; ?>plugins/tables/dataTables/jquery.dataTables.css" type="text/css" rel="stylesheet" />
    <link href="<?php echo SITE_URL; ?>plugins/tables/dataTables/TableTools.css" type="text/css" rel="stylesheet" />

    <!-- Main stylesheets -->
    <link href="<?php echo SITE_URL; ?>css/main.css" rel="stylesheet" type="text/css" /> 

    <!-- Custom stylesheets ( Put your own changes here ) -->
    <link href="<?php echo SITE_URL; ?>css/custom.css" rel="stylesheet" type="text/css" /> 

    <!--[if IE 8]><link href="css/ie8.css" rel="stylesheet" type="text/css" /><![endif]-->

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script type="text/javascript" src="js/libs/excanvas.min.js"></script>
      <script type="text/javascript" src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
      <script type="text/javascript" src="js/libs/respond.min.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="<?php echo SITE_URL; ?>images/favicon.ico" />
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo SITE_URL; ?>images/apple-touch-icon-144-precomposed.png" />
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo SITE_URL; ?>images/apple-touch-icon-114-precomposed.png" />
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo SITE_URL; ?>images/apple-touch-icon-72-precomposed.png" />
    <link rel="apple-touch-icon-precomposed" href="<?php echo SITE_URL; ?>images/apple-touch-icon-57-precomposed.png" />
    
    <!-- Windows8 touch icon ( http://www.buildmypinnedsite.com/ )-->
    <meta name="msapplication-TileColor" content="#3399cc"/> 

    <!-- Load modernizr first -->
    <script type="text/javascript" src="<?php echo SITE_URL; ?>js/libs/modernizr.js"></script>
	
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>
    <![endif]-->

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
$(function() {	
	$("#db-one").change(function() {
	$("#tmplallservices").load("transql/stateselector.php?choice=" + $("#db-one").val());
	});	
});
</script>

    </head>
      
    <body>
    <!-- loading animation -->
    <div id="qLoverlay"></div>
    <div id="qLbar"></div>
    
    <div id="header" class="fixed">

        <?php include 'inc/header.php'; ?><!-- /navbar --> 

    </div><!-- End #header -->

    <div id="wrapper">

        <!--Responsive navigation button-->  
        <div class="resBtn">
            <a href="#"><span class="icon16 minia-icon-list-3"></span></a>
        </div>
        
        <!--Sidebar collapse button-->  
        <div class="collapseBtn leftbar">
             <a href="#" class="tipR" title="Hide sidebar"><span class="icon12 minia-icon-layout"></span></a>
        </div>

        <!--Sidebar background-->
        <div id="sidebarbg"></div>
        <!--Sidebar content-->
        <div id="sidebar">
			<?php include 'inc/sidebar.php'; ?><!-- /sidebar -->
        </div><!-- End #sidebar -->

        <!--Body content-->
        <div id="content" class="clearfix">
            <div class="contentwrapper"><!--Content wrapper-->

                <div class="heading">
				<!--Content Title-->
                    <h3><?php echo $hotel_name; ?></h3>                    

                    <div class="resBtnSearch">
                        <a href="#"><span class="icon16 icomoon-icon-search-3"></span></a>
                    </div>

                    <ul class="breadcrumb">
                        <li>
                            <a href="./" class="tip" title="back to dashboard">
                                <span class="icon16 icomoon-icon-screen-2"></span>
                            </a> 
                            <span class="divider">
                                <span class="icon16 icomoon-icon-arrow-right-3"></span>
                            </span>
                        </li>
                        <li class="active"><a href="javascript: history.go(-1)">Go Back</a></li>
                    </ul>

                </div><!-- End .heading-->


                <!-- Build page from here: -->
                <div class="row-fluid">
					
                    <div class="span12">
                            <div class="page-header">
                                <h4><?php echo $room_name; ?> Room Prices Administration &nbsp; <a href="manage-hotel.php?hotelid=<?=$hotel_id?>&hotelname=<?=$hotel_name?>&tab=2" class="btn btn-primary"><span class="icomoon-icon-arrow-left-9 white"/> Back</a></h4>
                            </div>
                            <div style="margin-bottom: 20px;">
                                <ul id="myTab" class="nav nav-tabs pattern">
                                    <li <?php echo $label1; ?>><a href="#tab1" data-toggle="tab">Description</a></li>
                                    <li <?php echo $label2; ?>><a href="#tab2" data-toggle="tab">Availability</a></li>
                                    <li <?php echo $label3; ?>><a href="#tab3" data-toggle="tab">Room Prices</a></li>
                                    <li <?php echo $label4; ?>><a href="#tab4" data-toggle="tab">Add Price</a></li>
                                </ul>

                                <div class="tab-content">
                                    
                                    <!-- Start Tab1 -->
                                    <div class="tab-pane fade <?php echo $tab1; ?>" id="tab1">
										<?php echo $hotelmsn; ?>
                                        
						<form action="transql/upds/update_room.php" method="post" class="form-horizontal">
                            <input type="hidden" name="room_id" value="<?php echo $room_id; ?>" class="span6" />
                            <input type="hidden" name="room_name" value="<?php echo $room_name; ?>" class="span6" />
                            <input type="hidden" name="hotel_id" value="<?php echo $hotel_id; ?>" class="span6" />
                            <input type="hidden" name="hotel_name" value="<?php echo $hotel_name; ?>" class="span6" />
                            
                            <div class="form-row row-fluid">
								<div class="span12">
									<div class="row-fluid">
										<label class="form-label span3">Room name</label>
										<input class="span4" type="text" name="room_type_name" value="<?php echo $room_name; ?>" />
									</div>
								</div>
							</div>
                            
                            <div class="form-row row-fluid">
                                <div class="span12">
                                	<div class="row-fluid">
                                		<label class="form-label span3">Room Short Description</label>
                                		<textarea class="span4 limit elastic" id="textarea2" rows="3" cols="5" name="room_type_short_description"><?php echo $room_type_short_description; ?></textarea>
                                	</div>
                                </div>  
                            </div>
                            
                            <div class="form-row row-fluid">
                                <div class="span12">
                                	<div class="row-fluid">
                                		<label class="form-label span3">Room Description</label>
                                		<textarea class="span4 limit elastic" id="textarea2" rows="3" cols="5" name="room_type_description"><?php echo $room_type_description; ?></textarea>
                                	</div>
                                </div>  
                            </div>
                            
                            <div class="form-row row-fluid">
								<div class="span12">
									<div class="row-fluid">
										<label class="form-label span3">Room guest capacity</label>
										<input class="span4" type="text" name="room_type_capacity" value="<?php echo $room_type_capacity; ?>" />
									</div>
								</div>
							</div>
                            
                            <div class="form-row row-fluid">
								<div class="span12">
									<div class="row-fluid">
										<label class="form-label span3">Max adults for room</label>
										<input class="span4" type="text" name="max_adults" value="<?php echo $max_adults; ?>" />
									</div>
								</div>
							</div>
                            
                            <div class="form-row row-fluid">
								<div class="span12">
									<div class="row-fluid">
										<label class="form-label span3">Max kids for room</label>
										<input class="span4" type="text" name="max_kids" value="<?php echo $max_kids; ?>" />
									</div>
								</div>
							</div>
                            
                            <div class="form-row row-fluid">
								<div class="span12">
									<div class="row-fluid">
										<label class="form-label span3">Room inventory</label>
										<input class="span4" type="text" name="room_type_inventory" value="<?php echo $roominventory; ?>" />
									</div>
								</div>
							</div>
                            
                           
                            <div class="control-group form-row row-fluid">        
                                <div class="span12">
                                    <div class="row-fluid">
                                        <div class="form-actions">
                                        <div class="span3"></div>
                                        <div class="span4 controlsmsn">
                                            <button id="btn-adduser" class="btn btn-success">Submit</button>
                                        </div>
                                        </div>
                                    </div>
                                </div>   
                            </div>

                        </form>
                                        
                                    </div>
                                    
                                    <!-- Start Tab2 -->
                                    <div class="tab-pane fade <?php echo $tab2; ?>" id="tab2">
										<?php echo $hotelmsnroomava; ?>
                                        
                                        <form action="transql/insts/manage-inventory-dates.php" method="post" class="form-horizontal">
                                             <input type="hidden" name="room_id" value="<?php echo $room_id; ?>" class="span6" />
                     						 <input type="hidden" name="room_name" value="<?php echo $room_name; ?>" class="span6" />
                                             <input type="hidden" name="hotel_id" value="<?php echo $hotel_id; ?>" class="span6" />                                             <input type="hidden" name="hotel_name" value="<?php echo $hotel_name; ?>" class="span6" />
                                             
                                             <div class="form-row row-fluid">
                                            	<div class="span12">
                                                	<div class="row-fluid">
                                                    	<label class="form-label span3" for="checkboxes">For Date</label>
                                                    	<div class="span4">
                                                        <input type="text" id="datepicker" name="avafordate" />
                                                    	</div>
                                                	</div>
                                            	</div> 
                                        	 </div>
                                             
                                             <div class="form-row row-fluid">
                                            	<div class="span12">
                                                	<div class="row-fluid">
                                                    	<label class="form-label span3" for="checkboxes">To Date</label>
                                                    	<div class="span4">
                                                        <input type="text" id="datepicker2" name="avatodate" />
                                                    	</div>
                                                	</div>
                                            	</div> 
                                        	 </div>  
                                             
                                             <div class="control-group form-row row-fluid">
                                              <div class="span12">
                                                <div class="row-fluid">
                                                  <label class="form-label span3">Available Inventory</label>
                                                  <div class="span4 controls">
                                                    <select name="avainventory">
                                                      	  <option value='0'>0</option>
                                                       <?php
													     for ( $conta = 1 ; $conta <= $roominventory ; $conta ++)      
    													  { 
                                                          echo"<option value='$conta'>$conta</option>";
														  }
													   ?>                                                          
                                                    </select>
                                                  </div>
                                                </div>
                                              </div>
                                             </div>
                                             
                                             <div class="form-actions">
                                             	<button type="submit" class="btn btn-primary">Submit</button>
                                             </div>
                                        </form>
                                        <br />
                                        <h4>Management of Available Inventory</h4>
                                        <br />
                                        <?php if($customavailabletotal > 0) { ?>
                                          <table cellpadding="0" cellspacing="0" border="0" class="tableTools display table table-bordered" width="100%">
                                                    <thead>
                                                        <tr>
                                                            <th>Id</th>
                                                            <th>From Date</th>
                                                            <th>To Date</th>
                                                            <th>Bookings</th>
                                                            <th>Bloqued</th>
                                                            <th>Available</th>
                                                        </tr>
                                                    </thead>
                                                  <tbody>
                                            <?php while($customavailableData = mysqli_fetch_array($customavailable))     
                                                {         
													$inventariodisponible = $roominventory - $customavailableData['total_room'] -$customavailableData['blocked_inventory'];                                      
													 	?>
                                                        <tr class="user-row">
                                                            <td><?php echo $customavailableData['check_availability_id']; ?></td>
                                                            <td><?php echo $customavailableData['check_in_date']; ?></td>
                                                            <td><?php echo $customavailableData['check_out_date']; ?></td>
                                                            <td><?php echo $customavailableData['total_room']; ?></td>
                                                            <td><?php echo $customavailableData['blocked_inventory']; ?></td>
                                                            <td><?php echo $inventariodisponible; ?></td>
                                                        </tr>
                                                    <?php } ?>
                                                  </tbody>
                                                </table>
                                            <?php } mysqli_free_result($customavailable); ?>
                                        
                                    </div>
                                    
                                    <!-- Start Tab3 -->
                                    <div class="tab-pane fade <?php echo $tab3; ?>" id="tab3">
										<?php echo $hotelmsn2; ?>
                                        <?php if($max_adults > 0) { ?>
                                        <table cellpadding="0" cellspacing="0" border="0" class="tableTools display table table-bordered" width="100%">
                                            <thead>
                                                <tr> 
                                                  	<th><center>Persons</center></th>
                                                    <th>Price Description</th>
                                                  	<th>Room Price</th>
                                                    <th>Status</th>
                                                  	<th>Actions</th>
                                                </tr>
                                            </thead>
                                          	<tbody>
                                            <?php 
											for($adu = 1; $adu <= $max_adults; $adu++)											     
											{
											 $valoradu = $adu - 1;
											 $activelement = 'Inactive';
											 $activelabel = 'label-important';
											 $urlupdateprice = 'price-new.php';											 
											 $price_room_id = $preciosroom[$valoradu][price_room_id];
											 $personasprecio = $preciosroom[$valoradu][number_person];
											 $descripcionprecio = $preciosroom[$valoradu][price_description];
											 $preciohabitacion = $preciosroom[$valoradu][price_room];
											 if($price_room_id > 0) {				
												$activelement = 'Active';
												$activelabel = 'label-success';
												$urlupdateprice = 'update-price-room.php';
												
											 }
											?>
												<tr class="user-row">
                                                    <form action="transql/insts/<?=$urlupdateprice?>" method="post" class="form-horizontal">
                                                     <input type="hidden" name="room_id" value="<?php echo $room_id; ?>"  />
                                                     <input type="hidden" name="room_name" value="<?php echo $room_name; ?>"  />
                                                     <input type="hidden" name="hotel_id" value="<?php echo $hotel_id; ?>" />
                                                     <input type="hidden" name="hotel_name" value="<?php echo $hotel_name; ?>" />
                                                     <input type="hidden" name="price_person" value="<?php echo $adu; ?>" />
                                                     <input type="hidden" name="price_room_id" value="<?php echo $price_room_id; ?>"  />
                                                	<td><center><?php echo $personasprecio; ?></center></td>
                                              		<td><center><input type="text" name="price_description"  value="<?php echo $descripcionprecio; ?>"/></center></td>
                                              		<td><center><input type="text" name="price_room" value="<?php echo $preciohabitacion; ?>" /></center></td>
                                              		<td>
                                                        <span class='label <?=$activelabel?>'>
                                                      	 <?=$activelement?>
                                                   		</span>                                                   
                                                    </td>
                                                    <td>
                                                    	<button type="submit" class="btn btn-primary">Save Price</button>
                                                    	<a href='' class='btn'><strong>Manage Seasonal Price</strong></a>
                                                    </td>
                                                    </form>
                                                 </tr>											
											<?php } ?>
                                            </tbody>
                                        </table>
									    <?php } ?>   
									<?php if($customtotal > 0) { ?>
                                        <table cellpadding="0" cellspacing="0" border="0" class="tableTools display table table-bordered" width="100%">
                                            <thead>
                                                <tr>
                                                    <th>Price Id</th>
                                                  	<th>Price Description</th>
                                                  	<th>Persons</th>
                                                  	<th>Room Price</th>
                                                  	<th>Status</th>
                                                  	<th>Actions</th>
                                                </tr>
                                            </thead>
                                          <tbody>
                                    <?php while($busData = mysqli_fetch_array($custom))     
										{
										 $activelement = 'Inactive';
										 $activelabel = 'label-important';
										 if($busData['price_status'] == 'Y') {
			
											$activelement = 'Active';
											$activelabel = 'label-success';
										 } ?>
                                            <tr class="user-row">
                                                <td><?php echo $busData['price_id']; ?></td>
                                              	<td><?php echo $busData['price_description']; ?></td>
                                              	<td><?php echo $busData['room_person']; ?></td>
                                              	<td><?php echo $busData['room_price']; ?></td>
                                              	<td>
                                                    <span class='label <?=$activelabel?>'>
                                                      <?=$activelement?>
                                                    </span>
                                              	</td>
                                              	<td width='250px'>
                                    <?php if($busData['price_status'] == 'N') { ?>
                                              		<a href='transql/upds/change-room-price-status.php?roomid=<?php echo $busData['room_type_id']; ?>&roomname=<?=$room_name?>&pricestatus=Y&price_id=<?php echo $busData['price_id']; ?>&hotelid=<?=$hotel_id?>&hotelname=<?=$hotel_name?>' class='btn'><strong>Active</strong></a>
                                    <?php } elseif($busData['price_status'] == 'Y') { ?>
                                              		<a href='transql/upds/change-room-price-status.php?roomid=<?php echo $busData['room_type_id']; ?>&roomname=<?=$room_name?>&pricestatus=N&price_id=<?php echo $busData['price_id']; ?>&hotelid=<?=$hotel_id?>&hotelname=<?=$hotel_name?>' class='btn'><strong>Inactive</strong></a>
                                            <?php } ?>
                                                    <a href='transql/upds/delete-room-price.php?roomid=<?php echo $busData['room_type_id']; ?>&roomname=<?=$room_name?>&price_id=<?php echo $busData['price_id']; ?>&hotelid=<?=$hotel_id?>&hotelname=<?=$hotel_name?>' class='btn'><strong>Delete</strong></a>
                                              </td>
                                            </tr>
                                            <?php } ?>
                                          </tbody>
                                        </table>
                                    <?php } mysqli_free_result($custom); ?>    
                                    </div>
                                    
                                    <!-- Start Tab4 -->
                                    <div class="tab-pane fade <?php echo $tab4; ?>" id="tab4">
                                    	<?php echo $hotelmsn2; ?>
									
										<form action="transql/insts/price-new.php" method="post" class="form-horizontal">
                                             <input type="hidden" name="room_id" value="<?php echo $room_id; ?>" class="span6" />
                     						 <input type="hidden" name="room_name" value="<?php echo $room_name; ?>" class="span6" />
                                             <input type="hidden" name="hotel_id" value="<?php echo $hotel_id; ?>" class="span6" />
                                             <input type="hidden" name="hotel_name" value="<?php echo $hotel_name; ?>" class="span6" />
                                             
                                             <div class="control-group form-row row-fluid">
                                                <div class="span12">
                                                    <div class="row-fluid">
                                                        <label class="form-label span3">Price description</label>
                                                        <input type="text" name="price_description" class="span4" />
                                                    </div>
                                                </div>
                                             </div>
                                             
                                             <div class="control-group form-row row-fluid">
                                              <div class="span12">
                                                <div class="row-fluid">
                                                  <label class="form-label span3">Person in the room</label>
                                                  <div class="span4 controls">
                                                    <select name="price_person">
                                                      <option value=''>Select...</option>
                                                      <option value='1'>1</option>
                                                      <option value='2'>2</option>
                                                      <option value='3'>3</option>
                                                      <option value='4'>4</option>
                                                      <option value='5'>5</option>
                                                      <option value='6'>6</option>
                                                      <option value='7'>7</option>
                                                      <option value='8'>8</option>
                                                      <option value='9'>9</option>
                                                      <option value='10'>10</option>
                                                    </select>
                                                  </div>
                                                </div>
                                              </div>
                                             </div>
                                             
                                             <div class="control-group form-row row-fluid">
                                                <div class="span12">
                                                    <div class="row-fluid">
                                                        <label class="form-label span3">Price room</label>
                                                        <input type="text" name="price_room" class="span4" />
                                                    </div>
                                                </div>
                                             </div>
                                             
                                             <div class="form-actions">
                                             	<button type="submit" class="btn btn-primary">Submit</button>
                                             </div>
                                        </form>
                                    </div>
                                    
                                </div>
                            </div>

                        </div><!-- End .span6 -->
                    
                </div><!-- End .row-fluid -->
                <!--End page -->
                
                
            </div><!-- End contentwrapper -->
        </div><!-- End #content -->
           
    <footer>
    	<?php include 'inc/footer.php'; ?><!-- /footer -->
    </footer>
    
    </div><!-- End #wrapper -->
    
    <!-- Le javascript
    ================================================== -->
    <!-- Important plugins put in all pages -->
    <script  type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>js/bootstrap/bootstrap.js"></script>  
    <script type="text/javascript" src="<?php echo SITE_URL; ?>js/jquery.mousewheel.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>js/libs/jRespond.min.js"></script>


    <!-- Misc plugins -->
    <script type="text/javascript" src="<?php echo SITE_URL; ?>plugins/misc/qtip/jquery.qtip.min.js"></script><!-- Custom tooltip plugin -->
    <script type="text/javascript" src="<?php echo SITE_URL; ?>plugins/misc/totop/jquery.ui.totop.min.js"></script> 
    
    
	<!-- Form plugins -->
    <script type="text/javascript" src="<?php echo SITE_URL; ?>plugins/forms/elastic/jquery.elastic.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>plugins/forms/inputlimiter/jquery.inputlimiter.1.3.min.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>plugins/forms/maskedinput/jquery.maskedinput-1.3.min.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>plugins/forms/togglebutton/jquery.toggle.buttons.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>plugins/forms/uniform/jquery.uniform.min.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>plugins/forms/timeentry/jquery.timeentry.min.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>plugins/forms/select/select2.min.js"></script>

	
    <!-- Table plugins -->
    <script type="text/javascript" src="<?php echo SITE_URL; ?>plugins/tables/dataTables/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>plugins/tables/dataTables/TableTools.min.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>plugins/tables/dataTables/ZeroClipboard.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>plugins/tables/responsive-tables/responsive-tables.js"></script><!-- Make tables responsive -->
    

    <!-- Init plugins -->
    <script type="text/javascript" src="<?php echo SITE_URL; ?>js/main.js"></script><!-- Core js functions -->
    <script type="text/javascript" src="<?php echo SITE_URL; ?>js/datatable.js"></script><!-- Init plugins only for page -->
    <script type="text/javascript" src="<?php echo SITE_URL; ?>js/forms.js"></script><!-- Init plugins only for page -->


	<script src="<?php echo SITE_URL; ?>ASLibrary/js/asengine.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>ASLibrary/js/index.js" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>ASLibrary/js/logout.js" charset="utf-8"></script>
    
    </body>
</html>