X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=dimensions%2Fdimension_entry.php;h=af266300bbef89dad7433853b94fa2d134d2692e;hb=31629799f984d0237fe73f366d3d3d75448f1f34;hp=e0b89b3fbce6be7d499370799985667903322e0e;hpb=6183e9450dcd7e4c747889c10903f6ff1b0add33;p=fa-stable.git
diff --git a/dimensions/dimension_entry.php b/dimensions/dimension_entry.php
index e0b89b3f..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"];
@@ -232,7 +229,7 @@ if ($selected_id != -1)
}
else
{
- ref_row(_("Dimension Reference:"), 'ref', references::get_next(systypes::dimension()));
+ ref_row(_("Dimension Reference:"), 'ref', '', references::get_next(systypes::dimension()));
}
text_row_ex(_("Name") . ":", 'name', 50, 75);
@@ -243,22 +240,23 @@ number_list_row(_("Type"), 'type_', null, 1, $dim);
date_row(_("Start Date") . ":", 'date_');
-date_row(_("Date Required By") . ":", 'due_date', null, sys_prefs::default_dimension_required_by());
+date_row(_("Date Required By") . ":", 'due_date', '', null, sys_prefs::default_dimension_required_by());
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();
//--------------------------------------------------------------------------------------------