} if (isset($_REQUEST['quote_id']) && (int) $_REQUEST['quote_id'] > 0) { $search['quote_id'] = (int) $_REQUEST['quote_id']; //$job = module_job::get_job($search['job_id'],false); } $search['bucket_parent_file_id'] = 0; $files = module_file::get_files($search); $module->page_title = _l('Files'); // hack to add a "group" option to the pagination results. if (class_exists('module_group', false)) { module_group::enable_pagination_hook(array('bulk_actions' => array('delete' => array('label' => 'Delete selected files', 'type' => 'delete', 'callback' => 'module_file::bulk_handle_delete')))); } $header = array('title' => _l('Customer Files'), 'type' => 'h2', 'main' => true, 'button' => array()); if (module_file::can_i('create', 'Files')) { $header['button'][] = array('url' => module_file::link_open('new'), 'title' => _l('Add New File'), 'type' => 'add'); $header['button'][] = array('url' => module_file::link_open_bucket('new'), 'title' => _l('Add New Bucket'), 'type' => 'add'); } print_heading($header); ?> <form action="" method="post"> <?php module_form::print_form_auth(); ?> <?php