Take two:
[www-register-wizard.git] / application / views / stage45_pcuport.php
1 <?php
2 if( isset($errors) && count($errors) > 0 )
3 {
4   print( "<p><strong>The following errors occured:</strong>" );
5   print( "<font color='red' size='-1'><ul>\n" );
6   foreach( $errors as $err )
7     {
8       print( "<li>$err\n" );
9     }
10   print( "</ul></font>\n" );
11 }
12 ?>
13 <div class="plroundedconfirm">
14 <h3>Confirm PCU Port to Node Mapping</h3>
15 Please confirm that the node is associated with the correct port on the PCU.
16 Most newer models have this function built-in, where as older models allow for
17 multiple 'ports'.  Port 1 is appropriate for built-in models.
18 <?= form_open("download/stage5_bootimage/$pcu_id/$site_id/$node_id", array('method'=>'post')) ?>
19 <center>
20                 <input type=hidden name='pcu_id' value='<?= $pcu_id ?>'>
21                 <input type=hidden name='node_id' value='<?= $node_id ?>'>
22                 <input type=hidden name='site_id' value='<?= $site_id ?>'>
23                 <input type=submit name='node_confirm' value='Confirm & Proceed'>
24 </center>
25 </form>
26 </div>
27 <br>
28 <div class="plroundedupdate">
29 <?= form_open("register/stage45_mappcu/$pcu_id/$site_id/$node_id", array('name'=>'fm', 'method'=>'post')) ?>
30                 <table border=0 cellpadding=3>
31                         <tbody>
32                 <tr><td colspan='2'>
33                 </td></tr>
34                                 </tr>
35                                         <th width=200>Hostname : PCUPort</td>
36                                         <td><?= $node->hostname ?> : <?= $pcu_port ?></td>
37                                 <tr>
38                                         <th>PCU Port:</th>
39                                         <td>
40                                                 <select name='port_number'>
41                                                         <option value='noaction'>--</option>
42                                                         <?php 
43                                                                         $ports= array( 1, 2, 3, 4, 5, 6, 7, 8);
44                                                                         foreach ($ports as $port )
45                                                                         {?>
46                                                                                 <option value='<?= $port ?>'>
47                                                                                         <?= $node->hostname ?> port <?= $port ?>
48                                                                                 </option>
49                                                         <?php   } ?>
50                                                 </select>
51
52                                         </td>
53                                 </tr>
54                                 <tr><td></td>
55                                         <td>
56                                                 <input type=hidden name='pcu_id' value='<?= $pcu_id ?>'>
57                                                 <input type=hidden name='node_id' value='<?= $node_id ?>'>
58                                                 <input type=hidden name='site_id' value='<?= $site_id ?>'>
59                                                 <input type=submit name='pcumap_update' value='Update & Return'> 
60                                         </td>
61                                 </tr>
62                         </tbody>
63                         </table>
64 </div>
65         <br /><p>
66                         <a href='/db/sites/index.php?id=<?= $site_id ?>'>Back to Home Site</a>
67         
68         </form>