#341 sai mobile optimization, stylefixes

This commit is contained in:
Ulf Gebhardt 2017-07-22 04:12:31 +02:00
parent 71ca207869
commit b1589f354a
51 changed files with 297 additions and 294 deletions

View File

@ -6,4 +6,36 @@ table.sai_table tr:nth-child(odd) {
}
table.sai_table tr:hover {
background-color: #FFEFD5;
}
table.sai_table {
word-break: break-all;
}
a.active{
background-color: #e7e7e7;
}
#menu_start {
height: 50px;
font-size: 20px;
padding-top: 12px;
padding-left: 15px;
padding-right: 15px;
display: block;
color: #777;
}
#menu_start:hover{
text-decoration: none;
color: #555;
}
#menu_start:focus{
text-decoration: none;
color: #555;
}
#menu_start:active{
text-decoration: none;
color: #555;
}

View File

@ -145,7 +145,7 @@ class saimod_sys_api extends \SYSTEM\SAI\SaiModule {
*
* @return string Returns <li> Menu for the Saimod
*/
public static function html_li_menu(){return '<li><a id="menu_api" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_api}" href="#!api"><span class="glyphicon glyphicon-console" aria-hidden="true"></span></a></li>';}
public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_api/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -0,0 +1,6 @@
<li>
<a id="menu_api" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_api}" href="#!api">
<span class="glyphicon glyphicon-console" aria-hidden="true"></span>
<span class="hidden-md hidden-lg hidden-xl hidden-sm">&nbsp;&nbsp;${sai_menu_api}</span>
</a>
</li>

View File

@ -1,4 +1,4 @@
<table class="table table-hover table-condensed tablesorter" id="sai_mod_api_table" style="overflow: auto;">
<table class="table table-hover table-condensed tablesorter" id="sai_mod_api_table" style="word-break: break-all;">
<thead>
<tr>
<th>ID</th>

View File

@ -56,7 +56,7 @@ class saimod_sys_cache extends \SYSTEM\SAI\SaiModule {
*
* @return string Returns <li> Menu for the Saimod
*/
public static function html_li_menu(){return '<li><a id="menu_cache" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_cache}" href="#!cache"><span class="glyphicon glyphicon-level-up" aria-hidden="true"></span></a></li>';}
public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_cache/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -0,0 +1,6 @@
<li>
<a id="menu_cache" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_cache}" href="#!cache">
<span class="glyphicon glyphicon-level-up" aria-hidden="true"></span>
<span class="hidden-md hidden-lg hidden-xl hidden-sm">&nbsp;&nbsp;${sai_menu_cache}</span>
</a>
</li>

View File

@ -181,7 +181,7 @@ class saimod_sys_config extends \SYSTEM\SAI\SaiModule {
*
* @return string Returns <li> Menu for the Saimod
*/
public static function html_li_menu(){return '<li><a id="menu_config" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_config}" href="#!config"><span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span></a></li>';}
public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_config/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -7,23 +7,4 @@
<li><a href="#!config(sai)" id="menu_tag_sai">System Admin Interface</a></li>
</ul>
<div class="tab-content sai_margin_top_10" id="tab_config"></div>
</div>
<!--table class="table table-hover table-condensed sai_table" style="overflow: auto;">
<tr>
<th onclick="sort_table()">Config ID</th>
<th>Config Name</th>
<th>Value</th>
</tr>
</table>
<table id="sai_mod_config_table_basics" class="table table-hover table-condensed sai_table" style="overflow: auto;">
${basics}
</table>
<label>Database</label>
<table id="sai_mod_config_table_database" class="table table-hover table-condensed sai_table" style="overflow: auto;">
${database}
</table>
<label>System Admin Interface</label>
<table id="sai_mod_config_table_sai" class="table table-hover table-condensed sai_table" style="overflow: auto;">
${sai}
</table-->
</div>

View File

@ -0,0 +1,6 @@
<li>
<a id="menu_config" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_config}" href="#!config">
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
<span class="hidden-md hidden-lg hidden-xl hidden-sm">&nbsp;&nbsp;${sai_menu_config}</span>
</a>
</li>

View File

