1 <div class="plroundedconfirm">
2 <?= form_open('register/stage2_confirmpcu') ?>
3 <table border=0 cellpadding=3>
5 <?php if ( !empty($pcu_list) ): ?>
6 <tr><td colspan='2'><h3>Choose an Existing PCU</h3></td></tr>
7 <tr><th>PCU Name: </th><td>
9 <?php foreach ( $pcu_list as $pcu ): ?>
10 <option value='<?= $pcu->data['pcu_id'] ?>' <?= ( $this->pcu_id == $pcu->data['pcu_id'] ? "selected" : "") ?>>
11 <?= $pcu->pcu_name() ?>
19 <input type=submit name='pcu_choose' value='Continue'>
28 <div class="plroundedupdate">
29 <?php if ( !isset($pcu_id) || $pcu_id == 0 ): ?>
30 <?= form_open('register/stage1_addpcu') ?>
31 <table border=0 cellpadding=3>
33 <tr><td colspan='2'><h3>Or, Register a New PCU</h3></td></tr>
34 <?php if ( !empty($site_list) ): ?>
35 <tr><th>Site: </th><td>
36 <select name='site_id'>
38 foreach ( $site_list as $site )
40 if ( $site['site_id'] == $default_site_list[0] )
41 $selected = " selected";
45 <option value='<?= $site['site_id'] ?>' <?= $selected ?>>
58 <option value='none-selected'
59 <?= $this->validation->set_select('model', 'none-selected') ?>>---</option>
60 <?php foreach( $pcu_types as $pcu_type ): ?>
61 <option value='<?= $pcu_type['model'] ?>'
62 <?= $this->validation->set_select('model', $pcu_type['model']) ?>>
63 <?= $pcu_type['name'] ?>
72 <input type=text name='hostname' size=40
73 value='<?= $this->validation->hostname ?>'>
74 <?= $this->validation->hostname_error ?>
77 <tr><th>IP Address: </th>
79 <input type=text name='ip'
80 value='<?= $this->validation->ip ?>'>
81 <?= $this->validation->ip_error ?>
84 <tr><th>Username: </th>
86 <input type=text name='username'
87 value='<?= $this->validation->username ?>'>
88 <?= $this->validation->username_error ?>
91 <tr><th>Password: </th>
93 <input type=text name='password'
94 value='<?= $this->validation->password ?>'>
95 <?= $this->validation->password_error ?>
99 <td><textarea name="notes" rows=5 cols=40></textarea></td>
103 <input type=submit name='pcu_register' value='Add New PCU'>
111 <table border=0 cellpadding=3>
113 <tr><td></td><td><h3>PCU Added Successfully!!!!</h3></td></tr>
114 <?php if ( ! empty($error) ): ?>
115 <tr><td></td><td><?= $error ?></td></tr>
121 <a href='/db/sites/index.php?id=<?= $default_site_list[0] ?>'>Back to Home Site</a>