Fix formatting
This commit is contained in:
parent
0242efe9f0
commit
3ef083e787
|
|
@ -629,8 +629,7 @@ function GetDiensteForDay($db_link,$helferlevel,$datestring)
|
|||
$date2 = date('Y-m-d', $unixtime);
|
||||
$sql = "SELECT DienstId, Was, Wo, Info FROM Dienst INNER JOIN Schicht USING (DienstID) WHERE HelferLevel=" . $helferlevel . " GROUP BY DienstId HAVING MIN(Von)<'" . $date1 . "' AND MAX(Bis)>'" . $date2 . "' ORDER BY MIN(Von) ASC;";
|
||||
$db_erg = mysqli_query($db_link, $sql);
|
||||
if ( ! $db_erg )
|
||||
{
|
||||
if (! $db_erg) {
|
||||
echo "GetDienste ungueltige Abfrage";
|
||||
die('Ungueltige Abfrage: ' . mysqli_error($db_link));
|
||||
}
|
||||
|
|
@ -644,8 +643,7 @@ function GetSchichtenForDienstForDay($db_link,$DienstID,$datestring)
|
|||
$date2 = date('Y-m-d', $unixtime);
|
||||
$sql = "select Von, Bis, Soll, Name, Handy from Schicht left join EinzelSchicht using (SchichtId) left join Helfer using (HelferId) where DienstId=" . $DienstID . " and Von<'" . $date1 . "' and Bis>'" . $date2 . "' order by Von;";
|
||||
$db_erg = mysqli_query($db_link, $sql);
|
||||
if ( ! $db_erg )
|
||||
{
|
||||
if (! $db_erg) {
|
||||
echo "GetDienste ungueltige Abfrage";
|
||||
die('Ungueltige Abfrage: ' . mysqli_error($db_link));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue