|
|
|
|
@ -271,6 +271,7 @@ if (!is_dir($filepath)) { |
|
|
|
|
$to_group_id = 0; |
|
|
|
|
|
|
|
|
|
if (!$is_certificate_mode) { |
|
|
|
|
$req_gid = null; |
|
|
|
|
if (api_is_in_group()) { |
|
|
|
|
$req_gid = '&gidReq='.api_get_group_id(); |
|
|
|
|
$interbreadcrumb[] = array ("url" => "../group/group_space.php?gidReq=".api_get_group_id(), "name" => get_lang('GroupSpace')); |
|
|
|
|
@ -296,6 +297,7 @@ if (!($is_allowed_to_edit || $_SESSION['group_member_with_upload_rights'] || is_ |
|
|
|
|
/* Header */ |
|
|
|
|
|
|
|
|
|
event_access_tool(TOOL_DOCUMENT); |
|
|
|
|
|
|
|
|
|
$display_dir = $dir; |
|
|
|
|
if (isset ($group_properties)) { |
|
|
|
|
$display_dir = explode('/', $dir); |
|
|
|
|
@ -304,8 +306,10 @@ if (isset ($group_properties)) { |
|
|
|
|
$display_dir = implode('/', $display_dir); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$select_cat = isset($_GET['selectcat']) ? intval($_GET['selectcat']) : null; |
|
|
|
|
|
|
|
|
|
// Create a new form |
|
|
|
|
$form = new FormValidator('create_document','post',api_get_self().'?'.api_get_cidreq().'&dir='.Security::remove_XSS(urlencode($dir)).'&selectcat='.Security::remove_XSS($_GET['selectcat']), null, array('class' =>'form-vertical' )); |
|
|
|
|
$form = new FormValidator('create_document','post',api_get_self().'?'.api_get_cidreq().'&dir='.Security::remove_XSS(urlencode($dir)).'&selectcat='.$select_cat, null, array('class' =>'form-vertical')); |
|
|
|
|
|
|
|
|
|
// form title |
|
|
|
|
$form->addElement('header', $nameTools); |
|
|
|
|
@ -313,7 +317,7 @@ $form->addElement('header', $nameTools); |
|
|
|
|
if ($is_certificate_mode) {//added condition for certicate in gradebook |
|
|
|
|
$form->addElement('hidden','certificate','true',array('id'=>'certificate')); |
|
|
|
|
if (isset($_GET['selectcat'])) |
|
|
|
|
$form->addElement('hidden','selectcat', intval($_GET['selectcat'])); |
|
|
|
|
$form->addElement('hidden','selectcat', $select_cat); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
// Hidden element with current directory |
|
|
|
|
|