Terminado

Similar a (2º intento)

Publicado el 16 Marzo, 2017 en Diseño y Multimedia

Sobre este proyecto

Abierto

No tenemos CMS y esta creada con Codeignaiter. Tendrias que introducir el codigo a mano. Necesityamos alguien que conozcas cms y js, principalmente.

si no estas segur@ de poder hacerlo no hagas ninguna propuesta.
Pretendemos que con los elementos existentes esta página https://www.bydays.com/rooms/1 se parezca a esta https://www.airbnb.es/rooms/530250.

No tiene que ser exacta o si, aceptamos propuestas. Necesitamos una pequeña descripción de trabajo que realizarías.

Front end de la pagina:


<?php
    $sessionlang = $this->session->userdata('locale');
    if ($sessionlang != ''){
             $rowlang = $this->Common_model->getTableData('list_language', array('list_id' => $list->id, 'lang_id' => $sessionlang ))->row();
    } else {
             $rowlang = '';
    }
?>
<input type="hidden" id="base_url" name="base_url" value="<?php echo base_url(); ?>" />
<input type="hidden" id="list_id" name="list_id" value="<?php echo $list->id; ?>" />
<div class="container">

<?php if (isset($_GET['facebook_share']) && $_GET['facebook_share'] =='ok') { ?>
    <div class="alert alert-success"><?php echo translate('Thanks for share this house on Facebook'); ?></div>
<?php
    }
    if($this->dx_auth->is_logged_in() && $this->dx_auth->get_user_id()== $list->user_id)  { ?>
    <div class="well well-white ">
        <div class="row-fluid">
            <div class="span3 center-text well marBot0">
                <a href="<?php echo base_url(); ?>rooms/edit/<?php echo $list->id; ?>">
                    <img src="<?php echo image_url(); ?>edit_rooms.png" alt="<?php echo translate("Edit Listing"); ?>"><br>
                    <strong><?php echo translate("Edit Listing"); ?></strong>
                </a>
                <p class="muted"><?php echo translate("You can change anything you want from your ad"); ?></p>
            </div>
            <div class="span3 center-text well marBot0">
                <a href="<?php echo base_url(); ?>rooms/edit_photo/<?php echo $list->id; ?>">
                    <img src="<?php echo image_url(); ?>edit_photos.png" alt="<?php echo translate("Upload photo"); ?>"><br>
                    <strong><?php echo translate("Upload photo"); ?></strong>
                </a>
                <p class="muted"><?php echo translate("Add, modify or delete the pictures of this announcement"); ?></p>
            </div>
            <div class="span3 center-text well marBot0">
                <a href="<?php echo base_url(); ?>calendar/single/<?php echo $list->id; ?>">
                    <img src="<?php echo image_url(); ?>edit_calendar.png" alt="<?php echo translate("View Calendar"); ?>"><br>
                    <strong><?php echo translate("View Calendar"); ?></strong>
                </a>
                <p class="muted"><?php echo translate("Keep your calendar updated"); ?></p>
            </div>
            <div class="span3 center-text well marBot0">
                <a href="<?php echo base_url(); ?>rooms/edit_price/<?php echo $list->id; ?>">
                    <img src="<?php echo image_url(); ?>edit_terms.png" alt="<?php echo translate("Pricing and Terms"); ?>"><br>
                    <strong><?php echo translate("Pricing and Terms"); ?></strong>
                </a>
                <p class="muted"><?php echo translate("Check that the amounts and conditions are correct"); ?></p>
            </div>
        </div>
    </div>
<?php } ?>

    <div class="light-blue-box marBot10 marRig2">
        <div class="row-fluid">
            <div class="span9">
                <h1 class="title">
                    <?php if ($rowlang->title == '') { echo ucfirst(strtolower($list->title)); } else { echo ucfirst(strtolower($rowlang->title)); } ?>
<!--
                    <?php if (list_pro($list->id)) { ?>
                    <img src="<?php echo image_url(); ?>verified-house.png" width="58" height="60" alt="House PRO" />
                    <?php }?>
-->
        
                </h1>
                <p class="description mar0">
                    <?php if($list->ru_ID == NULL):
                        $result1 = $this->db->get_where('categories', array('id' => $list->property_id))->row(); echo translate($result1->name); ?>s en
                  <?php endif; $pieces = explode(",",$list->address); $i = count($pieces); echo $pieces[$i-5].', '.$Pieces[$i-4].', '.$Pieces[$i-3].', '.$Pieces[$i-2].', '.$Pieces[$i-1]; ?>
                </p>
            </div>
            <div class="span3">
                <div class="lead pull-center pad15">
                    <?php echo translate("ID Property: "); ?><?php echo $list->id; ?>
                    <!--
                        <div id="div_loves">
                                    <span class="loves">
                                        <a class="btn btn-mini" data-message="<?php echo $list->id?>"><i class="icon-heart icon-blue"></i> <?php echo $this->db->get_where('loves', array('type' => 2, 'item_id' => $list->id))->num_rows(); ?></a>
                                    </span>
                                    </div>
                                    <div id="div_loves_hide" style="display: none">
                                    <span class="loves">
                                        id property<a class="btn btn-mini" data-message="<?php echo $list->id?>"><i class="icon-heart icon-blue"></i> <?php echo $this->db->get_where('loves', array('type' => 2, 'item_id' => $list->id))->num_rows() + 1; ?></a>
                                    </span>
                            </div>
                        -->
                            </div>
            </div>
        </div>
<!-- Start left col-->
    </div>
                     
  <div class="row-fluid">

     
                   

             
                   
        <div class="span7">
           

                    
                     
                     
<div class="well well-white well-shadow ">
        
                    <h5 class="dark-blue-box center-text  pad10 marBot1 upper">
                    <?php echo translate("description");?>
                    </h5>
                        <div class="mar16">
                            <?php $languages = $this->Common_model->getTableData('language')->result(); ?>
                            <select name="translateDescription" onchange="traducirDescripcion(this.value, <?php echo $list->id; ?>)">
                                <option value=""><?php echo translate('Select other language'); ?></option>
                                <?php foreach($languages as $row): ?>
                                    <?php //if($row->code != $list->lang_id): ?>
                                        <option value="<?php echo $row->code; ?>"><?php echo $row->name; ?></option>
                                    <?php //endif; ?>
                                <?php endforeach; ?>
                            </select>
                           
