-
Notifications
You must be signed in to change notification settings - Fork 988
/
dbconfig_view.php
98 lines (87 loc) · 5.83 KB
/
dbconfig_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
91
92
93
94
95
96
97
98
<?php $this->render("/installer/header_view", compact('progressValue', 'clang')); ?>
<?php echo CHtml::beginForm($this->createUrl('installer/database')); ?>
<div class="container_6">
<?php $this->render('/installer/sidebar_view', compact('progressValue', 'classesForStep', 'clang')); ?>
<div class="grid_4 table">
<p class="title"><?php echo $title; ?></p>
<div style="-moz-border-radius:15px; border-radius:15px; " >
<p><?php echo $descp; ?></p>
<hr />
<div style="color:red; font-size:12px;">
<?php echo CHtml::errorSummary($model, null, null, array('class' => 'errors')); ?>
</div>
<br /><?php $clang->eT("Note: All fields marked with (*) are required."); ?>
<br />
<fieldset class="content-table">
<legend class="content-table-heading"><?php $clang->eT("Database configuration"); ?></legend>
<table style="width: 672px; font-size:14px;">
<tr>
<td style="width: 428px;">
<b><?php echo CHtml::activeLabelEx($model, 'dbtype', array('label' => $clang->gT("Database type"))); ?></b><br />
<div class="description-field"><?php $clang->eT("The name of your database management system."); ?> </div>
</td>
<td style="width: 224px;" align="right">
<?php echo CHtml::activeDropDownList($model, 'dbtype', $model->supported_db_types, array('required' => 'required', 'style' => 'width: 155px', 'autofocus' => 'autofocus')); ?>
</td>
</tr>
<tr>
<td style="width: 428px;">
<b><?php echo CHtml::activeLabelEx($model, 'dblocation', array('label' => $clang->gT("Database location"))); ?></b><br />
<div class="description-field"><?php $clang->eT('Set this to the IP/net location of your database server. In most cases "localhost" will work.'); ?> </div>
</td>
<td style="width: 224px;" align="right"><?php echo CHtml::activeTextField($model, 'dblocation', array('value' => 'localhost', 'required' => 'required')) ?></td>
</tr>
<tr>
<td style="width: 428px;">
<b><?php echo CHtml::activeLabelEx($model, 'dbname', array('label' => $clang->gT("Database name"))); ?></b><br />
<div class="description-field"><?php $clang->eT("If you provide an existing database name make sure the database does not contain old tables of LimeSurvey."); ?></div>
</td>
<td style="width: 224px;" align="right"><?php echo CHtml::activeTextField($model, 'dbname', array('required' => 'required')) ?></td>
</tr>
<tr>
<td style="width: 428px;">
<b><?php echo CHtml::activeLabelEx($model, 'dbuser', array('label' => $clang->gT("Database user"))); ?></b><br />
<div class="description-field"><?php $clang->eT('Your database server user name. In most cases "root" will work.'); ?></div>
</td>
<td style="width: 224px;" align="right"><?php echo CHtml::activeTextField($model, 'dbuser', array('required' => 'required')) ?></td>
</tr>
<tr>
<td style="width: 428px;">
<b><?php echo CHtml::activeLabelEx($model, 'dbpwd', array('label' => $clang->gT("Database password"))); ?></b><br />
<div class="description-field"><?php $clang->eT("Your database server password."); ?></div>
</td>
<td style="width: 224px;" align="right"><?php echo CHtml::activePasswordField($model, 'dbpwd') ?></td>
</tr>
<tr>
<td style="width: 428px;">
<b><?php echo CHtml::activeLabelEx($model, 'dbprefix', array('label' => $clang->gT("Table prefix"))); ?></b><br />
<div class="description-field"><?php $clang->eT('If your database is shared, recommended prefix is "lime_" else you can leave this setting blank.'); ?></div>
</td>
<td style="width: 224px;" align="right"><?php echo CHtml::activeTextField($model, 'dbprefix', array('value' => 'lime_')) ?></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</fieldset>
</div>
</div>
</div>
<div class="container_6">
<div class="grid_2"> </div>
<div class="grid_4 demo">
<br/>
<table style="width: 694px; background: #ffffff;">
<tbody>
<tr>
<td align="left" style="width: 33%;"><input class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="button" value="<?php $clang->eT("Previous"); ?>" onclick="javascript: window.open('<?php echo $this->createUrl("installer/precheck"); ?>', '_top')" /></td>
<td align="center" style="width: 34%;"></td>
<td align="right" style="width: 33%;"><?php echo CHtml::submitButton($clang->gT("Next"), array('class' => 'ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only')); ?></td>
</tr>
</tbody>
</table>
</div>
</div>
<?php echo CHtml::endForm(); ?>
<?php $this->render("/installer/footer_view"); ?>