Skip to content

Commit

Permalink
fix W3C
Browse files Browse the repository at this point in the history
  • Loading branch information
yllen committed Sep 25, 2015
1 parent 1d237b7 commit 8a3d5e0
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions inc/reservation.class.php
Expand Up @@ -750,22 +750,26 @@ function showForm($ID, $options=array()) {

} else {
if (($resa->fields["users_id"] == Session::getLoginUserID())
|| Session::haveRight(static::$rightname, PURGE)) {
|| Session::haveRightsOr(static::$rightname, array(PURGE, UPDATE))) {
echo "<tr class='tab_bg_2'>";
echo "<td class='top center'>";
echo "<input type='submit' name='purge' value=\""._sx('button', 'Delete permanently')."\"
class='submit'>";
if ($resa->fields["group"] > 0) {
echo "<br><input type='checkbox' name='_delete_group'>&nbsp;".
__s('Delete all rehearsals');
if (($resa->fields["users_id"] == Session::getLoginUserID())
|| Session::haveRight(static::$rightname, PURGE)) {
echo "<td class='top center'>";
echo "<input type='submit' name='purge' value=\""._sx('button', 'Delete permanently')."\"
class='submit'>";
if ($resa->fields["group"] > 0) {
echo "<br><input type='checkbox' name='_delete_group'>&nbsp;".
__s('Delete all rehearsals');
}
}
}
if (($resa->fields["users_id"] == Session::getLoginUserID())
|| Session::haveRight(static::$rightname, UPDATE)) {
echo "</td><td class='top center'>";
echo "<input type='submit' name='update' value=\""._sx('button', 'Save')."\"
class='submit'>";
echo "</td></tr>\n";
if (($resa->fields["users_id"] == Session::getLoginUserID())
|| Session::haveRight(static::$rightname, UPDATE)) {
echo "</td><td class='top center'>";
echo "<input type='submit' name='update' value=\""._sx('button', 'Save')."\"
class='submit'>";
echo "</td>";
}
echo "</tr>\n";
}
}
echo "</table>";
Expand Down

0 comments on commit 8a3d5e0

Please sign in to comment.