/
tabGeneralNewSurvey_view.php
73 lines (66 loc) · 4.16 KB
/
tabGeneralNewSurvey_view.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<div id='general'>
<ul>
<li>
<label for='language' title='<?php $clang->eT("This is the base language of your survey and it can't be changed later. You can add more languages after you have created the survey."); ?>'><span class='annotationasterisk'>*</span><?php $clang->eT("Base language:"); ?></label>
<select id='language' name='language'>
<?php foreach (getLanguageDataRestricted (false, Yii::app()->session['adminlang']) as $langkey2 => $langname) { ?>
<option value='<?php echo $langkey2; ?>'
<?php if (Yii::app()->getConfig('defaultlang') == $langkey2) { ?>
selected='selected'
<?php } ?>
><?php echo $langname['description']; ?> </option>
<?php } ?>
</select>
<span class='annotation'> <?php $clang->eT("*This setting cannot be changed later!"); ?></span></li>
<li><label for='surveyls_title'><?php $clang->eT("Title"); ?> :</label>
<input type='text' size='82' maxlength='200' id='surveyls_title' name='surveyls_title' required="required" autofocus="autofocus" /> <span class='annotation'><?php $clang->eT("Required"); ?> </span>
</li>
<li><label for='description'><?php $clang->eT("Description:"); ?> </label>
<div class='htmleditor'>
<textarea cols='80' rows='10' id='description' name='description'></textarea>
</div>
<?php echo getEditor("survey-desc", "description", "[" . $clang->gT("Description:", "js") . "]", '', '', '', $action); ?>
</li>
<li><label for='welcome'><?php $clang->eT("Welcome message:"); ?> </label>
<div class='htmleditor'>
<textarea cols='80' rows='10' id='welcome' name='welcome'></textarea>
<?php echo getEditor("survey-welc", "welcome", "[" . $clang->gT("Welcome message:", "js") . "]", '', '', '', $action) ?>
</div>
</li>
<li><label for='endtext'><?php $clang->eT("End message:") ;?> </label>
<div class='htmleditor'>
<textarea cols='80' id='endtext' rows='10' name='endtext'></textarea>
</div>
<?php echo getEditor("survey-endtext", "endtext", "[" . $clang->gT("End message:", "js") . "]", '', '', '', $action) ?>
</li>
<li><label for='url'><?php $clang->eT("End URL:"); ?></label>
<input type='text' size='50' id='url' name='url' value='http://' /></li>
<li><label for='urldescrip'><?php $clang->eT("URL description:") ; ?></label>
<input type='text' maxlength='255' size='50' id='urldescrip' name='urldescrip' value='' /></li>
<li><label for='dateformat'><?php $clang->eT("Date format:") ; ?></label>
<select size='1' id='dateformat' name='dateformat'>
<?php foreach (getDateFormatData () as $index => $dateformatdata) { ?>
<option value='<?php echo $index; ?>'> <?php echo $dateformatdata['dateformat'] ; ?>
</option>
<?php } ?>
</select>
</li>
<li><label for='numberformat'><?php $clang->eT("Decimal mark:"); ?></label>
<select size='1' id='numberformat' name='numberformat'>
<?php foreach (getRadixPointData() as $index=>$radixptdata)
{ ?>
<option value='<?php echo $index; ?>'
><?php echo $radixptdata['desc']; ?></option>
<?php } ?>
</select>
</li>
<li><label for='admin'><?php $clang->eT("Administrator:") ; ?></label>
<input type='text' size='50' id='admin' name='admin' value='<?php echo $owner['full_name'] ; ?>' /></li>
<li><label for='adminemail'><?php $clang->eT("Admin Email:") ; ?></label>
<input type='email' size='50' id='adminemail' name='adminemail' value='<?php echo $owner['email'] ; ?>' /></li>
<li><label for='bounce_email'><?php $clang->eT("Bounce Email:") ; ?></label>
<input type='email' size='50' id='bounce_email' name='bounce_email' value='<?php echo $owner['bounce_email'] ; ?>' /></li>
<li><label for='faxto'><?php $clang->eT("Fax to:") ; ?></label>
<input type='text' size='50' id='faxto' name='faxto' /></li>
</ul>
</div>