<!--find data start-->
<div id="home" class="tab-pane fade in tab_editprofile tab_editprofile1 active" >    
    <div class="change_password tab_editprofile">
        <div class="tab-content" id="myTabContent">
             <div class="col-sm-col-sm-offset-1 margin-10auto0 paddingRL10px">
                                                <div class="row">

                                                    <div class="col-sm-12" id="tabstrip-left-5" role="tabpanel" aria-expanded="true">
                                                        <fieldset class="">
                                                            <legend>Main & gallery Images</legend>
                                                            
        <div class="col-sm-6 col-xs-10">
                                                                        <label class="col-sm-6 control-label labelalign col-sm-6-new" id="point_airport">
                                                                                   <?php echo $this->translate($this->formLabel($form->get('main_image'))); ?>
                                                                               </label>
                                   <a href="#" class="upload_btn btn btn-blue btn-primary" data-toggle="modal" data-target="#imageCrop"  onclick="showcropbox('main-image')"><i class="fa fa-upload"></i> Upload File</a>
                                   <input name="main-image" id="main-image" value="" type="hidden">
                               </div>

<div class="col-sm-6 col-xs-10">
                                                                 <label class="col-sm-6 control-label labelalign col-sm-6-new" id="point_airport">
                                                                            <?php echo $this->translate($this->formLabel($form->get('gallery_image'))); ?>
                                                                        </label>
                            <a href="#" class="upload_btn btn btn-blue btn-primary" data-toggle="modal" data-target="#imageCrop"  onclick="showcropbox('gallery-image')"><i class="fa fa-upload"></i> Upload File</a>
                            <input name="gallery-image" id="main-image" value="" type="hidden">
                        </div>


                                                        </fieldset>
                                                        <?php echo $this->FormElement($form->get('module_id')); ?>
                                                         <?php echo $this->form()->closeTag(); ?>   
                                                        
                                                        <?php echo $this->partial('hotel-image-listing.phtml'); ?>


                                                    </div>

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

<div class="modal fade" id="imageCrop" tabindex="-1" role="dialog" aria-labelledby="avatar-modal-label" aria-hidden="true">
    <div class="modal-dialog modal-lg">

        <div class="modal-content">

            <form class="cropimage" method="post" enctype="multipart/form-data" action="<?php echo $this->url("hotel", array('action' => 'uploadImage')) ?>">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">×</button>
                    <h4 class="modal-title text-center" id="avatar-modal-label" >Post Picture</h4>
                    <h5 class="text-center text-info">Please select image for crop</h5>
                </div>

                <input type="file" name="photoimg" class="photoimg" />
                <input type="hidden" name="hdn-profile-id" class="hdn-profile-id" value="1" />
                <input type="hidden" name="hdn-x1-axis" class="hdn-x1-axis" value="" />
                <input type="hidden" name="hdn-y1-axis" class="hdn-y1-axis" value="" />
                <input type="hidden" name="hdn-x2-axis" value="" class="hdn-x2-axis" />
                <input type="hidden" name="hdn-y2-axis" value="" class="hdn-y2-axis" />
                <input type="hidden" name="hdn-thumb-width" class="hdn-thumb-width" value="" />
                <input type="hidden" name="hdn-thumb-height" class="hdn-thumb-height" value="" />
                <input type="hidden" name="action" value="" id="action" />
                <input type="hidden" name="loc" value="" id="loc" />
                <input type="hidden" name="image_name" value="" class="image_name" />
                <input type="hidden" name="crop_enabled" value="no" class="crop_enabled" />

                <div class='preview-avatar-profile' style="position:relative;">
                </div>
                <div id="thumbs" style="padding:5px; width:600p"></div>
                <div class="modal-footer">
                    <button class="btn btn-default close-modal-btn" type="button" data-dismiss="modal">Close</button>
                    <button type="button" class="btn-crop btn btn-primary">Crop & Save</button>
                </div>
            </form>
        </div>
    </div>
</div>