Current File : /home/k/a/r/karenpetzb/www/items/category/footer.tar
add.phtml000060400000002730150714753160006351 0ustar00 <div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/footer/add" method="post" name="addFooterForm" >
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" 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"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				<td class="col-md-8"><input type="text" class="form-control" placeholder="Titre du pied de page" name="titre" size="40" id="titre" value="<?php echo $this->populateFormFooter['TITRE']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4">Lien</td>
				<td class="col-md-8"><input type="text" class="form-control" placeholder="Lien direct vers une autre page" name="url" size="40" id="url" value="<?php echo $this->populateFormFooter['URL']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4">Contenu</td>
				<td class="col-md-8"><textarea rows="30" placeholder="Ou �diter un contenu" class="form-control" cols="50" name="content" id="content"><?php echo $this->populateFormFooter['CONTENT']; ?></textarea></td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	initEditor('#content');
});
</script>
		doc.phtml000060400000003463150714753160006372 0ustar00 <div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/footer/adddoc" method="post" name="addDoc"  enctype="multipart/form-data" >
	<table class="table">
		<thead>
			<tr>
				<th class="col-md-4" colspan="2"><?php echo $this->titlePage; ?></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr class="nostriped">
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Document</td>
				<td class="col-md-8"><input type="file" name="file" id ="file" size="50" ><i>Extensions : pdf</i></td>
			</tr>
			<tr class="nostriped">
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>

<div class="table-box">
<table class="display table" id="optionTable" width="100%">
	<thead>
		<tr>
			<th>Documents</th> 
		</tr>
	</thead>
	<tbody>
		<?php 
			$files = glob("doc/*.pdf");
			$count = 0;
			for ($i=0; $i <sizeof($files); $i++) {				
		?>
		<tr>
			<td>
				<form action="<?php echo $this->baseUrl; ?>/backoffice/footer/deldoc" method="post" id="delDocForm<?php echo $count;?>">
				<div class="col-md-8 no-space-top"><a href="<?php echo '/'.$files[$i]; ?>" target="_blank"><?php echo '/'.$files[$i]; ?></a></div>
				<div class="col-md-4 no-space-top">
					<input type="hidden" name="doc" value="<?php echo $files[$i]; ?>" > 
					<div class="btn-group">
						<button class="btn btn-danger btn-modal" type="button" data-toggle="ajaxModalSubmitDelete" data-form="delDocForm<?php echo $count;?>"  ><i class="glyphicon glyphicon-trash"></i>&nbsp;Supprimer</button>
					</div>
				</div>
				</form>
			</td>
		</tr>
		<?php $count++; } ?>
	</tbody>
</table>
</div>list.phtml000060400000002430150714753160006571 0ustar00<div class="table-box">
<div class="col-md-12 header-single-line">
	<div class="col-md-5 header-single no-space-top"><?php echo $this->titlePage; ?></div>
	<div class="col-md-7 no-space-top"><?php echo $this->render("alert.phtml"); ?></div>
</div>
<table class="display table" id="supplierTable" width="100%">
	<thead>
		<tr>
			<th>Titre</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listfooter as $row)  { ?>
		<tr>
			<td><?php echo $this->escape($row['TITRE']);?></td>
			<td class="text-center">
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/footer/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/footer/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('supplierTable', [[ 0, "asc" ]], [
		                    		                { "orderable": false, "targets": -1, "width": "300px" }
		                    		              ]); 	    
	});
</script>
</div>
edit.phtml000060400000003075150714753160006551 0ustar00 <div class="table-box">
	<form action="<?php echo $this->baseUrl; ?>/backoffice/footer/edit" method="post" name="editFooterForm" >
	<table class="table">
		<thead>
			<tr>
				<th colspan="2" 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"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Titre</td>
				<td class="col-md-8"><input type="text" class="form-control" placeholder="Titre du pied de page" name="titre" size="40" id="titre" value="<?php echo $this->populateFormFooter['TITRE']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4">Lien</td>
				<td class="col-md-8"><input type="text" class="form-control" placeholder="Lien direct vers une autre page" name="url" size="40" id="url" value="<?php echo $this->populateFormFooter['URL']; ?>"/></td>
			</tr>
			<tr >
				<td class="col-md-4">Contenu</td>
				<td class="col-md-8"><textarea rows="30" placeholder="Ou �diter un contenu" class="form-control" cols="50" name="content" id="content"><?php echo $this->populateFormFooter['CONTENT']; ?></textarea></td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<input type="hidden" name="id" id="id" value="<?php echo $this->populateFormFooter['ID']; ?>" >
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	initEditor('#content');
});
</script>