Changeset:
31fbf04b3a6c
https://sourceforge.net/p/mrbs/hg-code/ci/31fbf04b3a6c65430287ea6202d2fea5e9eb41c4
Author:
Campbell Morrison <[email protected]>
Date:
Sun Mar 19 11:58:47 2017 +0000
Log message:
Restructured
diffstat:
web/css/mrbs.css.php | 12 ++++++++++--
web/view_entry.php | 15 +++++++++------
2 files changed, 19 insertions(+), 8 deletions(-)
diffs (49 lines):
diff -r 2e745e6cdcc9 -r 31fbf04b3a6c web/css/mrbs.css.php
--- a/web/css/mrbs.css.php Sat Mar 18 09:05:57 2017 +0000
+++ b/web/css/mrbs.css.php Sun Mar 19 11:58:47 2017 +0000
@@ -1267,8 +1267,16 @@
/* ------------ VIEW_ENTRY.PHP ------------------*/
.view_entry #entry td:first-child {text-align: right; font-weight: bold;
padding-right: 1.0em}
.view_entry div#view_entry_nav {margin-top: 1.0em}
-.view_entry #approve_buttons form {float: left; margin-right: 2em}
-.view_entry #approve_buttons legend {font-size: 0}
+
+.view_entry #approve_buttons button {
+ float: left;
+ margin-right: 2em;
+}
+
+.view_entry #approve_buttons form {
+ float: left;
+}
+
.view_entry div#returl {margin-top: 1em}
#approve_buttons td {vertical-align: middle; padding-top: 1em}
#approve_buttons td#caption {text-align: left}
diff -r 2e745e6cdcc9 -r 31fbf04b3a6c web/view_entry.php
--- a/web/view_entry.php Sat Mar 18 09:05:57 2017 +0000
+++ b/web/view_entry.php Sun Mar 19 11:58:47 2017 +0000
@@ -8,14 +8,17 @@
// Generates a single button
function generateButton($form_action, $id, $series, $action_type, $returl,
$submit_value, $title='')
{
- echo "<form action=\"".htmlspecialchars($form_action).
- "?id=$id&series=$series\" method=\"post\">\n";
- echo "<fieldset>\n";
- echo "<legend></legend>\n";
+ if (!isset($form_id))
+ {
+ $form_id = uniqid();
+ }
+
+ echo "<button form=\"$form_id\" title=\"" . htmlspecialchars($title) . "\"
value=\"$submit_value\">" .
+ $submit_value . "</button>\n";
+ echo "<form id=\"$form_id\" action=\"".htmlspecialchars($form_action).
+ "?id=$id&series=$series\" method=\"post\">\n";
echo "<input type=\"hidden\" name=\"action\" value=\"$action_type\">\n";
echo "<input type=\"hidden\" name=\"returl\" value=\"" .
htmlspecialchars($returl) . "\">\n";
- echo "<input type=\"submit\" title=\"" . htmlspecialchars($title) . "\"
value=\"$submit_value\">\n";
- echo "</fieldset>\n";
echo "</form>\n";
}
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits