Пример #1
0
										<select name="select_host_role_id">
											' . $html_select_host_roles . '
										</select>
										<button name="operation" value="host_role_add" type="submit">Add</button>
									</td>
								</tr>
							</table>
						</form>
					</div>
				</div>
			</div>';
        break;
    case 'resources':
        $active_host_array = ace_get_active_hosts();
        $media_array = ace_get_iso_table();
        $base_volume_array = ace_get_shared_volume_table();
        $html = '
            <div class="element_table">
                <div class="element_column">
                    <div class="element">
                        <p align="center"><strong>Media</strong></p>
                    </div>
                    <div class="element">
                        <table>';
        if (is_array($media_array)) {
            foreach ($media_array as $media) {
                $html .= '
                            <tr>
                                <td>' . $media['display_name'] . '</td>
                            </tr>';
            }
Пример #2
0
    ?>
            <input name="nonce" value=<?php 
    echo $nonce;
    ?>
 type="hidden" title="nonce"/>
        </form>
    </div>
    <div class="clear"></div>
</div>
    <!-- END MENU BAR 2 -->

    <?php 
    $quota_array = ace_lab_get_quota_array($lab_id);
    $last_error = $_POST['last_error'];
    $iso_table = ace_get_iso_table();
    $ace_volume_table = ace_get_shared_volume_table();
    $lab_volume_table = ace_lab_get_volume_table($lab_id);
    $lab_network_table = ace_lab_get_network_table($lab_id);
    $lab_vm_table = ace_lab_get_vm_table($lab_id);
    # POPULATE FORM CONTROLS
    # VM SELECT OPTIONS
    $html_vm_cdrom_dropdown_list = NULL;
    foreach ($lab_vm_table as $vm) {
        if ($vm['user_visible'] == 1) {
            $vm_cdroms = ace_vm_get_cdrom_table($vm['id']);
            foreach ($vm_cdroms as $vm_cdrom) {
                $html_vm_cdrom_dropdown_list .= '<option value="' . $vm_cdrom['vm_id'] . '_' . $vm_cdrom['instance'] . '">' . $vm['display_name'] . ' : cd' . $vm_cdrom['instance'] . '</option>';
            }
        }
    }
    //    $vm_is_running = (ace_vm_get_virt_state($vm['id']) == 1) ? TRUE : FALSE;