X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=dimensions%2Fdimension_entry.php;h=c0e99521f5860af7a965c8b52e7ec03adc9b8165;hb=34c15f2f88c2b4d8a18ca40f76df3b9748e463e1;hp=8912c11cd2fc1a4b4af8d7e84928008e6925f3d3;hpb=d67d5295b9342c011697ce4df325197e29898588;p=fa-stable.git diff --git a/dimensions/dimension_entry.php b/dimensions/dimension_entry.php index 8912c11c..c0e99521 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'), 'default'); + 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, '', 'default'); } - end_form(); //--------------------------------------------------------------------------------------------