mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Merge branch 'zeitfehler'
This commit is contained in:
@@ -28,6 +28,7 @@ require_once('../../../include/benutzer.class.php');
|
||||
require_once('../../../include/mitarbeiter.class.php');
|
||||
require_once('../../../include/resturlaub.class.php');
|
||||
require_once('../../../include/benutzerberechtigung.class.php');
|
||||
require_once('../../../include/addon.class.php');
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Fehler beim Oeffnen der Datenbankverbindung');
|
||||
@@ -61,6 +62,29 @@ echo '<html>
|
||||
<title>Urlaubsfreigabe</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<script src="../../../include/js/jquery1.9.min.js" type="text/javascript"></script>';
|
||||
|
||||
// ADDONS laden
|
||||
$addon_obj = new addon();
|
||||
$addon_obj->loadAddons();
|
||||
foreach($addon_obj->result as $addon)
|
||||
{
|
||||
echo '<script type="application/x-javascript" src="../../../addons/'.$addon->kurzbz.'/cis/init.js.php" ></script>';
|
||||
}
|
||||
|
||||
// Wenn Seite fertig geladen ist Addons aufrufen
|
||||
echo '
|
||||
<script>
|
||||
$( document ).ready(function()
|
||||
{
|
||||
for(i in addon)
|
||||
{
|
||||
addon[i].init("cis/private/profile/urlaubsfreigabe.php", {uid:\''.$uid.'\'});
|
||||
}
|
||||
});
|
||||
</script>';
|
||||
|
||||
echo '
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -258,6 +282,7 @@ if($uid!='')
|
||||
if($gebuchterurlaub=='')
|
||||
$gebuchterurlaub=0;
|
||||
|
||||
echo '<div id="resturlaub">';
|
||||
echo "<table ><tr><td nowrap><h3>Urlaub im Geschäftsjahr $geschaeftsjahr</h3></td></tr>";
|
||||
echo "<tr><td nowrap>Anspruch</td><td align='right' nowrap>$anspruch Tage</td><td class='grey' nowrap>  ( jährlich )</td></tr>";
|
||||
echo "<tr><td nowrap>+ Resturlaub</td><td align='right' nowrap>";
|
||||
@@ -276,6 +301,7 @@ if($uid!='')
|
||||
echo "<tr><td nowrap>- aktuell gebuchter Urlaub </td><td align='right' nowrap>$gebuchterurlaub Tage</td><td class='grey' nowrap> ( $datum_beginn - $datum_ende )</td></tr>";
|
||||
echo "<tr><td style='border-top: 1px solid black;' nowrap>aktueller Stand</td><td style='border-top: 1px solid black;' align='right' nowrap>".($anspruch+$resturlaubstage-$gebuchterurlaub)." Tage</td><td class='grey' nowrap> ( Stichtag: $datum_ende )</td></tr>";
|
||||
echo "</table>";
|
||||
echo '</div>';
|
||||
|
||||
echo '</td></tr></table>';
|
||||
}
|
||||
@@ -307,4 +333,4 @@ echo '</tr></table>
|
||||
|
||||
</body>
|
||||
</html>';
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -442,6 +442,28 @@ $datum_obj = new datum();
|
||||
<link rel="stylesheet" href="../../../skin/jquery-ui-1.9.2.custom.min.css" type="text/css">
|
||||
<script src="../../../include/js/tablesort/table.js" type="text/javascript"></script>
|
||||
<script src="../../../include/js/jquery1.9.min.js" type="text/javascript"></script>
|
||||
|
||||
<?php
|
||||
// ADDONS laden
|
||||
$addon_obj = new addon();
|
||||
$addon_obj->loadAddons();
|
||||
foreach($addon_obj->result as $addon)
|
||||
{
|
||||
echo '<script type="application/x-javascript" src="../../../addons/'.$addon->kurzbz.'/cis/init.js.php" ></script>';
|
||||
}
|
||||
|
||||
// Wenn Seite fertig geladen ist Addons aufrufen
|
||||
echo '
|
||||
<script>
|
||||
$( document ).ready(function()
|
||||
{
|
||||
for(i in addon)
|
||||
{
|
||||
addon[i].init("cis/private/profile/urlaubstool.php", {uid:\''.$uid.'\'});
|
||||
}
|
||||
});
|
||||
</script>';
|
||||
?>
|
||||
<script language="Javascript">
|
||||
function conf_del()
|
||||
{
|
||||
@@ -547,6 +569,7 @@ $datum_obj = new datum();
|
||||
if($gebuchterurlaub=='')
|
||||
$gebuchterurlaub=0;
|
||||
|
||||
$content_resturlaub.='<div id="resturlaub">';
|
||||
$content_resturlaub.="<table><tr><td nowrap><h3>".$p->t('urlaubstool/urlaubImGeschaeftsjahr')." $geschaeftsjahr</h3></td><td></td></tr>";
|
||||
$content_resturlaub.="<tr><td nowrap>".$p->t('urlaubstool/anspruch')."</td><td align='right' nowrap>$anspruch ".$p->t('urlaubstool/tage')."</td><td class='grey' nowrap>  ( ".$p->t('urlaubstool/jaehrlich')." )</td></tr>";
|
||||
$content_resturlaub.="<tr><td nowrap>+ ".$p->t('urlaubstool/resturlaub')."</td><td align='right' nowrap>$resturlaubstage ".$p->t('urlaubstool/tage')."</td><td class='grey' nowrap> ( ".$p->t('urlaubstool/stichtag').": $datum_beginn )</td>";
|
||||
@@ -554,6 +577,7 @@ $content_resturlaub.="<tr><td nowrap>- ".$p->t('urlaubstool/aktuellGebuchterUrla
|
||||
$content_resturlaub .="</tr>";
|
||||
$content_resturlaub.="<tr><td style='border-top: 1px solid black;' nowrap>".$p->t('urlaubstool/aktuellerStand')."</td><td style='border-top: 1px solid black;' align='right' nowrap>".($anspruch+$resturlaubstage-$gebuchterurlaub)." ".$p->t('urlaubstool/tage')."</td><td class='grey' nowrap> ( ".$p->t('urlaubstool/stichtag').": $datum_ende )</td></tr>";
|
||||
$content_resturlaub.="</table>";
|
||||
$content_resturlaub.='</div>';
|
||||
|
||||
//Formular Auswahl Monat und Jahr für Kalender
|
||||
echo '<table width="95%" align="left">';
|
||||
@@ -776,4 +800,4 @@ echo "<table width='100%'><tr><td><br>".$vgmail;
|
||||
echo "<br>".$vtmail."</td></tr></table>";
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -78,8 +78,30 @@ $num_rows_stunde=$db->db_num_rows($result_stunde);
|
||||
<title><?php echo $p->t('zeitsperre/zeitsperre');?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<link href="../../../skin/flexcrollstyles.css" rel="stylesheet" type="text/css" />
|
||||
<script src="../../../include/js/flexcroll.js" type="text/javascript" ></script>
|
||||
<script src="../../../include/js/jquery1.9.min.js" type="text/javascript"></script>
|
||||
|
||||
<?php
|
||||
// ADDONS laden
|
||||
$addon_obj = new addon();
|
||||
$addon_obj->loadAddons();
|
||||
foreach($addon_obj->result as $addon)
|
||||
{
|
||||
echo '<script type="application/x-javascript" src="../../../addons/'.$addon->kurzbz.'/cis/init.js.php" ></script>';
|
||||
}
|
||||
|
||||
// Wenn Seite fertig geladen ist Addons aufrufen
|
||||
echo '
|
||||
<script>
|
||||
$( document ).ready(function()
|
||||
{
|
||||
for(i in addon)
|
||||
{
|
||||
addon[i].init("cis/private/profile/urlaubstool.php", {uid:\''.$uid.'\'});
|
||||
}
|
||||
});
|
||||
</script>';
|
||||
?>
|
||||
|
||||
<script language="Javascript">
|
||||
function conf_del()
|
||||
{
|
||||
@@ -646,7 +668,7 @@ echo '<tr>';
|
||||
echo "<td class='tdvertical'>";
|
||||
echo $content_form;
|
||||
echo '</td>';
|
||||
echo "<td class='tdvertical'>$content_resturlaub</td>";
|
||||
echo "<td class='tdvertical'><div id='resturlaub'>$content_resturlaub</div></td>";
|
||||
echo '</tr><tr><td colspan=2>';
|
||||
echo $content_table;
|
||||
echo '</td>';
|
||||
|
||||
@@ -60,7 +60,7 @@ $filter = (isset($_GET['filter'])?$_GET['filter']:'foo');
|
||||
$alle = (isset($_POST['alle'])?(isset($_POST['normal'])?false:true):false);
|
||||
$angezeigte_tage = '50';
|
||||
|
||||
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
echo '<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>'.$p->t("zeitaufzeichnung/zeitaufzeichnung").'</title>
|
||||
@@ -70,8 +70,31 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www
|
||||
<link href="../../../skin/jquery.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../../skin/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css">
|
||||
<script src="../../../include/js/tablesort/table.js" type="text/javascript"></script>
|
||||
<script src="../../../include/js/jquery1.9.min.js" type="text/javascript" ></script>
|
||||
<script src="../../../include/js/jquery1.9.min.js" type="text/javascript" ></script>
|
||||
';
|
||||
|
||||
// ADDONS laden
|
||||
$addon_obj = new addon();
|
||||
$addon_obj->loadAddons();
|
||||
foreach($addon_obj->result as $addon)
|
||||
{
|
||||
echo '<script type="application/x-javascript" src="../../../addons/'.$addon->kurzbz.'/cis/init.js.php" ></script>';
|
||||
}
|
||||
|
||||
// Wenn Seite fertig geladen ist Addons aufrufen
|
||||
echo '
|
||||
<script>
|
||||
$( document ).ready(function()
|
||||
{
|
||||
for(i in addon)
|
||||
{
|
||||
addon[i].init("cis/private/tools/zeitaufzeichnung.php", {uid:\''.$user.'\'});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
';
|
||||
|
||||
echo '
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
@@ -407,7 +430,10 @@ if($projekt->getProjekteMitarbeiter($user))
|
||||
|
||||
//Formular
|
||||
echo '<br><form action="'.$_SERVER['PHP_SELF'].'?zeitaufzeichnung_id='.$zeitaufzeichnung_id.'" method="POST" onsubmit="return checkdatum()">';
|
||||
|
||||
|
||||
echo '<table>
|
||||
<tr>
|
||||
<td>';
|
||||
echo '<table>';
|
||||
//Projekt
|
||||
echo '<tr>
|
||||
@@ -464,7 +490,7 @@ if($projekt->getProjekteMitarbeiter($user))
|
||||
$oe->getFrequent($user,'180','3',true);
|
||||
$trennlinie = true;
|
||||
|
||||
foreach ($oe->result as $row)
|
||||
foreach ($oe->result as $row)
|
||||
{
|
||||
if($oe_kurzbz_2 == $row->oe_kurzbz)
|
||||
$selected = 'selected';
|
||||
@@ -581,9 +607,13 @@ if($projekt->getProjekteMitarbeiter($user))
|
||||
echo '<input type="submit" value="'.$p->t("global/aendern").'" name="edit"> ';
|
||||
echo '<input type="submit" value="'.$p->t("zeitaufzeichnung/alsNeuenEintragSpeichern").'" name="save"></td></tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
echo '</table>';
|
||||
echo '</td><td valign="top"><span id="zeitsaldo"></span></td></tr>
|
||||
</table>';
|
||||
|
||||
echo '<hr>';
|
||||
echo '<h3>'.($alle===true?$p->t('zeitaufzeichnung/alleEintraege'):$p->t('zeitaufzeichnung/xTageAnsicht', array($angezeigte_tage))).'</h3> <input type="submit" value="'.($alle===true?$p->t('zeitaufzeichnung/xTageAnsicht', array($angezeigte_tage)):$p->t('zeitaufzeichnung/alleAnzeigen')).'" name="'.($alle===true?'normal':'alle').'">';
|
||||
echo '<h3>'.($alle===true?$p->t('zeitaufzeichnung/alleEintraege'):$p->t('zeitaufzeichnung/xTageAnsicht', array($angezeigte_tage))).'</h3>';
|
||||
echo '<input type="submit" value="'.($alle===true?$p->t('zeitaufzeichnung/xTageAnsicht', array($angezeigte_tage)):$p->t('zeitaufzeichnung/alleAnzeigen')).'" name="'.($alle===true?'normal':'alle').'">';
|
||||
echo '</form>';
|
||||
|
||||
$za = new zeitaufzeichnung();
|
||||
@@ -659,7 +689,12 @@ if($projekt->getProjekteMitarbeiter($user))
|
||||
$tagessaldo = $tagessaldo-$pausesumme;
|
||||
$tagessaldo = date('H:i', ($tagessaldo));
|
||||
echo '<tr>
|
||||
<td '.$style.' colspan="7"></td>
|
||||
<td '.$style.' colspan="7">';
|
||||
|
||||
// Zusaetzlicher span fuer Addon Informationen
|
||||
echo '<span id="tag_'.$datum->formatDatum($tagesbeginn,'d_m_Y').'"></span>';
|
||||
|
||||
echo '</td>
|
||||
<td align="right" colspan="2" '.$style.'>
|
||||
<b>'.$p->t("zeitaufzeichnung/arbeitszeit").': '.$datum->formatDatum($tagesbeginn, $format='H:i').'-'.$datum->formatDatum($tagesende, $format='H:i').' '.$p->t("eventkalender/uhr").'</b><br>
|
||||
'.$p->t("zeitaufzeichnung/pause").' '.($pflichtpause==false?$p->t("zeitaufzeichnung/inklusivePflichtpause"):'').':
|
||||
@@ -796,6 +831,8 @@ else
|
||||
echo $p->t("zeitaufzeichnung/fehlerBeimErmittelnDerProjekte");
|
||||
}
|
||||
|
||||
echo '</body>
|
||||
echo '
|
||||
<span id="globalmessages"></span>
|
||||
</body>
|
||||
</html>';
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user