Make admin pages consistent UI-wise.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 19 Feb 2010 06:26:29 +0000 (23:26 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 19 Feb 2010 06:29:15 +0000 (23:29 -0700)
horde/admin/cmdshell.php
horde/admin/perms/index.php
horde/admin/phpshell.php
horde/admin/sqlshell.php

index d95bcf9..5ed3500 100644 (file)
@@ -15,7 +15,7 @@ $title = _("Command Shell");
 require HORDE_TEMPLATES . '/common-header.inc';
 require HORDE_TEMPLATES . '/admin/menu.inc';
 
-echo '<div style="padding:10px">';
+echo '<div>';
 if ($command = trim(Horde_Util::getFormData('cmd'))) {
     echo '<h1 class="header">' . _("Command") . ':</h1><br />';
     echo '<p class="text"><code>' . nl2br(htmlspecialchars($command)) . '</code></p>';
@@ -40,7 +40,9 @@ if ($command = trim(Horde_Util::getFormData('cmd'))) {
 <form action="cmdshell.php" method="post">
 <?php Horde_Util::pformInput() ?>
 <label for="cmd" class="hidden"><?php echo _("Command") ?></label>
-<textarea class="fixed" id="cmd" name="cmd" rows="10" cols="60">
+<h1 class="header"><?php echo $title ?></h1>
+<br />
+<textarea class="fixed" id="cmd" name="cmd" rows="10" cols="80">
 <?php if (!empty($command)) echo htmlspecialchars($command) ?></textarea>
 <br />
 <input type="submit" class="button" value="<?php echo _("Execute") ?>" />
index 16f402f..93c14c6 100644 (file)
@@ -19,6 +19,8 @@ require HORDE_TEMPLATES . '/common-header.inc';
 require HORDE_TEMPLATES . '/admin/menu.inc';
 
 $ui = new Horde_Perms_Ui($injector->getInstance('Horde_Perms'));
+
+echo '<h1 class="header">' . Horde::img('perms.png') . ' ' . _("Permissions") . '</h1>';
 $ui->renderTree($perm_id);
 
 require HORDE_TEMPLATES . '/common-footer.inc';
index 11398e5..bbad826 100644 (file)
@@ -32,11 +32,11 @@ $application = Horde_Util::getFormData('app', 'horde');
 $command = trim(Horde_Util::getFormData('php'))
 
 ?>
-<div style="padding:10px">
+<div>
 <form action="phpshell.php" method="post">
 <?php Horde_Util::pformInput() ?>
 
-<h1 class="header"><?php echo _("PHP Shell") ?></h1>
+<h1 class="header"><?php echo $title ?></h1>
 <br />
 <label for="app"><?php echo _("Application Context: ") ?></label>
 <select id="app" name="app">
@@ -46,7 +46,7 @@ $command = trim(Horde_Util::getFormData('php'))
 </select><br /><br />
 
 <label for="php" class="hidden"><?php echo _("PHP") ?></label>
-<textarea class="fixed" id="php" name="php" rows="10" style="width:100%; padding:0;">
+<textarea class="fixed" id="php" name="php" rows="10" cols="80">
 <?php if (!empty($command)) echo htmlspecialchars($command) ?></textarea>
 <br />
 <input type="submit" class="button" value="<?php echo _("Execute") ?>" />
index f416002..68e0e26 100644 (file)
@@ -17,8 +17,8 @@ require HORDE_TEMPLATES . '/common-header.inc';
 require HORDE_TEMPLATES . '/admin/menu.inc';
 
 ?>
-<div style="padding:10px">
-<h1 class="header"><?php echo _("SQL Shell") ?></h1><br />
+<div>
+<h1 class="header"><?php echo $title ?></h1><br />
 <form name="sqlshell" action="sqlshell.php" method="post">
 <?php Horde_Util::pformInput() ?>
 
@@ -120,7 +120,7 @@ if (isset($result)) {
 <?php endif; ?>
 
 <label for="sql" class="hidden"><?php echo ("SQL Query") ?></label>
-<textarea class="fixed" id="sql" name="sql" rows="10" cols="60">
+<textarea class="fixed" id="sql" name="sql" rows="10" cols="80">
 <?php if (strlen($command)) echo htmlspecialchars($command) ?></textarea>
 <br />
 <input type="submit" class="button" value="<?php echo _("Execute") ?>" />