mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
This commit is contained in:
+6
-6
@@ -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>
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user