close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
| Line | |
|---|
| 1 | // ************************************************************************************************************************************************* |
|---|
| 2 | // Libreria de scripts de Javascript |
|---|
| 3 | // Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla |
|---|
| 4 | // Fecha Creación: 2009-2010 |
|---|
| 5 | // Fecha Última modificación: Agosto-2010 |
|---|
| 6 | // Nombre del fichero: InventarioHardware.js |
|---|
| 7 | // Descripción : |
|---|
| 8 | // Este fichero implementa las funciones javascript del fichero InventarioHardware.php (Comandos) |
|---|
| 9 | // ************************************************************************************************************************************************* |
|---|
| 10 | function confirmar(){ |
|---|
| 11 | if (comprobar_datos()){ |
|---|
| 12 | tb_conf=document.getElementById("tabla_conf"); |
|---|
| 13 | var ochecks=tb_conf.getElementsByTagName('INPUT'); |
|---|
| 14 | var particion; |
|---|
| 15 | for(var i=0;i<ochecks.length;i++){ |
|---|
| 16 | if(ochecks[i].checked){ |
|---|
| 17 | diskPart=ochecks[i].value.split(";"); |
|---|
| 18 | } |
|---|
| 19 | } |
|---|
| 20 | var RC="@"; |
|---|
| 21 | // UHU - Ahora se puede hacer de cualquier disco |
|---|
| 22 | var disco = diskPart[0]; |
|---|
| 23 | var particion = diskPart[1]; |
|---|
| 24 | document.fdatosejecucion.atributos.value="dsk="+disco+RC+"par="+particion+RC; |
|---|
| 25 | document.fdatosejecucion.submit(); |
|---|
| 26 | } |
|---|
| 27 | } |
|---|
| 28 | //________________________________________________________________________________________________________ |
|---|
| 29 | function cancelar(){ |
|---|
| 30 | alert(CTbMsg[0]); |
|---|
| 31 | location.href="../nada.php" |
|---|
| 32 | } |
|---|
| 33 | //________________________________________________________________________________________________________ |
|---|
| 34 | function comprobar_datos(){ |
|---|
| 35 | tb_conf=document.getElementById("tabla_conf"); |
|---|
| 36 | var ochecks=tb_conf.getElementsByTagName('INPUT'); |
|---|
| 37 | var op=0; |
|---|
| 38 | for(var i=0;i<ochecks.length;i++){ |
|---|
| 39 | if(ochecks[i].checked) |
|---|
| 40 | op++; |
|---|
| 41 | } |
|---|
| 42 | if(op==0){ |
|---|
| 43 | alert(TbMsg[1]); |
|---|
| 44 | return(false); |
|---|
| 45 | } |
|---|
| 46 | return(comprobar_datosejecucion()); |
|---|
| 47 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.