mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
- Anpassungen für Mehrsprachige Tage
This commit is contained in:
@@ -118,9 +118,9 @@ echo '"Datum"'.$trenn;
|
|||||||
for ($ts=$ts_beginn;$ts<$ts_ende; $ts+=$datum_obj->ts_day)
|
for ($ts=$ts_beginn;$ts<$ts_ende; $ts+=$datum_obj->ts_day)
|
||||||
{
|
{
|
||||||
$tag=date('d',$ts);
|
$tag=date('d',$ts);
|
||||||
$wt=date('w',$ts);
|
$wt=date('N',$ts);
|
||||||
$monat=date('M',$ts);
|
$monat=date('M',$ts);
|
||||||
echo '"'.$tagbez[$wt].' '.$tag.'.'.$monat.'"'.$trenn;
|
echo '"'.$tagbez[1][$wt].' '.$tag.'.'.$monat.'"'.$trenn;
|
||||||
}
|
}
|
||||||
$zs=new zeitsperre();
|
$zs=new zeitsperre();
|
||||||
foreach ($mitarbeiter as $ma)
|
foreach ($mitarbeiter as $ma)
|
||||||
@@ -131,7 +131,7 @@ foreach ($mitarbeiter as $ma)
|
|||||||
{
|
{
|
||||||
$tag=date('d',$ts);
|
$tag=date('d',$ts);
|
||||||
$monat=date('M',$ts);
|
$monat=date('M',$ts);
|
||||||
$wt=date('w',$ts);
|
$wt=date('N',$ts);
|
||||||
$grund=$zs->getTyp($ts);
|
$grund=$zs->getTyp($ts);
|
||||||
$erbk=$zs->getErreichbarkeit($ts);
|
$erbk=$zs->getErreichbarkeit($ts);
|
||||||
echo '"'.$grund.' - '.$erbk.'"'.$trenn;
|
echo '"'.$grund.' - '.$erbk.'"'.$trenn;
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ if(!$person->load($uid))
|
|||||||
|
|
||||||
for ($j=1; $j<7; $j++)
|
for ($j=1; $j<7; $j++)
|
||||||
{
|
{
|
||||||
echo '<TR><TD>'.$tagbez[$j].'</TD>';
|
echo '<TR><TD>'.$tagbez[1][$j].'</TD>';
|
||||||
for ($i=0;$i<$num_rows_stunde;$i++)
|
for ($i=0;$i<$num_rows_stunde;$i++)
|
||||||
{
|
{
|
||||||
if (isset($wunsch[$j][$i+1]))
|
if (isset($wunsch[$j][$i+1]))
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ Anzahl der Lektoren: <?PHP echo $anz_lektoren; ?>
|
|||||||
<?php
|
<?php
|
||||||
for ($j=1; $j<7; $j++)
|
for ($j=1; $j<7; $j++)
|
||||||
{
|
{
|
||||||
echo '<TR><TD>'.$tagbez[$j].'</TD>';
|
echo '<TR><TD>'.$tagbez[1][$j].'</TD>';
|
||||||
for ($i=0;$i<$num_rows_stunde;$i++)
|
for ($i=0;$i<$num_rows_stunde;$i++)
|
||||||
{
|
{
|
||||||
$pos=$wunsch[$j][$i+1][4]+$wunsch[$j][$i+1][5];
|
$pos=$wunsch[$j][$i+1][4]+$wunsch[$j][$i+1][5];
|
||||||
@@ -134,7 +134,7 @@ Details
|
|||||||
<?php
|
<?php
|
||||||
for ($j=1; $j<7; $j++)
|
for ($j=1; $j<7; $j++)
|
||||||
{
|
{
|
||||||
echo '<TR><TD>'.$tagbez[$j].'</TD>';
|
echo '<TR><TD>'.$tagbez[1][$j].'</TD>';
|
||||||
for ($i=0;$i<$num_rows_stunde;$i++)
|
for ($i=0;$i<$num_rows_stunde;$i++)
|
||||||
{
|
{
|
||||||
echo '<TD>';
|
echo '<TD>';
|
||||||
|
|||||||
@@ -20,36 +20,34 @@
|
|||||||
* Rudolf Hangl < [email protected] >
|
* Rudolf Hangl < [email protected] >
|
||||||
* Gerald Simane-Sequens < [email protected] >
|
* Gerald Simane-Sequens < [email protected] >
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* kopiert von stdplan/profile/zeitwuensche.php mit dem Unterschied,
|
||||||
|
* dass der User hier parametrisiert ist + Speichern läuft hier über
|
||||||
|
* POST statt GET - ist aber Geschmacksache
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
require_once('../../config/vilesci.config.inc.php');
|
require_once('../../config/vilesci.config.inc.php');
|
||||||
require_once('../../include/basis_db.class.php');
|
require_once('../../include/basis_db.class.php');
|
||||||
if (!$db = new basis_db())
|
include('../../include/functions.inc.php');
|
||||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
include('../../include/globals.inc.php');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* kopiert von stdplan/profile/zeitwuensche.php mit dem Unterschied,
|
|
||||||
* dass der User hier parametrisiert ist + Speichern läuft hier über
|
|
||||||
* POST statt GET - ist aber Geschmacksache
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
include('../../include/functions.inc.php');
|
if (!$db = new basis_db())
|
||||||
include('../../include/globals.inc.php');
|
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||||
|
|
||||||
if (isset($_GET['uid']))
|
|
||||||
{
|
if (isset($_GET['uid']))
|
||||||
$uid=$_GET['uid'];
|
{
|
||||||
}
|
$uid=$_GET['uid'];
|
||||||
else if (isset($_POST['uid']))
|
}
|
||||||
{
|
else if (isset($_POST['uid']))
|
||||||
$uid=$_POST['uid'];
|
{
|
||||||
}
|
$uid=$_POST['uid'];
|
||||||
if (!isset($uid))
|
}
|
||||||
{
|
if (!isset($uid))
|
||||||
die( "uid nicht gesetzt");
|
{
|
||||||
}
|
die( "uid nicht gesetzt");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//Stundentabelleholen
|
//Stundentabelleholen
|
||||||
@@ -67,19 +65,19 @@
|
|||||||
//echo $$var;
|
//echo $$var;
|
||||||
$gewicht=$_POST[$var];
|
$gewicht=$_POST[$var];
|
||||||
$stunde=$i+1;
|
$stunde=$i+1;
|
||||||
$query="SELECT * FROM campus.tbl_zeitwunsch WHERE mitarbeiter_uid='$uid' AND stunde=$stunde AND tag=$t";
|
$query="SELECT * FROM campus.tbl_zeitwunsch WHERE mitarbeiter_uid='".addslashes($uid)."' AND stunde='$stunde' AND tag='$t'";
|
||||||
if(! $erg_wunsch=$db->db_query($query))
|
if(! $erg_wunsch=$db->db_query($query))
|
||||||
die($db->db_last_error());
|
die($db->db_last_error());
|
||||||
$num_rows_wunsch=$db->db_num_rows($erg_wunsch);
|
$num_rows_wunsch=$db->db_num_rows($erg_wunsch);
|
||||||
if ($num_rows_wunsch==0)
|
if ($num_rows_wunsch==0)
|
||||||
{
|
{
|
||||||
$query="INSERT INTO campus.tbl_zeitwunsch (mitarbeiter_uid, stunde, tag, gewicht) VALUES ('$uid', $stunde, $t, $gewicht)";
|
$query="INSERT INTO campus.tbl_zeitwunsch (mitarbeiter_uid, stunde, tag, gewicht) VALUES ('$uid', '$stunde', '$t', '$gewicht')";
|
||||||
if(!($erg=$db->db_query($query)))
|
if(!($erg=$db->db_query($query)))
|
||||||
die($db->db_last_error());
|
die($db->db_last_error());
|
||||||
}
|
}
|
||||||
elseif ($num_rows_wunsch==1)
|
elseif ($num_rows_wunsch==1)
|
||||||
{
|
{
|
||||||
$query="UPDATE campus.tbl_zeitwunsch SET gewicht=$gewicht WHERE mitarbeiter_uid='$uid' AND stunde=$stunde AND tag=$t";
|
$query="UPDATE campus.tbl_zeitwunsch SET gewicht=$gewicht WHERE mitarbeiter_uid='$uid' AND stunde='$stunde' AND tag='$t'";
|
||||||
//echo $query;
|
//echo $query;
|
||||||
if(!($erg=$db->db_query($query)))
|
if(!($erg=$db->db_query($query)))
|
||||||
die($db->db_last_error());
|
die($db->db_last_error());
|
||||||
@@ -149,7 +147,7 @@
|
|||||||
<?php
|
<?php
|
||||||
for ($j=1; $j<7; $j++)
|
for ($j=1; $j<7; $j++)
|
||||||
{
|
{
|
||||||
echo '<TR><TD>'.$tagbez[$j].'</TD>';
|
echo '<TR><TD>'.$tagbez[1][$j].'</TD>';
|
||||||
for ($i=0;$i<$num_rows_stunde;$i++)
|
for ($i=0;$i<$num_rows_stunde;$i++)
|
||||||
{
|
{
|
||||||
$index=$wunsch[$j][$i+1];
|
$index=$wunsch[$j][$i+1];
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ if(isset($_GET['type']) && ($_GET['type']=='edit' || $_GET['type']=='new'))
|
|||||||
<SELECT name="wochentag" id="wochentag">
|
<SELECT name="wochentag" id="wochentag">
|
||||||
<OPTION value="">-- keine Auswahl --</OPTION>';
|
<OPTION value="">-- keine Auswahl --</OPTION>';
|
||||||
|
|
||||||
foreach($tagbez as $key=>$day)
|
foreach($tagbez[1] as $key=>$day)
|
||||||
{
|
{
|
||||||
if($key==$cj->wochentag && $cj->wochentag!='')
|
if($key==$cj->wochentag && $cj->wochentag!='')
|
||||||
$selected='selected="selected"';
|
$selected='selected="selected"';
|
||||||
|
|||||||
Reference in New Issue
Block a user