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");
$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);
//----------------------------------------------------------------------------------------
function viewing_controls()
{
- start_form(false, true);
+ start_form();
start_table("class='tablestyle_noborder'");
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();