@ -93,7 +93,7 @@ class saimod_sys_cron extends \SYSTEM\SAI\SaiModule {
*
* @return string Returns <li> Menu for the Saimod
*/
public static function html_li_menu(){return '<li><a id="menu_cron" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_cron}" href="#!cron"><span class="glyphicon glyphicon-time" aria-hidden="true"></span></a></li>';}
public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_cron/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -17,14 +17,8 @@
</td>
<td>
<button type="button" class="btn-sm btn btn-warning btn_cron_status" _class="${class}" _i="${i}"><span class="glyphicon glyphicon-repeat" aria-hidden="true"></span></button>
</td>
<td>
<button type="button" class="btn-sm btn btn-success btn_cron_edit" _class="${class}" _min="${min}" _hour="${hour}" _day="${day}" _day_week="${day_week}" _month="${month}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></button>
</td>
<td>
<button type="button" class="btn-sm btn btn-success btn_cron_run" _class="${class}"><span class="glyphicon glyphicon-time" aria-hidden="true"></span></button>
</td>
<td>
<button type="button" class="btn-sm btn btn-danger btn_cron_del" _class="${class}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button>
</td>
</tr>

View File

@ -0,0 +1,6 @@
<li>
<a id="menu_cron" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_cron}" href="#!cron">
<span class="glyphicon glyphicon-time" aria-hidden="true"></span>
<span class="hidden-md hidden-lg hidden-xl hidden-sm">&nbsp;&nbsp;${sai_menu_cron}</span>
</a>
</li>

View File

@ -3,7 +3,7 @@
Last Visit: ${last_visit}<br/>
<a href="./sai.php?call=cron" target="_blank">Start Cron</a>
<div id="cron_content">
<table class="table table-hover table-condensed sai_table tablesorter" id="sai_mod_cron_table" style="overflow: auto;">
<table class="table table-hover table-condensed sai_table tablesorter" id="sai_mod_cron_table">
<thead>
<tr>
<th>class</th>
@ -15,25 +15,19 @@ Last Visit: ${last_visit}<br/>
<th>last_run</th>
<th>next_run</th>
<th>status</th>
<th></th>
<th></th>
<th>action</th>
<th></th>
</tr>
</thead>
<tbody>
${content}
</tbody>
<tr>
<td><input class="form-control" type="text" id="input_cron_class" placeholder="class" style="width: 200px;"></td>
<td><input class="form-control" type="text" id="input_cron_min" placeholder="min" value="0" style="width: 40px;"></td>
<td><input class="form-control" type="text" id="input_cron_hour" placeholder="hour" value="0" style="width: 40px;"></td>
<td><input class="form-control" type="text" id="input_cron_day" placeholder="day" value="0" style="width: 40px;"></td>
<td><input class="form-control" type="text" id="input_cron_day_week" placeholder="day_week" value="0" style="width: 40px;"></td>
<td><input class="form-control" type="text" id="input_cron_month" placeholder="month" value="0" style="width: 40px;"></td>
<td></td>
<td></td>
<td></td>
<td><input class="form-control" type="text" id="input_cron_class" placeholder="class" style="width: 100%;"></td>
<td><input class="form-control" type="text" id="input_cron_min" placeholder="min" value="0" style="width: 100%;"></td>
<td><input class="form-control" type="text" id="input_cron_hour" placeholder="hour" value="0" style="width: 100%;"></td>
<td><input class="form-control" type="text" id="input_cron_day" placeholder="day" value="0" style="width: 100%;"></td>
<td><input class="form-control" type="text" id="input_cron_day_week" placeholder="day_week" value="0" style="width: 100%;"></td>
<td><input class="form-control" type="text" id="input_cron_month" placeholder="month" value="0" style="width: 100%;"></td>
<td></td>
<td></td>
<td></td>

View File

@ -75,7 +75,7 @@ class saimod_sys_docu extends \SYSTEM\SAI\SaiModule {
*
* @return string Returns <li> Menu for the Saimod
*/
public static function html_li_menu(){return '<li><a id="menu_docu" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_docu}" href="#!docu"><span class="glyphicon glyphicon-book" aria-hidden="true"></span></a></li>';}
public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_docu/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -0,0 +1,7 @@
<li>
<a id="menu_docu" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_docu}" href="#!docu">
<span class="hidden-md hidden-lg hidden-xl hidden-sm" style="padding-left: 15px;"></span>
<span class="glyphicon glyphicon-book" aria-hidden="true"></span>
<span class="hidden-md hidden-lg hidden-xl hidden-sm">&nbsp;&nbsp;${sai_menu_docu}</span>
</a>
</li>

View File

@ -94,7 +94,7 @@ class saimod_sys_files extends \SYSTEM\SAI\SaiModule {
*
* @return string Returns <li> Menu for the Saimod
*/
public static function html_li_menu(){return '<li><a id="menu_files" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_files}" href="#!files"><span class="glyphicon glyphicon-duplicate" aria-hidden="true"></span></a></li>';}
public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_files/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -0,0 +1,6 @@
<li>
<a id="menu_files" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_files}" href="#!files">
<span class="glyphicon glyphicon-duplicate" aria-hidden="true"></span>
<span class="hidden-md hidden-lg hidden-xl hidden-sm">&nbsp;&nbsp;${sai_menu_files}</span>
</a>
</li>

