2006-09-14 14:33:01 +02:00
|
|
|
<?cs # $Id$ ?>
|
|
|
|
|
2006-09-26 10:38:45 +02:00
|
|
|
<style type="text/css"><?cs include:Data.Plugins.partition.StyleSheetFile ?></style>
|
|
|
|
|
2006-09-14 14:33:01 +02:00
|
|
|
<h1><?cs var:html_escape(Lang.Plugins.partition.Title.Partition) ?></h1>
|
|
|
|
|
2006-11-02 15:01:09 +01:00
|
|
|
<?cs call:handle_messages() ?>
|
|
|
|
|
2006-09-18 12:16:05 +02:00
|
|
|
<div align="center">
|
|
|
|
<table class="partition">
|
2006-11-03 15:27:55 +01:00
|
|
|
<?cs if:(Data.Plugins.partition.availSize > 0) || (subcount(Data.Plugins.partition.Parts) > 0) ?>
|
2006-11-02 15:01:09 +01:00
|
|
|
<?cs # no table header if the harddisk is not partitionable (e.g. still active) ?>
|
|
|
|
<tr>
|
|
|
|
<th><?cs var:html_escape(Lang.Plugins.partition.Text.PartNum) ?></th>
|
|
|
|
<th><?cs var:html_escape(Lang.Plugins.partition.Text.Size) ?></th>
|
|
|
|
<th><?cs var:html_escape(Lang.Plugins.partition.Text.PartType) ?></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
<?cs /if ?>
|
2006-09-18 12:16:05 +02:00
|
|
|
|
|
|
|
<?cs loop: x = #0, subcount(Data.Plugins.partition.Parts)-1, #1 ?>
|
|
|
|
<tr>
|
|
|
|
<td><?cs var:x ?></td>
|
|
|
|
<td><?cs var:Data.Plugins.partition.Parts[x].Size ?></td>
|
|
|
|
<td><?cs var:Data.Plugins.partition.Parts[x].Type ?></td>
|
|
|
|
<td>
|
2006-10-26 14:25:12 +02:00
|
|
|
<?cs call:print_form_header("part_del_" + x, "plugins/partition") ?>
|
2006-09-14 14:33:01 +02:00
|
|
|
<?cs include:Settings.PluginDir + "/partition/current_partition_info.cs" ?>
|
|
|
|
<input type="hidden" name="step" value="del_partition" />
|
2006-09-18 12:16:05 +02:00
|
|
|
<input type="hidden" name="del_num" value="<?cs var:x ?>" />
|
|
|
|
<button type="submit"><?cs var:html_escape(Lang.Plugins.partition.Button.DelPartition) ?></button>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?cs /loop ?></p>
|
|
|
|
|
|
|
|
<?cs # new partition input if space is available ?>
|
|
|
|
<?cs if:Data.Plugins.partition.availSize > 0 ?>
|
|
|
|
<tr>
|
2006-10-26 14:25:12 +02:00
|
|
|
<?cs call:print_form_header("part_add", "plugins/partition") ?>
|
2006-09-18 12:16:05 +02:00
|
|
|
<?cs include:Settings.PluginDir + "/partition/current_partition_info.cs" ?>
|
|
|
|
<input type="hidden" name="step" value="add_partition" />
|
|
|
|
<?cs set: x = subcount(Data.Plugins.partition.Parts) ?>
|
|
|
|
<td><?cs var:x ?></td>
|
2006-09-27 14:20:54 +02:00
|
|
|
<td><input type="text" name="part<?cs var:x ?>_size" size="8" value="<?cs var:Data.Plugins.partition.availSize ?>" tabindex="1" /></td>
|
|
|
|
<td><select name="part<?cs var:x ?>_type" tabindex="2" size="0"><?cs each: t = Data.Plugins.partition.Types ?><option <?cs if:t == "windows" ?>selected="selected"<?cs /if ?>><?cs var:t ?></option>
|
2006-09-20 12:40:37 +02:00
|
|
|
<?cs /each ?></select></td>
|
2006-09-18 12:16:05 +02:00
|
|
|
<td>
|
2006-09-27 14:20:54 +02:00
|
|
|
<button type="submit" tabindex="3"><?cs var:html_escape(Lang.Plugins.partition.Button.AddPartition) ?></button>
|
2006-09-18 12:16:05 +02:00
|
|
|
</td>
|
2006-09-14 14:33:01 +02:00
|
|
|
</form>
|
2006-09-18 12:16:05 +02:00
|
|
|
</tr>
|
2006-09-14 14:33:01 +02:00
|
|
|
<?cs /if ?>
|
2006-09-18 12:16:05 +02:00
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
2006-09-14 14:33:01 +02:00
|
|
|
|
|
|
|
<?cs if:subcount(Data.Plugins.partition.Parts) > 0 ?>
|
2006-11-02 15:01:09 +01:00
|
|
|
<?cs call:hint(Lang.Plugins.partition.Text.WarningMessage) ?>
|
2006-09-18 12:16:05 +02:00
|
|
|
|
2006-10-26 14:25:12 +02:00
|
|
|
<?cs call:print_form_header("part_finish", "plugins/partition") ?>
|
2006-09-14 14:33:01 +02:00
|
|
|
<?cs include:Settings.PluginDir + "/partition/current_partition_info.cs" ?>
|
|
|
|
<input type="hidden" name="step" value="finish" />
|
|
|
|
<button type="submit"><?cs var:html_escape(Lang.Plugins.partition.Button.SavePartitions) ?></button>
|
|
|
|
</form>
|
|
|
|
<?cs /if ?>
|
|
|
|
|