projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Layout/focus fixes for no_[customer/supplier/item]_list on
[fa-stable.git]
/
includes
/
ui
/
ui_controls.inc
diff --git
a/includes/ui/ui_controls.inc
b/includes/ui/ui_controls.inc
index 8fd5aba43b5b7bb55cca5455161ebc7b2a5d4ca3..7d731525509af37f3f835a32ddf2d380ea5d99cf 100644
(file)
--- a/
includes/ui/ui_controls.inc
+++ b/
includes/ui/ui_controls.inc
@@
-19,6
+19,7
@@
function start_form($multi=false, $sid=false, $action="", $name="")
echo "<form enctype='multipart/form-data' method='post' action='$action' $name>\n";
else
echo "<form method='post' action='$action' $name>\n";
echo "<form enctype='multipart/form-data' method='post' action='$action' $name>\n";
else
echo "<form method='post' action='$action' $name>\n";
+
}
//---------------------------------------------------------------------------------
}
//---------------------------------------------------------------------------------
@@
-27,10
+28,11
@@
function end_form($breaks=0)
{
if ($breaks)
br($breaks);
{
if ($breaks)
br($breaks);
+ echo "<input type=\"hidden\" name=\"_focus\" value=\"".$_POST['_focus']."\">\n";
echo "</form>\n";
}
echo "</form>\n";
}
-function start_table($extra="", $padding='
0
', $spacing='0')
+function start_table($extra="", $padding='
2
', $spacing='0')
{
echo "<center><table";
if ($extra != "")
{
echo "<center><table";
if ($extra != "")
@@
-103,9
+105,13
@@
function hyperlink_params_td($target, $label, $params)
//-----------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------
-function hyperlink_params_separate($target, $label, $params)
+function hyperlink_params_separate($target, $label, $params
, $center=false
)
{
{
+ if ($center)
+ echo "<br><center>";
echo "<a target='_blank' href='$target?$params" . SID . "'>$label</a>\n";
echo "<a target='_blank' href='$target?$params" . SID . "'>$label</a>\n";
+ if ($center)
+ echo "</center>";
}
function hyperlink_params_separate_td($target, $label, $params)
}
function hyperlink_params_separate_td($target, $label, $params)
@@
-154,6
+160,11
@@
function delete_link_cell($param)
label_cell("<a href='" . $_SERVER['PHP_SELF']. "?" . "$param'>" . _("Delete") . "</a>", "nowrap");
}
label_cell("<a href='" . $_SERVER['PHP_SELF']. "?" . "$param'>" . _("Delete") . "</a>", "nowrap");
}
+function edit_button_cell($name, $value)
+{
+ label_cell("<input type=\"submit\" class=\"editbutton\" name=\"$name\" value=\"$value\" />\n");
+}
+
//-----------------------------------------------------------------------------------
function start_row($param="")
//-----------------------------------------------------------------------------------
function start_row($param="")