<?php
    $face_desc = '';
    if ($rowlang == null){
        echo '<p id="textoDescripcion">' . $List->desc . '</P>';
        $face_desc = substr($list->desc, 3 , 150);
    } else {
        echo '<p id="textoDescripcion">' .
$Rowlang->desc . '</P>';
        $face_desc = substr($rowlang->desc, 3 , 150);
    }
?>
                            <?php if($list->ru_ID == NULL): ?>
                                <h5><?php echo translate('TheSpace'); ?></h5>
                                <?php
                                    if ($rowlang == null){
                                        echo $list->space;
                                        $face_desc .= Substr($list->space, 3 , 150);
                                    } else {
                                        echo $rowlang->space;
                                        $face_desc .= Substr($rowlang->space, 3 , 150);
                                    }
                                ?>
                                <h5><?php echo translate('TheNeighborhood'); ?></h5>
                                <?php
                                    if ($rowlang == null){
                                        echo $list->neighborhood;
                                        $face_desc .= Substr($list->neighborhood, 3 , 150);
                                    } else {
                                        echo $rowlang->neighborhood;
                                        $face_desc .= Substr($rowlang->neighborhood, 3 , 150);
                                    }
                                ?>
                            <?php  endif; ?>
<?php/*    <h5> <echo translate('House role'); ?></h5>
    <?php
    if ($rowlang == null){
        echo $list->manual;
        $face_desc .= Substr($list->manual, 3 , 150);
    } else {
        echo $rowlang->manual;
        $face_desc .= Substr($rowlang->manual, 3 , 150);
    }

</div>
                    </div>
                    <div class="tab-pane" id="usability" style="margin:10px;">
<?php
    echo printUsabilityReport($list->id);
?>

     <section class="container-fluid section-3-items ">
                            <div class="mar16">

                                <li id="primero" style="list-style:none;text-align: left; font-family: sans-serif; border:none; color: black;"<strong><br>Tiene a su dispoción un sistema intuitivo y fácil para identificar el nivel de accesibilidad de los espacios valorados.</Br>

<br>Tras obtener información de los anfitriones, referentes a los criterios de cadena de accesibilidad, que afectan a  los alojamientos en alquiler, como por ejemplo el acceso desde el exterior, baños, habitación, iluminación... Obtenemos la información de los propietarios y la valoramos, ofreciendo una información sobre la accesibilidad del alojamiento.</Br>


<div class="span12" style="margin-bottom: 100px; color: rgb(30, 30, 30);">
                                        <div class="span4 center-text ">
                                            <img width="75" height="75" src="<?php echo SITE_IMG ?>circuloverde.png">
                                            <label style="margin-left: 1px;font-size: 0.9em;font-family: sans-serif; padding: 7px; display:block; margin-top: -19px">El color verde en el fondo, indica que el propietario considera que es accesible.</Label>
                                        </div>
                                        <div class="span4 center-text ">
                                            <img width="75" height="75"  src="<?php echo SITE_IMG ?>circulonaranja.png" >
                                            <label style="margin-left: 1px;font-size: 0.9em;font-family: sans-serif; padding: 7px; display:block; margin-top: -19px">El color naranja en el fondo, indica que el propietario considera que es moderadamente accesible.</Label>
                                        </div>
                                        <div class="span4 center-text">
                                            <img width="75" height="75" src="<?php echo SITE_IMG ?>circulorojo.png">
                                            <label style="margin-left: 5px;font-size: 0.9em;font-family: sans-serif; padding: 7px; margin-top: -19px; display:block">El color rojo en el fondo, indica que el propietario considera que no es accesible.</Label>
                                         </div>    
                                                 <div class="span12 center-text ">
                                                <div class="mar16">
                                                 <a href="<?php echo base_url(); ?>blog/como-funciona-bydays-com-para-las-personas-con-discapacidad-fisica/" role="button" data-toggle="modal" target="_blank" class="btn btn-green btn-large btn-block marTop15"><?php echo translate("Conoce mas sobre nuestro sistema de valoración"); ?></a>
                                                </div>
                                                
                                                 </li>*/?>
                            </article>
                        </section>
    
                    </div>
                    <div class="clear">
                           
                         
                </div>
</div>
                                
<div class="well well-white well-shadow">
                    
                

               
                                    <h5 class="dark-blue-box center-text  pad10 marBot1 upper">
                    <?php echo translate("Amenities");?>
                    </h5>
<?php
    if ($list->amenities!=''):
?>
                        <div class="white-bg" style="padding:20px">
<?php
        $in_arr = explode(',', $list->amenities);
        //$tCount = $amnities->num_rows();
        foreach($categories_amenities->result() as $row):
            $mostrado = false;
            $amenities = $this->db->get_where('amnities', array('id_categorie' => $row->id));
            foreach($amenities->result() as $rows):
                if(in_array($rows->id, $in_arr)):
                    if(!$mostrado): ?>
                        <p><b><?php echo translate($row->name); ?></b></p>
                        <ul style="padding:0">
<?php                endif;
?>
    
                        <i class="icon-gtick"></i>
                        <?php echo translate($rows->name); ?>
                        <a class="helpTooltip" data-placement="bottom" href="#" rel="tooltip" title="<?php echo $rows->description; ?>">

                        </a>
                   
<?php
                    $mostrado = true;
                endif;
            endforeach;
            if($mostrado) echo '</ul>';
        endforeach;
?>

