Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/blogcomment/search.phtml
<div class="table-box">
  <form method="POST" action="/backoffice/blogcomment/search">
    <table class="table">
      <thead>
        <tr>
          <th class="col-md-4" >
            <?php echo $this->titlePage; ?>
          </th>
        </tr>
      </thead>
      <tbody>
        <?php echo $this->render("alert_tr.phtml"); ?>
			  <tr >
				  <td class="col-md-4">Publi�</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_publish" id="is_publish1" class="bluecheckradios" <?php if ($this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_publish" id="is_publish2" class="bluecheckradios" <?php if (!$this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish2">&nbsp;Non</label>
			    </td>
			  </tr>
			  <tr >
				  <td class="col-md-4">Ferm�</td>
				  <td class="col-md-8">
					  <input type="radio" value="<?php echo true; ?>" name="is_close" id="is_close1" class="bluecheckradios" <?php if ($this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close1">&nbsp;Oui</label>
					  <input type="radio" value="<?php echo false; ?>" name="is_close" id="is_close2" class="bluecheckradios" <?php if (!$this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close2">&nbsp;Non</label>
			    </td>
			  </tr>
			  <tr >
				  <td class="col-md-4">Contenu</td>
				  <td class="col-md-8"><input type="text" class="form-control" placeholder="Contenu � rechercher" name="message" size="40" id="title" value="<?php echo $this->populateData['message']; ?>"/></td>
			  </tr> 
			  <tr >
				  <td class="col-md-4">Sujet</td>
				  <td class="col-md-8">
					  <select name="id_subject" id="id_subject" class="form-control">
						  <?php  
						  foreach($this->listSubjects as $row) {  
								  ?>
									  <option value="<?php echo $this->escape($row['id']); ?>" <?php if ($row['id'] == $this->populateData['id_subject']) { echo 'selected="selected"';}?>>
										  <?php  echo $row['category_name'].' > '.$row['title']; ?>
									
									  </option>
						 <?php   } ?>
					  </select> 
          </td>
			  </tr>
			<tr>
				<td colspan="2" class="text-center">
            <button type="submit" name="search"  class="btn btn-primary">
              <span class="glyphicon glyphicon-search"></span> Rechercher
            </button>
				</td>
			</tr> 
    </tbody>
    </table>
  </form>
</div>
<?php 
$listSearchs = $this->listSearchs; 
if (isset($listSearchs)) { 
?>

<div class="clearfix"></div>
<div class="table-box">

  <table class="display table" id="searchTable" width="100%">
    <thead>
      <tr>
        <th>Pseudo</th>
        <th>Contenu</th>
        <th>Date</th>
        <th></th>
      </tr>
    </thead>
    <tbody>

      <?php foreach($listSearchs as $row)  { ?>
      <tr>
        <td>
          <?php echo $row['pseudo'];?>
        </td>
        <td>
          <?php echo $row['message'];?>
        </td>
        <td>
          <?php $date = new Zend_Date($row['date_updated'], Zend_Date::ISO_8601); 
            echo $date->toString('dd-MM-YYYY HH:mm:ss');
          ?>
        </td>
        <td>
          <div class="btn-group">
            <a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/blogcomment/edit/id/<?php echo $this->escape($row['id']);?>" target="_blank"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
         </div>
        </td>
      </tr>
      <?php } ?>
    </tbody>
  </table>
  <script>
    $(document).ready(function() {
    initDataTable('searchTable', [[ 3, "desc" ]], [
    { "orderable": false, "targets": -1, "width": "150px" },
    ]);
    });
  </script>
</div>
<?php  } ?>