View File

@ -1,4 +1,4 @@
<table class="table table-hover table-condensed tablesorter" id="sai_mod_files_table" style="overflow: auto;">
<table class="table table-hover table-condensed tablesorter sai_table" id="sai_mod_files_table" style="overflow: auto;">
<thead>
<tr>
<th>Name</th>

View File

@ -58,7 +58,7 @@ class saimod_sys_git extends \SYSTEM\SAI\SaiModule {
*
* @return string Returns <li> Menu for the Saimod
*/
public static function html_li_menu(){return '</ul><ul class="nav navbar-nav navbar-right sai_divider_left"><li><a id="menu_git" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_git}" href="#!git"><span class="glyphicon glyphicon-saved" aria-hidden="true"></span></a></li>';}
public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_git/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -0,0 +1,9 @@
</ul>
<ul class="nav navbar-nav navbar-right sai_divider_left">
<li>
<a id="menu_git" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_git}" href="#!git">
<span class="hidden-md hidden-lg hidden-xl hidden-sm" style="padding-left: 15px;"></span>
<span class="glyphicon glyphicon-saved" aria-hidden="true"></span>
<span class="hidden-md hidden-lg hidden-xl hidden-sm">&nbsp;&nbsp;${sai_menu_git}</span>
</a>
</li>

View File

@ -480,7 +480,7 @@ class saimod_sys_log extends \SYSTEM\SAI\SaiModule {
*
* @return string Returns <li> Menu for the Saimod
*/
public static function html_li_menu(){return '<li><a id="menu_log" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_log}" href="#!log"><span class="glyphicon glyphicon-alert" aria-hidden="true"></span></a></li>';}
public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_log/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -0,0 +1,6 @@
<li>
<a id="menu_log" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_log}" href="#!log">
<span class="glyphicon glyphicon-alert" aria-hidden="true"></span>
<span class="hidden-md hidden-lg hidden-xl hidden-sm">&nbsp;&nbsp;${sai_menu_log}</span>
</a>
</li>

View File

@ -1,5 +1,5 @@
<h3>${basic_error} ${ID}</h3>
<table class="table table-hover table-condensed">
<table class="table table-hover table-condensed" style="word-break: break-all">
<tr><th>${table_property}</th><th>${table_value}</th></tr>
<tr><td>${table_id}</td><td>${ID}</td></tr>
<tr><td>${table_class}</td><td>${class}</td></tr>

View File

@ -6,7 +6,7 @@
</ul>
<div id="table_log">
<h6>${basic_rows}: ${count} ${basic_page}: ${page}</h6>
<table class="table table-hover table-condensed tablesorter" id="sai_mod_log_table">
<table class="table table-hover table-condensed tablesorter" style="word-break: break-all;" id="sai_mod_log_table">
<tr>
<th>${time_ago}</th>
<th>${table_class}</th>

View File

@ -1,11 +1,11 @@
<tr class="sai_log_error ${class_row}" onClick="system.load('log(error);error.${ID}');">
<td>${time}</td>
<td>${class}</td>
<td style="word-break: break-all;">${message}</td>
<td style="word-break: break-all;">${file}</td>
<td>${message}</td>
<td>${file}</td>
<td>${line}</td>
<td>${ip}</td>
<td style="word-break: break-all;">${server_name}:${server_port}${request_uri}</td>
<td>${server_name}:${server_port}${request_uri}</td>
<td>${username}</td>
<td>${querytime}</td>
</tr>

View File

@ -70,7 +70,7 @@ class saimod_sys_login extends \SYSTEM\SAI\SaiModule {
*
* @return string Returns <li> Menu for the Saimod
*/
public static function html_li_menu(){return '<li class="sai_divider_left"><a id="menu_login" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_login}" href="#!login">'.(\SYSTEM\SECURITY\security::isLoggedIn() ? '<span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>' : '<span class="glyphicon glyphicon-log-in" aria-hidden="true"></span>').'</a></li>';}
public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_login/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -0,0 +1,7 @@
<li class="sai_divider_left">
<a id="menu_login" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_login}" href="#!login">
<span class="hidden-md hidden-lg hidden-xl hidden-sm" style="padding-left: 15px;"></span>
<span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>
<span class="hidden-md hidden-lg hidden-xl hidden-sm">&nbsp;&nbsp;${sai_menu_login}</span>
</a>
</li>

View File