<?php if ($list->ru_AmenitiesCompositions != ''): ?>
        <div class="white-bg" style="padding:20px">
            <hr/>
    <?php
            $array_nums_compositions = array(53 => 1, 81 => 1, 94 => 1, 101 => 1, 249 => 1, 257 => 1, 372 => 1, 517 => 1);
            $array_compositions = array(53 => "WC", 81 => "Bathroom", 94 => "Kitchen in the living / dining room", 101 => "Kitchen", 249 => "Living room", 257 => "Bedroom", 372 => "Livingroom / Bedroom", 517 => "Bedroom / Living room with kitchen corner");
            $amenitiesCompositions = explode(';', $list->ru_AmenitiesCompositions);
            foreach($amenitiesCompositions as $amenityComposition):
                $array_amenityComposition = explode(':', $amenityComposition);
    ?>
                <p><b><?php echo translate($array_compositions[$array_amenityComposition[0]]); ?> <?php echo $array_nums_compositions[$array_amenityComposition[0]]; ?></b></p>
                <ul style="padding:0">
                    <?php $array_amenities = explode(',', $array_amenityComposition[1]); ?>
                    <?php foreach($array_amenities as $amenity):
                        $amenity_aux = $this->db->get_where('amnities', array('id' => $amenity))->row();
                        if($amenity_aux):
                    ?>
                        
                            <i class="icon-gtick"></i>
                            <?php echo translate($amenity_aux->name); ?>
                            <a class="helpTooltip" data-placement="bottom" href="#" rel="tooltip" title="<?php echo $amenity_aux->description; ?>">

                            </a>
                        
                    <?php endif;
                        endforeach; ?>
                </ul>
    <?php
                $array_nums_compositions[$array_amenityComposition[0]]++;
            endforeach; ?>
        </div>
                
                
                                                

<?php    endif; ?>
                        </div>
<?php
    endif;
?>
    
        </div>       
                    
                           <?php if($_SERVER['REMOTE_ADDR'] != '212.170.176.172' && $_SERVER['REMOTE_ADDR'] != '88.21.188.166'): ?>
            
<div class="well well-white well-shadow">
                            <h5 class="dark-blue-box center-text  pad10 marBot1 upper">
                            <?php echo translate("Cancelation Policy");?>
                            </h5>

                            <div class="row-fluid">

                                <div class="span12 center-text">
                                    <?php/*<img width="45" height="45" src="<?php echo base_url(); ?>images/house-icons/politica-de-cancel.png"alt="icono política de cancelación">*/?>
                                    <dt><?php echo translate("Cancellation Policy:");?></dt>
                                        <dd>
                        
                            
                        
                        <?php if($CancellationPolicies): ?>
                            <?php if(isset($CancellationPolicies['@attributes'])): ?>
                                  <p><?php echo translate('From') . ' ' . $CancellationPolicies['@attributes']['ValidFrom'] .
' ' . Translate('days to') . ' ' . $CancellationPolicies['@attributes']['ValidTo'] .
' ' . Translate('days arrival, charge') . ' ' . $CancellationPolicies[0] .
'% ' . Translate('of the total stay'); ?></p>
                              <?php else: ?>
                              <?php foreach($CancellationPolicies as $cancellationPolicy): ?>
                              <p><?php echo translate('From') . ' ' . $CancellationPolicy['@attributes']['ValidFrom'] .
' ' . Translate('days to') . ' ' . $CancellationPolicy['@attributes']['ValidTo'] .
' ' . Translate('days arrival, charge') . ' ' . $CancellationPolicy[0] .
'% ' . Translate('of the total stay'); ?></p>
                                  <?php endforeach; ?></dd>
                              <?php endif; ?>
                                
                        <?php else: ?>
                            <a href="<?php echo site_url('pages/cancellation_policy')?>#<?php echo $cancelation->short_name?>" target="_blank"> <?php echo $cancelation->name ?> </a>
                        <?php endif; ?>
                    </dd>
                                    <?php $result1 = $this->db->get_where('categories_cancel', array('id' => $list->cancelpolicy))->row();
                                        if ($result1->name!='' && !is_null($result1->name)) {

                                        ?>

                                        <?php } ?>
                                </div>
                            </div>
                        </div>
                    <?php endif; ?>

    <div class="well well-white well-shadow">
                    <h5 class="dark-blue-box center-text  pad10 marBot1 upper">
                    <?php echo translate("Property Details");?>
                    </h5>

                    <div class="row-fluid">
<div class="span2  center-text">
                    <?php/*<img src="<?php echo base_url(); ?>images/house-icons/casa.png"alt="icono tipo de propiedad">
                    <?php /*<dd><?php echo translate("Property Type");?>:*/?>
                    <dd><?php $result1 = $this->db->get_where('categories', array('id' => $list->property_id))->row(); ?>
                    <?php if ($result1->name!='') { ?>
                    <strong><?= translate($result1->name); ?></strong></dd>
                    <?php } ?>
                                    
                    </div>

                    
                        
<div class="span2 center-text">
                    <?php/*<img src="<?php echo base_url(); ?>images/house-icons/baño.png"alt="icono  baño">*/?>
                    <?php if ($list->bathrooms!='') { ?>
<dd><strong><?= $list->bathrooms; ?> <?php echo translate("Bathroom(s)");?></strong></dd>
                    <?php } ?>
                     </div>
                        <div class="span2 center-text">
                    <?php/*<img src="<?php echo base_url(); ?>images/house-icons/bed.png"alt="icono numero camas">*/?>
                    <?php if ($list->beds!='') { ?>
                        <dd><strong><?= $list->beds; ?> <?php echo translate("Beds");?></strong></dd>
                   
                    <?php } ?>
                     </div>
                                            <div class="span2 center-text">
                    <?php/*<img src="<?php echo base_url(); ?>images/house-icons/numerodecuartos.png"alt="icono numero cuartos">*/?>
                    <?php if ($list->bedrooms!='') { ?>
                    <dd> <strong><?php echo ($list->bedrooms > 0 ?  $list->bedrooms . Translate(" Bedroom(s)") : translate('Estudio'));?></strong></dd>
<?php } ?>
                     </div>
                        
                                            <div class="span2 center-text">
                    <?php/*<img width="45" height="45" src="<?php echo base_url(); ?>images/house-icons/floor.png"alt="icono numero cuartos">*/?>
                    <?php if ($list->floor!='') { ?>
                    <dd> <strong><?php echo ($list->floor > 0 ? $list->floor . Translate(" Floor") : translate('Ground'));?></strong></dd>
<?php } ?>
                     </div>
