 <?php include_once PUBLIC_PATH. '/files_to_include/header_content.php'; ?>
<!-- =============================================== -->

  <!-- Left side column. contains the sidebar -->
  <aside class="main-sidebar" id="aside_menu" >
      <section class="sidebar">
          <ul class="sidebar-menu">
            <?php include_once PUBLIC_PATH. '/files_to_include/menu.php'; ?>
          </ul>
      </section>
  </aside>
   <!-- Content Wrapper. Contains page content -->
   <div class="content-wrapper " style="background-color: white; td{border: solid  2px #000; }">
   

    <!-- Main content -->
    <section class="content">
          
           <div class="row">
                <div class="col-lg-12">
                   
                    <h3 class="page-header"><i class="fa fa-eye" style="color:blue;"></i> Consulter Logement</h3>
                    <a href='<?php echo $this->url(array('controller'=>'Logement','action'=>'index'),null, true);?>'>Retour à la liste</a>
                    <div class="clearfix"></div>
                    <br>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <form id="createLogement" enctype="multipart/form-data">
                        <div class="col-lg-4">
                            <div class="form-group">
                                <label>Code</label><label style="color:blue;">&nbsp; * &nbsp;</label>
                                <input type="text" id="code" value="<?php echo $this->logement->getCode(); ?>" class="form-control" readonly="true"/>
                            </div>
                            <div class="form-group">
                                <label>localisation</label><label style="color : blue;">&nbsp; * &nbsp;</label>
                                <input type="text" id="localisation" value="<?php echo $this->logement->getLocalisation(); ?>" class="form-control" readonly="true"/>
                            </div>
                            
                            <div class="form-group">
                                <label>Image</label>
                               
                                <div>
                                     <img src="<?php echo $this->baseUrl('img/logement/').$this->logement->getImage(); ?>" id="preview" style="height: 35px; width: 35px;" />
                                </div>
                            </div>
                            
                        </div>
                        <div class=" col-lg-offset-2 col-lg-4">
                            <div class="form-group">
                                <label>Prix</label><label style="color : blue;">&nbsp; * &nbsp;</label>
                                <input type="number" id="prix" value="<?php echo $this->logement->getPrix(); ?>" class="form-control prix" readonly="true"/>
                            </div>
                            <div class="form-group">
                                <label>Nbre Place</label><label style="color : blue;">&nbsp; * &nbsp;</label>
                                <input type="number" id="nbre" value="<?php echo $this->logement->getNbreplace(); ?>" class="form-control nbre" readonly="true"/>
                            </div>
                            <div class="form-group">
                               <label>Type</label><label style="color:blue;">&nbsp; *&nbsp;</label>
                                    <select id="type" class="form-control selectpicker" required="">
                                       <?php if($this->logement->getType() == TYPE_LOGEMENT_CHAMBRE){ ?>
                                        <option selected="true" value="<?php echo TYPE_LOGEMENT_CHAMBRE; ?>">CHAMBRE</option>
                                             <option value="<?php echo TYPE_LOGEMENT_SALLE; ?>">SALLE</option> 
                                      <?php }else{ ?>
                                             <option selected="true" value="<?php echo TYPE_LOGEMENT_SALLE; }?>">SALLE</option> 
                                       <option value="<?php echo TYPE_LOGEMENT_CHAMBRE; ?>">CHAMBRE</option>

                                    </select>
                            </div>
                           
                            
                        </div>
                    </form>
                        
                 </div>
                   
                
            </div>
     

    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
 <?php include_once PUBLIC_PATH. '/files_to_include/footer_content.php'; ?>
  
   	 <script src="<?php echo $this->baseUrl('script/jquery.min.js');?>"></script>
    <script src="<?php echo $this->baseUrl('script/bootstrap.min.js');?>"></script>
    <script src="<?php echo $this->baseUrl('script/app.min.js');?>"></script>
    <script src="<?php echo $this->baseUrl('script/i18next-1.7.1.min.js');?>"></script>
    <script src="<?php echo $this->baseUrl('script/metisMenu.min.js');?>"></script>
    <script src="<?php echo $this->baseUrl('script/sb-admin-2.js');?>"></script>
    <script src="<?php echo $this->baseUrl("script/pdfmake.min.js");?>"></script>
    <script src="<?php echo $this->baseUrl("script/vfs_fonts.js");?>"></script>
    <script src="<?php echo $this->baseUrl("script/jquery.toast.min.js");?>"></script>
    <script src="<?php echo $this->baseUrl('script/loadingoverlay.min.js');?>"></script>
    <script src="<?php echo $this->baseUrl("script/jquery.datetimepicker.full.js");?>"></script>
    <script src="<?php echo $this->baseUrl("script/bootstrap.select.min.js");?>"></script>
    <script src="<?php echo $this->baseUrl("script/moment.js");?>"></script>
    <!-- FastClick -->
<script src="<?php echo $this->baseUrl('script/fastclick.js');?>"></script>
<!-- AdminLTE App -->
<script src="<?php echo $this->baseUrl('script/adminlte.min.js');?>"></script>
<script src="<?php echo $this->baseUrl('script/demo.js');?>"></script>
   <script type="text/javascript">
        
        $(document).ajaxSend(function(event, jqxhr, settings){
            $.LoadingOverlay("show");
        });
        
        $(document).ajaxComplete(function(event, jqxhr, settings){
            $.LoadingOverlay("hide");
        });
     
  </script>

</body>

</html>