@ -96,7 +96,7 @@ class saimod_sys_mod extends \SYSTEM\SAI\SaiModule {
*
* @return string Returns <li> Menu for the Saimod
*/
public static function html_li_menu(){return '<li><a id="menu_mod" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_mod}" href="#!mod"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></a></li>';}
public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_mod/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -0,0 +1,6 @@
<li>
<a id="menu_mod" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_mod}" href="#!mod">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
<span class="hidden-md hidden-lg hidden-xl hidden-sm">&nbsp;&nbsp;${sai_menu_mod}</span>
</a>
</li>

View File

@ -140,7 +140,7 @@ class saimod_sys_page extends \SYSTEM\SAI\SaiModule {
*
* @return string Returns <li> Menu for the Saimod
*/
public static function html_li_menu(){return '<li><a id="menu_page" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_page}" href="#!page"><span class="glyphicon glyphicon-blackboard" aria-hidden="true"></span></a></li>';}
public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_page/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -0,0 +1,6 @@
<li>
<a id="menu_page" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_page}" href="#!page">
<span class="glyphicon glyphicon-blackboard" aria-hidden="true"></span>
<span class="hidden-md hidden-lg hidden-xl hidden-sm">&nbsp;&nbsp;${sai_menu_page}</span>
</a>
</li>

View File

@ -1,4 +1,4 @@
<table class="col-sm-12 table table-hover table-striped table-condensed tablesorter" id="sai_mod_page_table" style="overflow: auto;">
<table class="col-sm-12 table table-hover table-striped table-condensed tablesorter" id="sai_mod_page_table" style="word-break: break-all;">
<thead>
<tr>
<th>id</th>

View File

@ -353,7 +353,7 @@ class saimod_sys_security extends \SYSTEM\SAI\SaiModule {
*
* @return string Returns <li> Menu for the Saimod
*/
public static function html_li_menu(){return '<li><a id="menu_security" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_security}" href="#!security"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></a></li>';}
public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_security/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -0,0 +1,6 @@
<li>
<a id="menu_security" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_security}" href="#!security">
<span class="glyphicon glyphicon-lock" aria-hidden="true"></span>
<span class="hidden-md hidden-lg hidden-xl hidden-sm">&nbsp;&nbsp;${sai_menu_security}</span>
</a>
</li>

View File

@ -6,7 +6,7 @@
</ul>
<div id="table_security">
<h6>${basic_rows}: ${count} ${basic_page}: ${page}</h6>
<table class="sai_table table table-hover table-condensed tablesorter" id="sai_mod_security_table" style="overflow: auto;">
<table class="sai_table table table-hover table-condensed tablesorter" id="sai_mod_security_table" style="word-break: break-all;">
<tr>
<th>${table_id}</th>
<th>${table_username}</th>

View File

@ -185,7 +185,7 @@ class saimod_sys_text extends \SYSTEM\SAI\SaiModule {
*
* @return string Returns <li> Menu for the Saimod
*/
public static function html_li_menu(){return '<li><a id="menu_text" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_text}" href="#!text"><span class="glyphicon glyphicon-text-size" aria-hidden="true"></span></a></li>';}
public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_text/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -0,0 +1,6 @@
<li>
<a id="menu_text" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_text}" href="#!text">
<span class="glyphicon glyphicon-text-size" aria-hidden="true"></span>
<span class="hidden-md hidden-lg hidden-xl hidden-sm">&nbsp;&nbsp;${sai_menu_text}</span>
</a>
</li>

View File

@ -399,7 +399,7 @@ class saimod_sys_todo extends \SYSTEM\SAI\SaiModule {
*
* @return string Returns <li> Menu for the Saimod
*/
public static function html_li_menu(){return '<li><a id="menu_todo" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_todo}" href="#!todo"><span class="glyphicon glyphicon-list" aria-hidden="true"></span></a></li>';}
public static function html_li_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_todo/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -0,0 +1,6 @@
<li>
<a id="menu_todo" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_todo}" href="#!todo">
<span class="glyphicon glyphicon-list" aria-hidden="true"></span>
<span class="hidden-md hidden-lg hidden-xl hidden-sm">&nbsp;&nbsp;${sai_menu_todo}</span>
</a>
</li>

View File

@ -1,5 +1,5 @@
<h3>ToDo ${ID}</h3>
<table class="table table-hover table-condensed">
<table class="table table-hover table-condensed" style="word-break: break-all;">
<tr><th>Property</th><th>Value</th></tr>
<tr><td>ID</td><td>${ID}</td></tr>
<tr><td>class</td><td>${class}</td></tr>

View File

