Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/annonce/list.phtml
<script type="text/javascript">
$(function(){
	initRichTextBox('#annonceContent', 1, 500, 150);
});
</script>
<table cellpadding="0" cellspacing="5" border="0" width="100%">
<tr>
	<td align="left" colspan="4">
		<span class="errorText"><?php echo $this -> messageError; ?></span>
		<span class="successText"><?php echo $this -> messageSuccess; ?></span>
	</td>
</tr>
<tr>
	<td colspan="4">
		<table border="0" cellpadding="0" cellspacing="0" width="1000px">
			<tr>
				<td>
				<?php if ($this->populateFormAnnonce['TITRE']) { ?>
					<form action="<?php echo $this->baseUrl; ?>/backoffice/annonce/edit" method="post" name="editAnnonceForm" >
					<?php } else { ?>
					<form action="<?php echo $this->baseUrl; ?>/backoffice/annonce/add" method="post" name="addAnnonceForm" >
					<?php } ?>
						<table  border="0" cellpadding="0" cellspacing="10" width="850px" align="left">
							<tr >
								<td>
									Titre
								</td>
								<td>
									<input type="text" name="titre" size="40" id="titre" value="<?php echo $this->populateFormAnnonce['TITRE']; ?>"/>
								</td>
							</tr>
							<tr >
								<td>
									Afficher
								</td>
								<td>
									<input type="radio" value="0" name="isshow" <?php if ($this->populateFormAnnonce['isSHOW'] == 0) { echo 'checked="checked"';} ?>>Oui</input>
									<input type="radio" value="1" name="isshow" <?php if ($this->populateFormAnnonce['isSHOW'] == 1) { echo 'checked="checked"';} ?>>Non</input><br>
			
								</td>
							</tr>
							<tr >
								<td valign="top">
									Contenu
								</td>
								<td class="desc-annonce-detail">
									<?php if ($this->populateFormAnnonce) { ?>
									<textarea  name="content" id="annonceContent" name="annonceContent"><?php echo $this->populateFormAnnonce['CONTENT']; ?></textarea>
									<?php } ?>
								
								</td>
							</tr>	
							<tr>
								<td align="center" colspan="2">
									<?php if ($this->populateFormAnnonce['TITRE']) { ?>
									<input type="hidden" name="id" value="<?php echo $this->populateFormAnnonce['ID'];?>">
									<input type="submit" name="edit" value="Modifier" />
									<?php } else { ?>
									<input type="submit" name="add" value="Ajouter" />
									<?php } ?>
								</td>
							</tr>
						</table>
					</form>
				</td>
			</tr>
		</table>
	</td>
</tr>
<tr class="linkHeader">
	<th>TITRE</th>
	<th >AFFICHAGE</th>
	<th >&nbsp;</th>
	<th >&nbsp;</th>
</tr>

<?php foreach($this->listannonce as $row) : ?>
<tr>
	<td width="300px" class="link3"><a href="<?php echo $this->baseUrl; ?>/backoffice/annonce/edit/id/<?php echo $row['ID']; ?>"><?php echo $row['TITRE'];?></a></td>
	<td><?php if ($this->escape($row['isSHOW'])==0) {echo 'Oui';} else {echo 'Non';} ?></td>
	<td colspan="2">
        <a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/annonce/edit/id/<?php echo $row['ID']; ?>">Modifier</a>
    
        <a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/annonce/del/id/<?php echo $row['ID']; ?>" onclick="return msgOkCancelDelete();">Supprimer</a>
	</td>
</tr>
<tr>
	<td colspan="4" style="background:#666666;height:1px;"></td>
</tr>
<?php endforeach; ?>
</table>