projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Print full Location name on reports
[fa-stable.git]
/
admin
/
attachments.php
diff --git
a/admin/attachments.php
b/admin/attachments.php
index 0e1b4e28a61bfacdbf9e26505eb00f2a08f3f05b..4d75a5087f35bacc2536269eff61a6b01369498c 100644
(file)
--- a/
admin/attachments.php
+++ b/
admin/attachments.php
@@
-10,7
+10,7
@@
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
$path_to_root="..";
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
$path_to_root="..";
-$page_security =
8
;
+$page_security =
'SA_ATTACHDOCUMENT'
;
include_once($path_to_root . "/includes/session.inc");
include_once($path_to_root . "/includes/session.inc");
@@
-68,7
+68,7
@@
if ($download_id != -1)
$js = "";
if ($use_popup_windows)
$js .= get_js_open_window(800, 500);
$js = "";
if ($use_popup_windows)
$js .= get_js_open_window(800, 500);
-page(_("Attach Documents"), false, false, "", $js);
+page(_(
$help_context =
"Attach Documents"), false, false, "", $js);
simple_page_mode(true);
//----------------------------------------------------------------------------------------
simple_page_mode(true);
//----------------------------------------------------------------------------------------
@@
-160,7
+160,7
@@
if ($Mode == 'RESET')
function viewing_controls()
{
function viewing_controls()
{
- start_form(
false, true
);
+ start_form();
start_table("class='tablestyle_noborder'");
start_table("class='tablestyle_noborder'");
@@
-248,15
+248,13
@@
if ($selected_id != -1)
else
text_row_ex(_("Transaction #").':', 'trans_no', 10);
text_row_ex(_("Description").':', 'description', 40);
else
text_row_ex(_("Transaction #").':', 'trans_no', 10);
text_row_ex(_("Description").':', 'description', 40);
-start_row();
-label_cells(_("Attached File") . ":", "<input type='file' id='filename' name='filename'>");
-end_row();
+file_row(_("Attached File") . ":", 'filename', 'filename');
end_table(1);
if (isset($_POST['filterType']))
hidden('filterType', $_POST['filterType']);
end_table(1);
if (isset($_POST['filterType']))
hidden('filterType', $_POST['filterType']);
-submit_add_or_update_center($selected_id == -1, '',
true
);
+submit_add_or_update_center($selected_id == -1, '',
'both'
);
end_form();
end_form();