added time to sai_start

This commit is contained in:
Messerbill 2015-06-20 14:42:19 +02:00
parent 755c93bc8d
commit 2349080bd1
3 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,11 @@
/* width: 1250px;*/
}
#sai_datetime {
font-weight: bold;
text-align: right;
}
#container_top .well{
/* height: 220px;*/
/* min-width: 250px;*/

View File

@ -21,9 +21,15 @@ class saistart_sys_sai extends \SYSTEM\SAI\SaiModule {
}
protected static function html_content(){
//create timestamp
$week_number = date("W", time());
$date = date("l M Y", time());
if(!\SYSTEM\SECURITY\Security::isLoggedIn() || !\SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI)){
return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'modules/saistart_sys_sai/tpl/content.tpl'));}
$vars = array();
$vars['week_number'] = $week_number;
$vars['date'] = $date;
$vars['project_name'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_PROJECT);
$vars['project_url'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL);
$vars['analytics'] = \SYSTEM\SAI\saimod_sys_log::analytics();

View File

@ -1,6 +1,7 @@
<h4 class="muted"><b>${sai_start_welcome}</b></h4>
<h4 class="text-info">${sai_start_welcome_description}</h4><hr>
<div class="row">
<div class="col-md-12 sai_margin_bottom_20" id="sai_datetime">Week of the year: ${week_number}, ${date}</div>
<div class="col-md-6">
<div id="project" class="panel panel-default sai_gridbox">
<div class="panel-heading"><a href="#!config">${basic_project}</a></div>