mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
13680 Adminansicht korrigiert
This commit is contained in:
@@ -276,7 +276,9 @@ echo '
|
||||
$("#projekt").change(
|
||||
function()
|
||||
{
|
||||
getProjektphasen($(this).val());
|
||||
//var uidpass = "ma0068";
|
||||
var uid = $("#uidpass").val();
|
||||
getProjektphasen($(this).val(),uid);
|
||||
}
|
||||
)
|
||||
|
||||
@@ -519,13 +521,13 @@ echo '
|
||||
return true;
|
||||
}
|
||||
|
||||
// function resetProjekt()
|
||||
// {
|
||||
// $("#projekt").val("");
|
||||
// $("#projektphaseformgroup").hide();
|
||||
// }
|
||||
function resetProjekt()
|
||||
{
|
||||
$("#projekt").val("");
|
||||
$("#projektphaseformgroup").hide();
|
||||
}
|
||||
|
||||
function getProjektphasen(projekt_kurzbz)
|
||||
function getProjektphasen(projekt_kurzbz, uid)
|
||||
{
|
||||
$.ajax
|
||||
(
|
||||
@@ -535,7 +537,9 @@ echo '
|
||||
dataType: "json",
|
||||
data:
|
||||
{
|
||||
"uid":uid,
|
||||
"projekt_kurzbz":projekt_kurzbz
|
||||
|
||||
},
|
||||
success: function(json)
|
||||
{
|
||||
@@ -1351,6 +1355,7 @@ if($projekt->getProjekteMitarbeiter($user, true))
|
||||
echo '</SELECT><!--<input type="button" value="'.$p->t("zeitaufzeichnung/uebersicht").'" onclick="loaduebersicht();">-->';
|
||||
|
||||
//Projektphase
|
||||
|
||||
$showprojphases = isset($projektphasen) && is_array($projektphasen) && count($projektphasen) > 0 && $projektfound;
|
||||
$hiddentext = $showprojphases ? "" : " style='display:none'";
|
||||
|
||||
@@ -1372,6 +1377,8 @@ if($projekt->getProjekteMitarbeiter($user, true))
|
||||
echo '<option value="'.$db->convert_html_chars($projektphase->projektphase_id).'" '.$selected.'>'.$db->convert_html_chars($projektphase->bezeichnung).'</option>';
|
||||
}
|
||||
echo '</SELECT></span>';
|
||||
|
||||
|
||||
}
|
||||
echo '</td></tr>';
|
||||
}
|
||||
|
||||
@@ -8,7 +8,29 @@ require_once('../../../include/datum.class.php');
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
$user = get_uid();
|
||||
|
||||
|
||||
//$user = get_uid();
|
||||
|
||||
$user = $_GET['uid'];
|
||||
|
||||
// //Wenn User Administrator ist und UID uebergeben wurde, dann die Phasen
|
||||
// //des uebergebenen Users anzeigen
|
||||
// if (isset($_GET['uid']))
|
||||
// {
|
||||
// $rechte = new benutzerberechtigung();
|
||||
// $rechte->getBerechtigungen($user);
|
||||
//
|
||||
// if ($rechte->isBerechtigt('admin'))
|
||||
// {
|
||||
// $user = $_GET['uid'];
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// die($p->t('global/FuerDieseAktionBenoetigenSieAdministrationsrechte'));
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
$datum_obj = new datum();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user