diff --git a/admin/main.html b/admin/main.html
new file mode 100644
index 000000000..06608e72b
--- /dev/null
+++ b/admin/main.html
@@ -0,0 +1,22 @@
+
+
+ VileSci-Admin
+
+
+
+
+ VileSci Administration
+ Tools
+
+
+
+
+
+
diff --git a/content/stpl-details-overlay.xul.php b/content/stpl-details-overlay.xul.php
index e9161d222..7df8d08ce 100644
--- a/content/stpl-details-overlay.xul.php
+++ b/content/stpl-details-overlay.xul.php
@@ -18,143 +18,98 @@ echo "
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/content/stpl-week-overlay.js.php b/content/stpl-week-overlay.js.php
index e27ef3e66..bb68bf5a2 100644
--- a/content/stpl-week-overlay.js.php
+++ b/content/stpl-week-overlay.js.php
@@ -194,8 +194,9 @@ function onStplDetail(event)
var ort_kurzbz=event.target.getAttribute("ort_kurzbz");
var attributes="?type="+type+"&datum="+datum+"&stunde="+stunde+"&ort_kurzbz="+ort_kurzbz+"&pers_uid="+pers_uid+"&stg_kz="+stg_kz+"&sem="+sem+"&ver="+ver+"&grp="+grp+"&gruppe="+gruppe+"&ort_kurzbz="+ort_kurzbz;
+ //alert(attributes);
attributes+=idList;
- var url = "content/lehrstunde.rdf.php";
+ var url = "rdf/lehrstunde.rdf.php";
url+=attributes;
//alert(url);
var treeStplDetails=parent.document.getElementById('treeStplDetails');
diff --git a/content/stpl-week-overlay.xul.php b/content/stpl-week-overlay.xul.php
index 393214c59..b9f42be1a 100644
--- a/content/stpl-week-overlay.xul.php
+++ b/content/stpl-week-overlay.xul.php
@@ -88,7 +88,7 @@ $num_rows_stunde=pg_numrows($result_stunde);
-
+
diff --git a/rdf/lehrstunde.rdf.php b/rdf/lehrstunde.rdf.php
index e05c0a63b..ee1ab314a 100644
--- a/rdf/lehrstunde.rdf.php
+++ b/rdf/lehrstunde.rdf.php
@@ -33,7 +33,7 @@ function checkID($needle)
$id_list=array();
while(list($k,$v)=each($_GET))
if (strpos($k,'stundenplan_id')!==false)
- $id_list[]=$v;
+ $idList[]=$v;
//print_r($id_list);
@@ -41,40 +41,66 @@ if (!isset($REMOTE_USER))
$REMOTE_USER='pam';
$uid=$REMOTE_USER;
-if (isset($_GET[datum]))
- $datum=$_GET[datum];
-if (isset($_GET[datum_bis]))
- $datum_bis=$_GET[datum_bis];
-if (isset($_GET[stunde]))
- $stunde=$_GET[stunde];
-if (isset($_GET[type]))
- $type=$_GET[type];
-if (isset($_GET[stg_kz]))
- $stg_kz=$_GET[stg_kz];
-if (isset($_GET[sem]))
- $sem=$_GET[sem];
-if (isset($_GET[ver]))
- $ver=$_GET[ver];
-if (isset($_GET[grp]))
- $grp=$_GET[grp];
-if (isset($_GET[einheit]))
- $einheit=$_GET[einheit];
-if (isset($_GET[pers_uid]))
- $pers_uid=$_GET[pers_uid];
-if (isset($_GET[ort_kurzbz]))
- $ort_kurzbz=$_GET[ort_kurzbz];
+if (isset($_GET['datum']))
+ $datum=$_GET['datum'];
+else
+ $datum=date('Y-m-d',(mktime()));
+if (isset($_GET['datum_bis']))
+ $datum_bis=$_GET['datum_bis'];
+else
+ $datum_bis=null;
+if (isset($_GET['stunde']))
+ $stunde=$_GET['stunde'];
+else
+ $stunde=null;
+if (isset($_GET['type']))
+ $type=$_GET['type'];
+else
+ $type='lektor';
+if (isset($_GET['stg_kz']))
+ $stg_kz=$_GET['stg_kz'];
+else
+ $stg_kz=null;
+if (isset($_GET['sem']))
+ $sem=$_GET['sem'];
+else
+ $sem=null;
+if (isset($_GET['ver']))
+ $ver=$_GET['ver'];
+else
+ $ver=null;
+if (isset($_GET['grp']))
+ $grp=$_GET['grp'];
+else
+ $grp=null;
+if (isset($_GET['einheit']))
+ $einheit=$_GET['einheit'];
+else
+ $einheit=null;
+if (isset($_GET['pers_uid']))
+ $pers_uid=$_GET['pers_uid'];
+else
+ $pers_uid=$uid;
+if (isset($_GET['ort_kurzbz']))
+ $ort_kurzbz=$_GET['ort_kurzbz'];
+else
+ $ort_kurzbz=null;
+if (isset($idList))
+ $type='idList';
+else
+ $idList=null;
$error_msg='';
-if (!$conn = @pg_pconnect(CONN_STRING))
+if (!$conn = pg_pconnect(CONN_STRING))
$error_msg.='Es konnte keine Verbindung zum Server aufgebaut werden!';
$error_msg.=loadVariables($conn,$REMOTE_USER);
-if (!isset($datum_bis))
- $datum_bis=date('Y-m-d',(mktime(0,0,1,substr($datum,5,2),substr($datum,8),substr($datum,0,4))+86400));
+//if (!isset($datum_bis))
+// $datum_bis=date('Y-m-d',(mktime(0,0,1,substr($datum,5,2),substr($datum,8),substr($datum,0,4))+86400));
$lehrstunden=new lehrstunde($conn);
-$anz=$lehrstunden->load_lehrstunden($type,$datum,$datum_bis,$pers_uid,$ort_kurzbz,$stg_kz,$sem,$ver,$grp,$einheit,$db_stpl_table);
+$anz=$lehrstunden->load_lehrstunden($type,$datum,$datum_bis,$pers_uid,$ort_kurzbz,$stg_kz,$sem,$ver,$grp,$einheit,$db_stpl_table,$idList);
if ($anz<0)
{
$errormsg=$lehrstunden->errormsg;
@@ -82,7 +108,7 @@ if ($anz<0)
exit();
}
-$rdf_url='http://www.technikum-wien.at/tempus/lehrstunde';
+$rdf_url='http://www.technikum-wien.at/lehrstunde';
?>
lehrstunden))
lehrfach_bez ?>
lehrform ?>
lektor_kurzbz ?>
- sem ?>
- ver ?>
- grp ?>
- einheit_kurzbz ?>
+ sem ?>
+ ver ?>
+ grp ?>
+ gruppe_kurzbz ?>
lehrform ?>
studiengang ?>
farbe ?>