\n";
+ echo "\n";
}
/*
@@ -902,12 +902,12 @@ if (empty($_GET['origin']) OR $_GET['origin'] !== 'learnpath') {
*/
if (!$surveyid) {
if ($display_title_list == true) {
- echo "\t\t\t\n";
+ echo "\n";
while ($myrow = Database::fetch_array($result)) {
$title = $myrow['title'];
$title = Security::remove_XSS($title);
- echo "\t\t\t\t\n";
- echo "\t\t\t\t\t| \n";
+ echo " | \n";
+ echo "| \n";
if ($myrow['visibility']==0) {
$class="class=\"invisible\"";
} else {
@@ -916,18 +916,18 @@ if (!$surveyid) {
//validation when belongs to a session
$session_img = api_get_session_image($myrow['session_id'], $_user['status']);
- echo "\t\t\t\t\t\t".Display::return_icon('lp_announcement.png', api_convert_and_format_date($myrow['end_date'], DATE_FORMAT_LONG), array('align' => 'absmiddle', 'Width' => '10', 'Height' => '10'))." " . api_trunc_str($title, $length) . "\n" . $session_img;
- echo "\t\t\t\t\t | \n\t\t\t\t \n";
+ echo Display::return_icon('lp_announcement.png', api_convert_and_format_date($myrow['end_date'], DATE_FORMAT_LONG), array('align' => 'absmiddle', 'Width' => '10', 'Height' => '10'))." " . api_trunc_str($title, $length) . "\n" . $session_img;
+ echo "\n\n";
}
- echo "\t\t\t \n";
+ echo " \n";
} // end $display_title_list == true
}
if (empty($_GET['origin']) or $_GET['origin'] !== 'learnpath') {
- echo "\t\t | \n";
- echo "\t\t | \n";
+ echo "\n";
+ echo " | \n";
// START RIGHT PART
- echo "\t\t\n";
+ echo " | \n";
}
/*
@@ -1310,7 +1310,7 @@ if ($display_announcement_list && !$surveyid) {
$iterator = 1;
$bottomAnnouncement = $announcement_number;
- echo "\t\t\t\n";
+ echo "\n";
$displayed=array();
@@ -1339,46 +1339,46 @@ if ($display_announcement_list && !$surveyid) {
$style = '';
}
- echo "\t\t\t\t";
+ echo " ";
/* THE ICONS */
- echo "\t\t\t\t\t| \n";
+ echo " | \n";
// anchoring
echo "\n";
// User or group icon
if ($myrow['to_group_id']!== '0' and $myrow['to_group_id']!== 'NULL') {
- echo "\t\t\t\t\t\t".Display::return_icon('group.gif', get_lang('AnnounceSentToUserSelection'))."\n";
+ echo Display::return_icon('group.gif', get_lang('AnnounceSentToUserSelection'))."\n";
}
// the email icon
if ($myrow['email_sent'] == '1') {
- echo "\t\t\t\t\t\t".Display::return_icon('email.gif', get_lang('AnnounceSentByEmail'))."\n";
+ echo Display::return_icon('email.gif', get_lang('AnnounceSentByEmail'))."\n";
}
- echo "\t\t\t\t\t | \n";
+ echo "\n";
/* TITLE */
- echo "\t\t\t\t\t".Security::remove_XSS($title)." | \n";
- echo "\t\t\t\t\t" . get_lang("SentTo") . " : ";
+ echo " | ".Security::remove_XSS($title)." | \n";
+ echo "" . get_lang("SentTo") . " : ";
$sent_to=sent_to("announcement", $myrow['id']);
$sent_to_form=sent_to_form($sent_to);
$user_info=api_get_user_info($myrow['insert_user_id']);
echo ' '.get_lang('By').' : '.str_replace(' ', ' ', api_get_person_name($user_info['firstName'], $user_info['lastName']));
- echo "\t\t\t\t\t | \n","\t\t\t\t \n";
- echo "\t\t\t\t\n\t\t\t\t\t| ";
+ echo " | ";
+ echo "\n| ";
echo get_lang('AnnouncementPublishedOn')," : ", api_convert_and_format_date($last_post_datetime, DATE_FORMAT_LONG, date_default_timezone_get());
- echo " | \n\t\t\t\t \n";
+ echo "\n\n";
/* CONTENT */
- echo "\t\t\t\t\n\t\t\t\t\t| \n";
- echo $content."\t\t\t\t\t | \n\t\t\t\t \n";
+ echo "\n| \n";
+ echo $content." | \n ";
/* RESOURCES */
- echo "\n| \n";
+ echo " | ";
if (check_added_resources("Ad_Valvas", $myrow["id"])) {
echo "".get_lang('AddedResources')." ";
@@ -1448,7 +1448,7 @@ if ($display_announcement_list && !$surveyid) {
}
- echo " | \n \n";
+ echo "";
$iterator ++;
} else { // end of is_allowed_to_edit
diff --git a/main/announcements/download.php b/main/announcements/download.php
index 921d53eb79..1ec5e3eb2d 100755
--- a/main/announcements/download.php
+++ b/main/announcements/download.php
@@ -1,48 +1,25 @@
- |