Skip to content

Commit

Permalink
XHTML compliance. Added alter action in doDefault().
Browse files Browse the repository at this point in the history
  • Loading branch information
soranzo committed Apr 23, 2007
1 parent 782efc1 commit 6e6e146
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions domains.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Manage domains in a database
*
* $Id: domains.php,v 1.26 2007/04/22 00:41:58 mr-russ Exp $
* $Id: domains.php,v 1.27 2007/04/23 14:23:24 soranzo Exp $
*/

// Include application functions
Expand Down Expand Up @@ -111,10 +111,10 @@ function addCheck($confirm, $msg = '') {
htmlspecialchars($_POST['definition']), "\" />)</td></tr>\n";
echo "</table>\n";

echo "<input type=\"hidden\" name=\"action\" value=\"save_add_check\" />\n";
echo "<p><input type=\"hidden\" name=\"action\" value=\"save_add_check\" />\n";
echo "<input type=\"hidden\" name=\"domain\" value=\"", htmlspecialchars($_REQUEST['domain']), "\" />\n";
echo $misc->form;
echo "<p><input type=\"submit\" name=\"add\" value=\"{$lang['stradd']}\" />\n";
echo "<input type=\"submit\" name=\"add\" value=\"{$lang['stradd']}\" />\n";
echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" /></p>\n";
echo "</form>\n";

Expand Down Expand Up @@ -255,15 +255,15 @@ function doDrop($confirm) {

echo "<p>", sprintf($lang['strconfdropdomain'], $misc->printVal($_REQUEST['domain'])), "</p>\n";
echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
echo "<input type=\"hidden\" name=\"action\" value=\"drop\" />\n";
echo "<input type=\"hidden\" name=\"domain\" value=\"", htmlspecialchars($_REQUEST['domain']), "\" />\n";
echo $misc->form;
// Show cascade drop option if supportd
if ($data->hasDropBehavior()) {
echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /><label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
}
echo "<p><input type=\"hidden\" name=\"action\" value=\"drop\" />\n";
echo "<input type=\"hidden\" name=\"domain\" value=\"", htmlspecialchars($_REQUEST['domain']), "\" />\n";
echo $misc->form;
echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" /></p>\n";
echo "</form>\n";
}
else {
Expand Down Expand Up @@ -334,9 +334,9 @@ function doCreate($msg = '') {
htmlspecialchars($_POST['domcheck']), "\" />)</td></tr>\n";
}
echo "</table>\n";
echo "<input type=\"hidden\" name=\"action\" value=\"save_create\" />\n";
echo "<p><input type=\"hidden\" name=\"action\" value=\"save_create\" />\n";
echo $misc->form;
echo "<p><input type=\"submit\" value=\"{$lang['strcreate']}\" />\n";
echo "<input type=\"submit\" value=\"{$lang['strcreate']}\" />\n";
echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" /></p>\n";
echo "</form>\n";
}
Expand Down Expand Up @@ -412,6 +412,11 @@ function doDefault($msg = '') {
'url' => "{$PHP_SELF}?action=properties&amp;{$misc->href}&amp;",
'vars' => array('domain' => 'domname'),
),
'alter' => array(
'title' => $lang['stralter'],
'url' => "{$PHP_SELF}?action=alter&amp;{$misc->href}&amp;",
'vars' => array('domain' => 'domname'),
),
'drop' => array(
'title' => $lang['strdrop'],
'url' => "{$PHP_SELF}?action=confirm_drop&amp;{$misc->href}&amp;",
Expand Down

0 comments on commit 6e6e146

Please sign in to comment.