mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-02 04:39:28 +00:00
FAS Online Anpassung neue DB
This commit is contained in:
@@ -312,13 +312,66 @@
|
||||
<td valign="top" align="center">
|
||||
|
||||
<?php
|
||||
echo '<img border="0" src="../../../skin/images/button_lb.jpg" width="67" height="45"><br>';
|
||||
if($is_lector)
|
||||
{
|
||||
//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>
|
||||
|
||||
@@ -404,7 +404,7 @@
|
||||
<td nowrap>
|
||||
<?php
|
||||
$path = '../../../documents/'.strtolower($short).'/download';
|
||||
if(!$dest_dir = @dir($path))
|
||||
if(!$dest_dir = is_dir($path))
|
||||
{
|
||||
|
||||
if(!is_dir($path))
|
||||
@@ -414,17 +414,15 @@
|
||||
exec('mkdir -m 775 "../../../documents/'.strtolower($short).'/download"');
|
||||
exec('sudo chgrp teacher ../../../documents/'.strtolower($short).'/download');
|
||||
}
|
||||
|
||||
$dir_empty = true;
|
||||
$dest_dir = @dir($path);
|
||||
while($entry = $dest_dir->read())
|
||||
|
||||
}
|
||||
$dest_dir = @dir($path);
|
||||
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> </td>
|
||||
</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> </td>
|
||||
</tr>
|
||||
@@ -79,7 +79,7 @@
|
||||
<tr>
|
||||
<td><a href="http://www.alpbach.org/pdf/Vorprogramm%202003.pdf" target="_blank">www.alpbach.org/pdf/Vorprogramm 2003.pdf</a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tr>-->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -112,7 +112,7 @@
|
||||
<td>Mandrake</td>
|
||||
</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>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
+9
-1
@@ -9,6 +9,7 @@
|
||||
|
||||
|
||||
include('../vilesci/config.inc.php');
|
||||
include_once('../include/functions.inc.php');
|
||||
include_once('../include/fas/functions.inc.php');
|
||||
include_once('../include/fas/person.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/File.php');
|
||||
include_once('../include/Excel/Writer.php');
|
||||
include_once('../include/fas/benutzer.class.php');
|
||||
|
||||
|
||||
// Datenbank Verbindung
|
||||
if (!$conn = @pg_pconnect(CONN_STRING_FAS))
|
||||
$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
|
||||
if (isset($_GET['mitarbeiter_id']))
|
||||
$mitarbeiter_id = $_GET['mitarbeiter_id'];
|
||||
@@ -81,7 +88,8 @@ while (isset($_GET[$varname]))
|
||||
$varname='spalte'.(string)$anzSpalten;
|
||||
}
|
||||
$zustelladresse=true;
|
||||
|
||||
$benutzer = new benutzer($conn_vilesci);
|
||||
$benutzer->loadVariables($user);
|
||||
// Mitarbeiter holen
|
||||
$mitarbeiterDAO=new mitarbeiter($conn);
|
||||
$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))
|
||||
{
|
||||
//Log schreiben
|
||||
$sql .= $qry;
|
||||
$sql = $qry;
|
||||
$qry = "SELECT nextval('log_seq') as id;";
|
||||
if(!$row = pg_fetch_object(pg_query($this->conn, $qry)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user