Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/blogsubject/edit.phtml
<div class="table-box">
  <form method="POST" action="/backoffice/blogsubject/edit">
    <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">Publier</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">Fermer</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">Cat�gorie</td>
				  <td class="col-md-8"> 
					    <select name="id_category" id="id_category" class="form-control">
						    <?php 
						    $show = array();
						    foreach($this->listallblogcategories as $row) { 
						 	    for ($level=0 ; $level<11; $level++) { 
								    if ((!isset($show['title'.$level]) || $show['title'.$level] != $row['title'.$level]) && $row['title'.$level] != null) {
								    ?>
									    <option value="<?php echo $this->escape($row['id'.$level]); ?>" <?php if ($row['id'.$level] == $this->populateData['id_category']) { echo 'selected="selected"';}?>>
										    <?php 
						 				    for ($i=0 ; $i<$level; $i++) { 
											    echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
										    }
										    echo $row['title'.$level]; ?>
									
									    </option>
									    <?php 
									    $show['title'.$level] = $row['title'.$level];
								    }
							     } 
						    } ?>
					    </select> 
				  </td>
			  </tr>
			  <tr >
				  <td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				  <td class="col-md-8"><input type="text" class="form-control" placeholder="Titre" name="title" size="40" id="title" value="<?php echo $this->populateData['title']; ?>"/></td>
			  </tr> 
			  <tr >
				  <td class="col-md-4">Titre secondaire</td>
				  <td class="col-md-8"><input type="text" class="form-control" placeholder="Titre secondaire" name="sub_title" size="40" id="sub_title" value="<?php echo $this->populateData['sub_title']; ?>"/></td>
			  </tr> 
			  <tr >
				  <td class="col-md-4">Contenu</td>
				  <td class="col-md-8"> 
						<textarea  name="message" cols="130" rows="20" id="annonceContent">
						<?php if (isset($this->populateData['message']) && !empty($this->populateData['message'])) { 
							 echo $this->populateData['message']; 
						} ?>
						</textarea>
          </td>
			  </tr> 
			<tr>
				<td colspan="2" class="text-center">
            <input type="hidden" value="<?php echo $this->populateData['id']; ?>" name="id" />
            <button type="submit" name="search"  class="btn btn-success">
              <span class="glyphicon glyphicon-edit"></span> Modifier
            </button>
				</td>
			</tr> 
    </tbody>
    </table>
  </form>
  
  <script>
    $(document).ready(function() { 
    initEditor('#annonceContent');
    });
  </script>
</div>