[svn r19311] minor change styles buttons in forum see FS#3541

skala
Carlos Vargas 16 years ago
parent 226a28d94a
commit d286adf210
  1. 4
      main/admin/subscribe_user2course.php
  2. 19
      main/forum/forumfunction.inc.php

@ -1,5 +1,5 @@
<?php
// $Id: subscribe_user2course.php 19038 2009-03-13 15:16:02Z iflorespaz $
// $Id: subscribe_user2course.php 19311 2009-03-25 15:40:27Z cvargas1 $
/*
==============================================================================
Dokeos - elearning and course management software
@ -335,7 +335,7 @@ if (is_array($extra_field_list)) {
</select>
</td>
<td width="20%" valign="middle" align="center">
<input type="submit" value="<?php echo get_lang('AddToThatCourse'); ?> &gt;&gt;"/>
<button type="submit" class="add" value="<?php echo get_lang('AddToThatCourse'); ?> &gt;&gt;"><?php echo get_lang('AddToThatCourse'); ?></button>
</td>
<td width="40%" align="center">
<select name="CourseList[]" multiple="multiple" size="20" style="width:230px;">

@ -158,7 +158,7 @@ function show_add_forumcategory_form($inputvalues=array()) {
$form->addElement('header', '', get_lang('AddForumCategory'));
$form->addElement('text', 'forum_category_title', get_lang('Title'),'class="input_titles"');
$form->addElement('html_editor', 'forum_category_comment', get_lang('Comment'));
$form->addElement('style_submit_button', 'SubmitForumCategory', get_lang('Ok'), 'class="save"');
$form->addElement('style_submit_button', 'SubmitForumCategory', get_lang('CreateCategory'), 'class="add"');
// setting the rules
$form->addRule('forum_category_title', '<div class="required">'.get_lang('ThisFieldIsRequired'), 'required');
@ -327,7 +327,14 @@ function show_add_forum_form($inputvalues=array()) {
$form->addElement('html','</div>');
// The OK button
$form->addElement('style_submit_button', 'SubmitForum', get_lang('Ok'), 'class="save"');
if (isset($_GET['id']) && $_GET['action']=='edit'){
$class='save';
$text=get_lang('ModifyForum');
}else{
$class='add';
$text=get_lang('CreateForum');
}
$form->addElement('style_submit_button', 'SubmitForum', $text, 'class="'.$class.'"');
// setting the rules
$form->addRule('forum_title', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('forum_category', get_lang('ThisFieldIsRequired'), 'required');
@ -425,7 +432,7 @@ function show_edit_forumcategory_form($inputvalues=array()) {
$form->addElement('hidden', 'forum_category_id');
$form->addElement('text', 'forum_category_title', get_lang('Title'),'class="input_titles"');
$form->addElement('html_editor', 'forum_category_comment', get_lang('Comment'));
$form->addElement('style_submit_button', 'SubmitEditForumCategory',get_lang('Ok'), 'class="save"');
$form->addElement('style_submit_button', 'SubmitEditForumCategory',get_lang('ModifyCategory'), 'class="save"');
global $charset;
// setting the default values
$defaultvalues['forum_category_id']=$inputvalues['cat_id'];
@ -1895,7 +1902,7 @@ function show_add_post_form($action='', $id='', $form_values='') {
$info =api_get_user_info($userid);
$courseid=api_get_course_id();
$form->addElement('style_submit_button', 'SubmitPost', get_lang('Ok'), 'class="save"');
$form->addElement('style_submit_button', 'SubmitPost', get_lang('CreateThread'), 'class="add"');
$form->add_real_progress_bar('DocumentUpload','user_upload');
if ( !empty($form_values) ) {
@ -2319,7 +2326,7 @@ function show_edit_post_form($current_post, $current_thread, $current_forum, $fo
$values = $form->exportValues();
}
$form->addElement('style_submit_button', 'SubmitPost', get_lang('Ok'), 'class="save"');
$form->addElement('style_submit_button', 'SubmitPost', get_lang('ModifyThread'), 'class="save"');
global $charset;
// setting the default values for the form elements
$defaults['post_title']=prepare4display(html_entity_decode($current_post['post_title'],ENT_QUOTES,$charset));
@ -3096,7 +3103,7 @@ function forum_search() {
$form->addElement('header', '', get_lang('ForumSearch'));
$form->addElement('text', 'search_term', get_lang('SearchTerm'),'class="input_titles"');
$form->addElement('static', 'search_information', '', get_lang('ForumSearchInformation')/*, $dissertation[$_GET['opleidingsonderdeelcode']]['code']*/);
$form->addElement('submit', 'SubmitForumCategory', get_lang('Search'));
$form->addElement('style_submit_button', 'SubmitForumSearch', get_lang('Search'), 'class="search"');
// setting the rules
$form->addRule('search_term', '<div class="required">'.get_lang('ThisFieldIsRequired'), 'required');

Loading…
Cancel
Save