Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/product/list.phtml
 <div class="table-box">
	<form method="POST" action="/backoffice/product/list">
	<table class="table">
		<thead>
			<tr>
				<th class="col-md-4" ><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td class="col-md-12">
					<div class="col-md-7">
						<select class="form-control" name="categorySearch" >
						<?php 
						$show = array();
						foreach($this->listallcategories as $row) { 
						 	for ($level=0 ; $level<11; $level++) { 
								if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
								?>
									<option value="<?php echo $this->escape($row['ID'.$level]); ?>" <?php if ($row['ID'.$level] == $this->searchCategory) { echo 'selected="selected"';}?>>
										<?php 
						 				for ($i=0 ; $i<$level; $i++) { 
											echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										}
										echo $this->escape($row['NOM'.$level]); ?>
									
									</option>
									<?php 
									$show['NOM'.$level] = $row['NOM'.$level];
								}
							 } 
						} ?>
						</select>
					</div>
					<div class="col-md-2">
						<div class="custom-radio-checkbox">
							<input tabindex="1" type="checkbox" class="bluecheckradios" id="isActive" name="isActive" <?php if ($this->searchCategoryActive == "0") { echo 'checked="checked"';}?>>
							<label for="isActive">Statut : Actif</label>
						</div> 
					</div>
					<div class="col-md-1 col-md-offset-1">
						<button type="submit" name="search"  class="btn btn-primary">
						  <span class="glyphicon glyphicon-search"></span> Rechercher
						</button>				
					</div>
					<div class="col-md-12"></div>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<div class="table-box">
<?php 
$listPics = $this->listproductpicture; 
?>
<table class="display table" id="productTable" width="100%">
	<thead>
		<tr>
			<th></th>
			<th>Nom</th>
			<th>Description</th>
			<th class="center">Prix</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listproducts as $row)  { ?>
		<tr>
			<td>
				<ul class="gallerybox">
                	<li>
						<figure>
							<a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['ID']);?>" ><img src="<?php if (isset($listPics[$row['ID']])) { echo '/'.$listPics[$row['ID']]; } else {echo '/items/product/default/default.png'; } ?>"></a>
						</figure>
					</li>
				</ul>
			</td>
			<td>
				<?php echo $row['NOM'];?>
			</td>
			<td>	
				<?php echo $row['DESCRIPTIONSHORT'];?>
				<?php if ($this->escape($row['isPROMO']) == 0) { ?> <br/><br/>En promo<?php } ?>
			</td>
			<td>
				<?php echo $this->escape($row['PRIX']); ?>&nbsp;&#8364;
			</td>
			<td>
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['ID']);?>" ><span class="glyphicon glyphicon-edit"></span> Modifier</a>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/product/del/id/<?php echo $this->escape($row['ID']); ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('productTable', [[ 1, "asc" ]], [
		                    		                { "orderable": false, "targets": 0, "width": "150px"  },
		                    		                { "orderable": false, "targets": -1, "width": "270px" },
		                    		                { "orderable": true, "targets": 1, "type": "html"},
		                    		                { "orderable": true, "targets": 2, "type": "html"},
		                    		                { "orderable": true, "targets": 3}
		                    		              ]); 	    
	});
</script>
</div>