<?php /* Smarty version 2.6.25, created on 2021-09-24 13:52:15
         compiled from shop.tpl */ ?>
        
        <!-- Title Section -->
        <div class="title-section module">
            <div class="row">
        
                <div class="small-12 columns">
                    <h1>My Orders</h1>
                </div><!-- Top Row /-->
        
                <div class="small-12 columns">
                    <ul class="breadcrumbs">
                        <li><a href="#">Home</a></li>
                        <li><a href="#">Features</a></li>
                        <!--<li class="disabled">Gene Splicing</li>-->
                        <li><span class="show-for-sr">Current: </span> My Orders</li>
                    </ul><!-- Breadcrumbs /-->
                </div><!-- Bottom Row /-->
                
            </div><!-- Row /-->
        </div>
        <!-- Title Section Ends /-->
        
        <!-- Content section -->
        <div class="content-section module blog-page">
        	
            <div class="row">
                <div class="medium-10 small-12 columns posts-wrap">

                    <div class="blog-post">
                        <form name="date_form" method="post" id="date_form" class="form-horizontal">
						<input type="hidden" name="hdAction" id="hdAction">
						
							  <!--<h5 class="theme-color" align="justify">Member Code: <?php echo $this->_supers['session']['User_ID']; ?>
</h5>-->
							  <h5>Your Order ID : <span class="theme-color"><?php echo $this->_tpl_vars['PageList4']['0']['order_id']; ?>
</span></h5>
							   <!--<label class="medium-2 small-12 columns" style="text-align:left; ">Member Code: <?php echo $this->_supers['session']['User_ID']; ?>
</label>-->
							 
							  &nbsp;
					<table class="table table-bordered table-hover  dataTables-example" style="font-size:14px;" border="1" bordercolor="#FFFFFF" cellspacing="3" cellpadding="2">
                    <thead style="background-color:#174873; color:#FFFFFF;">
                    <tr>
						<th>Sl No.</th>
						<!--<th>Book Image</th>-->
						 <th>Author Name</th>
                        <th>Book Name</th>
						<th>Status</th>	
						<th>Action</th>
                    </tr>
                    </thead>
					
                    <tbody>
					<?php $_from = $this->_tpl_vars['PageList4']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num8']):
?>
                  <tr class="gradeX" id="<?php echo $this->_tpl_vars['m']++; ?>
">
			<td><a  href="./bookDetails.php?order_id=<?php echo $this->_tpl_vars['ListDet']['order_id']; ?>
"><?php echo $this->_tpl_vars['m']; ?>
</a></td>	
			<!--<td><?php if ($this->_tpl_vars['num8']['image_path'] != ""): ?>
			    						<img src="https://www.easwarilibrary.in/images/BookImages/<?php echo $this->_tpl_vars['num8']['image_path']; ?>
" alt="<?php echo $this->_tpl_vars['num8']['image_path']; ?>
" width="109" height="84"><?php else: ?><img src="https://www.easwarilibrary.in/images/ell_new.jpg" alt="images/noimage.jpg" width="109" height="164"><?php endif; ?></td>-->		
			<td><a  href="./bookDetails.php?order_id=<?php echo $this->_tpl_vars['ListDet']['order_id']; ?>
"><?php echo $this->_tpl_vars['num8']['author']; ?>
</a></td>		
			<td><a  href="./bookDetails.php?order_id=<?php echo $this->_tpl_vars['ListDet']['order_id']; ?>
"><?php echo $this->_tpl_vars['num8']['book_name']; ?>
</a></td>			
		  	<td><a  href="./bookDetails.php?order_id=<?php echo $this->_tpl_vars['ListDet']['order_id']; ?>
"><?php echo $this->_tpl_vars['num8']['order_status']; ?>
</a></td>			        
			<td><input type="checkbox" name="checkVal" style="height:20px;" value="<?php echo $this->_tpl_vars['ListDet']['book_id']; ?>
