From c83cc198e9852f4babdbc91e245f784a43cb1337 Mon Sep 17 00:00:00 2001 From: Shnoulle Date: Tue, 28 Feb 2012 21:37:20 +0100 Subject: [PATCH] Fixed issue #5846 and #4948: accessibility for some question type : add label Dev : Add label for short-text long-text huget-text numeric date list-dropdown langage switch --- application/helpers/qanda_helper.php | 34 +++++++++++++-------- application/helpers/replacements_helper.php | 6 +--- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/application/helpers/qanda_helper.php b/application/helpers/qanda_helper.php index 212f08d492d..b8738adfed2 100644 --- a/application/helpers/qanda_helper.php +++ b/application/helpers/qanda_helper.php @@ -1280,8 +1280,8 @@ function do_date($ia) $goodchars = str_replace( array("m","d","y"), "", $dateformatdetails['jsdate']); $goodchars = "0123456789".$goodchars[0]; - $answer ="

- gT('Date picker')."\" size=\"10\" name=\"{$ia[1]}\" id=\"answer{$ia[1]}\" value=\"$dateoutput\" maxlength=\"10\" onkeypress=\"return goodchars(event,'".$goodchars."')\" onchange=\"$checkconditionFunction(this.value, this.name, this.type)\" /> + $answer ="

+ @@ -1313,7 +1313,9 @@ function do_language($ia) $answerlangs = Survey::model()->findByPk(Yii::app()->getConfig('surveyID'))->additionalLanguages; $answerlangs [] = Survey::model()->findByPk(Yii::app()->getConfig('surveyID'))->language; - $answer = "\n\t

\n\n"; if (!$_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$ia[1]]) {$answer .= "\t\n";} foreach ($answerlangs as $ansrow) { @@ -1532,7 +1534,7 @@ function do_list_dropdown($ia) $sselect_show_hide = ''; } $sselect = ' -

" + . " \n$prefix\t" + . "getConfig('surveyID')][$ia[1]]."\" onkeypress=\"return goodchars(event,'-0123456789{$acomma}')\" onchange='$checkconditionFunction(this.value, this.name, this.type)'" . " {$maxlength} />\t{$suffix}\n

\n"; if ($aQuestionAttributes['hide_tip']==0) { @@ -4059,8 +4065,8 @@ function do_shortfreetext($ia) //NEW: textarea instead of input=text field // --> START NEW FEATURE - SAVE - $answer ="

"; - $answer .= '