Subversion Repositories SmartDukaan

Rev

Rev 14111 | Rev 14345 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14111 Rev 14224
Line 1... Line 1...
1
<div class="container">
1
<div class="container">
-
 
2
	<?php echo $this->element('unlikemodal');?>
2
	<div class="row">
3
	<div class="row">
3
	<?php if(!empty($orders)):?>
4
	<?php if(!empty($orders)):?>
4
		<?php foreach ($orders as $key => $order):?>
5
		<?php foreach ($orders as $key => $order):?>
5
		<?php //debug($order);?>
6
		<?php //debug($order);?>
6
			<?php if(!empty($order['subOrders'])):?>
7
			<?php if(!empty($order['subOrders'])):?>
Line 13... Line 14...
13
				<?php $suborder['merchantOrderId'] = $order['merchantOrderId'];?>
14
				<?php $suborder['merchantOrderId'] = $order['merchantOrderId'];?>
14
				<?php endif;?>
15
				<?php endif;?>
15
				<?php $suborder['orderSuccessUrl'] = $order['orderSuccessUrl'];?>
16
				<?php $suborder['orderSuccessUrl'] = $order['orderSuccessUrl'];?>
16
				<?php echo $this->element('suborder',array('suborder'=>$suborder,'activestores'=>$activestores,'storemapping'=>$storemapping));?>
17
				<?php echo $this->element('suborder',array('suborder'=>$suborder,'activestores'=>$activestores,'storemapping'=>$storemapping));?>
17
				<?php endforeach;?>
18
				<?php endforeach;?>
-
 
19
			<?php else:?>
-
 
20
				<?php echo $this->element('unparsedorder',array('suborder'=>$order,'activestores'=>$activestores,'storemapping'=>$storemapping,'amazonorderurl'=>$amazonorderurl));?>
18
			<?php endif;?>
21
			<?php endif;?>
19
		<?php endforeach;?>
22
		<?php endforeach;?>
20
		<nav>
23
		<nav>
21
		  <ul class="pager">
24
		  <ul class="pager">
22
		    <?php if($page>1):?><li><a href="<?php echo '?user_id='.$userId.'&page='.($page-1);?>">Previous</a></li><?php endif;?>
25
		    <?php if($page>1):?><li><a href="<?php echo '?user_id='.$userId.'&page='.($page-1);?>">Previous</a></li><?php endif;?>
Line 26... Line 29...
26
	<?php else:?>
29
	<?php else:?>
27
		<h3>You haven't placed any orders till now</h3>
30
		<h3>You haven't placed any orders till now</h3>
28
	<?php endif;?>
31
	<?php endif;?>
29
	</div>
32
	</div>
30
</div>
33
</div>
31
 
-
 
-
 
34
<script type="text/javascript" src="/js/profittill.js?v=<?php echo $staticversion;?>"></script>
32
<?php 
35
<?php 
33
function formatOrderDate($date,$storeId,$type='od'){
36
function formatOrderDate($date,$storeId,$type='od'){
34
	if($type=='od'){
37
	if($type=='od'){
35
		switch($storeId){
38
		switch($storeId){
36
			case 2:
39
			case 2: