X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=dimensions%2Fdimension_entry.php;h=9014f22af97a2e40af313868e05d6f83c0f07c66;hb=499e0e615d1a845c6c519754b3a213fdda0513ba;hp=8912c11cd2fc1a4b4af8d7e84928008e6925f3d3;hpb=d67d5295b9342c011697ce4df325197e29898588;p=fa-stable.git
diff --git a/dimensions/dimension_entry.php b/dimensions/dimension_entry.php
index 8912c11c..9014f22a 100644
--- a/dimensions/dimension_entry.php
+++ b/dimensions/dimension_entry.php
@@ -1,6 +1,14 @@
.
+***********************************************************************/
$page_security = 10;
$path_to_root="..";
include_once($path_to_root . "/includes/session.inc");
@@ -76,14 +84,11 @@ function safe_exit()
{
global $path_to_root;
- hyperlink_no_params("", _("Enter a new dimension"));
+ hyperlink_no_params("", _("Enter a &new dimension"));
echo "
";
- hyperlink_no_params($path_to_root . "/dimensions/inquiry/search_dimensions.php", _("Select an existing dimension"));
- echo "
";
-
- end_page();
+ hyperlink_no_params($path_to_root . "/dimensions/inquiry/search_dimensions.php", _("&Select an existing dimension"));
- exit;
+ display_footer_exit();
}
//-------------------------------------------------------------------------------------
@@ -98,14 +103,14 @@ function can_process()
if (!references::is_valid($_POST['ref']))
{
display_error( _("The dimension reference must be entered."));
- set_focus('ref');
+ set_focus('ref');
return false;
}
if (!is_new_reference($_POST['ref'], systypes::dimension()))
{
display_error(_("The entered reference is already in use."));
- set_focus('ref');
+ set_focus('ref');
return false;
}
}
@@ -206,14 +211,14 @@ if ($selected_id != -1)
if (strlen($myrow[0]) == 0)
{
display_error(_("The dimension sent is not valid."));
- exit;
+ display_footer_exit();
}
// if it's a closed dimension can't edit it
if ($myrow["closed"] == 1)
{
display_error(_("This dimension is closed and cannot be edited."));
- exit;
+ display_footer_exit();
}
$_POST['ref'] = $myrow["reference"];
@@ -249,16 +254,17 @@ textarea_row(_("Memo:"), 'memo_', null, 40, 5);
end_table(1);
-submit_add_or_update_center($selected_id == -1);
-
if ($selected_id != -1)
{
echo "
";
-
- submit_center_first('close', _("Close This Dimension"));
- submit_center_last('delete', _("Delete This Dimension"));
+ submit_center_first('UPDATE_ITEM', _("Update"), _('Save changes to dimension'), true);
+ submit('close', _("Close This Dimension"), true, _('Mark this dimension as closed'), true);
+ submit_center_last('delete', _("Delete This Dimension"), _('Delete unused dimension'), true);
+}
+else
+{
+ submit_center('ADD_ITEM', _("Add"), true, '', true);
}
-
end_form();
//--------------------------------------------------------------------------------------------