Commit da199e8f authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

date manage

parent 86c83881
......@@ -3,9 +3,10 @@
.ui-state-highlight { height: 1.5em; line-height: 1.2em; }
</style>
<?php
if( !isset($parentForm["startDate"]) ||
( time() > strtotime($parentForm["startDate"]) &&
( !isset($parentForm["endDate"]) || time() <= strtotime($parentForm["endDate"])))
( time() > strtotime(str_replace("/","-",$parentForm["startDate"])) &&
( !isset($parentForm["endDate"]) || time() <= strtotime(str_replace("/","-",$parentForm["endDate"]))))
)
{
if( isset(Yii::app()->session["userId"]))
......@@ -58,9 +59,9 @@ if( !isset($parentForm["startDate"]) ||
}
} else {
if(time() < strtotime($parentForm["startDate"]) )
if(time() < strtotime(str_replace("/","-",$parentForm["startDate"])) )
echo "<h4 class='text-center text-red'><i class='fa fa-warning'></i> Les réponses commenceront le ".$parentForm["startDate"]."</h4>";
else if ( time() > strtotime($parentForm["endDate"]))
else if ( time() > strtotime(str_replace("/","-",$parentForm["endDate"])))
echo "<h4 class='text-center text-red'><i class='fa fa-warning'></i> Le temps de réponses est écoulé depuis le ".$parentForm["endDate"]."</h4>";
}
?>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment