mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Adapted Sancho Popup (mandatory Ampeln) to new Sancho Design
. popup for mandatory notifications in CIS has now same design like eMails . added bootstrap to popup . added title "Aktuelle Ampeln" to CIS Ampelsystem
This commit is contained in:
+7
-5
@@ -88,7 +88,7 @@ if(is_user_logged_in())
|
||||
obj.style.height = obj.contentWindow.document.body.scrollHeight + \'px\';
|
||||
}
|
||||
|
||||
var html_content = \'<iframe src="'.APP_ROOT.'cis/private/tools/ampelverwaltung.php?verpflichtend=true" name="ampel" frameborder="0" width="100%" height="100% onload="resizeIframe(this) id="ampel_frame"></iframe><button id="close_button" class="btn btn-default" onclick="hide_ampel_div()">'.$p->t('tools/ampelClose').'</button>\';
|
||||
var html_content = \'<iframe src="'.APP_ROOT.'cis/private/tools/ampelverwaltung.php?verpflichtend=true" name="ampel" frameborder="0" width="100%" height="100% onload="resizeIframe(this) id="ampel_frame"></iframe><button id="close_button" class="btn btn-default" onclick="hide_ampel_div()">'.$p->t('tools/ampelClose').'</button>\';
|
||||
$("#ampel_div").html(html_content);
|
||||
});
|
||||
</script>';
|
||||
@@ -100,15 +100,13 @@ if(is_user_logged_in())
|
||||
top: 20%;
|
||||
left: 10%;
|
||||
right: 10%;
|
||||
width: 80%;
|
||||
height: 45%;
|
||||
width: 70%;
|
||||
height: 50%;
|
||||
scrolling: no;
|
||||
z-index: 1003;
|
||||
background-color: #fefefe;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
/*padding-top: 20px;*/
|
||||
/*border: 3px solid black;*/
|
||||
-webkit-box-shadow: 0px 0px 0px 2000px rgba(0,0,0,0.47);
|
||||
-moz-box-shadow: 0px 0px 0px 2000px rgba(0,0,0,0.47);
|
||||
box-shadow: 0px 0px 0px 2000px rgba(0,0,0,0.47);
|
||||
@@ -124,6 +122,10 @@ if(is_user_logged_in())
|
||||
font-size: 150%;
|
||||
height: 50px;
|
||||
width: 100%;
|
||||
background-color: white;
|
||||
border: none;
|
||||
/*border-top: 4px solid black;*/
|
||||
/*border-bottom: 4px solid black;*/
|
||||
}
|
||||
</style>';
|
||||
}
|
||||
|
||||
@@ -328,29 +328,36 @@ function typeWrite(span){
|
||||
},randInt+4500);
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
typeWrite('sancho_ampel_text');
|
||||
});
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
|
||||
<body style="font-family: Arial, Helvetica, sans-serif; font-size: 13px;">
|
||||
<div class="container" >
|
||||
<div class="container-fluid" style="padding: 0px;">
|
||||
|
||||
<?php
|
||||
//title in CIS
|
||||
if (!$is_popup)
|
||||
echo '<h3>' . $p->t('tools/ampelsystem') . '</h3>';
|
||||
|
||||
//title in popup for mandatory ampeln
|
||||
//***************************************** AROUSE SANCHO for mandatory ampeln
|
||||
if ($is_popup)
|
||||
echo '<p><p><h3>' . $p->t('tools/ampelPopupTitel'). '</h3><p><br></p>';
|
||||
{
|
||||
//sancho message if mandatory ampeln exist
|
||||
if (count($user_ampel_arr) > 0)
|
||||
{
|
||||
echo '
|
||||
<div>
|
||||
<img src="../../../skin/images/sancho/sancho_header_du_hast_verpflichtende_ampeln.jpg" alt="sancho_verpflichtende_ampeln" style="width: 100%;">
|
||||
</div>
|
||||
<p><br><br></p>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<!--***************************************** PANEL-GROUP -->
|
||||
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
|
||||
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true" style="padding-left: 15px; padding-right:15px;">
|
||||
|
||||
<!--***************************************** radiobuttons actual term / all -->
|
||||
<?php
|
||||
@@ -370,30 +377,7 @@ $(document).ready(function(){
|
||||
<?php
|
||||
} //end if
|
||||
|
||||
|
||||
//***************************************** AROUSE SANCHO for mandatory ampeln
|
||||
if ($is_popup)
|
||||
{
|
||||
//sancho message if mandatory ampeln exist
|
||||
if (count($user_ampel_arr) == 1)
|
||||
$ovdue_txt = 'ich habe 1 Nachricht entdeckt, die verpflichtend zu bestätigen ist.';
|
||||
else if (count($user_ampel_arr) > 1)
|
||||
$ovdue_txt = 'ich habe ' . count($user_ampel_arr) . ' Nachrichten entdeckt, die verpflichtend zu bestätigen sind.';
|
||||
|
||||
if (count($user_ampel_arr) > 0)
|
||||
{
|
||||
echo '
|
||||
<div class="row">
|
||||
<div class="col-xs-2">
|
||||
<img src="../../../skin/images/sancho_round_right_red.png" alt="sancho_ampel_ueberfaellig" class="img-circle" style="width: 120px;">
|
||||
</div>
|
||||
<div class="col-xs-8" style="color: red; font-weight: bold; font-family: Courier New, Courier, monospace;">
|
||||
<br><br><span id="sancho_ampel_text"><noscript>Hallo ' . $person->vorname . ', ' . $ovdue_txt . ' ' . $p->t('tools/ampelBitteBestaetigen'). '</noscript></span>
|
||||
</div>
|
||||
</div>
|
||||
<p><br><br></p>';
|
||||
}
|
||||
}
|
||||
//***************************************** COLLAPSED PANELS WITH AMPELN
|
||||
|
||||
$cnt = 1; //counter to set iterative id's
|
||||
@@ -418,7 +402,17 @@ $(document).ready(function(){
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
}
|
||||
elseif ($cnt_active != 0 && !$is_popup)
|
||||
{
|
||||
echo '
|
||||
<div class="panel">
|
||||
<div class="row" style="margin-bottom: 15px; padding-left: 15px;">
|
||||
<div class="panel-heading" style="background-color: transparent" role="tab" id="heading">
|
||||
<h4>' . $p->t('tools/ampelAktuelleAmpeln'). '</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
}
|
||||
|
||||
//fill panel with ampeln
|
||||
@@ -435,6 +429,7 @@ $(document).ready(function(){
|
||||
<div class="panel">
|
||||
<div class="row" style="margin-bottom: 15px; padding-left: 15px;">
|
||||
<div class="panel-heading" style="background-color: transparent" role="tab" id="heading">
|
||||
<br>
|
||||
<h4>' . $p->t('tools/ampelAbgelaufenTitel'). '</h4>
|
||||
<small>' . $p->t('tools/ampelAbgelaufenTxt'). '</small>
|
||||
</div>
|
||||
@@ -492,8 +487,6 @@ $(document).ready(function(){
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
@@ -57,6 +57,7 @@ $this->phrasen['tools/ampelBitteBestaetigen']='Bitte bestätigen Sie diese jetzt
|
||||
$this->phrasen['tools/ampelAbgelaufenTitel']='Abgelaufene oder bereits bestätigte Ampeln';
|
||||
$this->phrasen['tools/ampelAbgelaufenTxt']='Sie können diese Ampeln weiterhin lesen, aber nicht mehr bestätigen.';
|
||||
$this->phrasen['tools/ampelBestaetigtAbgelaufen']='Bereits bestätigt oder abgelaufen';
|
||||
$this->phrasen['tools/ampelAktuelleAmpeln']='Aktuelle Ampeln';
|
||||
$this->phrasen['tools/ampelKeineAktuellen']='Keine aktuellen Ampeln';
|
||||
$this->phrasen['tools/ampelKeineAktuellenTxt']='Sie haben zur Zeit keine aktuellen Ampeln.';
|
||||
$this->phrasen['tools/ampelClose']='Jetzt nicht';
|
||||
|
||||
@@ -59,6 +59,7 @@ $this->phrasen['tools/ampelBitteBestaetigen']='Please confirm now!';
|
||||
$this->phrasen['tools/ampelAbgelaufenTitel']='Notifications expired or confirmed';
|
||||
$this->phrasen['tools/ampelAbgelaufenTxt']='Notifications can still be read, but not confirmed anymore.';
|
||||
$this->phrasen['tools/ampelBestaetigtAbgelaufen']='Almost confirmed or expired';
|
||||
$this->phrasen['tools/ampelAktuelleAmpeln']='Actual notifications';
|
||||
$this->phrasen['tools/ampelKeineAktuellen']='No current notifications.';
|
||||
$this->phrasen['tools/ampelKeineAktuellenTxt']='You currently do not have any notifications.';
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 782 KiB |
Reference in New Issue
Block a user