Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/command/search.phtml
<div class="table-box">
	<form method="POST" action="<?php echo $this->baseUrl; ?>/backoffice/command/search">
	<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">
						<input type="text" value="<?php echo $this->searchValue; ?>" id="searchValue" name="searchValue" class="form-control" placeholder="Votre recherche : r�f�rence, nom, pr�nom ou email du client">
					</div>
					<div class="col-md-2">	
						<div class="custom-radio-checkbox">
							<input tabindex="1" type="checkbox" class="bluecheckradios" id="searchType" name="searchType" <?php if ($this->searchType) { echo 'checked="checked"';}?>>
							<label for="searchType">En cours de validation...</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">
<table class="display table" id="commandSearchTable" width="100%">
	<thead>
		<tr>
			<th></th>
			<th class="text-center">R�f�rence</th>
			<th class="no-wrap">Prix TTC</th>
			<th>Statut</th>
			<th class="text-center">Client</th>
			<th class="no-wrap">Date de la commande</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($this->listcommand as $row) { ?> 
		<tr>
			<td><?php if ($row['isARCHIVE'] == 0) { echo 'Archiv�'; } ?> </td>
			<td > <a class="btn btn-primary"  href="<?php echo $this->baseUrl; ?>/backoffice/command/edit/id/<?php echo $row['ID']; ?>"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;<?php echo $this->escape($row['REFERENCE']);?></a></td>
			<td ><?php echo sprintf("%.2f",$this->escape($row['PRIXTOTALTTC'])).'&nbsp;&#8364;';?></td>
			<td >
			<?php 
				switch ($this->escape($row['STATUT'])) {
					case 1 : echo 'Commande - En attente'; break;
					case 2 : echo 'Commande - En livraison'; break;
					case 3 : echo 'Commande - Termin�e'; break;
					case 4 : echo 'Commande - En traitement'; break;
					case 10 : echo 'Devis - En attente'; break;
					case 11 : echo 'Devis - Termin�'; break;
				}
			?>
			</td>
			<td ><a class="btn btn-primary " href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $row['IDUSER']; ?>" ><span class="glyphicon glyphicon-user"></span>&nbsp;<?php echo $row['USER_NOM'].' '.$row['USER_PRENOM'];?></a></td>
			<td ><?php 
			$myDate = new Zend_Date(strtotime($row['DATESTART']));
			$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
			$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
			echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
				
			?></td>
			
			<td class="text-center">
				<div class="btn-group">
		        	<a class="btn btn-success" target="_blank" href="<?php echo $this->baseUrl; ?>/backoffice/command/edit/id/<?php echo $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/command/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
</div>

<script type="text/javascript">
$(document).ready(function(){
	initCheckbox('.bluecheckradios');
	initDataTable('commandSearchTable', [[ 1, "asc" ]], [{ "orderable": false, "targets": 0}, { "orderable": false, "targets": -1, "width": "270px" }]);     
	
});
</script>