" checked="checked"></td>			
                  </tr>
					<?php endforeach; endif; unset($_from); ?>	
                    </tbody>
                  
                    </table>
					  </form>
					  <!-- post content ends /-->
                    </div><!-- post Ends here /-->
                    
                    <!-- post Ends here /-->
                    
                    <!-- post Ends here /-->
                    
                   <div class="col-lg-6 col-xs-6 r-full-width" style="height:40%;">
								
							<?php if ($this->_tpl_vars['SerDetail']['0']['order_status'] == 'Dispatch'): ?>
							
							<div class="col-md-4" id="errr_s">
							<input type="text" class="form-control" id="d_time" name="d_time" value="<?php echo $this->_tpl_vars['SerDetail']['0']['delivery_time']; ?>
" style="color: #000000;"></div>
						<div class="single-product-detail">
							<ul class="btn-list">
						<li><a class="btn-1 sm shadow-0 " href="#" onClick="select_book2();">Delivered</a></li>
						</ul>
						</div>
						
							<?php elseif ($this->_tpl_vars['SerDetail']['0']['order_status'] == 'Delivered'): ?>
							<label class="col-sm-2 control-label" style="text-align:left;">Return Date:</label>
                               <div class="col-md-4" id="errr_s">
							   <input type="text" id="ret_date" name="ret_date" class="form-control" tabindex="10" value="<?php echo $this->_supers['post']['ret_date']; ?>
" style="color:#000000;" placeholder="yyyy-mm-dd">
								</div>	
						
							<label class="col-sm-2 control-label" style="text-align:left;">Return Time:</label>
                               <div class="col-md-4" id="errr_s">
							    <select id="ret_time" name="ret_time" class="form-control" tabindex="10" value="<?php echo $this->_supers['post']['ret_time']; ?>
" style="color:#000000;">
								<option value="0">---Select---</option>
                                <option value="10 AM-12 PM">10 AM-12 PM</option>
							   <option value="12 PM-2 PM">12 PM-2 PM</option>
							   <option value="2 PM-4 PM">2 PM-4 PM</option>
							   <option value="4 PM-6 PM">4 PM-6 PM</option>
							   <option value="6 PM-8 PM">6 PM-8 PM</option>
						</select></a></div>	
						<div class="single-product-detail">
    							<ul class="btn-list">
								<li><a class="btn-1 sm shadow-0 " href="#" onClick="select_book3();">Return</a></li>
    							</ul>
							</div>
							<?php endif; ?>
							
						</div>
                    
                </div><!-- Posts wrap /-->
                
                
                
            </div><!-- Row Ends /-->
            
        </div>
        <!-- Content Section Ends /-->
        
        
        <!-- Call to Action box -->
        
        <!-- Call to Action End /-->
        
        <!-- Footer -->
        
        <!-- Footer Ends here /-->
        
    </div>
    <!-- Main Container /-->
	
    <a href="#top" id="top" class="animated fadeInUp start-anim"><i class="fa fa-angle-up"></i></a>

   
	<?php echo '
	 <!-- Including Jquery so All js Can run -->
    <script type="text/javascript" src="js/jquery.js"></script>
    
    <!-- Including Foundation JS so Foundation function can work. -->
    <script type="text/javascript" src="js/foundation.min.js"></script>
    
    <!-- Including Owl Carousel File -->
    <script type="text/javascript" src="js/owl.carousel.min.js"></script>
    
    <!-- Webful JS -->
    <script src="js/webful.js"></script>
	<script type="text/javascript">
    function validateFields() {
	var f_date=$(\'#f_date\').val();
	var t_date=$(\'#t_date\').val();
   
	$(".error").remove();
	if(f_date=="")
	{
	$(\'#f_date\').after(\'<span class="error">This field is required</span>\');
	
	$(\'#f_date\').focus();
	
	return false;	
	}
	if(t_date =="")
	{
	$(\'#t_date\').after(\'<span class="error">This field is required</span>\');
	
	$(\'#t_date\').focus();
	
	return false;	
	}	
	
}
   
 
</script>
	<style>
.table tr:nth-child(even){background-color: #FFFFFF;}
.isa_success

{

color: #FFFFFF;

background-color: #174873;

}

.error

{

color:#D8000C;

/*background-color:#FFBABA;*/

}

.isa_error

{

color:#D8000C;

background-color:#FFBABA;

}

.isa_success i,.isa_error i

{

margin:10px 22px;

font-size:2em;

/*vertical-align:middle;*/

}

.required

{

color:#FF0000;
float:right;

}

</style>
	
'; ?>

</body>
</html>
