Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.chauffagiste-essonne.com
/
htdocs
/
pages
/
db
/
/srv/data/web/vhosts/www.chauffagiste-essonne.com/htdocs/pages/db/news-comment.php
<?php //start_block('title','keywords','description') start_block('','',''); ?> <?php require "functions/comment.php"; ?> <h2 id="comment"> <?php if (sizeof($comments)==1): ?> 1 commentaire <?php elseif(sizeof($comments)>1): ?> <?=sizeof($comments)?> commentaires <?php else: ?> Déposez le premier commentaire <?php endif ?> </h2> <?php if(!is_null($returnAdd)){ if($returnAdd==1) echo "<div class='alert alert-success'><button type='button' class='close' data-dismiss='alert'>×</button>Le commentaire a bien été ajoutée, il sera affiché une fois validé par nos équipes.</div>"; elseif($returnAdd==2) echo "<div class='alert alert-danger'><button type='button' class='close' data-dismiss='alert'>×</button>Tous les champs doivent être remplis.</div>"; elseif($returnAdd==3) echo "<div class='alert alert-danger'><button type='button' class='close' data-dismiss='alert'>×</button>Les liens ne sont pas autorisés dans les commentaires.</div>"; else echo "<div class='alert alert-danger'><button type='button' class='close' data-dismiss='alert'>×</button>Votre commentaire a déjà été enregistré.</div>"; } ?> <form action="<?=$routes['devis']?>-<?=$news->id?>-<?=urlencode($news->title)?>#comment" method="post"> <input type="hidden" name="news" value="<?=$news->id?>"> <div class="row"> <div class="col-sm-3"> <div class="form-group"> <label for="nameFormComment">Pseudo</label> <input type="text" class="form-control input-sm" id="nameFormComment" name="name" value="<?=$commentName?>"> </div> <div class="form-group"> <label for="emailFormComment">Email <i class="text-muted" title='Pour vérifier votre identité, il ne sera pas affiché sur notre site.'>(pourquoi ?)</i></label> <input type="email" class="form-control input-sm" id="emailFormComment" name="email" value="<?=$commentEmail?>"> </div> </div> <div class="col-sm-9"> <label for="commentFormComment">Commentaire</label> <textarea class="form-control input-sm" id="commentFormComment" name="comment" rows="5"><?=$commentComment?></textarea> </div> </div> <input type="checkbox" name="interested"> <br> <div class="text-center"> <input type="reset" class="btn btn-default" value="Annuler"> <input type="submit" name="add" class="btn btn-primary" value="Commenter"> </div> </form> <hr> <?php foreach ($comments as $comment): ?> <div class="well well-sm"> <h4><?=$comment->name?> <small><i><?=date("d/m/Y H:i", strtotime($comment->created_at))?></i></small></h4> <?=$comment->comment?> </div> <?php endforeach ?> <?php end_block(); ?>