diff --git a/main/wiki/index.php b/main/wiki/index.php index 1d24dce361..639d194372 100644 --- a/main/wiki/index.php +++ b/main/wiki/index.php @@ -884,7 +884,7 @@ if ($_GET['action']=='orphaned') if ($_GET['action']=='delete') { - echo '
'; + echo '
'; if(api_is_allowed_to_edit() || api_is_platform_admin()) { echo '
'.get_lang('DeletePageHistory').'
'; @@ -932,7 +932,7 @@ if ($_GET['action']=='deletewiki') { echo '
'.get_lang('DeleteWiki').'
'; - echo '
'; + echo '
'; if(api_is_allowed_to_edit() || api_is_platform_admin()) { $message = get_lang('ConfirmDeleteWiki'); @@ -945,20 +945,20 @@ if ($_GET['action']=='deletewiki') if (!isset($_GET['delete'])) { Display::display_warning_message($message,false); - } } - else - { + } + else + { Display::display_normal_message(get_lang("OnlyAdminDeleteWiki")); } - echo '
'; + echo '
'; } /////////////////////// search wiki pages /////////////////////// if ($_GET['action']=='searchpages') { -echo '
'.get_lang('SearchPages').'
'; -echo '
'; + echo '
'.get_lang('SearchPages').'
'; + echo '
'; // initiate the object $form = new FormValidator('wiki_search','post', api_get_self().'?cidReq='.Security::remove_XSS($_GET['cidReq']).'&action='.Security::remove_XSS($_GET['action']).'&group_id='.Security::remove_XSS($_GET['group_id'])); @@ -973,16 +973,16 @@ echo '
'; $form->addRule('search_term', get_lang('TooShort'),'minlength',3); if ($form->validate()) - { + { $form->display(); $values = $form->exportValues(); display_wiki_search_results($values['search_term'], $values['search_content']); - } + } else - { + { $form->display(); - } -echo '
'; + } + echo '
'; } @@ -1291,7 +1291,7 @@ if ($_GET['action']=='edit') if ($_GET['action']=='history' or Security::remove_XSS($_POST['HistoryDifferences'])) { - echo '
'; + echo '
'; $_clean['group_id']=(int)$_SESSION['_gid']; //First, see the property visibility that is at the last register and therefore we should select descending order. But to give ownership to each record, this is no longer necessary except for the title. TODO: check this @@ -1396,14 +1396,14 @@ if ($_GET['action']=='history' or Security::remove_XSS($_POST['HistoryDifference { echo get_lang('Comments').': ---'; } - echo ' ) '; - $counter++; + $counter++; } //end while + echo '
'; echo ''; echo ''; - echo '
'; + echo '
'; } // We show the differences between two versions else @@ -2417,7 +2417,7 @@ function save_new_wiki() **/ function display_new_wiki_form() { - echo '
'; + ?> '; - //echo '
'; + echo '
'; echo '* '.get_lang(Title).': '; if(api_is_allowed_to_edit() || api_is_platform_admin()) @@ -2441,7 +2441,7 @@ function display_new_wiki_form() $_clean['group_id']=(int)$_SESSION['_gid']; // TODO: check if delete ? - echo '
 '.get_lang('DefineAssignmentPage').' '; // 1= teacher 2 =student + echo '  '.get_lang('DefineAssignmentPage').' '; // 1= teacher 2 =student //by now turned off //echo'
'; @@ -2450,7 +2450,7 @@ function display_new_wiki_form() //echo '
 '.get_lang('AllowLaterSends').' '; //by now turned off //echo'
'; } - echo '
'; + echo '
'; echo '
'; api_disp_html_area('content','','300px'); echo '
'; @@ -2474,7 +2474,6 @@ function display_new_wiki_form() echo ''; //for button icon echo '
'; echo ''; - echo '
'; } /** @@ -3681,7 +3680,7 @@ function display_wiki_search_results($search_term, $search_content=0) { global $tbl_wiki, $groupfilter, $MonthsLong; - echo '
'.get_lang('WikiSearchResults').'
'; + echo '
'.get_lang('WikiSearchResults').'
'; $_clean['group_id']=(int)$_SESSION['_gid'];