Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.62 KB | None | 0 0
  1. <?php echo $header; ?>
  2.  
  3.  
  4.  
  5. <div id="content_container" class="ccc_interior">
  6.  
  7.     <div class="container full-width">
  8.  
  9.         <div id="content" class="full-width">
  10.  
  11.             <div id="main-content" class="alpha">
  12.  
  13.                 <ul id="order" class="steps">
  14.  
  15.                     <li class="inactive" id="step_1"><h3><a href="/bases/"><?php echo $step_1; ?></h3></a></li>
  16.  
  17.                     <li class="active" id="step_2"><h3><a href="/ingredients/<?php if ($base) { echo $base; }?>"><?php echo $step_2; ?></h3></a></li>
  18.  
  19.                     <li class="inactive" id="step_3"><h3><a href="/mixname/"><?php echo $step_3; ?></h3></a></li>
  20.  
  21.                 </ul>
  22.  
  23.                
  24.  
  25.                 <div id="tabs" class="ui-tabs">
  26.  
  27.  
  28.  
  29.                     <ul id="ingredient-types">
  30.  
  31.                         <li class="title"><?php echo $text_ingredient_type; ?></li>
  32.  
  33.                         <?php foreach ($categories as $category) {?>
  34.  
  35.                             <li><a href="#category-<?php echo $category['category_id']; ?>"><?php echo $category['category_name']; ?></a></li>
  36.  
  37.                         <?php } ?>
  38.  
  39.                     </ul>
  40.  
  41.                  
  42.  
  43.                     <br class="clear"/>
  44.  
  45.                
  46.  
  47.                     <?php foreach ($categories as $category) {
  48.                         $first_cat = $category['category_id'];
  49.                     ?>
  50.                    
  51.  
  52.                         <div id="category-<?php echo $category['category_id']; ?>">
  53.  
  54.                             <table class="ingredients" cellpadding="0" cellspacing="0" border="0">
  55.  
  56.                             <?php for ($i = 0; $i < sizeof($category['products']); $i = $i + 3) { ?>
  57.  
  58.                                 <tr>
  59.  
  60.                                 <?php $k = 0; ?>   
  61.  
  62.                                 <?php for ($j = $i; $j < ($i + 3); $j++) { ?>
  63.  
  64.                                     <?php $k++; ?>             
  65.  
  66.                                     <td class="grid_3 ingredient <?php echo 'column_' . $k; ?>">
  67.  
  68.                                         <?php if (isset($category['products'][$j])) { ?>
  69.  
  70.                                             <div class="pic">
  71.  
  72.                                                 <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>
  73.  
  74.                                             </div>
  75.  
  76.                                             <form action="/cart" method="post" enctype="multipart/form-data" id="add_<?php echo $category['products'][$j]['product_id'] ?>">
  77.  
  78.                                            
  79.  
  80.                                                 <div class="add_to_mix">
  81.  
  82.                                                     <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>
  83.  
  84.                                                     <input type="hidden" name="quantity" value="1" />
  85.  
  86.                                                     <input type="hidden" name="product_class_id" value="<?php echo $category['products'][$j]['product_class'] ?>" />
  87.  
  88.                                                     <input type="hidden" name="product_id" value="<?php echo $category['products'][$j]['product_id'] ?>" />
  89.  
  90.                                                 </div>
  91.  
  92.                                             </form>
  93.  
  94.                                                
  95.  
  96.                                                 <div class="view_larger"><a href="<?php echo $category['products'][$j]['zoom_href']; ?>" class="zoom"><?php echo $text_more_info; ?></a></div>
  97.  
  98.                                                 <h3><a href="<?php echo $category['products'][$j]['href']; ?>"><?php echo $category['products'][$j]['product_name']; ?></a></h3>
  99.  
  100.                                                 <p class="product_serving"><?php echo $text_ingredient_size; ?></p>
  101.  
  102.                                                 <p class="product_price"><?php echo $category['products'][$j]['price']; ?></p>
  103.  
  104.                                                
  105.  
  106.                                            
  107.  
  108.                                         <?php } ?>
  109.  
  110.                                     </td>
  111.  
  112.                                     <?php } ?>
  113.  
  114.                                 </tr>
  115.  
  116.                                 <?php } ?>
  117.  
  118.                             </table>
  119.  
  120.  
  121.  
  122.                         <ul id="ingredient-types2">
  123.  
  124.                         <li class="title"><?php echo $text_ingredient_type; ?></li>
  125.  
  126.                         <?php foreach ($categories as $category) {
  127.                             if ($category['category_id'] == $first_cat)
  128.                             {
  129.                         ?>
  130.                             <li><a rel="category-<?php echo $category['category_id']; ?>" style="cursor:pointer;" class="bnav activate"><?php echo $category['category_name']; ?></a></li>
  131.  
  132.                         <?php
  133.                             } else
  134.                             {
  135.                            
  136.                         ?>
  137.                             <li><a rel="category-<?php echo $category['category_id']; ?>" style="cursor:pointer;" class="bnav"><?php echo $category['category_name']; ?></a></li>
  138.                         <?php
  139.                             }
  140.                         <?php } ?>
  141.  
  142.                     </ul>
  143.  
  144.  
  145.  
  146.                    
  147.  
  148.                             <a class="back button" href="/bases"><span><< Select Base</span></a>
  149.  
  150.                            
  151.  
  152.                           <a class="forward button" href="/mixname"><span>Place Order >></span></a>
  153.  
  154.                         </div>      
  155.  
  156.                     <?php } ?>
  157.  
  158.                    
  159.  
  160.                     </div>
  161.  
  162.             </div>
  163.  
  164.        
  165.  
  166.        
  167.  
  168.             <div id="sidebar" class="omega">
  169.  
  170.                 <?php echo $column_right; ?>
  171.  
  172.             </div>
  173.  
  174.         <br class="clear"/>
  175.  
  176.         </div>
  177.  
  178.     </div> 
  179.  
  180. </div>
  181.  
  182.        
  183.  
  184.    
  185.  
  186. <?php echo $footer; ?>
  187.  
  188.  <script type="text/javascript">
  189.  
  190.  $("#tabs").tabs();
  191.  
  192. $('#ingredient-types2 a').click(function() {
  193.  
  194.    $("#tabs").tabs().tabs("select", $(this).attr("rel"));
  195.  
  196.    return false;
  197.  
  198.   });  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement