<?php

?>

<div class="right_col" role="main">
	<div class="">
		<div class="row">
            <div class="col-md-6 col-sm-12 col-xs-12">
                <div class="x_panel">
					<div class="x_title">
						<h2><?php echo $_GET['update'] ? 'Update ' : 'Add '; ?>Details</h2>
						<div class="clearfix"></div>
					</div>
					<div class="x_content">

						<form class="form-horizontal form-label-left" action="PHPExcel-1.8/reservation-importer.php" method="post" enctype="multipart/form-data">
							<input type="hidden" name="id" value="<?php echo $_GET['update'] ? $_GET['update'] : ''; ?>">

							<div class="form-group">
								<label class="control-label col-md-2 col-sm-2 col-xs-12">Platform</label>
								<div class="col-md-6 col-sm-6 col-xs-12">
									<select class="form-control" name="platform">
										<?php foreach(platforms() AS $data){ ?>
										<option value="<?php echo $data['id']; ?>"><?php echo strtoupper($data['title']); ?></option>
										<?php } ?>

									</select>
								</div>
							</div>
						
							<div class="item form-group">
								<label class="control-label col-md-2 col-sm-2 col-xs-12" for="roomno">File</label>
							  <div class="col-md-6 col-sm-6 col-xs-12">
								  
									<input id="roomno" class="form-control col-md-7 col-xs-12" name="fileToUpload" type="file">
							  </div>
							</div>
							
							<div class="ln_solid"></div>
							<div class="form-group">
								<div class="col-md-6 col-md-offset-2">
									<button id="send" type="submit" name="fileToUpload" class="btn btn-success">Upload</button>
								</div>
							</div>
						</form>
					</div>
                </div>
            </div>
        </div>
    </div>
</div>