diff options
author | adv <adv@uma.es> | 2019-12-08 23:55:23 +0100 |
---|---|---|
committer | adv <adv@uma.es> | 2019-12-09 20:28:15 +0100 |
commit | ca8168983e397b4f1b88dc8daf716702cae72529 (patch) | |
tree | 68c11df77699e130dbf2a987d242eaf747b564ed /admin/WebConsole | |
parent | 3cba7cfc3c4260719292f4db6d8f74fc44977036 (diff) |
#937 #906 formRemotePartitionCloning: Show Target list from the "pintaConfiguraciones" table
Remote Cloning Wizard shows partition target list as a query to the "pintaConfiguraciones" table.
Code from the other Wizards is reused.
Diffstat (limited to 'admin/WebConsole')
-rw-r--r-- | admin/WebConsole/asistentes/includes/asistentes/formCloneRemotePartition.php | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/admin/WebConsole/asistentes/includes/asistentes/formCloneRemotePartition.php b/admin/WebConsole/asistentes/includes/asistentes/formCloneRemotePartition.php index 4caff0ae..29aa7c90 100644 --- a/admin/WebConsole/asistentes/includes/asistentes/formCloneRemotePartition.php +++ b/admin/WebConsole/asistentes/includes/asistentes/formCloneRemotePartition.php @@ -1,4 +1,16 @@ +<?php +$disksPartitions = array(); +$diskPartIndex = 0; +// Recorremos todas las configuraciones y vamos creando un array con disco - particion +for($cfgIndex = 0; $cfgIndex < $conKeys; $cfgIndex++){ + if($tbKeys[$cfgIndex]["numpar"] != 0 && $tbKeys[$cfgIndex]["clonable"] == 1){ + $disksPartitions["Disco " . $tbKeys[$cfgIndex]["numdisk"] . " - Part " .$tbKeys[$cfgIndex]["numpar"] ] = $tbKeys[$cfgIndex]["numdisk"].";".$tbKeys[$cfgIndex]["numpar"].";".$tbKeys[$cfgIndex]["tipopar"]; + $diskPartIndex++; + } +} + +?> <tr> @@ -15,10 +27,11 @@ <br /> <?php echo $TbMsg["WCRP34"] ?> <select name="targetpart" id="targetpart" style="width:220px;"> - <option value="1 1"> 1er disco - 1ª particion </option> - <option value="1 2"> 1er disco - 2ª particion </option> - <option value="1 3"> 1er disco - 3ª particion </option> - <option value="1 4"> 1er disco - 4ª particion </option> + <?php + foreach($disksPartitions as $key => $value){ + echo "<option value='".$value."'>".$key." </option>"; + } + ?> </select> <br /> <?php echo $TbMsg["WCRP35"] ?> |