/
caption_view.php
90 lines (81 loc) · 3.79 KB
/
caption_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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!--
dataentry/caption_view.php
-->
<div class="side-body">
<h3><?php eT("Data entry"); ?></h3>
<div class="row">
<div class="col-lg-12 content-right">
<!-- Survey name and description -->
<div class="jumbotron ">
<h2><?php echo stripJavaScript($thissurvey['name']); ?></h2>
<p><?php echo flattenText($thissurvey['description'],true); ?></p>
</div>
<?php echo CHtml::form(array("admin/dataentry/sa/insert"), 'post', array('name'=>'addsurvey', 'id'=>'addsurvey', 'enctype'=>'multipart/form-data'));?>
<table class='data-entry-tbl table'>
<tr class='data-entry-separator'>
<td colspan='3'></td>
</tr>
<?php if (count(Survey::model()->findByPk($surveyid)->additionalLanguages)>0):?>
<tr>
<td colspan='3' class="langlistbox">
<?php echo $langlistbox; ?>
</td>
</tr>
<tr class='data-entry-separator'>
<td colspan='3'></td>
</tr>
<?php endif; ?>
<?php if (tableExists('{{tokens_'.$thissurvey['sid'].'}}')) //Give entry field for token id
{ ?>
<tr>
<td valign='top' width='1%'></td>
<td valign='top' align='right' width='30%'><font color='red'>*</font>
<strong><?php echo gT("Token",'html',$sDataEntryLanguage); ?>:</strong>
</td>
<td valign='top' align='left' style='padding-left: 20px'>
<input type='text' id='token' name='token' onkeyup='activateSubmit(this);' />
</td>
</tr>
<tr class='data-entry-separator'><td colspan='3'>
<script type="text/javascript"><!--
function activateSubmit(me)
{
if (me.value != '')
{
$('#submitdata').button("option", "disabled", false);
$('#save-button').prop('disabled', false);
}
else
{
$('#submitdata').button("option", "disabled", true);
$('#save-button').prop('disabled', true);
}
}
//--></script>
</td></tr>
<?php }
if ($thissurvey['datestamp'] == "Y") //Give datestampentry field
{
$localtimedate=dateShift(date("Y-m-d H:i:s"), "Y-m-d H:i", Yii::app()->getConfig('timeadjust')); ?>
<tr>
<td valign='top' width='1%'></td>
<td valign='top' align='right' width='30%'><strong>
<?php echo gT("Datestamp",'html',$sDataEntryLanguage); ?>:</strong></td>
<td valign='top' align='left' style='padding-left: 20px'>
<input type='text' name='datestamp' value='<?php echo $localtimedate; ?>' />
</td>
</tr>
<tr class='data-entry-separator'><td colspan='3'></td></tr>
<?php }
if ($thissurvey['ipaddr'] == "Y") //Give ipaddress field
{ ?>
<tr>
<td valign='top' width='1%'></td>
<td valign='top' align='right' width='30%'><strong>
<?php echo gT("IP address",'html',$sDataEntryLanguage); ?>:</strong></td>
<td valign='top' align='left' style='padding-left: 20px'>
<input type='text' name='ipaddr' value='NULL' />
</td>
</tr>
<tr class='data-entry-separator'><td colspan='3'></td></tr>
<?php } ?>