<div class="span2 center-text">
                    <?php/*<img src="<?php echo base_url(); ?>images/house-icons/numero-maximo-ocupantes.png"alt="icono número maximo de ocupantes">*/?>
                    <?php if ($list->capacity!='') { ?>
                  <dd><strong><?= $list->capacity; ?> <?php echo translate("Maximun Guests");?></strong> </dd>

                    <?php } ?>
                    </div>
                        <hr align="center" noshade="noshade" size="2" width="100%" />
                        
<div class="span4 center-text">
                    <?php/*<img width="45" height="45" src="<?php echo base_url(); ?>images/house-icons/limpieza.png"alt="icono suplemneto por limpieza">*/?>
                     <dt><?php echo translate("Cleaning Fee:");?></dt>
                    <dd>
                                        <?php if ($prices->cleaning>0 && $prices->cleaning!='') { ?>
                            <?php echo get_currency_symbol().get_currency_value($prices->cleaning);?>
                        <?php } else { ?>
                            <?php echo translate("No");?>
                        <?php } ?>

                    </div>
<div class="span3 center-text">
                    <?php/*<img width="45" height="45" src="<?php echo base_url(); ?>images/house-icons/deposito-seguro.png"alt="icono deposito de daños retornable">*/?>
                                <dt><?php echo translate("Security Deposit:");?></dt>
                    <dd>
                                        <?php if ($prices->deposit>0 && $prices->deposit!='') { ?>
                            <?php echo get_currency_symbol().get_currency_value($prices->deposit);?>
                        <?php } else { ?>
                            <?php echo translate("No");?>

                        <?php } ?>
                                        </dd>
                    </div>

                    <div class="span4 center-text">
                <?php/*    <img width="45" height="45" src="<?php echo base_url(); ?>images/house-icons/capacidad.png"alt="icono precio extra invitado">*/?>
                                <dt><?php echo translate("Extra Guest:");?></dt>
                    <dd>
                        <?php if ($prices->addguests>0 && $prices->addguests!='') { ?>
                            <?php echo get_currency_symbol().get_currency_value($prices->addguests).translate(' a partir del ').$
Prices->guests.translate(' guest');?>
                        <?php } else { ?>
                            <?php echo translate("No");?>
                        <?php } ?>
                                
                    </dd>
    </div>
                        <hr align="center" noshade="noshade" size="2" width="100%" />
                        
<?php if($_SERVER['REMOTE_ADDR'] != '212.170.176.172' && $_SERVER['REMOTE_ADDR'] != '88.21.188.166'): ?>

                        <div class="span6 center-text">
                            <?php/*<img width="45" height="45" src="<?php echo base_url(); ?>images/reloj.jpg"alt="icono política de cancelación">*/?>
                            <dt><?php echo translate("Check-in time:");?></dt>
                            <dd>
                            <?php if($list->ru_ID != NULL): ?>
                                    <p>
                                        <span><?php echo translate('Check-in from') . ' ' . $CheckInOut['CheckInFrom'] .
' ' . Translate('To') . '  ' . $CheckInOut['CheckInTo'] .
Translate(' on the day of your arrival.') . '  ' ; ?></Span>
<?php endif; ?>
                                    </p>
                            <?php endif; ?>    
                            </dd>


                    </div>
<div class="span5 center-text">
                            <?php/*<img width="45" height="45" src="<?php echo base_url(); ?>images/reloj.jpg"alt="icono política de cancelación">*/?>
                            <dt><?php echo translate("Check-out time:");?></dt>
                            <dd>
                                <?php if($list->ru_ID != NULL): ?>
                                    <p>

                                        <span><?php echo translate('Check-out until') . ' ' . $CheckInOut['CheckOutUntil'] .
Translate(' on the day of your departure') . '  ' ; ?></Span>
                                    </p>
                                
                            </dd>
                            <?php $result1 = $this->db->get_where('categories_cancel', array('id' => $list->cancelpolicy))->row();
                            if ($result1->name!='' && !is_null($result1->name)) {
                            ?>
                                <?php } else { ?>

                            <dt><?php echo translate("");?></dt>

                            <?php } ?>
                     

                    <?php endif; ?>  </div>     </div></div>    

                    
                        <div class="well well-white well-shadow">
                    
                <ul class="nav nav-tabs custom-tabs second-font upper">
                   
                    <li><a id="load_map" href="#maps" data-toggle="tab"><?php echo translate("Ver Mapa"); ?></a></li>
