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
Rev | Line | |
---|
[3ec149c] | 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: administradores_centros.js |
---|
| 7 | // Descripción : |
---|
| 8 | // Este fichero implementa las funciones javascript del fichero administradores_centros |
---|
| 9 | // ************************************************************************************************************************************************* |
---|
| 10 | function gestion_administrador(idcentro,o){ |
---|
[3806a31] | 11 | idusuario=document.fdatos.idusuario.value; |
---|
[3ec149c] | 12 | if (o.checked) |
---|
| 13 | var opcion=op_alta; |
---|
| 14 | else |
---|
| 15 | var opcion=op_eliminacion; |
---|
| 16 | |
---|
| 17 | var wurl="../gestores/gestor_administradores_usuarios.php"; |
---|
[3806a31] | 18 | var prm="opcion="+opcion+"&idcentro="+idcentro+"&idusuario="+idusuario; |
---|
[3ec149c] | 19 | CallPage(wurl,prm,"retornoGestion","POST"); |
---|
| 20 | } |
---|
| 21 | //______________________________________________________________________________________________________ |
---|
| 22 | function retornoGestion(resul){ |
---|
| 23 | if(resul.length>0){ |
---|
| 24 | eval(resul) |
---|
| 25 | } |
---|
| 26 | } |
---|
| 27 | //________________________________________________________________________________________________________ |
---|
| 28 | function resultado_insertar_centros_administradores(resul,descrierror,nwid,tablanodo){ |
---|
| 29 | if (!resul){ // Ha habido algún error en la inserción |
---|
[3806a31] | 30 | alert(descrierror); |
---|
[3ec149c] | 31 | return |
---|
| 32 | } |
---|
| 33 | alert(TbMsg[0]) |
---|
| 34 | |
---|
| 35 | } |
---|
| 36 | //________________________________________________________________________________________________________ |
---|
| 37 | function resultado_eliminar_centros_administradores(resul,descrierror,idp,idh){ |
---|
| 38 | if (!resul){ // Ha habido algún error en la eliminación |
---|
[3806a31] | 39 | alert(descrierror); |
---|
[3ec149c] | 40 | return |
---|
| 41 | } |
---|
| 42 | alert(TbMsg[1]) |
---|
| 43 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.