@ -1,11 +1,6 @@
function init_saistart_sys_sai() {
var heights = $(".inner-page").map(function() {
return $(this).height();
}).get(),
maxHeight = Math.max.apply(null, heights);
$(".inner-page").height(maxHeight);
// Set all Panels the same height
$(".inner-page").height(Math.max.apply(null, $(".inner-page").map(function(){return $(this).height();}).get()));
//jqBootstrapValidation
$("#login_form input").not("[type=submit]").jqBootstrapValidation({
preventSubmit: true,

View File

@ -22,7 +22,7 @@ class saistart_sys_sai extends \SYSTEM\SAI\SaiModule {
*/
public static function sai_mod__SYSTEM_SAI_saistart_sys_sai(){
if(!\SYSTEM\SECURITY\security::isLoggedIn() || !\SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI)){
return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saistart_sys_sai/tpl/content.tpl'))->SERVERPATH(),\SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_START));}
return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saistart_sys_sai/tpl/content_loggedout.tpl'))->SERVERPATH(),\SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_START));}
//create timestamp
$week_number = date("W", time());
$date = date("l M Y", time());
@ -51,11 +51,11 @@ class saistart_sys_sai extends \SYSTEM\SAI\SaiModule {
}
/**
* Generate <li> Menu for the Saimod
* Generate Menu-Link for the Saimod
*
* @return string Returns <li> Menu for the Saimod
* @return string Returns Html Menu for the Saimod
*/
public static function html_li_menu(){return '<li class="active sai_menu_first"><a id="menu_start" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_start}" href="#"><span class="glyphicon glyphicon-home" aria-hidden="true"></span></a></li>';}
public static function html_menu(){return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saistart_sys_sai/tpl/menu.tpl'))->SERVERPATH());}
/**
* Returns if the Saimod is public(access for everyone)

View File

@ -1,61 +0,0 @@
<div class="masthead">
<h3 class="muted">Design. Simple. Fast. Reliable. Innovative.</h3>
<h4 class="text-info">We write awesome code and we use <a href="http://getbootstrap.com/">Twitter Bootstrap.</a></h4>
</div>
<br>
<div id="myCarousel" class="carousel slide">
<!-- Carousel items -->
<div class="carousel-inner">
<div class="active item">
<iframe width="1200" height="650" src="http://www.youtube.com/embed/hMLcKtVwF-A" frameborder="0" allowfullscreen autoplay></iframe>
</div>
<div class="item">
<img class="carousel-img" src="dasense/page/default_developer/img/carousel/webseite.jpg" alt="">
<div class="carousel-caption">
<h4>TK Forschungspraktikum WS 2012/2013</h4>
<p>The Team</p>
</div>
</div>
<div class="item">
<img class="carousel-img" src="dasense/page/default_developer/img/carousel/verteidigung_immanuel.jpg" alt="">
<div class="carousel-caption">
<h4>Project head: "Hööööy sieee.." ;-D</h4>
<p>Verteidigung Immanuel (December 2012)</p>
</div>
</div>
<div class="item">
<img class="carousel-img" src="dasense/page/default_developer/img/carousel/webseite.jpg" alt="">
<div class="carousel-caption">
<h4>App: Noisemap</h4>
<p>Version 3.0 of Noisemap is now available for <a href="https://play.google.com/store/apps/details?id=de.tudarmstadt.tk.noisemap">Android</a> and iOS</p>
</div>
</div>
<div class="item">
<img class="carousel-img" src="dasense/page/default_developer/img/carousel/webseite.jpg" alt="">
<div class="carousel-caption">
<h4>Website: <a href="http://www.da-sense.de">da-sense.de</a></h4>
<p><em>da_sense</em> platform with new design</p>
</div>
</div>
<div class="item">
<img class="carousel-img" src="dasense/page/default_developer/img/carousel/echo_noisemap.jpg" alt="">
<div class="carousel-caption">
<h4>Press: <a href="http://www.echo-online.de/region/darmstadt/Smartphone-App-Noisemap-ermittelt-Laermdaten;art1231,3553997" target="_blank">Echo Article</a></h4>
<p>>> Smartphone-App „Noisemap“ ermittelt Lärmdaten <<</p>
</div>
</div>
<div class="item">
<embed type="application/x-shockwave-flash" src="http://www.1730live.de/typo3conf/ext/rgmediaimages/res/mediaplayer.swf" width="1200" height="650"
id="mpl" quality="high" allowscriptaccess="always" allowfullscreen="true" wmode="transparent"
flashvars="file=http://87.106.73.176/_1730live/videos/20130115_learm_app_FLV_MSC.flv&amp;width=1200&amp;height=650&amp;frontcolor=0x#FFFFFF&amp;lightcolor=0x#FFFFFF&amp;screencolor=0x#FFFFFF&amp;image=http://www.1730live.de/fileadmin/templates/main/bilder/jlw_startbild_neu3.jpg&amp;showstop=true&amp;autostart=false">
<div class="carousel-caption">
<h4>Media: <a href="http://www.1730live.de/aktuell/neu/news-details/datum/2013/01/15/laerm-app-entwickelt.html" target="_blank">Sat1 Video - "Lärm-App entwickelt"</a></h4>
<p>>> In Darmstadt hat ein Forscherteam der Technischen Universität eine App entwickelt, mit der Smartphone-Besitzer Lärmdaten sammeln und so Messwerte für eine Lärmkarte liefern. <<</p>
</div>
</div>
</div>
<!-- Carousel nav -->
<a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
</div>

View File

@ -1,94 +1,113 @@
<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: <font style="color: orange;">${week_number}</font>, ${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>
<div class="panel-body">
<div class="inner-page">
<b>${basic_name}:</b> ${project_name}<br/>
<b>${basic_url}:</b> <a href="${project_url}" target="_blank">${project_url}</a><br/>
<b>${basic_progress}:</b> ${project}%<br/>
<br/>
<table class="table table-hover table-condensed sai_table" style="width: 100%">
<tr>
<th>${table_username}</th>
<th>${table_open}</th>
<th>${table_closed}</th>
<th>${table_all}</th>
<th>${table_percentage}</th>
</tr>
${userstats}
</table>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div id="project" class="panel panel-default sai_gridbox">
<div class="panel-heading"><a href="#!login">${basic_logout}</a></div>
<div class="row-fluid">
<div class="col-md-12">
<h4 class="muted"><b>${sai_start_welcome}</b></h4>
</div>
<div class="col-md-12">
<h4 class="text-info">${sai_start_welcome_description}</h4>
</div>
</div>
<hr>
<div class="row-fluid">
<div class="col-md-12 sai_margin_bottom_20" id="sai_datetime">
Week of the year: <font style="color: orange;">${week_number}</font>, ${date}
</div>
</div>
<div class="row-fluid">
<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>
<div class="panel-body">
<div class="inner-page">
<table class="table sai_table table-hover table-condensed">
<div class="inner-page">
<b>${basic_name}:</b> ${project_name}<br/>
<b>${basic_url}:</b> <a href="${project_url}" target="_blank">${project_url}</a><br/>
<b>${basic_progress}:</b> ${project}%<br/>
<br/>
<table class="table table-hover table-condensed sai_table" style="width: 100%">
<tr>
<th>${basic_username}</th>
<td>${username}</td>
</tr>
<tr>
<th>${basic_locale}</th>
<td>${locale}</td>
</tr>
<tr>
<th>${basic_admin_rights}</th>
<td>${isadmin}</td>
<th>${table_username}</th>
<th>${table_open}</th>
<th>${table_closed}</th>
<th>${table_all}</th>
<th>${table_percentage}</th>
</tr>
${userstats}
</table>
${basic_text_logout}
<form class="textbox" id="logout_form">
<div class="control-group">
<div class="help-block"></div>
<input type="hidden" />
<button class="btn btn-sm btn-primary" style="clear: left; height: 32px; font-size: 13px;" type="submit" id="logout_submit"><span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> ${basic_logout}</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div id="analytics" class="col-md-6">
<div class="panel panel-default sai_gridbox">
<div class="panel-heading"><a href="#!log(stats)">${basic_analytics}</a></div>
<div class="panel-body">
<div class="inner-page">
${analytics}
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default sai_gridbox">
<div class="panel-heading"><a href="#!git">${basic_git}</a></div>
<div class="panel-body">
<div class="inner-page">
<b>Current Project Version:</b> ${git_project}<br/>
<b>Current SYSTEM Version:</b> ${git_system}
</div>
</div>
<div class="col-md-6">
<div id="project" class="panel panel-default sai_gridbox">
<div class="panel-heading"><a href="#!login">${basic_logout}</a></div>
<div class="panel-body">
<div class="inner-page">
<table class="table sai_table table-hover table-condensed">
<tr>
<th>${basic_username}</th>
<td>${username}</td>
</tr>
<tr>
<th>${basic_locale}</th>
<td>${locale}</td>
</tr>
<tr>
<th>${basic_admin_rights}</th>
<td>${isadmin}</td>
</tr>
</table>
${basic_text_logout}
<form class="textbox" id="logout_form">
<div class="control-group">
<div class="help-block"></div>
<input type="hidden" />
<button class="btn btn-sm btn-primary" style="clear: left; height: 32px; font-size: 13px;" type="submit" id="logout_submit"><span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> ${basic_logout}</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="row-fluid">
<div id="analytics" class="col-md-6">
<div class="panel panel-default sai_gridbox">
<div class="panel-heading"><a href="#!log(stats)">${basic_analytics}</a></div>
<div class="panel-body">
<div class="inner-page">
${analytics}
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default sai_gridbox">
<div class="panel-heading"><a href="#!git">${basic_git}</a></div>
<div class="panel-body">
<div class="inner-page">
<b>Current Project Version:</b> ${git_project}<br/>
<b>Current SYSTEM Version:</b> ${git_system}
</div>
</div>
</div>
<div class="well" id="todo">
<h2 class="muted"><a href="#!todo">${basic_todo}</a></h2>
<b>${basic_status}:</b> ${project_closed}/${project_all}<br/>
<b>${basic_progress}:</b> ${project}%
<div id="todo_entries"></div>
</div>
<div class="well" id="log">
<h2 class="muted"><a href="#!log">${basic_log}</a></h2>
<h4 class="muted">100 ${sai_log_latest_entries}</h4>
<div id="log_entries"></div>
</div>
</div>
</div>
<div class="row-fluid">
<div class="col-md-12">
<div class="well" id="todo">
<h2 class="muted"><a href="#!todo">${basic_todo}</a></h2>
<b>${basic_status}:</b> ${project_closed}/${project_all}<br/>
<b>${basic_progress}:</b> ${project}%
<div id="todo_entries"></div>
</div>
</div>
</div>
<div class="row-fluid">
<div class="col-md-12">
<div class="well" id="log">
<h2 class="muted"><a href="#!log">${basic_log}</a></h2>
<h4 class="muted">100 ${sai_log_latest_entries}</h4>
<div id="log_entries"></div>
</div>
</div>
</div>

View File

@ -1,22 +1,14 @@
<h3 class="muted">Design. Simple. Fast. Reliable. Innovative.</h3>
<h4 class="text-info">We write awesome Software using <a href="https://github.com/ulfgebhardt/system">SYSTEM</a> and <a href="http://getbootstrap.com/">Twitter Bootstrap.</a></h4><hr>
<div clas="row">
<div class="col-md-8">
<div id="myCarousel" class="carousel slide" style="margin-right: 300px;">
<div class="carousel-inner">
<div class="item active">
<img class="carousel-img" src="./sai.php?call=files&cat=saistart_sys_sai&id=sai_loggedout_gallery_1.png" alt="">
<div class="carousel-caption">
<h4>Explore SAI yourself</h4>
<p>It will enable your to use System as a multiverse of toolsets to support your Projects.</p>
</div>
</div>
</div>
<a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
</div>
</div>
<div clas="row-fluid">
<div class="col-md-12">
<h3 class="muted">Design. Simple. Fast. Reliable. Innovative.</h3>
</div>
</div>
<div clas="row-fluid">
<div class="col-md-12">
<h4 class="text-info">We write awesome Software using <a href="https://github.com/ulfgebhardt/system">SYSTEM</a> and <a href="http://getbootstrap.com/">Twitter Bootstrap.</a></h4><hr>
</div>
</div>
<div clas="row-fluid">
<div class="col-md-4">
<div id="project" class="panel panel-default sai_gridbox">
<div class="panel-heading"><a href="#!login">${basic_login}</a></div>

View File

@ -0,0 +1,3 @@
<a class="active sai_divider_right" id="menu_start" data-toggle="tooltip" data-placement="bottom" title="${sai_menu_start}" href="#">
<span class="glyphicon glyphicon-home" aria-hidden="true"></span>&nbsp;&nbsp;SAI
</a>

View File

@ -34,29 +34,4 @@
.nav-tabs {
border: none;
}
/* auto collapsing navbar */
#sys_autocollapse.collapsed .navbar-header {
float: none;
}
#sys_autocollapse.collapsed .navbar-toggle {
display: block;
}
#sys_autocollapse.collapsed .navbar-collapse {
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
#sys_autocollapse.collapsed .navbar-collapse.collapse {
display: none!important;
}
#sys_autocollapse.collapsed .navbar-nav {
float: none!important;
margin: 7.5px -15px;
}
#sys_autocollapse.collapsed .navbar-nav>li {
float: none;
}
#sys_autocollapse.collapsed .navbar-nav>li>a {
padding-top: 10px;
padding-bottom: 10px;
}

