X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dimensions%2Fdimension_entry.php;h=af266300bbef89dad7433853b94fa2d134d2692e;hb=a52f867bce2f8c73315f7b4a217aa43d5212416a;hp=8912c11cd2fc1a4b4af8d7e84928008e6925f3d3;hpb=d67d5295b9342c011697ce4df325197e29898588;p=fa-stable.git
diff --git a/dimensions/dimension_entry.php b/dimensions/dimension_entry.php
index 8912c11c..af266300 100644
--- a/dimensions/dimension_entry.php
+++ b/dimensions/dimension_entry.php
@@ -76,14 +76,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 "
";
+ hyperlink_no_params($path_to_root . "/dimensions/inquiry/search_dimensions.php", _("&Select an existing dimension"));
- end_page();
-
- exit;
+ display_footer_exit();
}
//-------------------------------------------------------------------------------------
@@ -98,14 +95,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 +203,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 +246,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();
//--------------------------------------------------------------------------------------------