<?php /* Smarty version 2.6.25, created on 2021-11-20 12:25:01
         compiled from myCart.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'string_format', 'myCart.tpl', 78, false),)), $this); ?>
        
        <!-- Title Section -->
        <div class="title-section module">
            <div class="row">
        
                <div class="small-12 columns">
                    <h1>My Cart</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 Cart</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="CartList" id="CartList" method="post" >
						<input type="hidden" name="hdAction" id="hdAction">
						<input type="hidden" name="b_id" id="b_id" value="<?php echo $this->_supers['post']['b_id']; ?>
">
						
						
							  <!--<h5 class="theme-color" align="justify">Member Code: <?php echo $this->_supers['session']['User_ID']; ?>
</h5>-->
							  <!--<h5>Your Member ID : <b class="theme-color"><?php echo $this->_tpl_vars['cartDet']['0']['member_id']; ?>
</b></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>Book Image</th>-->
						 <th>Book Name</th>
						 <th>Category Name</th>
                        <th>Author Name</th>
                        <th>Reading Charges</th>	
						<th align="center">Reading Days</th>	
						<th>Book Image</th>	
						<th>Action</th>
                    </tr>
                    </thead>
					
					
                    <tbody>
                    
                   
					<?php if ($this->_tpl_vars['cartDet'] != ""): ?>
						
                   
                    <input type="hidden" id="member_id" name="member_id" value="<?php echo $this->_tpl_vars['cartDet']['0']['member_id']; ?>
">
                    <input type="hidden" id="member_code" name="member_code" value="<?php echo $this->_tpl_vars['cartDet']['0']['member_code']; ?>
">
                    <input type="hidden" id="OldOrder_id" name="OldOrder_id" value="<?php echo $this->_tpl_vars['MaxRecord']['0']['LastOrderId']; ?>
">
                    
                      <input type="hidden" id="b_id" name="b_id" value="<?php echo $this->_supers['post']['b_id']; ?>
">
                      <?php if ($this->_tpl_vars['BookCartCount']['0']['CNT'] != '0'): ?>
					<?php $_from = $this->_tpl_vars['cartDet']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['lists']):
?>
					
                  <tr class="gradeX" id="<?php echo $this->_tpl_vars['m']++; ?>
">
			
			<!--<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?"><?php echo $this->_tpl_vars['lists']['book_name']; ?>
</a></td>		
			<td><a  href="./bookDetails.php?order_id=<?php echo $this->_tpl_vars['lists']['order_id']; ?>
"><?php echo $this->_tpl_vars['lists']['category']; ?>
</a></td>			
		  	<td><a  href="./bookDetails.php?order_id=<?php echo $this->_tpl_vars['lists']['order_id']; ?>
"><?php echo $this->_tpl_vars['lists']['author']; ?>
</a></td>
              <td><a  href="./bookDetails.php?order_id=<?php echo $this->_tpl_vars['lists']['order_id']; ?>
" align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['lists']['reading_charges'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</a></td>
		  	<td  align="center"><a  href="./bookDetails.php?order_id=<?php echo $this->_tpl_vars['lists']['order_id']; ?>
"  ><?php echo $this->_tpl_vars['lists']['default_reading_days']; ?>
</a></td>
			<td><a  href="./bookDetails.php?order_id=<?php echo $this->_tpl_vars['lists']['order_id']; ?>
"><?php if ($this->_tpl_vars['lists']['image'] != ""): ?>
									<img src="https://www.easwarilibrary.in/images/BookImages/<?php echo $this->_tpl_vars['lists']['image']; ?>
" alt="images/noimage.jpg" style="width:50px; height:65px;">
									<?php else: ?>
									<img src="images/noimage.png" alt="images/noimage.jpg" style="width:50px; height:65px;">
									<?php endif; ?></a></td>				        
		  
              <td><a href="#" onclick=deleteCats(<?php echo $this->_tpl_vars['lists']['member_id']; ?>
,<?php echo $this->_tpl_vars['lists']['book_id']; ?>
) title="Remove"><i class="fa fa-trash"></i></a></td>		
                  </tr>
					<?php endforeach; endif; unset($_from); ?>	
                    <?php else: ?>
                <tr>
                <td colspan="7" align="center">No Records Found</td>	
                </tr>
            <?php endif; ?>

                    </tbody>
                  
                    </table>
					  </form>
					  <?php endif; ?>
                    
					  <!-- post content ends /-->
                    </div><!-- post Ends here /-->
                   
                    <div class="medium-2 small-12 columns" style="margin-left:830px">
                    <?php if ($this->_tpl_vars['BookCartCount']['0']['CNT'] != '0'): ?>
                    <input type="button"  id="formadd" class="button secondary" value="Check Out" onClick="select_book();">
                <?php endif; ?>
                </div>
          
                    <!-- post Ends here /-->
                    
                    <!-- post Ends here /-->
                    
                   <div class="col-lg-6 col-xs-6 r-full-width" style="height:40%;">
								
							
							
						</div>
                    
                </div><!-- Posts wrap /-->
                
                
                
            </div><!-- Row Ends /-->
            
        
        <!-- 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. -->
    
    <!-- Including Owl Carousel File -->
    <script type="text/javascript" src="js/owl.carousel.min.js"></script>
    
    <!-- Webful JS -->
	<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;	
	}	
	
}

    function deleteCats(CatIdent,bookid){ 
		  //alert(CatIdent);return false;
	if(confirm("Are you sure to Delete this Content?")){
	FormName		= document.CartList;
	FormName.action= "myCart.php?MemberId="+CatIdent+"&bookId="+bookid+"&delete=true";
	FormName.submit();
	}
}


 

                $("#formadd").click(function(){
                   
                //  alert("hiiiiiiiiii");				
                  FormName= document.CartList;
                FormName.method= "POST";
                  FormName.submit();	
				  
                 
				 

			
    });
 
</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>
