database_confirm.tpl
3.79 KB
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
<form id="services_database_registration" action="index.php?step_name=<?php echo $step_name; ?>" method="post">
<p class="title">Confirming Database Configurations</p>
<div class="description">
Confirm whether KnowledgeTree has correctly determined your database settings before proceeding. Print this page for future use. <a href="javascript:window.print()">Click to Print This Page</a>
</div>
<div id="step_content_<?php echo $step_name; ?>_confirm" class="step">
<h3><b>Database Settings</b></h3>
<table class="dbconf">
<?php
if($dtypes) {
$type = '';
foreach($dtypes as $k=>$v) {
$type = (!$k) ? $v : $type;
}
?>
<tr>
<td width="153px">Database Type: </td>
<td width="15px"> <div id="tooltips" title="Type of database being used."> </div> </td>
<td><?php echo $type." (Currently the only supported database.)"; ?></td>
</tr>
<?php } ?>
<tr>
<td>Database Name: </td>
<td> <div id="tooltips" title="Name of the database being created."> </div> </td>
<td><?php echo $dname; ?></td>
</tr>
<tr>
<td>Root Username: </td>
<td> <div id="tooltips" title="Root user name of the database."> </div> </td>
<td><?php echo $duname; ?></td>
</tr>
<tr>
<td>Root Password: </td>
<td> <div id="tooltips" title="Root user password of the database"> </div> </td>
<td><?php for($i=0; $i< strlen($dpassword); $i++) echo "*"; //echo $dpassword; ?></td>
</tr>
<?php if($ddrop) { ?>
<tr>
<td colspan="2"><b>You are about to drop the database if it exists </b></td>
</tr>
<?php } ?>
</table>
<h3><b>Advanced Settings</b></h3>
<table class="dbconf">
<tr>
<td width="153px">Host: </td>
<td width="15px"> <div id="tooltips" title="The address of the server where the database is located"> </div> </td>
<td><?php echo $dhost; ?></td>
</tr>
<tr>
<td>Port: </td>
<td> <div id="tooltips" title="The port on which your database server is listening"> </div> </td>
<td><?php echo $dport; ?></td>
</tr>
<tr>
<td>Mysql Binary: </td>
<td> <div id="tooltips" title="The path to the database binary"> </div> </td>
<td><?php echo $dbbinary; ?></td>
</tr>
<?php if (!$silent) { ?>
<tr>
<td><b>Table Prefix: </td>
<td> <div id="tooltips" title="If needed, a prefix to the database name."> </div> </td>
<td><?php echo $tprefix; ?></td>
</tr>
<?php } ?>
</table>
<h3><b>Database Users (System Generated)</b></h3>
<table class="dbconf">
<tr>
<td width="153px">DMS Admin Username: </td>
<td width="15px"> <div id="tooltips" title="Database Administrative User for KnowledgeTree System"> </div> </td>
<td><?php echo $dmsname; ?></td>
</tr>
<tr>
<td>DMS Admin Password: </td>
<td> <div id="tooltips" title="Database Administrative User password"> </div> </td>
<td><?php echo $dmspassword; ?></td>
</tr>
<tr>
<td>DMS User Username: </td>
<td> <div id="tooltips" title="Database User for KnowledgeTree System"> </div> </td>
<td><?php echo $dmsusername; ?></td>
</tr>
<tr>
<td>DMS User Password: </td>
<td> <div id="tooltips" title="Database User password"> </div> </td>
<td><?php echo $dmsuserpassword; ?></td>
</tr>
</table>
</div>
<input type="submit" name="Edit" value="Edit" class="button_previous"/>
<input type="submit" name="Confirm" value="Confirm" class="button_next"/>
</form>
<?php if (AJAX) { echo $html->js('form.js'); } ?>