improve navigation when copying files from a course to platform portfolio

skala
Juan Carlos Raña 14 years ago
parent a2052ff2cb
commit c6c688af92
  1. 10
      main/document/document.php
  2. 14
      main/social/myfiles.php

@ -203,11 +203,15 @@ switch ($action) {
$perm = api_get_permissions_for_new_directories();
@mkdir($user_folder, $perm, true);
}
$file = $sys_course_path.$_course['path'].'/document'.$document_info['path'];
$copyfile = $user_folder.basename($document_info['path']);
$file_link = Display::url(get_lang('SeeFile'), api_get_path(WEB_CODE_PATH).'social/myfiles.php');
$cidReq = Security::remove_XSS($_GET['cidReq']);
$id_session= Security::remove_XSS($_GET['id_session']);
$gidReq= Security::remove_XSS($_GET['gidReq']);
$id= Security::remove_XSS($_GET['id']);
$file_link = Display::url(get_lang('SeeFile'), api_get_path(WEB_CODE_PATH).'social/myfiles.php?cidReq='.$cidReq.'&id_session='.$id_session.'&gidReq='.$gidReq.'&parent_id='.$parent_id);
if (file_exists($copyfile)) {
$message = get_lang('CopyAlreadyDone').'</p><p>';
$message .= '<a class = "a_button white small" href="'.api_get_self().'?'.api_get_cidreq().'&amp;id='.$parent_id.'">'.get_lang("No").'</a>&nbsp;&nbsp;|&nbsp;&nbsp;

@ -94,14 +94,20 @@ if (is_array($_GET) && count($_GET)>0) {
}
$social_left_content = SocialManager::show_social_menu('myfiles');
$social_right_content .= '<a href=""></a>';//TODO: hack and delete this line
$social_right_content .= '<br />';
$social_right_content .= '<table><tr><td><iframe name="fileManager" id="fileManager" src="'.api_get_path(WEB_PATH).'main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajaxfilemanager.php?editor=stand_alone" scrolling="no" noresize="noresize" frameborder="no" style="height:450px; width:700px; float:left"></iframe></td></tr></table>';
if (isset($_GET['cidReq'])){
$social_right_content .='<div class="actions">';
$social_right_content .= '<a href="'.api_get_path(WEB_CODE_PATH).'document/document.php?cidReq='.Security::remove_XSS($_GET['cidReq']).'&amp;id_session='.Security::remove_XSS($_GET['id_session']).'&amp;gidReq='.Security::remove_XSS($_GET['gidReq']).'&amp;id='.Security::remove_XSS($_GET['parent_id']).'">'.Display::return_icon('back.png',get_lang('BackTo').' '.get_lang('Documents').' ('.get_lang('Course').')').get_lang('BackTo').' '.get_lang('Documents').' ('.get_lang('Course').')</a>';
$social_right_content .= '</div>';
}
else{
$social_right_content .= '<a href=""></a>';//TODO: hack and delete this line
$social_right_content .= '<br />';
}
$social_right_content .= '<table><tr><td><iframe name="fileManager" id="fileManager" src="'.api_get_path(WEB_PATH).'main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajaxfilemanager.php?editor=stand_alone" scrolling="no" noresize="noresize" frameborder="no" style="height:450px; width:700px; float:left"></iframe></td></tr></table>';
$social_right_content .= '</div>';
$social_right_content .= '</div>';
$tpl = new Template(get_lang('Social'));
$tpl->assign('social_left_content', $social_left_content);
$tpl->assign('social_left_menu', $social_left_menu);

Loading…
Cancel
Save