Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/index/index.phtml
<?php  if ($this->isSiteEbusiness) {  ?>
	<?php if ($this->useradmin['isCommand'] == 1 && isset($this->statlistdevis) && !empty($this->statlistdevis)) {  ?>
	<div class="col-md-6">
		<div class="col-md-12 no-space-top"><h5>Les devis non trait�s</h5></div>
		<div class="col-md-12 no-space-top">
			<table  class="display table" id="devisHomeTable" width="100%">
				<?php foreach($this->statlistdevis as $row) { ?>
				<tr >
					<td >
						 <a class="btn btn-primary"  href="<?php echo $this->baseUrl; ?>/backoffice/command/edit/id/<?php echo $this->escape($row['CMDID']);?>"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;<?php echo $this->escape($row['CMDREF']);?></a>
					 </td>
					<td >
						 <a class="btn btn-primary"  href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $this->escape($row['IDUSER']);?>"><span class="glyphicon glyphicon-user"></span>&nbsp;<?php echo $row['USERNOM'].' '.$row['USERPRENOM']; ?></a>
					 </td>
					<td > 
						 <?php echo sprintf("%.2f",$this->escape($row['CMDTOTALTTC'])); ?><b>&nbsp;&#8364;</b>
					 </td>
				</tr>
				<?php }  ?>
			</table>
		</div>
	</div>
	<?php } ?>
	 
	<?php if ($this->useradmin['isCommand'] == 1 && isset($this->statlistcommand) && !empty($this->statlistcommand)) {  ?>
	<div class="col-md-6">
		<div class="col-md-12 no-space-top"><h5>Les commandes non trait�es</h5></div>
		<div class="col-md-12 no-space-top">
		<table  class="display table" id="commandsHomeTable" width="100%">
			<?php  foreach($this->statlistcommand as $row) { ?>
			<tr >
				<td >
					 <a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/command/edit/id/<?php echo $this->escape($row['CMDID']);?>"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;<?php echo $this->escape($row['CMDREF']);?></a>
				 </td>
				<td >
					 <a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $this->escape($row['IDUSER']);?>"><span class="glyphicon glyphicon-user"></span>&nbsp;<?php echo $row['USERNOM'].' '.$row['USERPRENOM']; ?></a>
				 </td>
				<td >
					 <?php echo sprintf("%.2f",$this->escape($row['CMDTOTALTTC'])); ?><b>&nbsp;&#8364;</b>
				 </td>
			</tr>
			<?php } ?>
		</table>
		</div>
	</div>
	<?php } ?>
	<?php if ($this->useradmin['isProduct'] == 1 && isset($this->statlistproduct) && !empty($this->statlistproduct)) {  ?>
	<div class="col-md-12">
		<div class="col-md-12 no-space-top"><h5>Les produits non visible</h5></div>
		<div class="col-md-12 no-space-top">
			<table  class="display table" id="productsHomeTable" width="100%">
			<?php foreach($this->statlistproduct as $row) { ?>
				<tr <?php if ($this->escape($row['isACTIVE']) == 1) { echo "class='unactiveRow'";  } ?>>
					<td >
						 <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']]; }  ?>" /></a> 
					</td>
					<td >
						 <a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['ID']);?>"><span class="glyphicon glyphicon-eye-open"></span>&nbsp;<?php echo $row['NOM'];?></a>
							<?php echo $row['DESCRIPTIONSHORT'] ;?>
					 </td>
					<td  > 
							<?php echo $this->escape($row['PRIX']); ?><b>&nbsp;&#8364;</b>
					 </td>
				</tr>
				<?php } ?>
			</table>
		</div>
	</div> 
	<?php } ?>  
	<script>			
		$(document).ready(function() {
			initDataTable('productsHomeTable', [[0, "asc" ]], [ { "orderable": false, "targets": 0},{ "orderable": false, "targets": 1},{ "orderable": false, "targets": 2}]); 	
		});
	</script>
<?php } ?>