Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.45 KB | None | 0 0
  1. <?php echo $header; ?>
  2.  
  3. <div id="content_container" class="ccc_interior">
  4.     <div class="container full-width">
  5.         <div id="content" class="full-width">
  6.             <div id="main-content" class="alpha">
  7.                 <ul id="order" class="steps">
  8.                     <li class="inactive" id="step_1"><h3><a href="/bases/"><?php echo $step_1; ?></h3></a></li>
  9.                     <li class="active" id="step_2"><h3><a href="/ingredients/<?php if ($base) { echo $base; }?>"><?php echo $step_2; ?></h3></a></li>
  10.                     <li class="inactive" id="step_3"><h3><a href="/mixname/"><?php echo $step_3; ?></h3></a></li>
  11.                 </ul>
  12.  
  13.                
  14.                 <div id="tabs" class="ui-tabs">
  15.  
  16.                     <ul id="ingredient-types">
  17.                         <li class="title"><?php echo $text_ingredient_type; ?></li>
  18.                         <?php foreach ($categories as $category) {?>
  19.                             <li><a href="#category-<?php echo $category['category_id']; ?>"><?php echo $category['category_name']; ?></a></li>
  20.                         <?php } ?>
  21.                     </ul>
  22.                  
  23.                     <br class="clear"/>
  24.  
  25.                
  26.                     <?php foreach ($categories as $category) {
  27.                         $first_cat = $category['category_id'];
  28.                     ?>
  29.                    
  30.                         <div id="category-<?php echo $category['category_id']; ?>">
  31.                             <table class="ingredients" cellpadding="0" cellspacing="0" border="0">
  32.                             <?php for ($i = 0; $i < sizeof($category['products']); $i = $i + 3) { ?>
  33.                                 <tr>
  34.                                 <?php $k = 0; ?>   
  35.                                 <?php for ($j = $i; $j < ($i + 3); $j++) { ?>
  36.                                     <?php $k++; ?>             
  37.                                     <td class="grid_3 ingredient <?php echo 'column_' . $k; ?>">
  38.                                         <?php if (isset($category['products'][$j])) { ?>
  39.  
  40.                                             <div class="pic">
  41.                                                 <a href="<?php echo $category['products'][$j]['zoom_href']; ?>" class="zoom"><img src="<?php echo $category['products'][$j]['thumb']; ?>" title="<?php echo $category['products'][$j]['product_name']; ?>" alt="<?php echo $category['products'][$j]['product_name']; ?>" /></a>
  42.                                             </div>
  43.                                             <form action="/cart" method="post" enctype="multipart/form-data" id="add_<?php echo $category['products'][$j]['product_id'] ?>">
  44.                                            
  45.                                                 <div class="add_to_mix">
  46.                                                     <a onclick="$('#add_<?php echo $category['products'][$j]['product_id'] ?>').submit();" class="add-to-cart button" href="#add-to-mix"><span><?php echo $text_add_to_mix; ?></span></a>
  47.                                                     <input type="hidden" name="quantity" value="1" />
  48.                                                     <input type="hidden" name="product_class_id" value="<?php echo $category['products'][$j]['product_class'] ?>" />
  49.                                                     <input type="hidden" name="product_id" value="<?php echo $category['products'][$j]['product_id'] ?>" />
  50.  
  51.                                                 </div>
  52.                                             </form>
  53.                                                
  54.                                                 <div class="view_larger"><a href="<?php echo $category['products'][$j]['zoom_href']; ?>" class="zoom"><?php echo $text_more_info; ?></a></div>
  55.                                                 <h3><a href="<?php echo $category['products'][$j]['href']; ?>"><?php echo $category['products'][$j]['product_name']; ?></a></h3>
  56.                                                 <p class="product_serving"><?php echo $text_ingredient_size; ?></p>
  57.                                                 <p class="product_price"><?php echo $category['products'][$j]['price']; ?></p>
  58.                                                
  59.                                            
  60.                                         <?php } ?>
  61.                                     </td>
  62.                                     <?php } ?>
  63.  
  64.                                 </tr>
  65.                                 <?php } ?>
  66.                             </table>
  67.  
  68.                         <ul id="ingredient-types2">
  69.                         <li class="title"><?php echo $text_ingredient_type; ?></li>
  70.                         <?php foreach ($categories as $category) {
  71.                             if ($category['category_id'] == $first_cat)
  72.                             {
  73.                         ?>
  74.                             <li><a rel="category-<?php echo $category['category_id']; ?>" style="cursor:pointer;" class="bnav activate"><?php echo $category['category_name']; ?></a></li>
  75.                         <?php
  76.                             } else
  77.                             {
  78.                            
  79.                         ?>
  80.  
  81.                             <li><a rel="category-<?php echo $category['category_id']; ?>" style="cursor:pointer;" class="bnav"><?php echo $category['category_name']; ?></a></li>
  82.                         <?php
  83.                             }
  84.                         <?php } ?>
  85.                     </ul>
  86.  
  87.                    
  88.                             <a class="back button" href="/bases"><span><< Select Base</span></a>
  89.                            
  90.                           <a class="forward button" href="/mixname"><span>Place Order >></span></a>
  91.                         </div>      
  92.                     <?php } ?>
  93.  
  94.                    
  95.                     </div>
  96.             </div>
  97.        
  98.        
  99.             <div id="sidebar" class="omega">
  100.                 <?php echo $column_right; ?>
  101.             </div>
  102.         <br class="clear"/>
  103.         </div>
  104.     </div> 
  105. </div>
  106.  
  107.        
  108.    
  109. <?php echo $footer; ?>
  110.  <script type="text/javascript">
  111.  $("#tabs").tabs();
  112. $('#ingredient-types2 a').click(function() {
  113.    $("#tabs").tabs().tabs("select", $(this).attr("rel"));
  114.    return false;
  115.   });  
  116.  
  117.  
  118.  </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement