mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
- Kollisionsfreie User werden in Verbandsansicht nicht mehr als Kollision angezeigt
- Drop auf Lehrstunde ist jetzt auch für bereits verplante Stunden möglich - Stunde und Tag Info wird jetzt auch dann angezeigt wenn eine Stunde verschoben wird
This commit is contained in:
@@ -460,17 +460,53 @@ var boardObserver=
|
||||
{
|
||||
var styleNow=evt.target.getAttribute("style");
|
||||
if (evt.target.tagName=="label")
|
||||
{
|
||||
evt.target.setAttribute("style","background-color:#AAFFAA;");
|
||||
|
||||
var tagesinfo = evt.target.parentNode.getElementsByClassName('stplweek_tagesinfo');
|
||||
if(typeof tagesinfo[0]!='undefined')
|
||||
{
|
||||
var Tagesinfostyle = tagesinfo[0].getAttribute("style");
|
||||
tagesinfo[0].setAttribute("style",Tagesinfostyle+";visibility:visible;");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
evt.target.setAttribute("style",styleNow+";border:1px dashed black;");
|
||||
|
||||
var tagesinfo = evt.target.getElementsByClassName('stplweek_tagesinfo');
|
||||
if(typeof tagesinfo[0]!='undefined')
|
||||
{
|
||||
var Tagesinfostyle = tagesinfo[0].getAttribute("style");
|
||||
tagesinfo[0].setAttribute("style",Tagesinfostyle+";visibility:visible;");
|
||||
}
|
||||
}
|
||||
},
|
||||
onDragExit: function (evt,flavour,session)
|
||||
{
|
||||
var styleNow=evt.target.getAttribute("style");
|
||||
if (evt.target.tagName=="label")
|
||||
{
|
||||
evt.target.setAttribute("style","");
|
||||
|
||||
var tagesinfo = evt.target.parentNode.getElementsByClassName('stplweek_tagesinfo');
|
||||
if(typeof tagesinfo[0]!='undefined')
|
||||
{
|
||||
var Tagesinfostyle = tagesinfo[0].getAttribute("style");
|
||||
tagesinfo[0].setAttribute("style",Tagesinfostyle+";visibility:hidden;");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
evt.target.setAttribute("style",styleNow+";border:1px solid black;");
|
||||
|
||||
var tagesinfo = evt.target.getElementsByClassName('stplweek_tagesinfo');
|
||||
if(typeof tagesinfo[0]!='undefined')
|
||||
{
|
||||
var Tagesinfostyle = tagesinfo[0].getAttribute("style");
|
||||
tagesinfo[0].setAttribute("style",Tagesinfostyle+";visibility:hidden;");
|
||||
}
|
||||
}
|
||||
},
|
||||
onDragOver: function(evt,flavour,session)
|
||||
{
|
||||
|
||||
@@ -275,6 +275,10 @@ if ($aktion=='stpl_move' || $aktion=='stpl_set')
|
||||
$lehrstunde->ort_kurzbz=$ort;
|
||||
if ($aktion=='stpl_set')
|
||||
$lehrstunde->ort_kurzbz=$new_ort;
|
||||
|
||||
if($new_unr!='')
|
||||
$lehrstunde->unr = $new_unr;
|
||||
|
||||
$kollision=$lehrstunde->kollision($db_stpl_table);
|
||||
if ($kollision && !$ignore_kollision)
|
||||
$kollision_msg.=$lehrstunde->errormsg;
|
||||
@@ -308,6 +312,9 @@ if ($aktion=='stpl_move' || $aktion=='stpl_set')
|
||||
$lehrstunde->ort_kurzbz=$ort;
|
||||
if ($aktion=='stpl_set')
|
||||
$lehrstunde->ort_kurzbz=$new_ort;
|
||||
if($new_unr!='')
|
||||
$lehrstunde->unr = $new_unr;
|
||||
|
||||
$kollision=$lehrstunde->kollision($db_stpl_table);
|
||||
if ($kollision && !$ignore_kollision)
|
||||
$kollision_msg.=$lehrstunde->errormsg;
|
||||
|
||||
@@ -156,6 +156,8 @@ class lehrstunde extends basis_db
|
||||
$sql_query='UPDATE '.$stpl_table;
|
||||
$sql_query.=" SET datum=".$this->db_add_param($this->datum).", stunde=".$this->db_add_param($this->stunde);
|
||||
$sql_query.=", ort_kurzbz=".$this->db_add_param($this->ort_kurzbz).", mitarbeiter_uid=".$this->db_add_param($this->lektor_uid);
|
||||
if($this->unr!='')
|
||||
$sql_query.=", unr=".$this->db_add_param($this->unr);
|
||||
$sql_query.=", updateamum=now(), updatevon=".$this->db_add_param($uid);
|
||||
$sql_query.=" WHERE $stpl_id=".$this->db_add_param($this->stundenplan_id);
|
||||
|
||||
|
||||
@@ -1417,9 +1417,12 @@ class wochenplan extends basis_db
|
||||
|
||||
if(isset($lktcheck[$lehrstunde->lektor]) && $lktcheck[$lehrstunde->lektor]!=$lehrstunde->unr)
|
||||
{
|
||||
$kollision++;
|
||||
$kollisionsmeldungen[$lehrstunde->unr][]=" LektorIn ".$lehrstunde->lektor; //." ".$lehrstunde->unr."!=".$lktcheck[$lehrstunde->lektor];
|
||||
$kollisionsmeldungen[$lktcheck[$lehrstunde->lektor]][]=" LektorIn ".$lehrstunde->lektor; //." ".$lehrstunde->unr."!=".$lktcheck[$lehrstunde->lektor];
|
||||
if(!in_array($lehrstunde->lektor_uid, unserialize(KOLLISIONSFREIE_USER)))
|
||||
{
|
||||
$kollision++;
|
||||
$kollisionsmeldungen[$lehrstunde->unr][]=" LektorIn ".$lehrstunde->lektor; //." ".$lehrstunde->unr."!=".$lktcheck[$lehrstunde->lektor];
|
||||
$kollisionsmeldungen[$lktcheck[$lehrstunde->lektor]][]=" LektorIn ".$lehrstunde->lektor; //." ".$lehrstunde->unr."!=".$lktcheck[$lehrstunde->lektor];
|
||||
}
|
||||
}
|
||||
else
|
||||
$lktcheck[$lehrstunde->lektor]=$lehrstunde->unr;
|
||||
|
||||
+1
-1
@@ -154,11 +154,11 @@ toolbarbutton.stplweekoverlay-toolbarbutton:hover
|
||||
|
||||
.stplweek_vbox:hover .stplweek_tagesinfo
|
||||
{
|
||||
color: #AAAAAA;
|
||||
visibility:visible;
|
||||
}
|
||||
|
||||
.stplweek_tagesinfo
|
||||
{
|
||||
color: #AAAAAA;
|
||||
visibility:hidden;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user