mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Anzeige homeoffice nur wenn in Bisverwendung eingetragen
This commit is contained in:
@@ -1545,17 +1545,38 @@ if ($projekt->getProjekteMitarbeiter($user, true))
|
||||
</td>
|
||||
</tr>
|
||||
';
|
||||
|
||||
//Homeoffice Checkbox
|
||||
echo '
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="1">
|
||||
<span id="homeofficeBlock">
|
||||
<input type="checkbox" name="homeoffice" id="homeoffice" '. $homeofficeChecked . '>Homeoffice</input>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
';
|
||||
$verwendung = new bisverwendung();
|
||||
$verwendung->getLastAktVerwendung($user);
|
||||
$bvId = $verwendung->bisverwendung_id;
|
||||
|
||||
if ($verwendung->homeoffice)
|
||||
{
|
||||
$bvHo = "erlaubt";
|
||||
echo '
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="1">
|
||||
<span id="homeofficeBlock">
|
||||
<input type="checkbox" name="homeoffice" id="homeoffice" '. $homeofficeChecked . '>Homeoffice</input>
|
||||
</span>
|
||||
</td>
|
||||
<td>Homeoffice: ' . $bvHo . '</td>
|
||||
<td>bisId: ' . $bvId . '</td>
|
||||
|
||||
</tr>
|
||||
';
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
echo "<h2 class='text-warning'>Homeoffice nicht erlaubt</h2>";
|
||||
echo "<td>BisId: $bvId </td>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Beschreibung
|
||||
echo '<tr><td>'.$p->t("global/beschreibung").'</td><td colspan="3"><textarea style="font-size: 13px" name="beschreibung" cols="60" maxlength="256">'.$db->convert_html_chars($beschreibung).'</textarea></td></tr>';
|
||||
echo '<tr><td></td><td></td><td></td><td align="right">';
|
||||
|
||||
@@ -47,6 +47,7 @@ class bisverwendung extends basis_db
|
||||
public $dv_art;
|
||||
public $inkludierte_lehre;
|
||||
public $zeitaufzeichnungspflichtig;
|
||||
public $homeoffice;
|
||||
|
||||
public $ba1bez;
|
||||
public $ba2bez;
|
||||
@@ -122,6 +123,7 @@ class bisverwendung extends basis_db
|
||||
$this->dv_art = $row->dv_art;
|
||||
$this->inkludierte_lehre = $row->inkludierte_lehre;
|
||||
$this->zeitaufzeichnungspflichtig = $this->db_parse_bool($row->zeitaufzeichnungspflichtig);
|
||||
$this->homeoffice = $this->db_parse_bool($row->homeoffice);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@@ -359,6 +361,7 @@ class bisverwendung extends basis_db
|
||||
$obj->dv_art = $row->dv_art;
|
||||
$obj->inkludierte_lehre = $row->inkludierte_lehre;
|
||||
$obj->zeitaufzeichnungspflichtig = $this->db_parse_bool($row->zeitaufzeichnungspflichtig);
|
||||
$obj->homeoffice = $this->db_parse_bool($row->homeoffice);
|
||||
|
||||
$this->result[] = $obj;
|
||||
}
|
||||
@@ -416,6 +419,7 @@ class bisverwendung extends basis_db
|
||||
$obj->dv_art = $row->dv_art;
|
||||
$obj->inkludierte_lehre = $row->inkludierte_lehre;
|
||||
$obj->zeitaufzeichnungspflichtig = $this->db_parse_bool($row->zeitaufzeichnungspflichtig);
|
||||
$obj->homeoffice = $this->db_parse_bool($row->homeoffice);
|
||||
|
||||
$this->result[] = $obj;
|
||||
}
|
||||
@@ -474,6 +478,8 @@ class bisverwendung extends basis_db
|
||||
$obj->dv_art = $row->dv_art;
|
||||
$obj->inkludierte_lehre = $row->inkludierte_lehre;
|
||||
$obj->zeitaufzeichnungspflichtig = $this->db_parse_bool($row->zeitaufzeichnungspflichtig);
|
||||
$obj->homeoffice = $this->db_parse_bool($row->homeoffice);
|
||||
|
||||
|
||||
$this->result[] = $obj;
|
||||
}
|
||||
@@ -493,7 +499,7 @@ class bisverwendung extends basis_db
|
||||
*/
|
||||
public function getLastVerwendung($uid)
|
||||
{
|
||||
//laden des Datensatzes
|
||||
//laden des Datensatzes18.08.2021
|
||||
$qry = "SELECT
|
||||
*
|
||||
FROM
|
||||
@@ -577,6 +583,7 @@ class bisverwendung extends basis_db
|
||||
$this->vertragsstunden = $row->vertragsstunden;
|
||||
$this->dv_art = $row->dv_art;
|
||||
$this->inkludierte_lehre = $row->inkludierte_lehre;
|
||||
$this->homeoffice = $this->db_parse_bool($row->homeoffice);
|
||||
$this->zeitaufzeichnungspflichtig = $this->db_parse_bool($row->zeitaufzeichnungspflichtig);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user