?> </span></a></li> </ul> </td> </tr> <tr> <td class="tabcont"> <?php if ($input_errors) { print_input_errors($input_errors); } ?> <form action="disks_mount_tools.php" method="post" name="iform" id="iform"> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <?php html_mountcombobox("mountpoint", gettext("Mount point"), $uuid, "", true); ?> <?php html_combobox("action", gettext("Command"), $action, array("mount" => gettext("mount"), "umount" => gettext("umount")), "", true); ?> </table> <div id="submit"> <input name="Submit" type="submit" class="formbtn" value="<?php echo gettext("Execute"); ?> " /> </div> <?php if ($do_action && !$errormsg) { echo sprintf("<div id='cmdoutput'>%s</div>", gettext("Command output:")); echo '<pre class="cmdoutput">';
} ?> <?php if ($savemsg) { print_info_box($savemsg); } ?> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <?php html_titleline_checkbox("enable", gettext("Swap memory"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)"); ?> <?php html_combobox("type", gettext("Type"), $pconfig['type'], array("file" => gettext("File"), "device" => gettext("Device")), "", true, false, "type_change()"); ?> <?php html_mountcombobox("mountpoint", gettext("Mount point"), $pconfig['mountpoint'], gettext("Select mount point where to create the swap file."), true); ?> <?php html_inputbox("size", gettext("Size"), $pconfig['size'], gettext("The size of the swap file in MB."), true, 10); ?> <?php html_inputbox("devicespecialfile", gettext("Device"), $pconfig['devicespecialfile'], sprintf(gettext("Name of the device to use as swap device, e.g. %s."), "/dev/ad0s3"), true, 20); ?> </table> <div id="submit"> <input name="Submit" type="submit" class="formbtn" value="<?php echo gettext("Save"); ?> " onclick="enable_change(true)" /> </div> <?php
?> </span></a></li> </ul> </td> </tr> <tr> <td class="tabcont"> <?php if ($input_errors) { print_input_errors($input_errors); } ?> <form action="disks_mount_tools.php" method="post" name="iform" id="iform"> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <?php html_mountcombobox("mountpoint", gettext("Mount point"), !empty($uuid) ? $uuid : "", "", true); ?> <?php html_combobox("action", gettext("Command"), !empty($action) ? $action : "", array("mount" => gettext("mount"), "umount" => gettext("umount")), "", true); ?> </table> <div id="submit"> <input name="Submit" type="submit" class="formbtn" value="<?php echo gettext("Execute"); ?> " /> </div> <?php if ($do_action && empty($errormsg)) { echo sprintf("<div id='cmdoutput'>%s</div>", gettext("Command output:")); echo '<pre class="cmdoutput">';