View File

@ -56,7 +56,7 @@ class default_page implements \SYSTEM\PAGE\DefaultPage {
$mod = \SYSTEM\SAI\sai::getStartModule();
if(\call_user_func(array($mod, 'right_public')) ||
\call_user_func(array($mod, 'right_right'))){
return \call_user_func(array($mod, 'html_li_menu'));}
return \call_user_func(array($mod, 'html_menu'));}
throw new \SYSTEM\LOG\ERROR('Your SAI-Start-Module has a Problem - either it does not exist or it is not public - which is required!');}
/**
@ -87,8 +87,7 @@ class default_page implements \SYSTEM\PAGE\DefaultPage {
\LIB\lib_system::js(),
new \SYSTEM\PSAI('page/js/sai.js')))).
\SYSTEM\HTML\html::script( \LIB\lib_tinymce::js()->WEBPATH(false)).
\SYSTEM\HTML\html::script('https://www.google.com/jsapi').
'<script type="text/javascript">google.load("visualization", "1", {packages:["corechart"]});</script>';
\SYSTEM\HTML\html::script('https://www.google.com/jsapi?autoload=%7B%22modules%22%3A%5B%7B%22name%22%3A%22visualization%22%2C%22version%22%3A%221.0%22%2C%22packages%22%3A%5B%22corechart%22%5D%7D%5D%7D');
}
/**
@ -123,7 +122,7 @@ class default_page implements \SYSTEM\PAGE\DefaultPage {
$result = '';
$langs = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_LANGS);
foreach($langs as $lang){
$result .= \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('page/tpl/language.tpl'))->SERVERPATH(),array('lang' => $lang,'endpoint' => $endpoint));}
$result .= \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('page/tpl/language.tpl'))->SERVERPATH(),array('lang' => $lang));}
return $result;
}
}

View File

@ -1,28 +1,18 @@
$(document).ready(function() {
new SYSTEM('./sai.php',42,'start',sys_hashchange);
$('.brand').click(function(){
location.reload();
});
$('[data-toggle="tooltip"]').tooltip();
//autocollapse();
$(window).on('resize', autocollapse);
$('.navbar-collapse a').click(function(){
$(".navbar-collapse").collapse('hide');
});
});
function sys_hashchange(state){
var state_ = state ? state.split(';')[0].split('(')[0] : state;
var state_ = state_ ? state_.split('#')[0] : state;
$('.nav li,#sai_navbar li, #project_navbar li').each(function(){
$('.nav li,#sai_navbar li, #project_navbar li, #menu_start').each(function(){
$(this).removeClass('active');});
if($('#menu_'+state_).parent().length){
$('#menu_'+state_).parent().addClass('active');
} else {
$('#menu_start').parent().addClass('active');}
}
function autocollapse() {
$('.navbar-collapse').collapse('show');
var navbar = $('#sys_autocollapse');
navbar.removeClass('collapsed'); // set standart view
if(navbar.innerHeight() > 50) // check if we've got 2 lines
navbar.addClass('collapsed'); // force collapse mode
$('#menu_start').addClass('active');}
}

View File

@ -1 +1 @@
<a href="javascript:system.language('${lang}');"><img src="${endpoint}?call=files&amp;cat=saistart_sys_sai&amp;id=flag_${lang}.png" alt="${lang}" width="16" height="11"></a>&nbsp;
<a href="javascript:system.language('${lang}');"><img src="./files/saistart_sys_sai/flag_${lang}.png" alt="${lang}" width="16" height="11"></a>&nbsp;

View File

@ -3,8 +3,8 @@
<head>
<title>${sai_title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="fragment" content="!start">
<link rel="icon" type="image/png" href="./sai.php?call=files&amp;cat=saistart_sys_sai&amp;id=logo_sai.png"/>
<meta name="fragment" content="!">
<link rel="icon" type="image/png" href="./files/saistart_sys_sai/logo_sai.png"/>
${css}
${js}
</head>
@ -17,20 +17,21 @@
<!-- div class="col-md-10 sai_menu_first sai_left_divider" -->
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="col-md-10 sai_margin_left_off sai_padding_left_off sai_padding_right_off">
<nav id="sys_autocollapse" class="navbar navbar-default sai_margin_bottom_off" role="navigation">
<nav class="navbar navbar-default sai_margin_bottom_off">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<button type="button" class="navbar-toggle collapsed pull-left" data-toggle="collapse" data-target="#menu-collapse" aria-expanded="false" style="margin-left: 5px;">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
${menu_start}
</div>
<div class="collapse navbar-collapse navHeaderCollapse sai_margin_left_off sai_padding_left_off">
<div class="collapse navbar-collapse navHeaderCollapse sai_margin_left_off sai_padding_left_off" id="menu-collapse">
<ul class="nav navbar-nav sai_menu_first">
${menu_start}
${menu_sys}
${menu_sys}
</ul>
</div><!-- /.navbar-collapse -->
</div>
</nav>
</div>
</div>