diff --git a/index.php b/index.php
index 691502eb98..61ee894fe4 100644
--- a/index.php
+++ b/index.php
@@ -1,4 +1,4 @@
-, Ghent University, Refactoring
-* @version $Id: index.php 18164 2009-02-02 19:56:21Z herodoto $
+* @version $Id: index.php 18203 2009-02-03 18:02:16Z ndieschburg $
* @todo check the different @todos in this page and really do them
* @todo check if the news management works as expected
*/
@@ -485,7 +485,7 @@ function display_login_form()
$form = new FormValidator('formLogin');
$form->addElement('text','login',get_lang('UserName'),array('size'=>15));
$form->addElement('password','password',get_lang('Pass'),array('size'=>15));
- $form->addElement('submit','submitAuth',get_lang('langEnter'));
+ $form->addElement('style_submit_button','submitAuth',get_lang('langEnter'));
$renderer =& $form->defaultRenderer();
$renderer->setElementTemplate('
');
- $form->addElement('submit', null, get_lang('Save'));
+ $form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"');
$form->addElement('html', ' |
');
if (api_get_setting('wcag_anysurfer_public_pages')=='true')
{
@@ -729,13 +729,13 @@ switch($action){
$form->add_html_editor('link_html', '');
}
$form->addElement('html', ' |
');
- $form->addElement('submit', null, get_lang('Save'));
+ $form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"');
$form->addElement('html', ' |
');
}
else
{
$form->addElement('html', ' | ');
- $form->addElement('submit', null, get_lang('Save'));
+ $form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"');
$form->addElement('html', ' |
');
}
@@ -776,7 +776,7 @@ switch($action){
$renderer->setElementTemplate('{element} |
');
$renderer->setRequiredNoteTemplate('');
$form->addElement('hidden', 'formSent', '1');
- $form->addElement('submit', null, get_lang('Save'));
+ $form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"');
if($action == 'edit_news'){
$_languages=api_get_languages();
$html = ''.get_lang('ChooseNewsLanguage').' : ';
@@ -806,7 +806,7 @@ switch($action){
$default[$name] = str_replace('{rel_path}', api_get_path(REL_PATH), $open);
$form->add_html_editor($name, '');
}
- $form->addElement('submit', null, get_lang('Save'));
+ $form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"');
$form->setDefaults($default);
$form->display();
diff --git a/main/admin/index.php b/main/admin/index.php
index 053077fe6c..11c590e933 100644
--- a/main/admin/index.php
+++ b/main/admin/index.php
@@ -1,4 +1,4 @@
-
@@ -121,7 +122,8 @@ if(api_is_platform_admin()) {
-
@@ -178,7 +180,8 @@ if(api_get_setting('use_session_mode')=='true')
-
diff --git a/main/admin/settings.php b/main/admin/settings.php
index de67d95e5d..715a48a31b 100644
--- a/main/admin/settings.php
+++ b/main/admin/settings.php
@@ -1,4 +1,4 @@
- "Languages"){
$form->addElement('html','');
- $form->addElement('submit', null,get_lang('SaveSettings'));
+ $form->addElement('style_submit_button', null,get_lang('SaveSettings'), 'class="save"');
$form->addElement('html',' ');
}
}
@@ -229,7 +229,7 @@ if (!empty($_GET['category']) and !in_array($_GET['category'], array('Plugins',
}
if ($_GET['category'] <> "Languages"){
$form->addElement('html','');
- $form->addElement('submit', null,get_lang('SaveSettings'));
+ $form->addElement('style_submit_button', null,get_lang('SaveSettings'), 'class="save"');
$form->addElement('html',' ');
}
$form->setDefaults($default_values);
@@ -373,7 +373,7 @@ function handle_plugins()
$userplugins = array();
$table_settings_current = Database :: get_main_table(TABLE_MAIN_SETTINGS_CURRENT);
- if (!empty($_POST['submit_plugins']))
+ if (isset($_POST['submit_plugins']))
{
store_plugins();
Display :: display_normal_message($SettingsStored);
@@ -491,7 +491,7 @@ function handle_plugins()
}
echo ' |
';
- echo ''.get_lang('ThisFieldIsRequired'), 'required');
@@ -97,7 +97,7 @@ if (api_is_allowed_to_edit())
$form->addElement('hidden', 'glossary_id');
$form->addElement('text', 'glossary_title', get_lang('TermName'));
$form->addElement('html_editor', 'glossary_comment', get_lang('TermDefinition'));
- $form->addElement('submit', 'SubmitGlossary', get_lang('Ok'));
+ $form->addElement('style_submit_button', 'SubmitGlossary', get_lang('TermUpdateButton'), 'class="save"');
// setting the defaults
$defaults = get_glossary_information(Security::remove_XSS($_GET['glossary_id']));
diff --git a/main/gradebook/lib/fe/catform.class.php b/main/gradebook/lib/fe/catform.class.php
index 328f4381e2..e019b1ea78 100644
--- a/main/gradebook/lib/fe/catform.class.php
+++ b/main/gradebook/lib/fe/catform.class.php
@@ -149,7 +149,7 @@ class CatForm extends FormValidator {
$this->addElement('hidden','hid_parent_id');
$this->addElement('textarea', 'description', get_lang('Description'),array('rows'=>'3','cols' => '34'));
$this->addElement('checkbox', 'visible',get_lang('Visible'));
- $this->addElement('submit', null, get_lang('Ok'));
+ $this->addElement('style_submit_button', null, get_lang('EditCategory'), 'class="save"');
$this->addRule('weight',get_lang('OnlyNumbers'),'numeric');
$this->addRule('weight',get_lang('NoDecimals'),'nopunctuation');
$this->addRule(array ('weight', 'zero'), get_lang('NegativeValue'), 'compare', '>=');
diff --git a/main/gradebook/lib/fe/scoredisplayform.class.php b/main/gradebook/lib/fe/scoredisplayform.class.php
index 1ef327f2ca..2f144e465c 100644
--- a/main/gradebook/lib/fe/scoredisplayform.class.php
+++ b/main/gradebook/lib/fe/scoredisplayform.class.php
@@ -138,7 +138,7 @@ class ScoreDisplayForm extends FormValidator
}
$this->setDefaults(array (
'enablescore' => $displayscore->is_custom(), 'includeupperlimit' => $displayscore->is_upperlimit_included()));
- $this->addElement('submit', 'submit', get_lang('Ok'));
+ $this->addElement('style_submit_button', 'submit', get_lang('Ok'));
}
function validate() {
return parent :: validate();
diff --git a/main/group/group_category.php b/main/group/group_category.php
index 95d69d931d..f61cf278bf 100644
--- a/main/group/group_category.php
+++ b/main/group/group_category.php
@@ -1,5 +1,5 @@
addElement('radio', 'wiki_state', null, get_lang('Public'), TOOL_PUBLIC);
$form->addElement('radio', 'wiki_state', null, get_lang('Private'), TOOL_PRIVATE);
// Submit
-$form->addElement('submit', 'submit', get_lang('Ok'));
+$form->addElement('style_submit_button', 'submit', get_lang('PropModify'), 'class="save"');
// If form validates -> save data
if ($form->validate())
{
diff --git a/main/group/group_creation.php b/main/group/group_creation.php
index 31cbc6a874..bfef53a57f 100644
--- a/main/group/group_creation.php
+++ b/main/group/group_creation.php
@@ -260,7 +260,7 @@ EOT;
$defaults['action'] = 'create_groups';
$defaults['number_of_groups'] = $_POST['number_of_groups'];
$form->setDefaults($defaults);
- $form->addElement('submit', 'submit', get_lang('Ok'));
+ $form->addElement('style_submit_button', 'submit', get_lang('Create'), 'class="save"');
$form->display();
}
}
@@ -279,7 +279,7 @@ else
$group_el[] = & $create_groups_form->createElement('static', null, null, get_lang('Create'));
$group_el[] = & $create_groups_form->createElement('text', 'number_of_groups', null, array ('size' => 3));
$group_el[] = & $create_groups_form->createElement('static', null, null, get_lang('NewGroups'));
- $group_el[] = & $create_groups_form->createElement('submit', 'submit', get_lang('Ok'));
+ $group_el[] = & $create_groups_form->createElement('style_submit_button', 'submit', get_lang('Create'), 'class="save"');
$create_groups_form->addGroup($group_el, 'create_groups', null, ' ', false);
$defaults = array ();
$defaults['number_of_groups'] = 1;
diff --git a/main/group/group_edit.php b/main/group/group_edit.php
index d60b1e8719..82989df083 100644
--- a/main/group/group_edit.php
+++ b/main/group/group_edit.php
@@ -253,7 +253,7 @@ $group_members_element->setElementTemplate('
$form->addFormRule('check_group_members');
// submit button
-$form->addElement('submit', 'submit', get_lang('Ok'));
+$form->addElement('style_submit_button', 'submit', get_lang('PropModify'), 'class="save"');
if ($form->validate()) {
$values = $form->exportValues();
diff --git a/main/img/accept.png b/main/img/accept.png
new file mode 100644
index 0000000000..89c8129a49
Binary files /dev/null and b/main/img/accept.png differ
diff --git a/main/img/addd.gif b/main/img/addd.gif
new file mode 100644
index 0000000000..6332fefea4
Binary files /dev/null and b/main/img/addd.gif differ
diff --git a/main/inc/introductionSection.inc.php b/main/inc/introductionSection.inc.php
index e1b01ced87..3c47ca9df3 100644
--- a/main/inc/introductionSection.inc.php
+++ b/main/inc/introductionSection.inc.php
@@ -73,9 +73,9 @@ else
$renderer =& $form->defaultRenderer();
$renderer->setElementTemplate('
{element}
');
-$form->addElement('submit', 'intro_cmdUpdate', get_lang('Save'));
+$form->addElement('style_submit_button', 'intro_cmdUpdate', get_lang('Save'), 'class="save"');
$form->add_html_editor('intro_content',null,null,false);
-$form->addElement('submit', 'intro_cmdUpdate', get_lang('Save'));
+$form->addElement('style_submit_button', 'intro_cmdUpdate', get_lang('Save'), 'class="save"');
/*=========================================================
INTRODUCTION MICRO MODULE - COMMANDS SECTION (IF ALLOWED)
diff --git a/main/inc/lib/fileUpload.lib.php b/main/inc/lib/fileUpload.lib.php
index c8d5de75dc..efe10c407f 100644
--- a/main/inc/lib/fileUpload.lib.php
+++ b/main/inc/lib/fileUpload.lib.php
@@ -1839,8 +1839,8 @@ function build_missing_files_form($missing_files,$upload_path,$file_name)
."\n";
}
$form .= "\n"
- ."
\n"
- ."
"
+ ."