Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
17840 manish.sha 1
<script type="text/javascript" src="/js/checkout.js?v=<?php echo $staticversion;?>"></script>
17794 naman 2
 
3
<style>
17840 manish.sha 4
#footer {
5
	position: fixed;
6
	/*height:50px;*/
7
	/*background-color:red;*/
8
	bottom: 0px;
9
	left: 0px;
10
	right: 0px;
11
	margin-bottom: 0px;
17794 naman 12
}
13
 
17840 manish.sha 14
#message,#message_success {
15
	position: fixed;
16
	/*height:50px;*/
17
	/*background-color:red;*/
18
	/*background-color: white;*/
19
	top: 0px;
20
	left: 0px;
21
	right: 0px;
22
	margin-top: 0px;
23
	z-index: 10;
17794 naman 24
}
25
 
17840 manish.sha 26
.addressselect {
27
	background-color: #D9FACF;
17794 naman 28
}
17840 manish.sha 29
 
17794 naman 30
input[type=radio].css-checkbox {
17840 manish.sha 31
	position: absolute;
32
	z-index: -1000;
33
	left: -1000px;
34
	overflow: hidden;
35
	clip: rect(0, 0, 0, 0);
36
	height: 1px;
37
	width: 1px;
38
	margin: -1px;
39
	padding: 0;
40
	border: 0;
41
}
17794 naman 42
 
17840 manish.sha 43
input[type=radio].css-checkbox+label.css-label {
44
	padding-left: 21px;
45
	padding-bottom:10px;
46
	height: 16px;
47
	display: inline-block;
48
	line-height: 16px;
49
	background-repeat: no-repeat;
50
	background-position: 0 0;
51
	/*font-size:16px;*/
52
	vertical-align: middle;
53
	cursor: pointer;
54
}
17794 naman 55
 
17840 manish.sha 56
input[type=radio].css-checkbox:checked+label.css-label {
57
	background-position: 0 -16px;
58
}
17794 naman 59
 
17840 manish.sha 60
label.css-label {
61
	background-image: url(../img/radio.png);
62
	-webkit-touch-callout: none;
63
	-webkit-user-select: none;
64
	-khtml-user-select: none;
65
	-moz-user-select: none;
66
	-ms-user-select: none;
67
	user-select: none;
17794 naman 68
}
69
</style>
70
<div class="alert alert-danger hidden" id="message"></div>
71
<div class="alert alert-success hidden" id="message_success"></div>
72
<div class='container' style='margin-bottom:50px;'>
73
 
74
 
75
 
76
 
77
    <div class='row' style="padding-bottom:40px;">
78
 
79
 
80
        <div class= 'row'>
81
            <div class='col-xs-12' style="background-color:white;margin-top:5px;">
82
              <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>
83
              <br>
84
 
85
          </div>
86
      </div>
87
        <div class='col-xs-12' style='background-color:white;padding:40px;padding:3px 20px;'>
88
        <div style='background-color:#f8f8f8;padding:5px;'>
89
            <?php
90
                for($i=0;$i<count($firstshowaddress);$i++){?>
91
 
92
                    <?php if($i==3):?>
93
                        <div id='showmoreaddressdropdown' style='display:none;'>
94
                    <?php endif;?>
95
                    <?php //if(count($firstshowaddress)>$i):?>
17840 manish.sha 96
                    	<?php if($defaultAddressFound):?>
97
                        <div  style = 'height:100px;padding:4px;' id = "address<?php echo $firstshowaddress[$i]['id'];?>" class="myaddress <?php if($defaultaddressid == $firstshowaddress[$i]['id']){echo "addressselect";}?>">
98
                        <?php else:?>
99
                        <div  style = 'height:100px;padding:4px;' id = "address<?php echo $firstshowaddress[$i]['id'];?>" class="myaddress">
100
                        <?php endif;?>
101
							<?php if($defaultAddressFound):?>
102
                           <input type="radio" class="css-checkbox" id='<?php echo $firstshowaddress[$i]['id'];?>' name="selectedaddress" <?php if($defaultaddressid == $firstshowaddress[$i]['id']){echo "checked";}?>>
103
							<?php else:?>
104
							<input type="radio" class="css-checkbox" id='<?php echo $firstshowaddress[$i]['id'];?>' name="selectedaddress">
105
							<?php endif;?>
106
                           <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'];?>">
17794 naman 107
                                <?php
17840 manish.sha 108
                                if(isset($firstshowaddress[$i]['line1']) && !empty($firstshowaddress[$i]['line1']))
109
                                    {echo "Address: ",$firstshowaddress[$i]['line1'];}
110
                                if(isset($firstshowaddress[$i]['line2']) && !empty($firstshowaddress[$i]['line2']))
111
                                    {echo ",",$firstshowaddress[$i]['line2'];}
112
                                if(isset($firstshowaddress[$i]['city']) && !empty($firstshowaddress[$i]['city']))
113
                                    {echo "<br>",$firstshowaddress[$i]['city'];}
114
                                if(isset($firstshowaddress[$i]['state']) && !empty($firstshowaddress[$i]['state']))
115
                                    {echo ", ",$firstshowaddress[$i]['state'];}
116
                                if(isset($firstshowaddress[$i]['pin']) && !empty($firstshowaddress[$i]['pin']))
117
                                    {echo ",",$firstshowaddress[$i]['pin'];}
17794 naman 118
                                ?>
119
                            </label>
120
 
121
                        </div><hr style='margin:0px;padding:0px;border-color:#58d936;'>
122
                    <?php //endif;?>
123
 
124
                    <?php if($i>3 && $i==(count($firstshowaddress)-1)):?>
125
                        </div>
126
                        <!-- <center><button class='btn btn-default btn-xs' id='showmore'>Show More</button></center> -->
127
                    <?php endif;?>
128
 
129
            <?php }?> 
130
        </div>           
131
        </div>
132
         <?php if(count($firstshowaddress)>3):?>
133
                        <center><div class='btn btn-default btn-xs' id='showmore'>Show More</div></center>
134
                    <?php endif;?>
135
    </div>  
136
    <!-- End of address section -->
137
 
138
    <!-- Cart section started -->
139
    <div class='row' style='padding:0px;' id='footer'>
140
        <div class='col-xs-12' style='background-color:white;padding:5px; width:100%;'>
17840 manish.sha 141
            <h4>Total payable Amount: &#8377; <?php echo number_format($totalPayable);?></h4>
142
            <a href="#" style='padding-right:2px;color:blue;font-size:15px;'><u>Other Pay Option</u></a>
143
            <button class="btn btn-success confirmcheckout">Confirm Order via COD</button>
17794 naman 144
        </div>
145
    </div>
146
 
147
    <!-- Cart section end -->
148
</div>
149