Ignore:
Timestamp:
Apr 30, 2010, 1:19:51 AM (11 years ago)
Author:
goya
Message:

correction dates questions avec anonce de reponse

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/questions/templates/showSuccess.php

    r1135 r1179  
    1212  </div>
    1313  <div id="reponse">
    14     <?php if ($question->date_cloture && !$question->reponse) {
     14    <?php if ($question->date_cloture && !$question->reponse && date("Y-m-d") > $question->date_cloture) {
    1515      echo '<h3>Retirée le '.myTools::displayDate($question->date_cloture);
    1616      if ($question->motif_retrait) echo ' ('.$question->motif_retrait.')';
     
    1818    } else {
    1919      echo '<h2>Réponse';
    20       if ($question->date_cloture) echo ' émise le '.myTools::displayDate($question->date_cloture);
     20      if ($question->date_cloture) {
     21        if ($question->reponse) echo ' émise';
     22        else echo ' à venir';
     23        echo ' le '.myTools::displayDate($question->date_cloture);
     24      }
    2125      echo '</h2>';
    2226      if ($question->reponse)
Note: See TracChangeset for help on using the changeset viewer.