/
form.php
42 lines (41 loc) · 1.96 KB
/
form.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* form
* @todo : set some var to core : input name for starting
*/
?>
<div class=''>
<div class='form-group'>
<div class='form-group captcha-item'>
<label class='control-label col-sm-3' for='loadsecurity'><?php echo gT("Please solve the following equation:") ?></label>
<div class='col-sm-7'>
<div class='ls-input-group'>
<div class='ls-input-group-extra captcha-widget' >
<?php $this->widget('CCaptcha',array(
'buttonOptions'=>array('class'=> 'btn btn-xs btn-info'),
'buttonType' => 'button',
'buttonLabel' => gT('Reload image','unescaped')
)); ?>
</div>
<input class='form-control' type='text' size='15' maxlength='15' id='loadsecurity' name='loadsecurity' value='' alt='' required>
</div>
</div>
</div>
<!-- hidden fields : move this to controller -->
<?php echo CHtml::hiddenField('lang', $sLangCode, array('id' => 'lang')); ?>
<?php if ($bNewTest): ?>
<?php echo CHtml::hiddenField('newtest', "Y", array('id' => 'lang')); ?>
<?php endif; ?>
<?php
if ($bDirectReload) : ?>
<?php echo CHtml::hiddenField('loadall', $iSurveyId, array('id' => 'loadall')); ?>
<?php echo CHtml::hiddenField('scid', $sCid, array('id' => 'scid')); ?>
<?php echo CHtml::hiddenField('loadname', $Loadname, array('id' => 'loadname')); ?>
<?php echo CHtml::hiddenField('loadpass', $sLoadpass, array('id' => 'loadpass')); ?>
<?php endif; ?>
<div class='form-group load-survey-row load-survey-submit'>
<div class='col-sm-7 col-md-offset-3 load-survey-input input-cell'>
<button type='submit' id='default' name="continue" class='btn btn-default' value='continue'><?php echo gT("Continue") ?></button>
</div>
</div>
</div>