Guest User

Untitled

a guest
Aug 13th, 2012
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.66 KB | None | 0 0
  1. <section>
  2.   <h1 class="principal-h1">Livre d'or</h1>
  3.  
  4.   <?php foreach ($messages as $message): $message = current($message) ?>
  5.  
  6.       <div class="blocMessageLivreOr">
  7.           <p class="pseudo">
  8.             <strong><?php echo $message['name'];?></strong> <span class="sub">à écrits le <?php echo $this->Date->french($message['created']); ?> : </span>
  9.           </p>
  10.  
  11.           <hr />
  12.  
  13.           <p class="message">
  14.              <?php echo $message['content'];?>
  15.           </p>
  16.           <p class="lienMessage">
  17.               <?php echo $this->Html->link("Ajouter un commentaire",array('action'=>'add','controller'=>'comments',$message['id'])); ?> |
  18.               <?php echo $this->Html->link("Voir le message et ses commentaires...",array('action'=>'show','controller'=>'guestbooks',$message['id'],$message['slug'])); ?>
  19.           </p>
  20.       </div>
  21.  
  22.   <?php endforeach ?>
  23.   <p class="paginator">
  24.     <?php echo $this->Paginator->numbers(array('separator' => '')); ?>
  25.   </p>
  26.  
  27.   <div class="form-horizontal">
  28.     <?php echo $this->Form->create('Guestbook',array('url'=>array('action'=>'add'))); echo "\n"; ?>
  29.       <fieldset>
  30.         <div class="control-group">
  31.           <?php echo $this->Form->input('name',array('label'=>"Nom",'required')); echo "\n"; ?>
  32.         </div>
  33.         <div class="control-group">
  34.           <?php echo $this->Form->input('email',array('label'=>"Email")); echo "\n"; ?>
  35.         </div>
  36.         <div class="control-group">
  37.           <?php echo $this->Form->input('content',array('label'=>"Message")); echo "\n"; ?>
  38.         </div>
  39.       </fieldset>
  40.     <?php echo $this->Form->end('Envoyer'); echo "\n"; ?>
  41.   </div>
  42.  
  43. </section>
Advertisement
Add Comment
Please, Sign In to add comment