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 ?>>
55 <tr><th>ERROR:</th><td>No sites returned...</td></tr>
60 <option value='none-selected'
61 <?= $this->validation->set_select('model', 'none-selected') ?>>---</option>
62 <?php foreach( $pcu_types as $pcu_type ): ?>
63 <option value='<?= $pcu_type['model'] ?>'
64 <?= $this->validation->set_select('model', $pcu_type['model']) ?>>
65 <?= $pcu_type['name'] ?>
74 <input type=text name='hostname' size=40
75 value='<?= $this->validation->hostname ?>'>
76 <?= $this->validation->hostname_error ?>
79 <tr><th>IP Address: </th>
81 <input type=text name='ip'
82 value='<?= $this->validation->ip ?>'>
83 <?= $this->validation->ip_error ?>
86 <tr><th>Username: </th>
88 <input type=text name='username'
89 value='<?= $this->validation->username ?>'>
90 <?= $this->validation->username_error ?>
93 <tr><th>Password: </th>
95 <input type=text name='password'
96 value='<?= $this->validation->password ?>'>
97 <?= $this->validation->password_error ?>
101 <td><textarea name="notes" rows=5 cols=40></textarea></td>
105 <input type=submit name='pcu_register' value='Add New PCU'>
113 <table border=0 cellpadding=3>
115 <tr><td></td><td><h3>PCU Added Successfully!!!!</h3></td></tr>
116 <?php if ( ! empty($error) ): ?>
117 <tr><td></td><td><?= $error ?></td></tr>
123 <a href='/db/sites/index.php?id=<?= $default_site_list[0] ?>'>Back to Home Site</a>