<li><a href="#street" data-toggle="tab"><?php echo translate("Street View"); ?></a></li>
                </ul>
                    
                <div class="tab-content room-content">
                    <div class="tab-pane active" id="photos">

                     
                    <div class="tab-pane" id="maps">
                        <div id="map" data-lat="<?php echo round($list->lat,10); ?>" data-lng="<?php echo round($list->long,10); ?>" style="width:100%; height:500px;"> </div></div></div>
                    </div>    </div>        </div>                                            
        <!-- End left col-->
  <!-- Start right col-->


        <div class="span5">
            
        
                            
    <div class="">
                

                <div class="tab-content room-content">
                    <div class="tab-pane active" id="photos">

                        <div id="gallery" class="content loader">
                            <div id="controls" class="controls"></div>
                            <div class="slideshow-container">
                              <div id="loading" class="loader"></div>
                        
                        <div id="caption" class="caption-container"></div> <div id="slideshow" class="slideshow"></div>
                    </div>
                       
                         
  <div id="thumbs" class="navigation">
                        
                           
                            <ul class="thumbs noscript">
                                <?php
                                if($images->num_rows() > 0)
                                {
                                $i = 1;
                                    foreach ($images->result() as $image)
                                    {
                                        //if($i == 1 || ($i > 1 && $list->ru_ID == NULL)) {
                                          list($width, $height, $type, $attr) = getimagesize(($image->is_featured == 1 || $list->ru_ID == NULL ? image_url().'List/'.$Image->list_id.'/' : '').$Image->name);
                                        
                                          $url_big = timthumb().'?Src='.($Image->is_featured == 1 || $list->ru_ID == NULL ? image_url().'List/'.$Image->list_id.'/' : '').$Image->name.'&W=750&h=480&wm=1&q=100'; // horizontal size
                                        
                                          if ($height > $width) {
                                              $url_big = timthumb().'?Src='.($Image->is_featured == 1 || $list->ru_ID == NULL ? image_url().'List/'.$Image->list_id.'/' : '').$Image->name.'&H=480&wm=1&q=100'; //vertical size
                                          }
                                          $url_prev = timthumb().'?Src='.($Image->is_featured == 1 || $list->ru_ID == NULL ? image_url().'List/'.$Image->list_id.'/' : '').$Image->name.'&W=75&h=75';

                                          $imgtitle = $image->img_desc;
                                             if ($imgtitle == null || $imgtitle == ''){
                                                $imgtitle = $list->title;
                                             }
                                             if ($i++ == 1) {
                                             $facebook_photo = ($image->is_featured == 1 || $list->ru_ID == NULL ? image_url().'List/'.$Image->list_id.'/' : '').$Image->name;
                                            }
                                            ?>
                                            <li>
                                            <a class="thumb" name="<?= $image->name ?>" href="<?= $url_big ?>" title="<?= $imgtitle ?>">
                                                <?php/*<img width="75" height="75" src="<?= $url_prev ?>" alt="<?= $imgtitle ?>" />*/?>
                                            </a>
                                            <div class="caption">
                                                <div class="image-title"><?= $imgtitle ?></div>
                                            </div>
                                            </li>
                                          <?php
                                        //}
                                    }
                                }
                                else
                                {
                                    $facebook_photo = image_url().'No_image.jpg'; ?>
                                    <li>
                                        <a class="thumb" name="No-Photo" href="<?= base_url() ?>/images/no_image.jpg" title="Sin imágenes">
                                         <img width="75" height="75" src="<?= base_url() ?>/images/no_image.jpg" alt="Sin imágenes" />
                                        </a>
                                     </li>
                                  <?php } ?>
                            </ul>
                        </div>

                    </div>
                   
                    </div>

                </div> </div>
           

                


                                    
                                
        <div class="well well-white well-shadow">
                            <h5 class="dark-blue-box center-text  pad10 marBot1 upper">
                            <?php echo translate("Customer assist");?>
                            </h5>
                  
                                    
            <? php /*<div class="well well-shadow well-white noPad">
                <h3 class="second-font basic-title"><?php echo translate("Customer assist"); ?></h3>*/?>
                <div class="row-fluid light-blue-bg">
                    <p class="pad15 padBot0"><?php echo translate("Have any question about").' <A href="'.base_url().'">'.Translate('bydays.com').'</A>'; ?>?</p>
                    <img src="<?php echo image_url(); ?>contact-phone.png" width="48" height="48" alt="Atención al cliente" class="pull-right mar20 home-phone">
                    <p class="pad15 padTop0 padBot0"><?php echo translate("Contact us by phone at (+34) 622 860 910 or by our contact form"); ?>:</p>
                    <p class="pad15 padTop0 padBot0">
                    <a href="<?php echo base_url(); ?>pages/contact" class="btn btn-green btn-block btn-large"><i class="icon-comment icon-white"></i> <strong><?php echo translate("Contact us"); ?></strong></a>
                    </p>
                </div>
          </div>
                    </div>
                    
             
                                
                   
 

        <div class="span5"  id="book_it">
            <div class="price-box">
                <?php echo form_open('payments/index/'.$Room_id, array('class' => "info", 'id' => "book_it_form" ,'name' => "book_it_form")); ?>
                    <input id="hosting_id" name="hosting_id" type="hidden" value="<?php echo $room_id; ?>" />
                    <input type="hidden" name="agrees_to_terms" value="on">
                    <?php if($list->ru_ID != NULL): ?>
                        <input type="hidden" name="ru_ID" id="ru_ID" value="<?php echo $list->Ru_id; ?>">
                    <?php endif; ?>
                  <input id="currency" name="currency" type="hidden" value="<?php if (get_currency_symbol() == '&euro;') echo 'eur'; else echo 'usd';?>" />
                    <div class="dark-blue-box">
                        <div class="row-fluid center-text">
                            <p class="description"><?php echo strtoupper(translate("book your accommodation")); ?></p>
                      </div>
                        <div class="row-fluid">
                        <?php /*  <div class="span7">
                                <h3 class="title" id="price_amount"> <?php echo get_currency_value($prices->night). Get_currency_symbol( ); ?></h3>
                            </div>
                            <div id="pricing" class="book_it_section span5">
                            <select name="payment_period" class="type-selector" id="payment_period">
                                <option value="per_night"><?php echo translate("Per Night"); ?></option>
                                <?php if($prices->week != 0) { ?><option value="per_week"><?php echo translate("Per Week"); ?></option> <?php } ?>
                                <?php if($prices->month != 0) { ?><option value="per_month"><?php echo translate("Per Month"); ?></option> <?php } ?>
                            </select>
                            </div>*/ ?>
                        </div>
                    </div>
                    <div>
                        <p style="margin: 10px" class="text-center text-error text-danger">
                        <?php
                            echo sprintf(translate('minimun_reserve'), $prices->min_nights);
                        ?>
                        </p>
                    </div>

                    <div class="price-options">
                        <div class="row-fluid book_it_section" id="dates">
                            <div class="span5">
                                <label><?php echo translate("Check in"); ?></label>
                            </div>
                            <div class="span5">
                                <div class="input-append">
                                    <input class=" input-small validate[custom[EUdate,required]]" id="checkinHost" name="checkin" type="text" placeholder="  dd/mm/yy" value="<?php echo ($this->session->userdata('V2checkin') != "" && $this->session->userdata('V2checkin') != "//" ? $this->session->userdata('V2checkin') : ''); ?>" required autocomplete="off">
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span5">
                                <label><?php echo translate("Checkout"); ?></label>
                            </div>
                            <div class="span5">
                                <div class="input-append">
                                    <input class=" input-small validate[custom[EUdate,required]]" id="checkoutHost" name="checkout" type="text" placeholder="  dd/mm/yy" value="<?php echo ($this->session->userdata('V2checkout') != "" && $this->session->userdata('V2checkout') != "//" ? $this->session->userdata('V2checkout') : ''); ?>" required autocomplete="off">

                                </div>
                            </div>
                        </div>

                        <div class="row-fluid">
                            <div class="span5">
                                <label><?php echo translate("Guests"); ?></label>
                            </div>
                            <div class="span5">
                                <select id="number_of_guests" name="number_of_guests" class="input-mini">
                                <?php for ($i=  1;$i<=$list->capacity;$i++) { ?>
                                      <option value="  <?php echo $i; ?>"<?php echo ($this->session->userdata('Vnumber_of_guests') == $i ? ' selected' : ''); ?>><?php echo $i; ?></option>
                                  <?php } ?>
                                </select>
                            </div>
                        </div>
                     

                    </div>

                    <?php if($list->ru_ID == NULL): ?>
                        <div class="price-total">
                            <p><?php echo translate("Reservation total price"); ?></p>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="left-flag">
                                        <div class="min-left-flag"></div>
                                        <div class="count" id="subtotal"> <?php echo get_currency_value($price->night).get_currency_symbol(); ?></div>
                                    </div>
                                    <span class="price-include"><?php echo translate("No fees includes"); ?></span>
                                </div>
                                <div class="span6">
                                    <a href="moreInfo" role="button" data-toggle="modal" class="btn btn-red marRig17 marTop3 pull-right" id="pre_sub">
                                        <i class="icon-ok icon-white"></i>
                                        <?php echo translate("Prereservation"); ?>
                                    </a>
                                </div>
                            </div>
                            <div class="closest"></div>
                        </div>
                        <?php echo form_close(); ?>
                    <?php else: ?>
                        <?php echo form_close(); ?>
                        <div class="price-total">
                            <p><?php echo translate("Reservation total price"); ?></p>
                            <div class="row-fluid">
                                <div class="span5">
                                    <div class="left-flag">
                                        <div class="min-left-flag"></div>
                                        <div class="count" id="subtotal"><?php echo get_currency_value($price->night).get_currency_symbol(); ?></div>
                                    </div>
                                    <span class="price-include"><?php echo translate("No fees includes"); ?></span>
                                </div>
                                <div class="span7 center-text" id="button_instant_container">
                                    <form id="form_book_ru" name="book_RU" action="<?php echo base_url(); ?>rooms/book_RU" method="post">
                                        <input type="hidden" name="room_id" value="<?php echo $list->id; ?>" />
                                        <input type="hidden" name="checkin" id="checkin_book_RU" value="" />
                                        <input type="hidden" name="checkout" id="checkout_book_RU" value="" />
                                        <input type="hidden" name="guests" id="guests_book_RU" value="" />
                                        <input type="hidden" name="price" id="price_book_RU" value="" />
                                        <input type="hidden" name="currency" id="currency_book_RU" value="" />

                                        <button type="submit" id="book_ru" disabled="disabled" class="btn btn-red  "<?php if(!$this->dx_auth->is_logged_in()): ?> style="display:none"<?php endif; ?>>
                                            <i class="icon-ok icon-white"></i>
                                            <?php echo translate("Instant Book"); ?>
                                        </button>
                                        <a href="#moreInfo2" role="button" data-toggle="modal" class="btn btn-red marRig17 marTop3 pull-right" id="pre_sub"<?php if($this->dx_auth->is_logged_in()): ?> style="display:none"<?php endif; ?>>
                                            <i class="icon-ok icon-white"></i>
                                            <?php echo translate("Instant Book"); ?>
                                        </a>

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


                            <div class="closest">
                            </div>
                                        </div>
                                        </div>
                                
                
                                        

                        <div class="well well-white well-shadow">

            <h5 class="dark-blue-box center-text  pad10 marBot1 upper">
                    <?php echo translate("Host");?>
                    </h5>
                        <div class="row-fluid">
                        <?php $user = $this->Common_model->getTableData('users',array( "id" => $list->user_id ))->row(); ?>
                        <?php $customerProfile = site_url('users/profile').'/'.$User->id; ?>
                        <div class="span6 center-text">
                            <a href="<?php echo site_url('users/profile').'/'.$User->id; ?>" class="user120">
                                <img src="<?php echo image_url(); ?>plus.png" width="32" height="32" alt="Más información" class="plus">
                                <?php /* $foto = image_url().'Users/'.$User->id.'/Userpic_profile.jpg';*/?>
                              <?php  $foto = image_url().'Users/'.$User->id.'/Userpic.jpg';
                                      $file_headers = @get_headers($foto);
                                      if ($file_headers[0] != 'HTTP/1.0 404 Not Found' && is_image($foto)) {  ?>
                                    <img src="<?php echo timthumb().'?Src='.$Foto.'&Amp;w=120&h=120'; ?>" width="120" height="120" alt="Nombre usuario" class="img-rounded module-basic well-shadow">
                                <?php } else { ?>
                                    <img src="<?php echo timthumb().'?Src='.image_url().'No_avatar.jpg&amp;w=120&h=120'; ?>" width="120" height="120" alt="Nombre usuario" class="img-rounded module-basic well-shadow">
                                <?php } ?>
                            </a>
                        </div>

                    <?php $profiles = $this->Common_model->getTableData('profiles', array('id' => $user->id ))->row(); ?>


