Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as PHP by teknikuzman ( 12 years ago )
<div id="search-cart">
      <div class="searchBox">
     
    <input type="text" name="search" value=" <?php echo $this->language->get('search_input') ?>" />
         <div class="selectCat">
          <span class="selected-cat"><?php echo $this->language->get('search_all') ?></span>
          <ul>
             <?php $results = $this->model_catalog_category->getCategories(0); ?>             
                 <ul class="cat-list">
                    <li>
                     <span>
                         <?php echo $this->language->get('search_all') ?>
                        </span>
      <?php foreach($results as $result): ?>
                                <li class="<?php echo $result["category_id"]; ?>"><?php echo $result['name']; ?></li>
                        <?php endforeach; ?>
                 </ul>
                </li>
            </ul>
            <input id="select-cat" type="hidden" name="category_id" value="" />            
      </div>
  </div>
  <a id="button"><?php echo $this->language->get('search_search') ?></a>
   <div class="clear"></div>
</div>

 

Revise this Paste

Parent: 76014
Your Name: Code Language: