mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
FAS Online Anpassung neue DB
This commit is contained in:
@@ -312,13 +312,66 @@
|
|||||||
<td valign="top" align="center">
|
<td valign="top" align="center">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
echo '<img border="0" src="../../../skin/images/button_lb.jpg" width="67" height="45"><br>';
|
||||||
if($is_lector)
|
if($is_lector)
|
||||||
{
|
{
|
||||||
//Anwesenheitsliste
|
//Anwesenheitsliste
|
||||||
echo '<img border="0" src="../../../skin/images/button_lb.jpg" width="67" height="45"><br>';
|
|
||||||
echo "<b><a href='anwesenheitsliste.php?stg_kz=$course_id&sem=$term_id&lvid=$lvid' class='Item'>Anwesenheits- und Notenlisten</a></b>";
|
echo "<b><a href='anwesenheitsliste.php?stg_kz=$course_id&sem=$term_id&lvid=$lvid' class='Item'>Anwesenheits- und Notenlisten</a></b><br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Leistungsuebersicht
|
||||||
|
$dest_dir = @dir('../../../documents/'.strtolower($kurzbz).'/'.$term_id.'/'.strtolower($short_short_name).'/leistung');
|
||||||
|
|
||||||
|
if(!@is_dir($dest_dir->path))
|
||||||
|
{
|
||||||
|
if(!is_dir('../../../documents/'.strtolower($kurzbz)))
|
||||||
|
{
|
||||||
|
@exec('mkdir -m 775 "../../../documents/'.strtolower($kurzbz).'"');
|
||||||
|
exec('sudo chown www-data:teacher "'.$GLOBALS["DOCUMENT_ROOT"].'/documents/'.strtolower($kurzbz).'"');
|
||||||
|
}
|
||||||
|
if(!is_dir('../../../documents/'.strtolower($kurzbz).'/'.$term_id))
|
||||||
|
{
|
||||||
|
@exec('mkdir -m 775 "../../../documents/'.strtolower($kurzbz).'/'.$term_id.'"');
|
||||||
|
exec('sudo chown www-data:teacher "'.$GLOBALS["DOCUMENT_ROOT"].'/documents/'.strtolower($kurzbz).'/'.$term_id.'"');
|
||||||
|
}
|
||||||
|
if(!is_dir('../../../documents/'.strtolower($kurzbz).'/'.$term_id.'/'.strtolower($short_short_name)))
|
||||||
|
{
|
||||||
|
@exec('mkdir -m 775 "../../../documents/'.strtolower($kurzbz).'/'.$term_id.'/'.strtolower($short_short_name).'"');
|
||||||
|
exec('sudo chown www-data:teacher "'.$GLOBALS["DOCUMENT_ROOT"].'/documents/'.strtolower($kurzbz).'/'.$term_id.'/'.strtolower($short_short_name).'"');
|
||||||
|
}
|
||||||
|
if(!is_dir('../../../documents/'.strtolower($kurzbz).'/'.$term_id.'/'.strtolower($short_short_name).'/leistung'))
|
||||||
|
{
|
||||||
|
@exec('mkdir -m 775 "../../../documents/'.strtolower($kurzbz).'/'.$term_id.'/'.strtolower($short_short_name).'/leistung"');
|
||||||
|
exec('sudo chown www-data:teacher "'.$GLOBALS["DOCUMENT_ROOT"].'/documents/'.strtolower($kurzbz).'/'.$term_id.'/'.strtolower($short_short_name).'/leistung"');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if($dest_dir)
|
||||||
|
{
|
||||||
|
$dir_empty = true;
|
||||||
|
|
||||||
|
while($entry = $dest_dir->read())
|
||||||
|
{
|
||||||
|
if($entry != "." && $entry != "..")
|
||||||
|
{
|
||||||
|
$dir_empty = false;
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(isset($dest_dir) && isset($dir_empty) && $dir_empty == false)
|
||||||
|
{
|
||||||
|
echo '<a href="'.$dest_dir->path.'" target="_blank">';
|
||||||
|
echo '<strong>Leistungsübersicht</strong>';
|
||||||
|
echo '</a>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo '<strong>Leistungsübersicht</strong>';
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p> </p>
|
<p> </p>
|
||||||
|
|||||||
@@ -404,7 +404,7 @@
|
|||||||
<td nowrap>
|
<td nowrap>
|
||||||
<?php
|
<?php
|
||||||
$path = '../../../documents/'.strtolower($short).'/download';
|
$path = '../../../documents/'.strtolower($short).'/download';
|
||||||
if(!$dest_dir = @dir($path))
|
if(!$dest_dir = is_dir($path))
|
||||||
{
|
{
|
||||||
|
|
||||||
if(!is_dir($path))
|
if(!is_dir($path))
|
||||||
@@ -415,16 +415,14 @@
|
|||||||
exec('sudo chgrp teacher ../../../documents/'.strtolower($short).'/download');
|
exec('sudo chgrp teacher ../../../documents/'.strtolower($short).'/download');
|
||||||
}
|
}
|
||||||
|
|
||||||
$dir_empty = true;
|
}
|
||||||
$dest_dir = @dir($path);
|
$dest_dir = @dir($path);
|
||||||
while($entry = $dest_dir->read())
|
while($entry = $dest_dir->read())
|
||||||
|
{
|
||||||
|
if($entry != "." && $entry != "..")
|
||||||
{
|
{
|
||||||
if($entry != "." && $entry != "..")
|
$dir_empty = false;
|
||||||
{
|
break;
|
||||||
$dir_empty = false;
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
<td><a href="http://www.alpbach.org/Deutsch/Stipendien.htm" target="_blank">www.alpbach.org/Deutsch/Stipendien.htm</a></td>
|
<td><a href="http://www.alpbach.org/Deutsch/Stipendien.htm" target="_blank">www.alpbach.org/Deutsch/Stipendien.htm</a></td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<!--<tr>
|
||||||
<td><a href="http://www.alpbach.org/pdf/leaflet%20Sommerschule%20stip.pdf" target="_blank">www.alpbach.org/pdf/leaflet Sommerschule stip.pdf</a></td>
|
<td><a href="http://www.alpbach.org/pdf/leaflet%20Sommerschule%20stip.pdf" target="_blank">www.alpbach.org/pdf/leaflet Sommerschule stip.pdf</a></td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><a href="http://www.alpbach.org/pdf/Vorprogramm%202003.pdf" target="_blank">www.alpbach.org/pdf/Vorprogramm 2003.pdf</a></td>
|
<td><a href="http://www.alpbach.org/pdf/Vorprogramm%202003.pdf" target="_blank">www.alpbach.org/pdf/Vorprogramm 2003.pdf</a></td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>-->
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
<td>Mandrake</td>
|
<td>Mandrake</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="http://www.redhat.net" target="_blank">www.postgresql.org</a></td>
|
<td><a href="http://www.postgresql.org/" target="_blank">www.postgresql.org</a></td>
|
||||||
<td>PostgreSQL</td>
|
<td>PostgreSQL</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
+9
-1
@@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
|
|
||||||
include('../vilesci/config.inc.php');
|
include('../vilesci/config.inc.php');
|
||||||
|
include_once('../include/functions.inc.php');
|
||||||
include_once('../include/fas/functions.inc.php');
|
include_once('../include/fas/functions.inc.php');
|
||||||
include_once('../include/fas/person.class.php');
|
include_once('../include/fas/person.class.php');
|
||||||
include_once('../include/fas/mitarbeiter.class.php');
|
include_once('../include/fas/mitarbeiter.class.php');
|
||||||
@@ -23,12 +24,18 @@ include_once('../include/Excel/PPS.php');
|
|||||||
include_once('../include/Excel/Root.php');
|
include_once('../include/Excel/Root.php');
|
||||||
include_once('../include/Excel/File.php');
|
include_once('../include/Excel/File.php');
|
||||||
include_once('../include/Excel/Writer.php');
|
include_once('../include/Excel/Writer.php');
|
||||||
|
include_once('../include/fas/benutzer.class.php');
|
||||||
|
|
||||||
|
|
||||||
// Datenbank Verbindung
|
// Datenbank Verbindung
|
||||||
if (!$conn = @pg_pconnect(CONN_STRING_FAS))
|
if (!$conn = @pg_pconnect(CONN_STRING_FAS))
|
||||||
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
|
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
|
||||||
|
|
||||||
|
if (!$conn_vilesci = @pg_pconnect(CONN_STRING))
|
||||||
|
$error_msg='Es konnte keine Verbindung zum Server aufgebaut werden!';
|
||||||
|
|
||||||
|
$user = get_uid();
|
||||||
|
|
||||||
//Parameter holen
|
//Parameter holen
|
||||||
if (isset($_GET['mitarbeiter_id']))
|
if (isset($_GET['mitarbeiter_id']))
|
||||||
$mitarbeiter_id = $_GET['mitarbeiter_id'];
|
$mitarbeiter_id = $_GET['mitarbeiter_id'];
|
||||||
@@ -81,7 +88,8 @@ while (isset($_GET[$varname]))
|
|||||||
$varname='spalte'.(string)$anzSpalten;
|
$varname='spalte'.(string)$anzSpalten;
|
||||||
}
|
}
|
||||||
$zustelladresse=true;
|
$zustelladresse=true;
|
||||||
|
$benutzer = new benutzer($conn_vilesci);
|
||||||
|
$benutzer->loadVariables($user);
|
||||||
// Mitarbeiter holen
|
// Mitarbeiter holen
|
||||||
$mitarbeiterDAO=new mitarbeiter($conn);
|
$mitarbeiterDAO=new mitarbeiter($conn);
|
||||||
$mitarbeiterDAO->getMitarbeiter($mitarbeiter_id, $fix, $stgl, $fbl, $aktiv, $karenziert, $ausgeschieden, $zustelladresse,getStudiensemesterIdFromName($conn, $benutzer->variable->semester_aktuell));
|
$mitarbeiterDAO->getMitarbeiter($mitarbeiter_id, $fix, $stgl, $fbl, $aktiv, $karenziert, $ausgeschieden, $zustelladresse,getStudiensemesterIdFromName($conn, $benutzer->variable->semester_aktuell));
|
||||||
|
|||||||
@@ -576,7 +576,7 @@ class person
|
|||||||
if(pg_query($qry))
|
if(pg_query($qry))
|
||||||
{
|
{
|
||||||
//Log schreiben
|
//Log schreiben
|
||||||
$sql .= $qry;
|
$sql = $qry;
|
||||||
$qry = "SELECT nextval('log_seq') as id;";
|
$qry = "SELECT nextval('log_seq') as id;";
|
||||||
if(!$row = pg_fetch_object(pg_query($this->conn, $qry)))
|
if(!$row = pg_fetch_object(pg_query($this->conn, $qry)))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user