Commit 5da97877 authored by Chenu Denis's avatar Chenu Denis

[fix] Fix email style

parent baac1932
......@@ -6,7 +6,7 @@
* @copyright 2017 Denis Chenu <www.sondages.pro>
* @copyright 2017 OECD (Organisation for Economic Co-operation and Development ) <www.oecd.org>
* @license GPL v3
* @version 0.6.5
* @version 0.6.6
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
......@@ -2279,6 +2279,9 @@ class oecdMenu extends PluginBase
private function _directSendWholeLog($surveyId,$descriptiveColumn,$untilDate,$aEmails)
{
$sinceDate = $this->get("lastcron",null,null,date("Y-m-d H:i:s",strtotime("1 month ago")));
if(Yii::app()->getRequest()->getParam("forceold")) {
$sinceDate = date("Y-m-d H:i:s",strtotime("20 years ago"));
}
echo "Send admin log for initiative $surveyId since $sinceDate\n";
$htmlContent = $this->_directGetHtmlLog($surveyId,$descriptiveColumn,$untilDate);
if(empty($htmlContent)) {
......@@ -2458,6 +2461,7 @@ class oecdMenu extends PluginBase
if(empty($oInitiativeLog)) {
$aInitiativeLog['new'] = true;
}
$aInitiativeLog['completed'] = $oResponse->submitdate;
$aInitiativesLogs[$oResponse->id] = $aInitiativeLog;
}
echo ".";
......
......@@ -6,7 +6,7 @@ foreach($oResponses as $oResponse) {
($aInitiativeLog['new'] || !empty($aInitiativeLog['countDiff']))
) {
echo "\n";
echo CHtml::tag("li",array(),"\n",false);
echo CHtml::tag("li",array('style'=>'margin-top:2.5em'),"\n",false);
echo "\t";
$params = array('sid'=>$sid,'initiativeid'=>$oResponse->id);
if($token) {
......@@ -31,7 +31,7 @@ foreach($oResponses as $oResponse) {
//echo CHtml::tag("em",array(),$aInitiativeLog['countDiff']." updated values");
}
if(!empty($aUserLogs[$oResponse->id])) {
echo "\n\t<ul>\n";
echo "\n\t<ul style='margin:0;padding:0'>\n";
echo "\t\t<em>Updated by</em>\n";
foreach($aUserLogs[$oResponse->id] as $aUserLog) {
$time = @date("H:i:s",strtotime($aUserLog['action']));
......
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