diff --git a/cis/private/pers_in_grp.php b/cis/private/pers_in_grp.php index b44b8db0d..8c3fea036 100644 --- a/cis/private/pers_in_grp.php +++ b/cis/private/pers_in_grp.php @@ -50,35 +50,142 @@ echo ' - - - - - - - - + '; + + include('../../include/meta/jquery.php'); + include('../../include/meta/jquery-tablesorter.php'); + +?> + - ' . $p->t('mailverteiler/personenImVerteiler') . ' + +' . $p->t('mailverteiler/personenImVerteiler') . ' '; $qry = "SELECT - uid, vorname, nachname + uid, vorname, nachname, geschlecht, fixangestellt FROM campus.vw_benutzer JOIN tbl_benutzergruppe USING (uid) + LEFT JOIN + public.tbl_mitarbeiter ON (uid = mitarbeiter_uid) WHERE gruppe_kurzbz=".$db->db_add_param($gruppe_kurzbz); @@ -96,16 +203,29 @@ $qry = "SELECT $qry .= " ORDER BY nachname, vorname"; + +echo '

'.$p->t('mailverteiler/anleitungstextMailPersInGroup').'

'; +echo '' . $p->t('mailverteiler/mailAnAlleSenden') . ''; + if ($result = $db->db_query($qry)) { - echo '

' . $row = $db->db_num_rows($result) . ' ' . $p->t('mailverteiler/personen'); + echo '

' . $row = $db->db_num_rows($result) . ' ' . $p->t('mailverteiler/personen') . '

'; } -echo ' +echo ' +
+ + + '; @@ -113,11 +233,14 @@ if ($result = $db->db_query($qry)) { while ($row = $db->db_fetch_object($result)) { - echo ""; - echo " "; - echo " "; - echo " "; - echo ""; + echo ''; + echo ' '; + echo ' '; + echo ' '; + echo ' '; + echo ' '; + echo ' '; + echo ''; } } echo ' diff --git a/cis/private/stud_in_grp.php b/cis/private/stud_in_grp.php index 8854ebc11..95caee3d5 100644 --- a/cis/private/stud_in_grp.php +++ b/cis/private/stud_in_grp.php @@ -32,26 +32,124 @@ echo ' - - - - - - - - - + +'.$p->t('mailverteiler/personenImVerteiler').''; @@ -64,7 +162,7 @@ if (!isset($_GET['kz'])) if (isset($_GET['all'])) { $qry = "SELECT - vorname, nachname, uid + vorname, nachname, uid, geschlecht FROM campus.vw_student WHERE @@ -95,16 +193,25 @@ else $qry.= ' ORDER BY nachname, vorname'; } +echo '

'.$p->t('mailverteiler/anleitungstextMailPersInGroup').'

'; +echo '' . $p->t('mailverteiler/mailAnAlleSenden') . ''; if ($result = $db->db_query($qry)) { - echo '

'.$row=$db->db_num_rows($result).' '.$p->t('mailverteiler/personen'); + echo '

'.$row=$db->db_num_rows($result).' '.$p->t('mailverteiler/personen').'

'; } echo '
+ +    + + + ' . $p->t('global/nachname') . ' ' . $p->t('global/vorname') . '' . $p->t('global/geschlecht') . '' . $p->t('global/fixangestellt') . ' ' . $p->t('global/mail') . '
$row->nachname$row->vorname$row->uid@" . DOMAIN . "
'.$row->nachname.''.$row->vorname.''.strtoupper($row->geschlecht).''.($row->fixangestellt != '' ? ($row->fixangestellt == 't' ? 'Ja' : 'Nein') :'-').''.$row->uid .'@' . DOMAIN . '
+ + '; @@ -114,9 +221,11 @@ if ($result = $db->db_query($qry)) while ($row = $db->db_fetch_object($result)) { echo ""; + echo ' '; echo " "; echo " "; - echo " "; + echo ' '; + echo ' '; echo ""; } }
+ +    + + + '.$p->t('global/nachname').' '.$p->t('global/vorname').'' . $p->t('global/geschlecht') . ' '.$p->t('global/mail').'
$row->nachname$row->vorname$row->uid@".DOMAIN."'.strtoupper($row->geschlecht).''.$row->uid .'@' . DOMAIN . '