<div class="span5 center-text padTop20">



                        <input type="hidden" name="request_id" value="<?php echo $user->id; ?>" id="request_id" />
                        <h4 class="lead mar0 user-name text-wrap">
                            <a href="<?php echo $customerProfile; ?>" class="blue-text">
<?php
    if ($profiles->Fname!='') {
        echo ucwords($profiles->Fname);
    }
?>
                            </a>
                        </h4>
                        <p class="user-desc text-wrap"><?php
                            $timestamp = get_user_by_id($user->id)->created;
                            echo 'Registrado el dia<br>'.date("d-m-Y", $timestamp);
                        ?></p>

                </div>
            <!--
                <div class="row-fluid" style="padding: 10px;">
                    <div span="12">
                          <div class="traity-widget" data-traity-widget='reputation'
                            data-traity-app-user-id='<?php echo $user->id; ?>'
                            data-traity-current-user-name='<?php echo $profiles->Fname .' '. $Profiles->Lname; ?>'
                            data-traity-current-user-email='<?php echo $user->email; ?>'
                            data-traity-signature='<?php echo widget_signature('YDPzCPhfA6YrB0xweVy3WA', '6LkMGm13VN5cXW5UmXGPQ1Cmw4ddaHHrlAnw'); ?>'>
                        </div>
                          <div id="traity-widget-reviews" class="traity-widget" data-traity-widget='reviews'
                            data-traity-app-user-id='<?php echo $user->id; ?>'
                            data-traity-current-user-name='<?php echo $profiles->Fname .' '. $Profiles->Lname; ?>'
                            data-traity-current-user-email='<?php echo $user->email; ?>'
                            data-traity-signature='<?php echo widget_signature('YDPzCPhfA6YrB0xweVy3WA', '6LkMGm13VN5cXW5UmXGPQ1Cmw4ddaHHrlAnw'); ?>'>

                            </div>

                             </div>


                            -->
                </div>
                <div class="row-fluid dark-blue-bg last-separ">

                     <div class="span6 center-text padTop20">
                    <img width="45" height="45" src="<?php echo base_url(); ?>images/respuestas.png"alt="icono ratio de respuesta">
                    <dt><small><?php echo translate("Response Rate: ");?></small></dt>
                  <dd><strong><?php echo number_format($response_rate, 2)."%"; ?></Strong></dd>
                      </div>

                      <div class="span5 center-text padTop20">
                    <img width="45" height="45" src="<?php echo base_url(); ?>images/time-respond.png"alt="icono tiempo de respuesta">
                    <dt><small><?php echo translate("Response Time: ");?></small></dt>
                  <dd><strong><?php echo $response_time; ?></strong></dd>
                      </div>

                     <?php /*  <div class="span3 center-text padTop20">
                    <img width="45" height="45" src="<?php echo base_url(); ?>images/calendario-actualizado.png"alt="icono actualizacio de calendario">
                    <dt><small><?php echo translate("Calendar Updated: ")?></small></dt>
                  <dd> <strong>

                        <?php
                        //$date1 = $update_cal->last_update_date;
                        $date1=$list->last_update;
                        $date2 = strtotime(date("y-m-d"));
                        $diff = abs(($date2) - ($date1));
                        $years = floor($diff / (365*60*60*24));
                        $months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24));
                        $days = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24));
                        if($years>20)
                        {
                        echo translate("No Update");
                        }
                        else
                        {
                        if($years==0&& $months==0&&$days==0)
                        {
                        echo translate("Today");
                        }
                        elseif($years==0&& $months==0 )
                        {
                        printf(translate("days ago"),$days);
                        }
                        elseif($years==0)
                        {
                        printf(translate("months ago"),$months, $days);
                        }
                        else
                        {
                        printf(translate("years ago"), $years, $months, $days);
                        }
                        }
                        ?>
                        </strong></dd>*/?>
                  <?php /* </div>
                            <div class="row-fluid" style="padding: 10px;">
                    <div class="span12 center-text">
                          <div class="traity-widget" data-traity-widget='reputation'
                            data-traity-app-user-id='<?php echo ($list->ru_ID != NULL ? $list->ru_ID : $user->id); ?>'
                            data-traity-current-user-name='<?php echo ($list->ru_ID != NULL ? $list->name_contact_RU : $profiles->Fname .' '. $Profiles->Lname); ?>'
                            data-traity-current-user-email='<?php echo ($list->ru_ID != NULL ? $list->email_contact_RU : $user->email); ?>'
                            data-traity-signature='<?php echo widget_signature('YDPzCPhfA6YrB0xweVy3WA', '6LkMGm13VN5cXW5UmXGPQ1Cmw4ddaHHrlAnw'); ?>'>
                        </div>
                          <div id="traity-widget-reviews" class="traity-widget" data-traity-widget='reviews'
                            data-traity-app-user-id='<?php echo ($list->ru_ID != NULL ? $list->ru_ID : $user->id); ?>'
                            data-traity-current-user-name='<?php echo ($list->ru_ID != NULL ? $list->name_contact_RU : $profiles->Fname .' '. $Profiles->Lname); ?>'
                            data-traity-current-user-email='<?php echo ($list->ru_ID != NULL ? $list->email_contact_RU : $user->email); ?>'
                            data-traity-signature='<?php echo widget_signature('YDPzCPhfA6YrB0xweVy3WA', '6LkMGm13VN5cXW5UmXGPQ1Cmw4ddaHHrlAnw'); ?>'>

                            </div>
                    </div>*/?>
                        
