<td><input type="text" name="img" /></td> </tr> <tr> <td>Disk device in the guest: </td> <td><input type="text" name="dev" value="hdb" /></td> </tr> <tr align="center"> <td colspan="2"><input type="submit" value=" Add new disk " /></td> </tr> </table> </form>'; } } if ($subaction == 'nic-remove') { if (array_key_exists('confirm', $_GET) && $_GET['confirm'] == 'yes') { $ret = $lv->domain_nic_remove($domName, $_GET['mac']) ? 'Network card has been removed successfully' : 'Cannot remove network card: ' . $lv->get_last_error(); } else { $ret = '<table> <tr> <td colspan="2"> <b>Do you really want to delete NIC with MAC address <i>' . $_GET['mac'] . ' from the guest</i> ?</b><br /> </td> </tr> <tr align="center"> <td> <a href="' . $_SERVER['REQUEST_URI'] . '&confirm=yes">Yes, delete it</a> </td> <td> <a href="?action=' . $action . '&uuid=' . $_GET['uuid'] . '">No, go back</a> </td> </tr>';