Take two:
[www-register-wizard.git] / application / views / stage2_pcu_confirm.php
1 <h3>Confirm PCU Information</h3>
2 <div class="plroundedconfirm">
3 <table><tr><td>
4 If the information below is correct, then Proceed, otherwise Update the values
5 below.
6 </td></tr>
7 <tr><td>
8                         <?= form_open("register/stage3_addnode/$pcu_id/$site_id", array('style' => 'display: inline; margin: 0px')) ?>
9
10         <center>
11                                         <input type=submit name='pcu_proceed' value='Confirm & Proceed ->'>
12         </center>
13                         </form>
14 </td></tr></table>
15 </div>
16 <br>
17 <div class="plroundedupdate">
18 <?= form_open('register/stage2_confirmpcu', array('style' => 'display: inline; margin: 0px')) ?>
19                         <table border=0 cellpadding=3>
20                         <tbody>
21                                         <tr><th>Site: </th><td><?= $pcu_site[0]['name'] ?></td></tr>
22                                 <tr><th>Model: </th>
23                                         <td>
24                                                 <select name='model'>
25                                                         <option value='none-selected'>---</option>
26                                                         <?php 
27                                                                  foreach( $pcu_types as $pcu_type ):
28                                                                         $model = $pcu_type['model'];
29                                                                         $name  = $pcu_type['name'];
30                                                                         if( $pcu->data['model'] == $model)
31                                                                                 $selected = "selected";
32                                                                         else
33                                                                                 $selected = "";
34                                                                         ?>
35                                                                         <option value='<?= $model ?>' <?= $selected ?>><?= $name ?></option>
36                                                         <?php endforeach; ?>
37                                                 </select>
38                                         </td>
39                                 </tr>
40                                 <tr>
41                                         <th>Hostname: </th>
42                                         <td>
43                                                 <input type=text name='hostname' size=40 value='<?= $pcu->data['hostname'] ?>'>
44                                                 <?= ( $this->disp_errors ? $this->validation->hostname_error : "" ) ?>
45                                         </td>
46                                 </tr>
47                                 <tr><th>IP Address: </th>
48                                         <td><input type=text name='ip' value='<?= $pcu->data['ip'] ?>'>
49                                                 <?= ( $this->disp_errors ? $this->validation->ip_error : "" ) ?>
50                                         </td>
51                                 </tr>
52                                 <tr><th>Username: </th>
53                                         <td><input type=text name='username' value='<?= $pcu->data['username'] ?>'>
54                                                 <?= ( $this->disp_errors ? $this->validation->username_error : "" ) ?>
55                                         </td>
56                                 </tr>
57                                 <tr><th>Password: </th>
58                                         <td>
59                                                 <input type=text name='password' value='<?= $pcu->data['password'] ?>'>
60                                                 <?= ( $this->disp_errors ? $this->validation->password_error : "" ) ?>
61                                         </td>
62                                 </tr>
63                                 <tr><th>Notes: </th>
64                                         <td><textarea name="notes" rows=5 cols=40><?= $pcu->data['notes'] ?></textarea></td>
65                                 </tr>
66                 <tr>
67                         <td></td>
68                         <td>
69                                 <input type=hidden name='pcu_id' value='<?= $pcu_id ?>'>
70                                 <input type=hidden name='site_id' value='<?= $site_id ?>'>
71                                 <input type=submit name='pcu_update' value='Update'> 
72                         </form>
73                         </td>
74                 </tr>
75         </tbody>
76         </table>
77 </div>
78         <br /><p>
79                         <a href='/db/sites/index.php?id=<?= $default_site_list[0] ?>'>Back to Home Site</a>