Subversion Repositories SmartDukaan

Rev

Rev 17794 | Rev 17871 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<script type="text/javascript" src="/js/checkout.js?v=<?php echo $staticversion;?>"></script>

<style>
#footer {
        position: fixed;
        /*height:50px;*/
        /*background-color:red;*/
        bottom: 0px;
        left: 0px;
        right: 0px;
        margin-bottom: 0px;
}

#message,#message_success {
        position: fixed;
        /*height:50px;*/
        /*background-color:red;*/
        /*background-color: white;*/
        top: 0px;
        left: 0px;
        right: 0px;
        margin-top: 0px;
        z-index: 10;
}

.addressselect {
        background-color: #D9FACF;
}

input[type=radio].css-checkbox {
        position: absolute;
        z-index: -1000;
        left: -1000px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        height: 1px;
        width: 1px;
        margin: -1px;
        padding: 0;
        border: 0;
}

input[type=radio].css-checkbox+label.css-label {
        padding-left: 21px;
        padding-bottom:10px;
        height: 16px;
        display: inline-block;
        line-height: 16px;
        background-repeat: no-repeat;
        background-position: 0 0;
        /*font-size:16px;*/
        vertical-align: middle;
        cursor: pointer;
}

input[type=radio].css-checkbox:checked+label.css-label {
        background-position: 0 -16px;
}

label.css-label {
        background-image: url(../img/radio.png);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
}
</style>
<div class="alert alert-danger hidden" id="message"></div>
<div class="alert alert-success hidden" id="message_success"></div>
<div class='container' style='margin-bottom:50px;'>

        


    <div class='row' style="padding-bottom:40px;">


        <div class= 'row'>
            <div class='col-xs-12' style="background-color:white;margin-top:5px;">
              <h4>Shipping Address: <a href= "<?php echo $base_url;?>shippings/add" class='btn btn-success btn-xs' style='float:right;'>Add New Address</a></h4>
              <br>

          </div>
      </div>
        <div class='col-xs-12' style='background-color:white;padding:40px;padding:3px 20px;'>
        <div style='background-color:#f8f8f8;padding:5px;'>
            <?php
                for($i=0;$i<count($firstshowaddress);$i++){?>

                    <?php if($i==3):?>
                        <div id='showmoreaddressdropdown' style='display:none;'>
                    <?php endif;?>
                    <?php //if(count($firstshowaddress)>$i):?>
                        <?php if($defaultAddressFound):?>
                        <div  style = 'height:100px;padding:4px;' id = "address<?php echo $firstshowaddress[$i]['id'];?>" class="myaddress <?php if($defaultaddressid == $firstshowaddress[$i]['id']){echo "addressselect";}?>">
                        <?php else:?>
                        <div  style = 'height:100px;padding:4px;' id = "address<?php echo $firstshowaddress[$i]['id'];?>" class="myaddress">
                        <?php endif;?>
                                                        <?php if($defaultAddressFound):?>
                           <input type="radio" class="css-checkbox" id='<?php echo $firstshowaddress[$i]['id'];?>' name="selectedaddress" <?php if($defaultaddressid == $firstshowaddress[$i]['id']){echo "checked";}?>>
                                                        <?php else:?>
                                                        <input type="radio" class="css-checkbox" id='<?php echo $firstshowaddress[$i]['id'];?>' name="selectedaddress">
                                                        <?php endif;?>
                           <label for="<?php echo $firstshowaddress[$i]['id'];?>" class="css-label radGroup2" data-pin="<?php echo $firstshowaddress[$i]['pin'];?>" data-id="<?php echo $firstshowaddress[$i]['id'];?>">
                                <?php
                                if(isset($firstshowaddress[$i]['line1']) && !empty($firstshowaddress[$i]['line1']))
                                    {echo "Address: ",$firstshowaddress[$i]['line1'];}
                                if(isset($firstshowaddress[$i]['line2']) && !empty($firstshowaddress[$i]['line2']))
                                    {echo ",",$firstshowaddress[$i]['line2'];}
                                if(isset($firstshowaddress[$i]['city']) && !empty($firstshowaddress[$i]['city']))
                                    {echo "<br>",$firstshowaddress[$i]['city'];}
                                if(isset($firstshowaddress[$i]['state']) && !empty($firstshowaddress[$i]['state']))
                                    {echo ", ",$firstshowaddress[$i]['state'];}
                                if(isset($firstshowaddress[$i]['pin']) && !empty($firstshowaddress[$i]['pin']))
                                    {echo ",",$firstshowaddress[$i]['pin'];}
                                ?>
                            </label>

                        </div><hr style='margin:0px;padding:0px;border-color:#58d936;'>
                    <?php //endif;?>

                    <?php if($i>3 && $i==(count($firstshowaddress)-1)):?>
                        </div>
                        <!-- <center><button class='btn btn-default btn-xs' id='showmore'>Show More</button></center> -->
                    <?php endif;?>

            <?php }?> 
        </div>           
        </div>
         <?php if(count($firstshowaddress)>3):?>
                        <center><div class='btn btn-default btn-xs' id='showmore'>Show More</div></center>
                    <?php endif;?>
    </div>  
    <!-- End of address section -->

    <!-- Cart section started -->
    <div class='row' style='padding:0px;' id='footer'>
        <div class='col-xs-12' style='background-color:white;padding:5px; width:100%;'>
            <h4>Total payable Amount: &#8377; <?php echo number_format($totalPayable);?></h4>
            <a href="#" style='padding-right:2px;color:blue;font-size:15px;'><u>Other Pay Option</u></a>
            <button class="btn btn-success confirmcheckout">Confirm Order via COD</button>
        </div>
    </div>

    <!-- Cart section end -->
</div>