This commit is contained in:
Christian Paminger
2007-06-11 15:20:17 +00:00
parent e418a0284c
commit fcc220345d
10 changed files with 84 additions and 92 deletions
+3 -3
View File
@@ -6,13 +6,13 @@
}
mysql_select_db($dbname);
$query = "insert into rt_antwort(gruppe, pruefling, nummer, antwort, ) ";
$query .= "values ($gruppe, $pruefling, $nummer, '$antwort';
$query = "insert into rt_antwort (gruppe, pruefling, nummer, antwort) ";
$query.= "values ($gruppe, $pruefling, $nummer, '$antwort')";
$result = mysql_query($query, $dbh);
$id = mysql_insert_id($dbh);
echo "$id";
echo $id;
mysql_close($dbh);
?>
+15 -24
View File
@@ -6,30 +6,21 @@
include('../../vilesci/config.inc.php');
$conn = pg_pconnect(CONN_STRING))
if ($conn) {
$sql="select max(unr) as max_unr from tbl_lehrveranstaltung";
if(!($erg=pg_exec($conn, $sql_query))) {
$this->errormsg=pg_errormessage($conn);
return false;
}
$num_rows=pg_numrows($erg);
$result=array();
for($i=0;$i<$num_rows;$i++)
{
$row=pg_fetch_object($erg,$i);
} else {
echo 'no connection';
$conn = pg_pconnect(CONN_STRING);
if (!$conn)
die('no connection');
$sql="select max(unr) as max_unr from tbl_lehrveranstaltung";
if(!($erg=pg_exec($conn, $sql_query)))
{
$this->errormsg=pg_errormessage($conn);
return false;
}
$num_rows=pg_numrows($erg);
$result=array();
for($i=0;$i<$num_rows;$i++)
{
$row=pg_fetch_object($erg,$i);
}
?>
+6 -5
View File
@@ -109,23 +109,24 @@ function jump_week($datum, $wochen)
}
function jahreskalenderjump($link)
{
{
$crlf=crlf();
$datum=mktime();
$woche=kalenderwoche($datum);
$datum=montag($datum);
echo '<SMALL><CENTER><B>Jump to KW</B><BR><SMALL>';
echo ' <SMALL><CENTER><B>Jump to KW</B><BR><SMALL>'.$crlf;
for ($anz=1;$anz<26;$anz++)
{
$linknew=$link.'&datum='.$datum;
if ($woche==53)
$woche=1;
echo ' <A HREF="'.$linknew.'">'.$woche.'</A> ';
echo ' <A HREF="'.$linknew.'">'.$woche.'</A>'.$crlf;
if ($anz%5==0)
echo '<br>';
echo ' <br>'.$crlf;
$datum+=60*60*24*7;
$woche++;
}
echo '</SMALL></CENTER></SMALL>';
echo ' </SMALL></CENTER></SMALL>'.$crlf;
}
function loadVariables($conn, $user)
+2 -2
View File
@@ -1,8 +1,8 @@
<?php
// Auth: Benutzer des Webportals
define ('USER_UID','strtolower(trim($_SERVER["REMOTE_USER"]))');
//define ('USER_UID','strtolower(trim($_SERVER["REMOTE_USER"]))');
// fuer Testzwecke
//define ('USER_UID','pam');
define ('USER_UID','pam');
// Hintergrundfarben fuer Tabellen beim Zeitwunsch
global $cfgStdBgcolor;
+42 -49
View File
@@ -329,9 +329,10 @@ class wochenplan
function draw_header()
{
echo '<TABLE width="100%" bgcolor="#EEEEEE" border="0" cellspacing="0">';
echo '<TR>';
echo '<TD valign="bottom"><P valign="top">';
echo '<TABLE width="100%" bgcolor="#EEEEEE" border="0" cellspacing="0">'.$this->crlf;
echo ' <TR>'.$this->crlf;
echo ' <TD valign="bottom">'.$this->crlf;
echo ' <P valign="top">';
if ($this->type=='student' || $this->type=='lektor')
echo '<strong>Person: </strong>'.$this->pers_titelpre.' '.$this->pers_vorname.' '.$this->pers_nachname.' - '.$this->pers_uid.'<br>';
if ($this->type=='student' || $this->type=='verband')
@@ -346,44 +347,36 @@ class wochenplan
}
if ($this->type=='ort')
echo '<strong>Ort: </strong>'.$this->ort_kurzbz.' - '.$this->ort_bezeichnung.'<br>';
echo '</P><div valign="bottom" align="center">';
echo '</P>'.$this->crlf;
echo ' <div valign="bottom" align="center">'.$this->crlf;
//Kalender
$this->kal_link.='&pers_uid='.$this->pers_uid.'&ort_kurzbz='.$this->ort_kurzbz.'&stg_kz='.$this->stg_kz.'&sem='.$this->sem.'&ver='.$this->ver.'&grp='.$this->grp.'&gruppe_kurzbz='.$this->gruppe_kurzbz;
//global $kalender_begin_ws, $kalender_ende_ws, $kalender_begin_ss, $kalender_ende_ss;
$kal_link_ws=$this->kal_link.'&begin='.$this->studiensemester_now->start.'&ende='.$this->studiensemester_now->ende;
$kal_link_ss=$this->kal_link.'&begin='.$this->studiensemester_next->start.'&ende='.$this->studiensemester_next->ende;
echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>Kalender:&nbsp;&nbsp;&nbsp;&nbsp;</strong>';
echo '<A href="'.$kal_link_ws.'&format=html" target="_blank" title="HTML">'.$this->studiensemester_now->name.'</A>&nbsp;';
echo ' <A href="'.$kal_link_ws.'&format=html" target="_blank" title="HTML">
<IMG src="../../../skin/images/website.png" height="24" alt="HTML" border="0"></A>';
echo ' <A href="'.$kal_link_ws.'&format=csv" title="CSV">
<IMG src="../../../skin/images/csv.png" height="24" alt="CSV" border="0"></A>';
echo ' <A href="'.$kal_link_ws.'&format=csv&target=outlook" title="CSV-Outlook">
<IMG src="../../../skin/images/outlook.png" height="24" alt="CSV-Outlook" border="0"></A>';
echo ' <A href="'.$kal_link_ws.'&format=ical&version=1&target=ical" title="iCal Version 1.0">
<IMG src="../../../skin/images/vcal_v1.png" height="24" alt="vCal Version 1.0" border="0"></A>';
echo ' <A href="'.$kal_link_ws.'&format=ical&version=2&target=ical" title="iCal Version 2.0">
<IMG src="../../../skin/images/vcal_v2.png" height="24" alt="vCal Version 2.0" border="0"></A>';
echo '&nbsp;&nbsp;&nbsp;&nbsp;<A href="'.$kal_link_ss.'&format=html" target="_blank" title="HTML">'.$this->studiensemester_next->name.'</A>&nbsp;';
echo ' <A href="'.$kal_link_ss.'&format=html" target="_blank" title="HTML">
<IMG src="../../../skin/images/website.png" height="24" alt="HTML" border="0"></A>';
echo ' <A href="'.$kal_link_ss.'&format=csv" title="CSV">
<IMG src="../../../skin/images/csv.png" height="24" alt="CSV" border="0"></A>';
echo ' <A href="'.$kal_link_ss.'&format=csv&target=outlook" title="CSV-Outlook">
<IMG src="../../../skin/images/outlook.png" height="24" alt="CSV-Outlook" border="0"></A>';
echo ' <A href="'.$kal_link_ss.'&format=ical&version=1&target=ical" title="iCal Version 1.0">
<IMG src="../../../skin/images/vcal_v1.png" height="24" alt="iCal Version 1.0" border="0"></A>';
echo ' <A href="'.$kal_link_ss.'&format=ical&version=2&target=ical" title="iCal Version 2.0">
<IMG src="../../../skin/images/vcal_v2.png" height="24" alt="iCal Version 2.0" border="0"></A>';
echo '</div></TD>';
echo ' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>Kalender:&nbsp;&nbsp;&nbsp;&nbsp;</strong>'.$this->crlf;
echo ' <A href="'.$kal_link_ws.'&format=html" target="_blank" title="HTML">'.$this->studiensemester_now->name.'</A>&nbsp;'.$this->crlf;
echo ' <A href="'.$kal_link_ws.'&format=html" target="_blank" title="HTML"><IMG src="../../../skin/images/website.png" height="24" alt="HTML" border="0"></A>'.$this->crlf;
echo ' <A href="'.$kal_link_ws.'&format=csv" title="CSV"><IMG src="../../../skin/images/csv.png" height="24" alt="CSV" border="0"></A>'.$this->crlf;
echo ' <A href="'.$kal_link_ws.'&format=csv&target=outlook" title="CSV-Outlook"><IMG src="../../../skin/images/outlook.png" height="24" alt="CSV-Outlook" border="0"></A>'.$this->crlf;
echo ' <A href="'.$kal_link_ws.'&format=ical&version=1&target=ical" title="iCal Version 1.0"><IMG src="../../../skin/images/vcal_v1.png" height="24" alt="vCal Version 1.0" border="0"></A>'.$this->crlf;
echo ' <A href="'.$kal_link_ws.'&format=ical&version=2&target=ical" title="iCal Version 2.0"><IMG src="../../../skin/images/vcal_v2.png" height="24" alt="vCal Version 2.0" border="0"></A>'.$this->crlf;
echo ' &nbsp;&nbsp;&nbsp;&nbsp;<A href="'.$kal_link_ss.'&format=html" target="_blank" title="HTML">'.$this->studiensemester_next->name.'</A>&nbsp;'.$this->crlf;
echo ' <A href="'.$kal_link_ss.'&format=html" target="_blank" title="HTML"><IMG src="../../../skin/images/website.png" height="24" alt="HTML" border="0"></A>'.$this->crlf;
echo ' <A href="'.$kal_link_ss.'&format=csv" title="CSV"><IMG src="../../../skin/images/csv.png" height="24" alt="CSV" border="0"></A>'.$this->crlf;
echo ' <A href="'.$kal_link_ss.'&format=csv&target=outlook" title="CSV-Outlook"><IMG src="../../../skin/images/outlook.png" height="24" alt="CSV-Outlook" border="0"></A>'.$this->crlf;
echo ' <A href="'.$kal_link_ss.'&format=ical&version=1&target=ical" title="iCal Version 1.0"><IMG src="../../../skin/images/vcal_v1.png" height="24" alt="iCal Version 1.0" border="0"></A>'.$this->crlf;
echo ' <A href="'.$kal_link_ss.'&format=ical&version=2&target=ical" title="iCal Version 2.0"><IMG src="../../../skin/images/vcal_v2.png" height="24" alt="iCal Version 2.0" border="0"></A>'.$this->crlf;
echo ' </div>'.$this->crlf;
echo ' </TD>'.$this->crlf;
// Kalenderjump
echo '<TD align="right" valign="top">';
echo ' <TD align="right" valign="top">'.$this->crlf;
jahreskalenderjump($this->link);
echo '</TD>';
echo '</TR>';
echo '</TABLE><HR>';
echo ' </TD>'.$this->crlf;
echo ' </TR>'.$this->crlf;
echo '</TABLE><HR>'.$this->crlf.$this->crlf;
// Jump Wochenweise
if ($this->type=='verband')
@@ -410,39 +403,39 @@ class wochenplan
$next_ort=pg_fetch_object($result_ort,$i);
// Ort Jump
echo '<FORM align="center" name="AuswahlOrt" action="stpl_week.php"><p align="center">';
echo '<FORM align="center" name="AuswahlOrt" action="stpl_week.php">'.$this->crlf;
echo ' <p align="center">'.$this->crlf;
//$datum=mktime($this->datum[hours], $this->datum[minutes], $this->datum[seconds], $this->datum[mon], $this->datum[mday], $this->datum[year]);
if (isset($prev_ort))
{
echo '<a href="stpl_week.php?type='.$this->type;
echo '&datum='.$this->datum.'&ort_kurzbz='.$prev_ort->ort_kurzbz;
echo '" alt="$prev_ort->kurzbz"><img src="../../../skin/images/left.gif" border="0"></a>';
echo ' <a href="stpl_week.php?type='.$this->type.'&datum='.$this->datum.'&ort_kurzbz='.$prev_ort->ort_kurzbz.'">'.$this->crlf;
echo ' <img src="../../../skin/images/left.gif" border="0" title="'.$prev_ort->ort_kurzbz.'" />'.$this->crlf;
echo ' </a>'.$this->crlf;
}
echo "<SELECT name=\"select\" onChange=\"MM_jumpMenu('self',this,0)\" class=\"xxxs_black\">";
echo " <SELECT name=\"select\" onChange=\"MM_jumpMenu('self',this,0)\" class=\"xxxs_black\">".$this->crlf;
for ($i=0;$i<$num_rows_ort;$i++)
{
$row=pg_fetch_object ($result_ort, $i);
echo '<OPTION value="stpl_week.php?type=ort&ort_kurzbz='.$row->ort_kurzbz.'&datum='.$this->datum.'"';
echo ' <OPTION value="stpl_week.php?type=ort&ort_kurzbz='.$row->ort_kurzbz.'&datum='.$this->datum.'"';
if ($row->ort_kurzbz==$this->ort_kurzbz)
echo ' selected ';
echo ">$row->ort_kurzbz</option>";
echo ">$row->ort_kurzbz</option>".$this->crlf;
}
echo '</SELECT>';
echo ' </SELECT>'.$this->crlf;
if (isset($next_ort))
{
echo '<a href="stpl_week.php?type='.$this->type;
echo '&datum='.$this->datum.'&ort_kurzbz='.$next_ort->ort_kurzbz;
echo '" alt="$next_ort->kurzbz"><img src="../../../skin/images/right.gif" border="0"></a>';
echo ' <a href="stpl_week.php?type='.$this->type.'&datum='.$this->datum.'&ort_kurzbz='.$next_ort->ort_kurzbz.'">'.$this->crlf;
echo ' <img src="../../../skin/images/right.gif" border="0" title="'.$next_ort->ort_kurzbz.'">'.$this->crlf;
echo ' </a>'.$this->crlf;
}
echo '</p>';
echo ' </p>';
$link_parameter='&ort_kurzbz='.$this->ort_kurzbz;
}
echo '<p align="center">';
echo ' <p align="center">';
// 4 Wochen zurueck
echo '<a href="stpl_week.php?type='.$this->type;
echo $link_parameter;
echo '&datum='.$this->datum_prev4week;
echo '"><img src="../../../skin/images/moreleft.gif" border="0"></a>';
echo ' <a href="stpl_week.php?type='.$this->type.$link_parameter.'&datum='.$this->datum_prev4week.'">'.$this->crlf;
echo ' <img src="../../../skin/images/moreleft.gif" border="0" title="4 Wochen zurueck">'.$this->crlf;
echo ' </a>';
// 1 Woche zurueck
echo '<a href="stpl_week.php?type='.$this->type;
echo $link_parameter;
+12 -5
View File
@@ -9,14 +9,21 @@ body
font-size: small;
/*IE hack end*/
}
#menujfd
iframe
{
position:absolute;
margin:0px;
border-width:0px;
border-style:none;
padding:0px;
}
#menue
{
position:relative;
top:0px;
left:100px;
left:0px;
width:300px;
height:100%;
bottom:0px;
margin:0;
padding:0;
border-width:0;
+1 -1
View File
@@ -13,7 +13,7 @@
// this looks better under WinX
if (eregi("Win",$os)) $crlf="\r\n";
}
include('../../../include/config.inc.php');
include('../../config.inc.php');
include('../../../include/functions.inc.php');
if (!$conn = @pg_pconnect($conn_string))
die("Es konnte keine Verbindung zum Server aufgebaut werden.");
@@ -1,5 +1,5 @@
<?php
include('../../../include/config.inc.php');
include('../../config.inc.php');
include('wochendatum.inc.php');
if (!($conn=pg_connect(CONN_STRING)))
die ("No connection to Database!");
@@ -1,5 +1,5 @@
<?php
include('../../../include/config.inc.php');
include('../../config.inc.php');
include('wochendatum.inc.php');
if (!($conn=pg_connect(CONN_STRING)))
die ("No connection to Database!");
+1 -1
View File
@@ -12,7 +12,7 @@
//$sql_query="UPDATE ort SET picture=lo_import('$file') WHERE id=$id";
if(!($erg=pg_exec($conn, $sql_query)))
die(pg_errormessage($conn));
echo $erg.<BR>;
echo $erg.'<BR>';
//echo $sql_query;
}