createUrl('admin/questions', array('sa' => 'ajaxValidate','surveyid'=>$surveyid));
}else{
$sValidateUrl=$this->createUrl('admin/questions', array('sa' => 'ajaxValidate','surveyid'=>$surveyid,'qid'=>$qid));
}
?>
'form30','id'=>'frmeditquestion','name'=>'frmeditquestion')); ?>
-
eT("Note: You MUST enter a new question code!"); ?>
-
gT("Question:", "js")."](".$eqrow['language'].")",$surveyid,$gid,$qid,$action); ?>
-
gT("Help:", "js")."](".$eqrow['language'].")",$surveyid,$gid,$qid,$action); ?>
attributes;
?>
-
gT("Question:", "js")."](".$aqrow['language'].")",$surveyid,$gid,$qid,$action); ?>
-
gT("Help:", "js")."](".$aqrow['language'].")",$surveyid,$gid,$qid,$action); ?>
findByPk($surveyid)->additionalLanguages;
foreach ($addlanguages as $addlanguage)
{ ?>
-
gT("Question:", "js")."](".$addlanguage.")",$surveyid,$gid,$qid,$action); ?>
-
gT("Help:", "js")."](".$addlanguage.")",$surveyid,$gid,$qid,$action); ?>
-
$questionType)
{
if (!isset($groups[$questionType['group']]))
{
$groups[$questionType['group']] = array();
}
$groups[$questionType['group']][$key] = $questionType['description'];
}
$this->widget('ext.bootstrap.widgets.TbSelect2', array(
'data' => $groups,
'name' => 'type',
'options' => array(
'width' => '300px',
'minimumResultsForSearch' => 1000
),
'events' => array(
),
'htmlOptions' => array(
'id' => 'question_type',
'options' => array(
$eqrow['type']=>array('selected'=>true))
)
));
$script = '$("#question_type option").addClass("questionType");';
App()->getClientScript()->registerScript('add_class_to_options', $script);
}
else
{
$aQtypeData=array();
foreach (getQuestionTypeList($eqrow['type'], 'array') as $key=> $questionType)
{
$aQtypeData[]=array('code'=>$key,'description'=>$questionType['description'],'group'=>$questionType['group']);
}
echo CHtml::dropDownList('type','category',CHtml::listData($aQtypeData,'code','description','group'),
array('class' => 'none','id'=>'question_type','options' => array($eqrow['type']=>array('selected'=>true)))
);
}
}
else
{
$qtypelist=getQuestionTypeList('','array');
echo "{$qtypelist[$eqrow['type']]['description']} - ".$clang->gT("Cannot be changed (survey is active)"); ?>
' />
-
-
gT("Cannot be changed (survey is active)"); ?>
' />
-
checked
/>
checked='checked'
/>
eT("Yes"); else $clang->eT("No");
echo " - ".$clang->gT("Cannot be changed (survey is active)"); ?>
-
checked='checked'
/>
checked='checked'
/>
-
eT("Note: You can't edit the relevance equation because there are currently conditions set for this question."); ?>
-
-
-
-
-
eT("Show advanced settings"); ?>eT("Hide advanced settings"); ?>
' />
hasSurveyPermission($surveyid,'surveycontent','import'))
{ ?>
'importquestion', 'name'=>'importquestion', 'enctype'=>'multipart/form-data','onsubmit'=>"return validatefilename(this, '".$clang->gT("Please select a file to import!",'js')."');")); ?>