|
|
|
@ -4625,6 +4625,7 @@ class learnpath { |
|
|
|
$res_step = api_sql_query($sql_step, __FILE__, __LINE__); |
|
|
|
$res_step = api_sql_query($sql_step, __FILE__, __LINE__); |
|
|
|
$row_step = Database::fetch_array($res_step); |
|
|
|
$row_step = Database::fetch_array($res_step); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$return .= $this->display_manipulate($item_id, $row['item_type']); |
|
|
|
$return .= $this->display_manipulate($item_id, $row['item_type']); |
|
|
|
$return .= $this->display_document_form('edit', $item_id, $row_step); |
|
|
|
$return .= $this->display_document_form('edit', $item_id, $row_step); |
|
|
|
|
|
|
|
|
|
|
|
@ -4818,6 +4819,8 @@ class learnpath { |
|
|
|
$item_description = ''; |
|
|
|
$item_description = ''; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$item_title = mb_convert_encoding($item_title,$charset,$this->encoding); |
|
|
|
|
|
|
|
|
|
|
|
$return = '<div style="margin:3px 12px;">'; |
|
|
|
$return = '<div style="margin:3px 12px;">'; |
|
|
|
|
|
|
|
|
|
|
|
if($id != 0 && is_array($extra_info)) |
|
|
|
if($id != 0 && is_array($extra_info)) |
|
|
|
@ -6088,6 +6091,7 @@ class learnpath { |
|
|
|
if($id != 0 && is_array($extra_info)) |
|
|
|
if($id != 0 && is_array($extra_info)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$item_title = stripslashes($extra_info['title']); |
|
|
|
$item_title = stripslashes($extra_info['title']); |
|
|
|
|
|
|
|
|
|
|
|
$item_description = stripslashes($extra_info['description']); |
|
|
|
$item_description = stripslashes($extra_info['description']); |
|
|
|
$item_terms = stripslashes($extra_info['terms']); |
|
|
|
$item_terms = stripslashes($extra_info['terms']); |
|
|
|
if(empty($item_title)) |
|
|
|
if(empty($item_title)) |
|
|
|
@ -6205,9 +6209,14 @@ class learnpath { |
|
|
|
require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'); |
|
|
|
require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php'); |
|
|
|
|
|
|
|
|
|
|
|
$form = new FormValidator('form','POST',api_get_self()."?".$_SERVER["QUERY_STRING"],'','enctype="multipart/form-data"'); |
|
|
|
$form = new FormValidator('form','POST',api_get_self()."?".$_SERVER["QUERY_STRING"],'','enctype="multipart/form-data"'); |
|
|
|
$defaults["title"]=mb_convert_encoding($item_title,$charset,$this->encoding); |
|
|
|
|
|
|
|
$defaults["description"]=mb_convert_encoding($item_description,$charset,$this->encoding); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$defaults["title"] = html_entity_decode($item_title); |
|
|
|
|
|
|
|
$defaults["title"]=mb_convert_encoding($defaults["title"],$charset,$this->encoding); |
|
|
|
|
|
|
|
if(empty($defaults["title"])) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$defaults["title"] = html_entity_decode($item_title); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$defaults["description"]=mb_convert_encoding($item_description,$charset,$this->encoding); |
|
|
|
|
|
|
|
|
|
|
|
$form->addElement('html',$return); |
|
|
|
$form->addElement('html',$return); |
|
|
|
|
|
|
|
|
|
|
|
|