added images to make this an all-in-one package.
[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 <?php if ( $pcu_assigned ): ?>
19 <?= form_open("download/stage5_bootimage/$pcu_id/$site_id/$node_id", array('method'=>'post')) ?>
20 <center>
21                 <input type=hidden name='pcu_id' value='<?= $pcu_id ?>'>
22                 <input type=hidden name='node_id' value='<?= $node_id ?>'>
23                 <input type=hidden name='site_id' value='<?= $site_id ?>'>
24                 <input type=submit name='node_confirm' value='Confirm & Proceed'>
25 </center>
26 </form>
27 <?php endif; ?>
28 </div>
29 <br>
30 <div class="plroundedupdate">
31 <?= form_open("register/stage45_mappcu/$pcu_id/$site_id/$node_id", array('name'=>'fm', 'method'=>'post')) ?>
32                 <table border=0 cellpadding=3>
33                         <tbody>
34                 <tr><td colspan='2'>
35                 </td></tr>
36                                 </tr>
37                                         <th width=200>Hostname : PCUPort</td>
38                                         <td><?= $node->hostname ?> : <?= $pcu_port ?></td>
39                                 <tr>
40                                         <th>PCU Port:</th>
41                                         <td>
42                                                 <select name='port_number'>
43                                                         <option value='noaction'>--</option>
44                                                         <?php 
45                                                                         $ports= array( 1, 2, 3, 4, 5, 6, 7, 8);
46                                                                         foreach ($ports as $port )
47                                                                         {?>
48                                                                                 <option value='<?= $port ?>'>
49                                                                                         <?= $node->hostname ?> port <?= $port ?>
50                                                                                 </option>
51                                                         <?php   } ?>
52                                                 </select>
53
54                                         </td>
55                                 </tr>
56                                 <tr><td></td>
57                                         <td>
58                                                 <input type=hidden name='pcu_id' value='<?= $pcu_id ?>'>
59                                                 <input type=hidden name='node_id' value='<?= $node_id ?>'>
60                                                 <input type=hidden name='site_id' value='<?= $site_id ?>'>
61                                                 <input type=submit name='pcumap_update' value='Update & Return'> 
62                                         </td>
63                                 </tr>
64                         </tbody>
65                         </table>
66 </div>
67         <br /><p>
68                         <a href='/db/sites/index.php?id=<?= $site_id ?>'>Back to Home Site</a>
69         
70         </form>