diff options
Diffstat (limited to 'admin/WebConsole/asistentes')
3 files changed, 38 insertions, 7 deletions
diff --git a/admin/WebConsole/asistentes/includes/asistentes/formDeployImage.php b/admin/WebConsole/asistentes/includes/asistentes/formDeployImage.php index 0a6da102..78502d83 100644 --- a/admin/WebConsole/asistentes/includes/asistentes/formDeployImage.php +++ b/admin/WebConsole/asistentes/includes/asistentes/formDeployImage.php @@ -12,8 +12,8 @@ for($cfgIndex = 0; $cfgIndex < $conKeys; $cfgIndex++){ ?> <? echo $TbMsg["WDI13"] ?> <br> - <input type="radio" name="modo" value="deployImage" checked ><? echo $TbMsg["WDI14"] ?> <br> - <input type="radio" name="modo" value="updateCache" > <? echo $TbMsg["WDI15"] ?> <br> + <input type="radio" name="modo" value="deployImage" onClick="enableDirect(this.form)" checked ><? echo $TbMsg["WDI14"] ?> <br> + <input type="radio" name="modo" value="updateCache" onClick="disableDirect(this.form)" > <? echo $TbMsg["WDI15"] ?> <br> <tr> <td> <? echo $TbMsg["WDI16"] ?> </td> <td> <? echo $TbMsg["WDI17"] ?> </td> <td> <? echo $TbMsg["WDI18"] ?> </td> <td> <? echo $TbMsg["WDI19"] ?> </td></tr> @@ -43,11 +43,12 @@ for($cfgIndex = 0; $cfgIndex < $conKeys; $cfgIndex++){ <? echo $TbMsg["WDI23"] ?> <br /> - <select name="idmetodo" id="idmetodo" style="WIDTH:220";"> - <!-- <option value="UNICAST"> UNICAST </option> --> + <select name="idmetodo" id="idmetodo" style="WIDTH:220;"> <option value="TORRENT"> TORRENT </option> <option value="MULTICAST"> MULTICAST </option> + <option value="MULTICAST-DIRECT"> MULTICAST-DIRECT </option> <option value="UNICAST"> UNICAST </option> + <option value="UNICAST-DIRECT"> UNICAST-DIRECT </option> </select> <br /> </td> diff --git a/admin/WebConsole/asistentes/jscripts/EjecutarScripts.js b/admin/WebConsole/asistentes/jscripts/EjecutarScripts.js index e17411c0..81a916ba 100644 --- a/admin/WebConsole/asistentes/jscripts/EjecutarScripts.js +++ b/admin/WebConsole/asistentes/jscripts/EjecutarScripts.js @@ -11,7 +11,15 @@ if (comprobar_datos()){ var RC='@'; document.fdatosejecucion.atributos.value="scp="+escape(document.fdatos.codigo.value)+RC; - document.fdatosejecucion.submit(); + if( document.fdatosejecucion.ambito.value!=16 && document.fdatos.idmetodo.value=="UNICAST" || document.fdatos.idmetodo.value=="UNICAST-DIRECT"){ + if (confirm(TbMsg[4]) == true) { + document.fdatosejecucion.submit(); + } else { + cancelar(); + } + }else{ + document.fdatosejecucion.submit(); + } } } //________________________________________________________________________________________________________ diff --git a/admin/WebConsole/asistentes/jscripts/asistentes.js b/admin/WebConsole/asistentes/jscripts/asistentes.js index dab6cf06..97ae9173 100644 --- a/admin/WebConsole/asistentes/jscripts/asistentes.js +++ b/admin/WebConsole/asistentes/jscripts/asistentes.js @@ -26,18 +26,40 @@ ogEcho log session \"[0] $MSG_SCRIPTS_TASK_START " + command + "\"\n \ ogExecAndLog command " + command + " \n "; } +// disableDirect(form): En Deploy de imagenes si se elige updateCache se impide elegir multicast-direct o unicast-direct +function disableDirect(form){ + // MULTICAST-DIRECT + form.idmetodo.options[2].disabled=true; + // UNICAST-DIRECT + form.idmetodo.options[4].disabled=true; +} +// enableDirect(form): En Deploy de imagenes si se elige deployCache se permite elegir multicast-direct o unicast-direct +function enableDirect(form){ + // MULTICAST-DIRECT + form.idmetodo.options[2].disabled=false; + // UNICAST-DIRECT + form.idmetodo.options[4].disabled=false; +} + + function codeDeployImage(form){ switch (form.idmetodo.value) { case "MULTICAST": protocol="MULTICAST " + form.mcastpuerto.value + ":" + form.mcastmodo.value + ":" + form.mcastdireccion.value + ":" + form.mcastvelocidad.value + "M:" + form.mcastnclien.value + ":" + form.mcastseg.value + " "; break; + case "MULTICAST-DIRECT": + protocol="MULTICAST-DIRECT " + form.mcastpuerto.value + ":" + form.mcastmodo.value + ":" + form.mcastdireccion.value + ":" + form.mcastvelocidad.value + "M:" + form.mcastnclien.value + ":" + form.mcastseg.value + " "; + break; case "TORRENT": protocol=" TORRENT " + form.modp2p.value + ":" + form.timep2p.value; break; case "UNICAST": protocol=" UNICAST"; break; + case "UNICAST-DIRECT": + protocol=" UNICAST-DIRECT"; + break; } //form.codigo.value="deployImage REPO /"; if (form.modo[0].checked) @@ -202,8 +224,8 @@ partCode += " EMPTY:0"; ogCreatePartitionTable "+n_disk+" "+tipo_part_table +" \n \ ogEcho log session \"[0] $MSG_HELP_ogCreatePartitions \"\n \ ogEcho session \"[10] $MSG_HELP_ogUnmountAll "+n_disk+"\"\n \ -ogUnmountCache \n \ ogUnmountAll "+n_disk+" 2>/dev/null\n \ +ogUnmountCache \n \ " + cacheCode + " \n \ ogEcho session \"[60] $MSG_HELP_ogListPartitions "+n_disk+"\"\n \ ogExecAndLog command session ogListPartitions "+n_disk+" \n \ @@ -289,8 +311,8 @@ partCode += " EMPTY:0"; ogCreatePartitionTable "+n_disk+" "+tipo_part_table +" \n \ ogEcho log session \"[0] $MSG_HELP_ogCreatePartitions "+n_disk+"\"\n \ ogEcho session \"[10] $MSG_HELP_ogUnmountAll "+n_disk+"\"\n \ -ogUnmountCache \n \ ogUnmountAll "+n_disk+" \n \ +ogUnmountCache \n \ " + cacheCode + " \n \ ogEcho session \"[60] $MSG_HELP_ogListPartitions "+n_disk+"\"\n \ ogExecAndLog command session ogListPartitions "+n_disk+" \n \ |