This commit is contained in:
Andreas Österreicher
2008-03-06 15:44:04 +00:00
parent cb0ac43d1d
commit 39a54d41f3
2 changed files with 25 additions and 7 deletions
+6 -6
View File
@@ -252,12 +252,6 @@ echo '<?xml-stylesheet href="datepicker/datepicker.css" type="text/css"?>';
label = "&menu-statistic-abschlusspruefung.label;"
command = "menu-statistic-abschlusspruefung:command"
accesskey = "&menu-statistic-abschlusspruefung.accesskey;"/>
<menuitem
id = "menu-statistic-bewerberstatistik"
key = "menu-statistic-bewerberstatistik:key"
label = "&menu-statistic-bewerberstatistik.label;"
command = "menu-statistic-bewerberstatistik:command"
accesskey = "&menu-statistic-bewerberstatistik.accesskey;"/>
<menu id="menu-statistic-subnotenspiegel" label="&menu-statistic-subnotenspiegel.label;" accesskey="&menu-statistic-subnotenspiegel.accesskey;">
<menupopup id="menu-statistic-subnotenspiegel-popup">
<menuitem
@@ -325,6 +319,12 @@ echo '<?xml-stylesheet href="datepicker/datepicker.css" type="text/css"?>';
';
}
?>
<menuitem
id = "menu-statistic-bewerberstatistik"
key = "menu-statistic-bewerberstatistik:key"
label = "&menu-statistic-bewerberstatistik.label;"
command = "menu-statistic-bewerberstatistik:command"
accesskey = "&menu-statistic-bewerberstatistik.accesskey;"/>
</menupopup>
</menu>
</menupopup>
+19 -1
View File
@@ -22,6 +22,8 @@
require_once('../../vilesci/config.inc.php');
require_once('../../include/studiensemester.class.php');
require_once('../../include/benutzerberechtigung.class.php');
require_once('../../include/functions.inc.php');
if(!$conn = pg_pconnect(CONN_STRING))
die('Fehler beim Connecten zur DB');
@@ -30,6 +32,9 @@ if(isset($_GET['stsem']))
$stsem = $_GET['stsem'];
else
$stsem = '';
$rechte = new benutzerberechtigung($conn);
$rechte->getBerechtigungen(get_uid());
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
@@ -58,6 +63,19 @@ if($stsem=='')
}
else
{
$stgs = $rechte->getStgKz();
if($stgs[0]=='')
$stgwhere='';
else
{
$stgwhere=' AND studiengang_kz in(';
foreach ($stgs as $stg)
$stgwhere.="'$stg',";
$stgwhere = substr($stgwhere,0, strlen($stgwhere)-1);
$stgwhere.=' )';
}
// SELECT count(*) FROM public.tbl_prestudent WHERE studiengang_kz=stg.studiengang_kz) AS prestd,
$qry = "SELECT studiengang_kz, kurzbz, typ, kurzbzlang, bezeichnung,
@@ -88,7 +106,7 @@ else
FROM
public.tbl_studiengang stg
WHERE
studiengang_kz>0 AND studiengang_kz<10000 AND aktiv
studiengang_kz>0 AND studiengang_kz<10000 AND aktiv $stgwhere
ORDER BY kurzbzlang; ";
if($result = pg_query($conn, $qry))