|
|
|
@ -43,7 +43,6 @@ require_once 'document.inc.php'; |
|
|
|
$lib_path = api_get_path(LIBRARY_PATH); |
|
|
|
$lib_path = api_get_path(LIBRARY_PATH); |
|
|
|
|
|
|
|
|
|
|
|
/* Libraries */ |
|
|
|
/* Libraries */ |
|
|
|
require_once $lib_path.'document.lib.php'; |
|
|
|
|
|
|
|
require_once $lib_path.'fileUpload.lib.php'; |
|
|
|
require_once $lib_path.'fileUpload.lib.php'; |
|
|
|
require_once $lib_path.'fileDisplay.lib.php'; |
|
|
|
require_once $lib_path.'fileDisplay.lib.php'; |
|
|
|
//require_once $lib_path.'tablesort.lib.php';moved to autoload |
|
|
|
//require_once $lib_path.'tablesort.lib.php';moved to autoload |
|
|
|
@ -317,15 +316,14 @@ if (isset($_GET['curdirpath']) && $_GET['curdirpath'] == '/certificates' && isse |
|
|
|
$content_html = DocumentManager::replace_user_info_into_html(api_get_user_id(), api_get_course_id(), true); |
|
|
|
$content_html = DocumentManager::replace_user_info_into_html(api_get_user_id(), api_get_course_id(), true); |
|
|
|
|
|
|
|
|
|
|
|
$new_content_html = $content_html['content']; |
|
|
|
$new_content_html = $content_html['content']; |
|
|
|
|
|
|
|
|
|
|
|
$path_image = api_get_path(WEB_COURSE_PATH).api_get_course_path().'/document/images/gallery'; |
|
|
|
$path_image = api_get_path(WEB_COURSE_PATH).api_get_course_path().'/document/images/gallery'; |
|
|
|
$new_content_html = str_replace('../images/gallery', $path_image, $new_content_html); |
|
|
|
$new_content_html = str_replace('../images/gallery', $path_image, $new_content_html); |
|
|
|
|
|
|
|
|
|
|
|
$path_image_in_default_course = api_get_path(WEB_CODE_PATH).'default_course_document'; |
|
|
|
$path_image_in_default_course = api_get_path(WEB_CODE_PATH).'default_course_document'; |
|
|
|
$new_content_html = str_replace('/main/default_course_document', $path_image_in_default_course, $new_content_html); |
|
|
|
$new_content_html = str_replace('/main/default_course_document', $path_image_in_default_course, $new_content_html); |
|
|
|
|
|
|
|
|
|
|
|
$new_content_html = str_replace('/main/img/', api_get_path(WEB_IMG_PATH), $new_content_html); |
|
|
|
$new_content_html = str_replace('/main/img/', api_get_path(WEB_IMG_PATH), $new_content_html); |
|
|
|
echo '<style media="print" type="text/css"> #print_div { visibility:hidden; } </style>'; |
|
|
|
Display::display_reduced_header(); |
|
|
|
|
|
|
|
echo '<style>body {background:none;}</style><style media="print" type="text/css"> #print_div { visibility:hidden; } </style>'; |
|
|
|
echo '<a href="javascript:window.print();" style="float:right; padding:4px;" id="print_div"><img src="../img/printmgr.gif" alt="' . get_lang('Print') . '" /> ' . get_lang('Print') . '</a>'; |
|
|
|
echo '<a href="javascript:window.print();" style="float:right; padding:4px;" id="print_div"><img src="../img/printmgr.gif" alt="' . get_lang('Print') . '" /> ' . get_lang('Print') . '</a>'; |
|
|
|
print_r($new_content_html); |
|
|
|
print_r($new_content_html); |
|
|
|
exit; |
|
|
|
exit; |
|
|
|
|