More mobile compatibility improvement.

This commit is contained in:
Abawell 2014-04-09 15:10:07 +02:00
parent 046fd62878
commit b8a8ccd5b5
13 changed files with 138 additions and 92 deletions

View File

@ -141,8 +141,8 @@ $sm_lang = array(
'config' => array(
'general' => 'Основни настройки',
'language' => 'Език',
'show_update' => 'Да проверява ли за нова версия всяка седмица?',
'email_status' => 'Да се изпращат ли имейли?',
'show_update' => 'Да проверява ли за нова версия всяка седмица',
'email_status' => 'Да се изпращат ли имейли',
'email_from_email' => 'Имейл, от който да се изпращат съобщенията',
'email_from_name' => 'Име на изпращача',
'email_smtp' => 'Активиране на SMTP',
@ -151,7 +151,7 @@ $sm_lang = array(
'email_smtp_username' => 'SMTP потребителско име',
'email_smtp_password' => 'SMTP парола',
'email_smtp_noauth' => 'Оставете празно за "без аутентикация"',
'sms_status' => 'Да се изпращат ли SMS-и?',
'sms_status' => 'Да се изпращат ли SMS-и',
'sms_gateway' => 'Портал за изпращане на SMS-и',
'sms_gateway_mosms' => 'Mosms',
'sms_gateway_mollie' => 'Mollie',
@ -175,9 +175,10 @@ $sm_lang = array(
'alert_type_status' => 'Промяна на статуса',
'alert_type_offline' => 'Офлайн',
'alert_type_always' => 'Винаги',
'log_status' => 'Статус на логовете<br/><div class="small">Ако е отметнато, системата ще записва всяка промяна:</div>',
'log_email' => 'Да се пази ли лог на изпратените имейли от системата?',
'log_sms' => 'Да се пази ли лог на изпратените SMS съобщения от системата?',
'log_status' => 'Статус на логовете',
'log_status_description' => 'Ако е отметнато, системата ще записва всяка промяна.',
'log_email' => 'Да се пази ли лог на изпратените имейли от системата',
'log_sms' => 'Да се пази ли лог на изпратените SMS съобщения от системата',
'updated' => 'Настройките са обновени успешно.',
'tab_email' => 'Имейл',
'tab_sms' => 'SMS',
@ -186,11 +187,13 @@ $sm_lang = array(
'settings_sms' => 'SMS настройки',
'settings_notification' => 'Настройки на известията',
'settings_log' => 'Настройки на логовете',
'auto_refresh' => 'Автоматично опресняване',
'auto_refresh_servers' =>
'Автоматично опресняване на страницата<br/>'.
'<div class="small">'.
'Автоматично опресняване на страницата.<br/>'.
'<span class="small">'.
'Времето е в секунди, ако е 0 страницата няма да се обноява.'.
'</div>',
'</span>',
'seconds' => 'seconds',
),
// За нов ред в имейл съобщението, моля използвайте тага <br/>
'notifications' => array(

View File

@ -175,7 +175,8 @@ $sm_lang = array(
'alert_type_status' => 'Status ge&auml;ndert',
'alert_type_offline' => 'Offline',
'alert_type_always' => 'Immer',
'log_status' => 'Log Status<br/><div class="small">Ist der Log Status auf TRUE (ein Hacken) gesetzt, wird jeder Status protokolliert</div>',
'log_status' => 'Log Status',
'log_status_description' => 'Ist der Log Status auf TRUE (ein Hacken) gesetzt, wird jeder Status protokolliert.',
'log_email' => 'Email Log per Script senden?',
'log_sms' => 'SMS Log per Script senden?',
'updated' => 'Die Einstellungen wurden gespeichert.',
@ -186,11 +187,13 @@ $sm_lang = array(
'settings_sms' => 'SMS Nachricht',
'settings_notification' => 'Benachrichtigung',
'settings_log' => 'Log',
'auto_refresh' => 'Auto-refresh',
'auto_refresh_servers' =>
'Auto-refresh servers page<br/>'.
'<div class="small">'.
'<span class="small">'.
'Time in seconds, if 0 the page won\'t refresh.'.
'</div>',
'</span>',
'seconds' => 'seconds',
),
// for newlines in the email messages use <br/>
'notifications' => array(

View File

@ -151,7 +151,7 @@ $sm_lang = array(
'email_smtp_username' => 'SMTP username',
'email_smtp_password' => 'SMTP password',
'email_smtp_noauth' => 'Leave blank for no authentication',
'sms_status' => 'Allow sending text messages?',
'sms_status' => 'Allow sending text messages',
'sms_gateway' => 'Gateway to use for sending messages',
'sms_gateway_mosms' => 'Mosms',
'sms_gateway_mollie' => 'Mollie',
@ -175,9 +175,10 @@ $sm_lang = array(
'alert_type_status' => 'Status change',
'alert_type_offline' => 'Offline',
'alert_type_always' => 'Always',
'log_status' => 'Log status<br/><div class="small">If log status is set to TRUE, the monitor will log the event whenever the Notification settings are passed</div>',
'log_email' => 'Log emails sent by the script?',
'log_sms' => 'Log text messages sent by the script?',
'log_status' => 'Log status',
'log_status_description' => 'If log status is set to TRUE, the monitor will log the event whenever the Notification settings are passed.',
'log_email' => 'Log emails sent by the script',
'log_sms' => 'Log text messages sent by the script',
'updated' => 'The configuration has been updated.',
'tab_email' => 'Email',
'tab_sms' => 'SMS',
@ -186,11 +187,13 @@ $sm_lang = array(
'settings_sms' => 'Text message settings',
'settings_notification' => 'Notification settings',
'settings_log' => 'Log settings',
'auto_refresh' => 'Auto-refresh',
'auto_refresh_servers' =>
'Auto-refresh servers page<br/>'.
'<div class="small">'.
'Auto-refresh servers page.<br/>'.
'<span class="small">'.
'Time in seconds, if 0 the page won\'t refresh.'.
'</div>',
'</span>',
'seconds' => 'seconds',
),
// for newlines in the email messages use <br/>
'notifications' => array(

View File

@ -174,7 +174,8 @@ $sm_lang = array(
'alert_type_status' => 'Changement d\'état',
'alert_type_offline' => 'Hors service',
'alert_type_always' => 'Toujours',
'log_status' => 'Etat des événements<br/><div class="small">Si l\'option est activée, un événement est enregistré chaque fois qu\'une notification a lieu</div>',
'log_status' => 'Etat des événements',
'log_status_description' => 'Si l\'option est activée, un événement est enregistré chaque fois qu\'une notification a lieu.',
'log_email' => 'Enregistrer tout les emails envoyés',
'log_sms' => 'Enregistrer tout les SMS envoyés',
'updated' => 'La configuration a été mise à jour.',
@ -185,11 +186,13 @@ $sm_lang = array(
'settings_sms' => 'Configuration SMS',
'settings_notification' => 'Configuration des notifications',
'settings_log' => 'Configuration des événements',
'auto_refresh' => 'Auto-rachaîchissement',
'auto_refresh_servers' =>
'Auto-rachaîchissement de la page serveurs<br/>'.
'<div class="small">'.
'Auto-rachaîchissement de la page serveurs.<br/>'.
'<span class="small">'.
'Temps en secondes. Si 0, la page n\'est pas rafraîchie.'.
'</div>',
'</span>',
'seconds' => 'secondes',
),
// for newlines in the email messages use <br/>
'notifications' => array(

View File

@ -173,7 +173,8 @@ $sm_lang = array(
'alert_type_status' => '상태 변경',
'alert_type_offline' => '오프라인',
'alert_type_always' => '항상',
'log_status' => '로그 상태<br/><div class="small">로그상태가 TRUE이면 알림설정이 통과할때마다 이벤트를 기록합니다.</div>',
'log_status' => '로그 상태',
'log_status_description' => '로그상태가 TRUE이면 알림설정이 통과할때마다 이벤트를 기록합니다.',
'log_email' => '이메일로 로그를 전송하시겠습니까?',
'log_sms' => 'SMS로 로그를 전송하시겠습니까?',
'updated' => '설정이 수정되었습니다.',
@ -184,11 +185,13 @@ $sm_lang = array(
'settings_sms' => 'SMS 설정',
'settings_notification' => '알림 설정',
'settings_log' => '로그 설정',
'auto_refresh' => 'Auto-refresh',
'auto_refresh_servers' =>
'서버페이지를 자동으로 새로고침<br/>'.
'<div class="small">'.
'서버페이지를 자동으로 새로고침.<br/>'.
'<span class="small">'.
'시간은 초(sec)로 설정을 하고, 0은 새로고침을 하지 않습니다.'.
'</div>',
'</span>',
'seconds' => 'seconds',
),
// for newlines in the email messages use <br/>
'notifications' => array(

View File

@ -174,7 +174,8 @@ $sm_lang = array(
'alert_type_status' => 'Status verandering',
'alert_type_offline' => 'Offline',
'alert_type_always' => 'Altijd',
'log_status' => 'Log status<br/><div class="small">Als de log status op TRUE staat, zal de monitor een log aanmaken elke keer dat hij door de notificatie instellingen komt</div>',
'log_status' => 'Log status',
'log_status_description' => 'Als de log status op TRUE staat, zal de monitor een log aanmaken elke keer dat hij door de notificatie instellingen komt.',
'log_email' => 'Log emails verstuurd bij het script?',
'log_sms' => 'Log sms berichten verstuurd bij het script?',
'updated' => 'De configuratie is gewijzigd.',
@ -185,11 +186,13 @@ $sm_lang = array(
'settings_sms' => 'SMS instellingen',
'settings_notification' => 'Notificatie instellingen',
'settings_log' => 'Log instellingen',
'auto_refresh' => 'Auto-refresh',
'auto_refresh_servers' =>
'Auto-refresh servers pagina<br/>'.
'<div class="small">'.
'Auto-refresh servers pagina.<br/>'.
'<span class="small">'.
'Tijd in seconden, als de tijd 0 is wordt de pagina niet ververst.'.
'</div>',
'</span>',
'seconds' => 'seconds',
),
// for newlines in the email messages use <br/>
'notifications' => array(

View File

@ -175,7 +175,8 @@ $sm_lang = array(
'alert_type_status' => 'Mudança de Status',
'alert_type_offline' => 'Offline',
'alert_type_always' => 'Sempre',
'log_status' => 'Log status<br/><div class="small">Se o status de registro é definido como TRUE, o monitor irá registrar o evento sempre que as configurações de notificação forem passadas</div>',
'log_status' => 'Log status',
'log_status_description' => 'Se o status de registro é definido como TRUE, o monitor irá registrar o evento sempre que as configurações de notificação forem passadas.',
'log_email' => 'Registrar no Log os envios de email feitos pelo script?',
'log_sms' => 'Registrar no Log os envios de mensagens de texto feitos pelo script?',
'updated' => 'A configuração foi atualizada.',
@ -186,11 +187,13 @@ $sm_lang = array(
'settings_sms' => 'Configuração de mensagens de texto',
'settings_notification' => 'Configuração de notificações',
'settings_log' => 'Configuração de Logs',
'auto_refresh' => 'Atualizar automaticamente',
'auto_refresh_servers' =>
'Atualizar automaticamente a página de servidores<br/>'.
'<div class="small">'.
'Atualizar automaticamente a página de servidores.<br/>'.
'<span class="small">'.
'Tempo em segundos, Se 0 a página não será atualizada.'.
'</div>',
'</span>',
'seconds' => 'segundos',
),
// for newlines in the email messages use <br/>
'notifications' => array(

View File

@ -174,7 +174,8 @@ $sm_lang = array(
'alert_type_status' => '状态变化',
'alert_type_offline' => '离线状态',
'alert_type_always' => '总是提醒',
'log_status' => '状态记录<br/><div class="small">如果状态记录设置为开, 提醒发送时均会保存记录.</div>',
'log_status' => '状态记录',
'log_status_description' => '如果状态记录设置为开, 提醒发送时均会保存记录.',
'log_email' => '记录脚本所发邮件?',
'log_sms' => '记录脚本所发短信SMS?',
'updated' => '设置已更新.',
@ -185,11 +186,13 @@ $sm_lang = array(
'settings_sms' => '短信发送设置',
'settings_notification' => '提醒设置',
'settings_log' => '日志设置',
'auto_refresh' => 'Auto-refresh',
'auto_refresh_servers' =>
'自动刷新服务器页<br/>'.
'<div class="small">'.
'自动刷新服务器页.<br/>'.
'<span class="small">'.
'单位为秒, 设置为0则不自动刷新.'.
'</div>',
'</span>',
'seconds' => 'seconds',
),
// for newlines in the email messages use <br/>
'notifications' => array(

View File

@ -216,9 +216,12 @@ class ConfigController extends AbstractController {
'label_alert_type_offline' => psm_get_lang('config', 'alert_type_offline'),
'label_alert_type_always' => psm_get_lang('config', 'alert_type_always'),
'label_log_status' => psm_get_lang('config', 'log_status'),
'label_log_status_description' => psm_get_lang('config', 'log_status_description'),
'label_log_email' => psm_get_lang('config', 'log_email'),
'label_log_sms' => psm_get_lang('config', 'log_sms'),
'label_auto_refresh' => psm_get_lang('config', 'auto_refresh'),
'label_auto_refresh_servers' => psm_get_lang('config', 'auto_refresh_servers'),
'label_seconds' => psm_get_lang('config', 'seconds'),
'label_save' => psm_get_lang('system', 'save'),
)
);

View File

@ -27,9 +27,10 @@
</div>
</div>
<div class="control-group">
<label class="control-label" for="auto_refresh_servers">{label_auto_refresh_servers}</label>
<label class="control-label" for="auto_refresh_servers">{label_auto_refresh}</label>
<div class="controls">
<input type="text" class="input-mini" id="auto_refresh_servers" name="auto_refresh_servers" value="{auto_refresh_servers}" maxlength="10" />&nbsp;seconds
<input type="text" class="input-mini" id="auto_refresh_servers" name="auto_refresh_servers" value="{auto_refresh_server}" maxlength="10" />&nbsp;{label_seconds}
<p class="help-block">{label_auto_refresh_servers}</p>
</div>
</div>
<legend>{label_settings_notification}</legend>
@ -41,9 +42,7 @@
<option value="offline" {alert_type_selected_offline}>{label_alert_type_offline}</option>
<option value="always" {alert_type_selected_always}>{label_alert_type_always}</option>
</select>
<p class="help-block">
{label_alert_type_description}
</p>
<p class="help-block">{label_alert_type_description}</p>
</div>
</div>
<div class="form-actions">
@ -80,7 +79,7 @@
<label class="control-label" for="email_smtp_host">{label_email_smtp_host}</label>
<div class="controls">
<input type="text" id="email_smtp_host" name="email_smtp_host" value="{email_smtp_host}" maxlength="100" placeholder="{label_email_smtp_host}" />
<input type="text" class="input-mini" id="email_smtp_port" name="email_smtp_port" value="{email_smtp_port}" maxlength="10" placeholder="{label_email_smtp_port}" />
<input type="text" class="input-small" id="email_smtp_port" name="email_smtp_port" value="{email_smtp_port}" maxlength="10" placeholder="{label_email_smtp_port}" />
</div>
</div>
<div class="control-group">
@ -149,6 +148,7 @@
<legend>{label_settings_log}</legend>
<div class="control-group">
<label class="checkbox"><input type="checkbox" id="log_status" name="log_status[]" {log_status_checked} /> {label_log_status}</label>
<p class="help-block">{label_log_status_description}</p>
</div>
<div class="control-group">
<label class="checkbox"><input type="checkbox" id="log_email" name="log_email[]" {log_email_checked} /> {label_log_email}</label>

View File

@ -105,6 +105,6 @@
<!--%tpl_main_footer-->
<footer class="footer">
<p class="pull-right"><a href="#">{label_back_to_top}</a></p>
<p><small>Powered by <a href="http://www.phpservermonitor.org/" target="_blank">PHP Server Monitor {version}</a>.<br/>{update_available}</small></p>
<p class="powered"><small>Powered by <a href="http://www.phpservermonitor.org/" target="_blank">PHP Server Monitor {version}</a>.<br/>{update_available}</small></p>
</footer>
<!--%%tpl_main_footer-->

View File

@ -17,46 +17,10 @@
margin-bottom: 10px;
}
.offline, .online {
width: 100%;
}
.entity-container {
float: left;
width: 100%;
max-width: 320px;
}
.entity {
padding: 10px;
box-shadow: 0px 0px 5px #666;
border-radius: 3px;
margin-right: 20px;
margin-bottom: 20px;
cursor: pointer;
}
.offline .entity {
background: {offline_bg};
color: {offline_fg};
border: 2px solid {offline_fg};
}
.offline .entity.warning {
background: {warning_bg};
color: {warning_fg};
border: 2px solid {warning_fg};
}
.online .entity {
background: {online_bg};
color: {online_fg};
border: 2px solid {online_fg};
}
</style>
<div class="offline">
<div class="entity-container">
<!--%tpl_repeat_servers_offline-->
<div class="entity-container">
<div class="offline">
<div class="entity {class_warning}" onclick="window.location.href='{url_view}'">
<h2>{label}</h2>
<p>{label_last_online}: {last_online_nice}</p>
@ -65,10 +29,8 @@
</div>
<!--%%tpl_repeat_servers_offline-->
{servers_offline}
</div>
<div class="online">
<!--%tpl_repeat_servers_online-->
<div class="entity-container">
<div class="online">
<div class="entity" onclick="window.location.href='{url_view}'">
<h2>{label}</h2>
<p>{label_last_online}: {last_checked_nice}</p>

View File

@ -28,16 +28,25 @@ body {
background-color: #444;
}
.powered {
display: inline-block;
white-space: nowrap;
}
.tab-content {
display: block;
width: auto;
padding-top: 10px;
padding-bottom: 0;
}
.nav-tabs {
margin-left: 10px;
margin-bottom: 0;
border: 0;
}
.nav-tabs > .active > a, .nav-tabs > .active > a:hover {
background-color: whiteSmoke;
}
.nav-tabs > li > a, .nav-tabs > li > a:hover {
padding: 8px 8px;
}
@ -45,18 +54,54 @@ body {
legend {
margin-bottom: 0px;
}
.form-horizontal .control-label {
width: 180px;
}
.form-horizontal .controls {
margin-left: 190px;
}
.form-horizontal .form-actions {
padding-left: 190px;
margin-bottom: 0;
}
.form-horizontal label {
font-weight: bold;
}
.help-block {
font-style: italic;
color: #666;
}
.offline, .online {
display: inline-block;
width: 100%;
max-width: 320px;
}
.entity {
text-align: left;
padding: 10px;
box-shadow: 0px 0px 5px #666;
border-radius: 3px;
margin-right: 20px;
margin-bottom: 20px;
cursor: pointer;
}
.offline .entity {
background: #a00000;
color: #f7cece;
border: 2px solid #f7cece;
}
.offline .entity.warning {
background: #FAA732;
color: #F3F3B1;
border: 2px solid #F3F3B1;
}
.online .entity {
background: #53a000;
color: #d8f7ce;
border: 2px solid #d8f7ce;
}
@media (min-width: 980px) {
.hidden-desktop {
@ -81,6 +126,10 @@ legend {
.visible-desktop {
display: none !important;
}
.tab-content {
padding-left: 10px;
padding-right: 10px;
}
}
@media (max-width: 479px) {
@ -93,6 +142,14 @@ legend {
}
.form-horizontal .form-actions {
padding-left: 10px;
text-align: center;
}
.entity-container {
text-align: center;
}
.entity {
margin: 0 10px 20px 10px;
}
}