",
"",
"";
}
diff --git a/main/survey/create_new_survey.php b/main/survey/create_new_survey.php
index 8c77a0622a..ac1646fdae 100644
--- a/main/survey/create_new_survey.php
+++ b/main/survey/create_new_survey.php
@@ -25,7 +25,7 @@
* @author unknown, the initial survey that did not make it in 1.8 because of bad code
* @author Patrick Cool , Ghent University: cleanup, refactoring and rewriting large parts (if not all) of the code
* @author Julio Montoya Armas , Dokeos: Personality Test modification and rewriting large parts of the code
-* @version $Id: create_new_survey.php 19004 2009-03-12 18:04:08Z juliomontoya $
+* @version $Id: create_new_survey.php 19254 2009-03-24 22:18:53Z cvargas1 $
*
* @todo only the available platform languages should be used => need an api get_languages and and api_get_available_languages (or a parameter)
*/
@@ -263,7 +263,14 @@ if ((isset($_GET['action']) && $_GET['action'] == 'edit') && !empty($survey_id)
}
$form -> addElement('html',' ');
-$form->addElement('style_submit_button', 'submit_survey', get_lang('Ok'), 'class="save"');
+if(isset($_GET['survey_id']) && $_GET['action']=='edit') {
+ $class="save";
+ $text=get_lang('ModifySurvey');
+} else {
+ $class="add";
+ $text=get_lang('CreateSurvey');
+}
+$form->addElement('style_submit_button', 'submit_survey', $text, 'class="'.$class.'"');
// setting the rules
if ($_GET['action'] == 'add')
diff --git a/main/survey/survey.lib.php b/main/survey/survey.lib.php
index 3aab5f3d93..7189ac16db 100644
--- a/main/survey/survey.lib.php
+++ b/main/survey/survey.lib.php
@@ -24,7 +24,7 @@
* @package dokeos.survey
* @author Patrick Cool , Ghent University: cleanup, refactoring and rewriting large parts (if not all) of the code
@author Julio Montoya Armas , Dokeos: Personality Test modification and rewriting large parts of the code
-* @version $Id: survey.lib.php 19045 2009-03-13 23:33:29Z derrj $
+* @version $Id: survey.lib.php 19254 2009-03-24 22:18:53Z cvargas1 $
*
* @todo move this file to inc/lib
* @todo use consistent naming for the functions (save vs store for instance)
@@ -1406,9 +1406,16 @@ class question
*/
function render_form()
{
+ if(isset($_GET['question_id']) and !empty($_GET['question_id'])) {
+ $class="save";
+ $text=get_lang('ModifyQuestionSurvey');
+ } else {
+ $class="add";
+ $text=get_lang('CreateQuestionSurvey');
+ }
$this->html .= '