Column Stufe in Class and studiengang_dokumente

This commit is contained in:
Manfred Kindl
2019-05-17 14:43:21 +02:00
parent aa2597d8b5
commit 8e83de0672
2 changed files with 17 additions and 3 deletions
+10 -3
View File
@@ -36,6 +36,7 @@ class dokument extends basis_db
public $bezeichnung_mehrsprachig;
public $dokumentbeschreibung_mehrsprachig;
public $ausstellungsdetails = false;
public $stufe;
public $prestudent_id;
public $mitarbeiter_uid;
@@ -428,6 +429,7 @@ class dokument extends basis_db
$dok->nachreichbar = $this->db_parse_bool($row->nachreichbar);
$dok->onlinebewerbung = $this->db_parse_bool($row->onlinebewerbung);
$dok->ausstellungsdetails = $this->db_parse_bool($row->ausstellungsdetails);
$dok->stufe = $row->stufe;
$this->result[] = $dok;
}
return true;
@@ -467,6 +469,7 @@ class dokument extends basis_db
$dok->nachreichbar = $this->db_parse_bool($row->nachreichbar);
$dok->onlinebewerbung = $this->db_parse_bool($row->onlinebewerbung);
$dok->ausstellungsdetails = $this->db_parse_bool($row->ausstellungsdetails);
$dok->stufe = $row->stufe;
$this->result[] = $dok;
}
@@ -545,6 +548,7 @@ class dokument extends basis_db
$this->pflicht = $this->db_parse_bool($row->pflicht);
$this->nachreichbar = $this->db_parse_bool($row->nachreichbar);
$this->beschreibung_mehrsprachig = $sprache->parseSprachResult('beschreibung_mehrsprachig',$row);
$this->stufe = $row->stufe;
return true;
}
else
@@ -605,7 +609,7 @@ class dokument extends basis_db
$qry.=" beschreibung_mehrsprachig[$idx],";
}
$qry.=' pflicht, nachreichbar, onlinebewerbung)
$qry.=' pflicht, nachreichbar, onlinebewerbung, stufe)
VALUES ('.
$this->db_add_param($this->dokument_kurzbz).','.
$this->db_add_param($this->studiengang_kz,FHC_INTEGER).',';
@@ -615,7 +619,8 @@ class dokument extends basis_db
$qry.= $this->db_add_param($this->pflicht,FHC_BOOLEAN).','.
$this->db_add_param($this->nachreichbar,FHC_BOOLEAN).','.
$this->db_add_param($this->onlinebewerbung,FHC_BOOLEAN).')';
$this->db_add_param($this->onlinebewerbung,FHC_BOOLEAN).','.
$this->db_add_param($this->stufe,FHC_INTEGER).')';
}
else
{
@@ -628,7 +633,8 @@ class dokument extends basis_db
$qry.=" beschreibung_mehrsprachig[$idx]=".$this->db_add_param($value).",";
}
$qry.=' pflicht='.$this->db_add_param($this->pflicht, FHC_BOOLEAN).',
nachreichbar='.$this->db_add_param($this->nachreichbar, FHC_BOOLEAN).'
nachreichbar='.$this->db_add_param($this->nachreichbar, FHC_BOOLEAN).',
stufe='.$this->db_add_param($this->stufe, FHC_INTEGER).'
WHERE
dokument_kurzbz='.$this->db_add_param($this->dokument_kurzbz).'
AND studiengang_kz='.$this->db_add_param($this->studiengang_kz);
@@ -714,6 +720,7 @@ class dokument extends basis_db
$dok->dokumentbeschreibung_mehrsprachig = $sprache->parseSprachResult('dokumentbeschreibung_mehrsprachig', $row);
$dok->beschreibung_mehrsprachig = $sprache->parseSprachResult('beschreibung_mehrsprachig', $row);
$dok->ausstellungsdetails = $this->db_parse_bool($row->ausstellungsdetails);
$dok->stufe = $row->stufe;
$this->result[] = $dok;
}
@@ -34,6 +34,7 @@ $dokument_kurzbz = isset($_REQUEST['dokument_kurzbz']) ? $_REQUEST['dokument_kur
$onlinebewerbung = isset($_REQUEST['onlinebewerbung']);
$pflicht = isset($_POST['pflicht']);
$nachreichbar = isset($_POST['nachreichbar']);
$stufe = isset($_REQUEST['stufe']) ? $_REQUEST['stufe'] : '';
$sprache = new sprache();
$sprache->getAll(true, 'index');
@@ -64,6 +65,7 @@ if($action == 'add')
$dokument->onlinebewerbung = $onlinebewerbung;
$dokument->pflicht = $pflicht;
$dokument->nachreichbar = $nachreichbar;
$dokument->stufe = $stufe;
$beschreibung_mehrsprachig = array();
foreach($sprache->result as $row_sprache)
@@ -453,6 +455,7 @@ else
echo' <th class="sorter-false" style="text-align: center">Online-Bewerbung</th>
<th class="sorter-false" style="text-align: center">Pflicht</th>
<th class="sorter-false" style="text-align: center">Nachreichbar</th>
<th class="sorter-false" style="text-align: center">Stufe</th>
<th class="sorter-false"></th>';
}
echo'</tr>
@@ -491,6 +494,7 @@ else
echo' <td style="text-align: center"><a href="'.$_SERVER['PHP_SELF'].'?action=toggleonline&dokument_kurzbz='.$dok->dokument_kurzbz.'&stg_kz='.$stg_kz.'"><img src="../../skin/images/'.$checked_onlinebewerbung.'.png" /></a></td>
<td style="text-align: center"><a href="'.$_SERVER['PHP_SELF'].'?action=togglepflicht&dokument_kurzbz='.$dok->dokument_kurzbz.'&stg_kz='.$stg_kz.'"><img src="../../skin/images/'.$checked_pflicht.'.png" /></a></td>
<td style="text-align: center"><a href="'.$_SERVER['PHP_SELF'].'?action=togglenachreichbar&dokument_kurzbz='.$dok->dokument_kurzbz.'&stg_kz='.$stg_kz.'"><img src="../../skin/images/'.$checked_nachreichbar.'.png" /></a></td>
<td style="text-align: center">'.$dok->stufe.'</td>
<td style="text-align: center">';
if($rechte->isBerechtigt('assistenz', $stg_kz, 'su'))
echo '<a href="'.$_SERVER['PHP_SELF'].'?action=edit&dokument_kurzbz='.$dok->dokument_kurzbz.'&stg_kz='.$stg_kz.'"><img src="../../skin/images/edit.png" title="Zuordnung bearbeiten" size="17px" /></a>';
@@ -546,6 +550,9 @@ else
<td class="normal" style="text-align: center" valign="top">
<input type="checkbox" name="nachreichbar" '.($dok_stg->nachreichbar?'checked="checked"':'').'>
</td>
<td class="normal" style="text-align: center" valign="top">
<input type="text" style="width: 30px" name="stufe" value="'.$dok_stg->stufe.'">
</td>
<td class="normal" valign="top"><input type="submit" name="add" value="Speichern"></td>
</tr>
</tfoot>';