</div>
                            </div>
<?php if($result->num_rows() > 0) {  ?>

            <div class="well-shadow info-box">
                <h3 class="second-font upper"><i class="icon-star icon-white marTop13"></i> <?php echo translate("Reviews and Rating");?> <i class="icon-star icon-white marTop13"></i></h3>
                <ul class="comments">
                    <?php
                    if($result->num_rows() > 0) {
                    ?>
                    <li class="row-fluid comment">
                        <div class="span7">
                            <p class="lead marBot0 marTop5"><?php echo translate("Users reviews");?></p>
                        </div>
                        <div class="span5">

                            <?php

                                        $accuracy      = (($stars->accuracy *2) * 10) / $result->num_rows();
                                        $cleanliness  = (($stars->cleanliness *2) * 10) / $result->num_rows();
                                        $communication = (($stars->communication *2)* 10 ) / $result->num_rows();
                                        $checkin      = (($stars->checkin *2) * 10) / $result->num_rows();
                                        $location      = (($stars->location *2) * 10) / $result->num_rows();
                                        $value        = (($stars->value *2) * 10) / $result->num_rows();
                                        $overall      = ($accuracy + $cleanliness + $communication + $checkin + $location + $value) / 10;

                            ?>

                             <div rel="tooltip" title="Los votos los han realizado los usuarios que ya han visitado el alojamiento." Class="progress marTop2 helpTooltip marBot0 <?php
                                if ($overall<25) {echo 'progress-danger';}
                                if ($overall<50 && $overall>25) {echo 'progress-warning';}
                                if ($overall<75 && $overall>50) {echo 'progress-success';}
                                if ($overall>75) {echo 'progress-info';}
                            ?>">
                            <?php if ($overall>0) {  ?>
                                <div class="bar" style="width: <?= $overall; ?>%;"><?php echo translate("well accepted");?><br>(<?= $result->num_rows(); ?> votos)</div>

                                <?php } else {
                                    echo '<p>'.translate("There is no recommends").'</P>';
                                } ?>
                            </div>
                        </div>
                    </li>
                    <?php
                    }
                     print_r($rowq);
                    foreach($result->result() as $row) { ?>
                    <?php $profiles = $this->Common_model->getTableData('profiles', array('id' => $row->userby ))->row(); ?>
                    <li class="row-fluid comment">
                        <div class="span3">
                            <a href="<?php echo site_url('users/profile').'/'.$Row->userby; ?>" class="user80">
                                <img src="<?php echo image_url(); ?>plus.png" width="32" height="32" alt="Más información" class="plus">
                                <?php $foto = image_url().'Users/'.$Row->userby.'/Userpic_profile.jpg';
                                      $file_headers = @get_headers($foto);
                                      if ($file_headers[0] != 'HTTP/1.0 404 Not Found' && is_image($foto)) {  ?>
                                    <img src="<?php echo timthumb().'?Src='.$Foto.'&Amp;w=80&h=80'; ?>" width="80" height="80" alt="Nombre usuario" class="img-rounded module-basic well-shadow">
                                <?php } else { ?>
                                    <img src="<?php echo timthumb().'?Src='.image_url().'No_avatar.jpg&amp;w=80&h=80'; ?>" width="80" height="80" alt="Nombre usuario" class="img-rounded module-basic well-shadow">
                                <?php } ?>
                            </a>

                            <h4 class="lead mar0 user-name text-wrap">
                                <a href="<?php echo site_url('users/profile').'/'.$Row->userby; ?>" class="blue-text"><?php if ($profiles->Fname!='') {
                                        echo ucwords($profiles->Fname); }
                                    else {
                                        echo ucwords(get_user_by_id($row->userby)->username);
                                    }?></a>
                          </h4>
                            <?php/* <p class="user-desc text-wrap"><?php
                                    $timestamp = get_user_by_id($row->userby)->created;
                                    echo 'Registrado el dia<br>'.date("d-m-Y", $timestamp);
                                ?></p>*/?>

                        </div>
                        <div class="span9">
                            <div class="comment-bubble muted">
                                <?php echo $row->review; ?>
                                <div class="speak"></div>
                            </div>
                        </div>
                    </li>
                    <?php } ?>
                </ul>
            </div>
            <?php } ?>
       
                    
                    
            <?php $ans = $this->db->get_where('list',array("user_id" => $list->user_id, "id !=" => $room_id, "status =" => 1,"is_enable" => 1)); ?>
            <?php if($ans->num_rows > 0):
                $maxResults = 3;
                $current = 1;
            ?>
    
                                            
                
            <div class="well well-white well-shadow crash marTop15">
                <h3 class="second-font"><?php echo translate("Customer properties");?></h3>

                <ul class="latest-houses">
                    <?php foreach($ans->result() as $a ): ?>
                    <?php
                        $url = getListImage($a->id);
                        $address = explode(', ', $a->address);
                    ?>
                   
