X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fmanage%2Fitems.php;h=70572f59fed52f10d7245ca162d4941a38af1864;hb=90b3d069d96b99671af51726e2953352738abb75;hp=8c11d45de55a99fa2873483c324ed6344d1cccfa;hpb=0c2e1ad5a4a99f2ede945a132d3f1f8686c67099;p=fa-stable.git diff --git a/inventory/manage/items.php b/inventory/manage/items.php index 8c11d45d..70572f59 100644 --- a/inventory/manage/items.php +++ b/inventory/manage/items.php @@ -12,11 +12,15 @@ $page_security = 'SA_ITEM'; $path_to_root = "../.."; include($path_to_root . "/includes/session.inc"); + $js = ""; if ($use_popup_windows) $js .= get_js_open_window(900, 500); +if ($use_date_picker) + $js .= get_js_date_picker(); -page(_($help_context = "Items"), false, false, "", $js); +page(_($help_context = "Items"), @$_REQUEST['popup'], false, "", $js); + include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.inc"); @@ -83,6 +87,11 @@ if (isset($_FILES['pic']) && $_FILES['pic']['name'] != '') display_warning(_('The file size is over the maximum allowed. The maximum size allowed in KB is') . ' ' . $max_image_size); $upload_file ='No'; } + elseif ( $_FILES['pic']['type'] == "text/plain" ) + { //File type Check + display_warning( _('Only graphics files can be uploaded')); + $upload_file ='No'; + } elseif (file_exists($filename)) { $result = unlink($filename); @@ -475,11 +484,10 @@ tabbed_content_end(); div_end(); - hidden('popup', @$_REQUEST['popup']); end_form(); //------------------------------------------------------------------------------------ -end_page(); +end_page(@$_REQUEST['popup']); ?>