Explorar o código

[svn r19895] minor button add or edit system announcement see FS#3987

Carlos Vargas %!s(int64=16) %!d(string=hai) anos
pai
achega
79e34a6ffa
Modificáronse 1 ficheiros con 11 adicións e 2 borrados
  1. 11 2
      main/admin/system_announcements.php

+ 11 - 2
main/admin/system_announcements.php

@@ -1,4 +1,4 @@
-<?php // $Id: system_announcements.php 19807 2009-04-16 17:20:43Z aportugal $
+<?php // $Id: system_announcements.php 19895 2009-04-20 16:52:17Z cvargas1 $
 /*
 ==============================================================================
 	Dokeos - elearning and course management software
@@ -199,7 +199,16 @@ if ($action_todo)
 	$form->addElement('hidden', 'action');
 	$form->addElement('hidden', 'id');
 	$form->addElement('checkbox', 'send_mail', get_lang('SendMail'));
-	$form->addElement('style_submit_button', 'submit', get_lang('Ok'),'class="save"');
+	if ($_GET['action']=='add'){
+		$text=get_lang('AddSystemAnnouncement');
+		$class='add';
+		
+	} elseif ($_GET['action']=='edit'){
+		$text=get_lang('EditSystemAnnouncement');
+		$class='save';
+	}
+	
+	$form->addElement('style_submit_button', 'submit', $text,'class="'.$class.'"');
 	if (api_get_setting('wcag_anysurfer_public_pages')=='true')
 	{
 		$values['content'] = WCAG_Rendering::HTML_to_text($values['content']);