<li>
                        <a href="<?= base_url().'Rooms/'.$A->id ?>">
                            <img src="<?php echo image_url(); ?>plus.png" width="32" height="32" alt="<?= $a->title; ?>" class="plus">
                            <img src="<?php echo room_thumbnail ($a->id, '&w=75&h=71&q=70', ($a->ru_ID == NULL ? false : true)); ?>" width="75" height="71" alt="<?= $a->title; ?>">

                        <p> <h4><?= $a->title; ?></h4></p>

                          <p> <?php if (count($address)>2) { ?>
                            <strong><?= $address[count($address)-2].' - '.$Address[count($address)-1]; ?></strong><br><?php } ?>
                            <?= get_currency_value($a->price).get_currency_symbol(); ?> / <?php echo translate("Night");?></p>
                        </a>
                    </li>

                    <?php if ($current++ == 3) break; ?>
                    <?php endforeach; ?>
                    <?php  ?>
                    <li>
                        <a class="btn btn-blue btn-medium btn-block marTop15 upper" href="<?= $customerProfile; ?>"><?php echo translate("View all the properties of this host");?></a>
                    </li>
                </ul>
            </div>
            <?php endif; ?></div>

<?php endif; ?>
            </div>
            
    

        </div>
        <!-- End right col-->
     
    </div>
    <?php $this->load->view(THEME_FOLDER.'/Includes/animation-footer.php'); ?>
</div>
<?php $this->load->view(THEME_FOLDER.'/Includes/modal-contact.php'); ?>
<?php $this->load->view(THEME_FOLDER.'/Includes/modal-contact2.php'); ?>
<?php $this->load->view(THEME_FOLDER.'/Includes/modal-contact-host.php'); ?>
<?php $this->load->view(THEME_FOLDER.'/Includes/modal-login.php'); ?>
<div id="dialog-confirm" title="<?php echo translate('There are an error :('); ?>">
<p id="error01"><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo translate('Incorrect dates. The checkin must be before than checkout.'); ?></P>
<p id="error02"><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo translate('The minium days for booking this property are'); ?> <?php echo $minium; ?>.</P>
<p id="error03"><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo translate('No availability for these dates. Check the calendar for this property.'); ?></p>
</div>
    
----------------------------------------------------------------------------------------------------------------------    
    
        

Saludos

Categoría Diseño y Multimedia
Subcategoría Diseño Web
¿Qué necesitas? Pequeña actualización a un diseño existente
¿Es un proyecto o una posición? Un proyecto
Disponibilidad requerida Según se necesite

Plazo de Entrega: 19 Marzo, 2017

Habilidades necesarias

Otros proyectos publicados por O. L.