[3ec149c] | 1 | <? |
---|
| 2 | // ************************************************************************************************************************************************* |
---|
| 3 | // Aplicación WEB: ogAdmWebCon |
---|
| 4 | // Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla |
---|
| 5 | // Fecha Creación: Año 2009-2010 |
---|
| 6 | // Fecha Última modificación: Agosto-2010 |
---|
| 7 | // Nombre del fichero: repositorios.php |
---|
| 8 | // Descripción : |
---|
| 9 | // Administra los repositorios de un determinado Centro |
---|
| 10 | // ************************************************************************************************************************************************* |
---|
| 11 | include_once("../includes/ctrlacc.php"); |
---|
| 12 | include_once("../clases/AdoPhp.php"); |
---|
| 13 | include_once("../clases/XmlPhp.php"); |
---|
| 14 | include_once("../clases/ArbolVistaXML.php"); |
---|
| 15 | include_once("../clases/MenuContextual.php"); |
---|
| 16 | include_once("../includes/constantes.php"); |
---|
| 17 | include_once("../includes/CreaComando.php"); |
---|
| 18 | include_once("../idiomas/php/".$idioma."/repositorios_".$idioma.".php"); |
---|
| 19 | //________________________________________________________________________________________________________ |
---|
| 20 | $cmd=CreaComando($cadenaconexion); |
---|
| 21 | if (!$cmd) |
---|
| 22 | Header('Location: '.$pagerror.'?herror=2'); // Error de conexión con servidor B.D. |
---|
| 23 | else |
---|
| 24 | $arbolXML=CreaArbol($cmd,$idcentro); // Crea el arbol XML con todos los datos del Centro |
---|
| 25 | // Creación del árbol |
---|
| 26 | $baseurlimg="../images/signos"; // Url de las imágenes de signo |
---|
| 27 | $clasedefault="texto_arbol"; // Hoja de estilo (Clase por defecto) del árbol |
---|
| 28 | $arbol=new ArbolVistaXML($arbolXML,0,$baseurlimg,$clasedefault,1,0,5); |
---|
[203e7d9] | 29 | |
---|
| 30 | $flotante=new MenuContextual(); // Crea objeto MenuContextual |
---|
| 31 | $XMLcontextual=ContextualXMLComandos($LITAMBITO_CENTROS,$AMBITO_CENTROS); |
---|
| 32 | //echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 33 | |
---|
[3ec149c] | 34 | //________________________________________________________________________________________________________ |
---|
| 35 | ?> |
---|
| 36 | <HTML> |
---|
| 37 | <TITLE>Administración web de aulas</TITLE> |
---|
| 38 | <HEAD> |
---|
| 39 | <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
| 40 | <LINK rel="stylesheet" type="text/css" href="../estilos.css"> |
---|
| 41 | <SCRIPT language="javascript" src="../clases/jscripts/ArbolVistaXML.js"></SCRIPT> |
---|
| 42 | <SCRIPT language="javascript" src="../clases/jscripts/MenuContextual.js"></SCRIPT> |
---|
| 43 | <SCRIPT language="javascript" src="../jscripts/repositorios.js"></SCRIPT> |
---|
| 44 | <SCRIPT language="javascript" src="../jscripts/opciones.js"></SCRIPT> |
---|
| 45 | <SCRIPT language="javascript" src="../jscripts/constantes.js"></SCRIPT> |
---|
| 46 | <SCRIPT language="javascript" src="../jscripts/comunes.js"></SCRIPT> |
---|
| 47 | <SCRIPT language="javascript" src="../clases/jscripts/HttpLib.js"></SCRIPT> |
---|
| 48 | <? echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comunes_'.$idioma.'.js"></SCRIPT>'?> |
---|
| 49 | <? echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/repositorios_'.$idioma.'.js"></SCRIPT>'?> |
---|
| 50 | </HEAD> |
---|
| 51 | <BODY OnContextMenu="return false"> |
---|
[203e7d9] | 52 | <FORM name="fcomandos" action="" method="post" target="frame_contenidos"> |
---|
| 53 | <INPUT type="hidden" name="idcomando" value=""> |
---|
| 54 | <INPUT type="hidden" name="descricomando" value=""> |
---|
| 55 | <INPUT type="hidden" name="ambito" value=""> |
---|
| 56 | <INPUT type="hidden" name="idambito" value=""> |
---|
| 57 | <INPUT type="hidden" name="nombreambito" value=""> |
---|
| 58 | <INPUT type="hidden" name="gestor" value=""> |
---|
| 59 | <INPUT type="hidden" name="funcion" value=""> |
---|
| 60 | </FORM> |
---|
[3ec149c] | 61 | <? |
---|
| 62 | //________________________________________________________________________________________________________ |
---|
| 63 | echo $arbol->CreaArbolVistaXML(); // Crea árbol (HTML) a partir del XML |
---|
| 64 | $flotante=new MenuContextual(); // Crea objeto MenuContextual |
---|
| 65 | |
---|
| 66 | // Crea contextual de repositorios |
---|
| 67 | $XMLcontextual=CreacontextualXMLRepositorios(); |
---|
| 68 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 69 | $XMLcontextual=CreacontextualXMLGruposRepositorios(); // Grupos de repositorios |
---|
| 70 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 71 | $XMLcontextual=CreacontextualXMLRepositorio(); // Repositorio |
---|
| 72 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 73 | ?> |
---|
| 74 | </BODY OnContextMenu="return false"> |
---|
| 75 | </HTML> |
---|
| 76 | <? |
---|
| 77 | // ************************************************************************************************************************************************* |
---|
| 78 | // Devuelve una cadena con formato XML de toda la información de los repositorios de un Centro concreto |
---|
| 79 | // Parametros: |
---|
| 80 | // - cmd:Una comando ya operativo ( con conexión abierta) |
---|
| 81 | // - idcentro: El identificador del centro |
---|
| 82 | //________________________________________________________________________________________________________ |
---|
| 83 | function CreaArbol($cmd,$idcentro) |
---|
| 84 | { |
---|
| 85 | global $TbMsg; |
---|
| 86 | global $LITAMBITO_REPOSITORIOS; |
---|
| 87 | $cadenaXML='<REPOSITORIOS'; |
---|
| 88 | // Atributos |
---|
| 89 | $cadenaXML.=' imagenodo="../images/iconos/repositorio.gif"'; |
---|
| 90 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_Raiz".$LITAMBITO_REPOSITORIOS."'" .')"'; |
---|
| 91 | $cadenaXML.=' nodoid=Raiz'.$LITAMBITO_REPOSITORIOS; |
---|
| 92 | $cadenaXML.=' infonodo='.$TbMsg[12]; |
---|
| 93 | $cadenaXML.='>'; |
---|
| 94 | $cadenaXML.=SubarbolXML_grupos_repositorios($cmd,$idcentro,0); |
---|
| 95 | $cadenaXML.='</REPOSITORIOS>'; |
---|
| 96 | return($cadenaXML); |
---|
| 97 | } |
---|
| 98 | // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
---|
| 99 | function SubarbolXML_grupos_repositorios($cmd,$idcentro,$grupoid){ |
---|
| 100 | global $LITAMBITO_GRUPOSREPOSITORIOS; |
---|
| 101 | global $AMBITO_GRUPOSREPOSITORIOS; |
---|
| 102 | global $LITAMBITO_REPOSITORIOS; |
---|
| 103 | $cadenaXML=""; |
---|
| 104 | $rs=new Recordset; |
---|
| 105 | $cmd->texto="SELECT idgrupo,nombregrupo,grupoid FROM grupos WHERE grupoid=".$grupoid." AND idcentro=".$idcentro." AND tipo=".$AMBITO_GRUPOSREPOSITORIOS." ORDER BY nombregrupo"; |
---|
| 106 | $rs->Comando=&$cmd; |
---|
| 107 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
| 108 | $rs->Primero(); |
---|
| 109 | while (!$rs->EOF){ |
---|
| 110 | $cadenaXML.='<GRUPOSREPOSITORIOS '; |
---|
| 111 | // Atributos |
---|
| 112 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
---|
| 113 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,'. " 'flo_".$LITAMBITO_GRUPOSREPOSITORIOS."'" .');"'; |
---|
| 114 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupo"].'"'; |
---|
| 115 | $cadenaXML.=' nodoid='.$LITAMBITO_GRUPOSREPOSITORIOS.'-'.$rs->campos["idgrupo"]; |
---|
| 116 | $cadenaXML.='>'; |
---|
| 117 | $cadenaXML.=SubarbolXML_grupos_repositorios($cmd,$idcentro,$rs->campos["idgrupo"]); |
---|
| 118 | $cadenaXML.='</GRUPOSREPOSITORIOS>'; |
---|
| 119 | $rs->Siguiente(); |
---|
| 120 | } |
---|
| 121 | $rs->Cerrar(); |
---|
| 122 | $cmd->texto="SELECT idrepositorio,nombrerepositorio FROM repositorios WHERE grupoid=".$grupoid." AND idcentro=".$idcentro." order by idrepositorio desc" ; |
---|
| 123 | $rs->Comando=&$cmd; |
---|
| 124 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
| 125 | $rs->Primero(); |
---|
| 126 | while (!$rs->EOF){ |
---|
| 127 | $cadenaXML.='<REPOSITORIO'; |
---|
| 128 | // Atributos |
---|
| 129 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_REPOSITORIOS."'" .')"'; |
---|
| 130 | $cadenaXML.=' imagenodo="../images/iconos/repositorio.gif" '; |
---|
| 131 | $cadenaXML.=' infonodo="'.$rs->campos["nombrerepositorio"].'"'; |
---|
| 132 | $cadenaXML.=' nodoid='.$LITAMBITO_REPOSITORIOS.'-'.$rs->campos["idrepositorio"]; |
---|
| 133 | $cadenaXML.='>'; |
---|
| 134 | $cadenaXML.='</REPOSITORIO>'; |
---|
| 135 | $rs->Siguiente(); |
---|
| 136 | } |
---|
| 137 | $rs->Cerrar(); |
---|
| 138 | return($cadenaXML); |
---|
| 139 | } |
---|
| 140 | //________________________________________________________________________________________________________ |
---|
| 141 | // |
---|
| 142 | // Menús Contextuales |
---|
| 143 | //________________________________________________________________________________________________________ |
---|
| 144 | function CreacontextualXMLRepositorios(){ |
---|
| 145 | global $AMBITO_REPOSITORIOS; |
---|
| 146 | global $AMBITO_GRUPOSREPOSITORIOS; |
---|
| 147 | global $LITAMBITO_GRUPOSREPOSITORIOS; |
---|
| 148 | global $LITAMBITO_REPOSITORIOS; |
---|
| 149 | global $TbMsg; |
---|
| 150 | |
---|
| 151 | $layerXML='<MENUCONTEXTUAL'; |
---|
| 152 | $layerXML.=' idctx="flo_Raiz'.$LITAMBITO_REPOSITORIOS.'"'; |
---|
| 153 | $layerXML.=' maxanchu=185'; |
---|
| 154 | $layerXML.=' swimg=1'; |
---|
| 155 | $layerXML.=' clase="menu_contextual"'; |
---|
| 156 | $layerXML.='>'; |
---|
| 157 | |
---|
| 158 | $layerXML.='<ITEM'; |
---|
| 159 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSREPOSITORIOS.',' . "'".$LITAMBITO_GRUPOSREPOSITORIOS."'" . ')"'; |
---|
| 160 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
| 161 | $layerXML.=' textoitem='.$TbMsg[0]; |
---|
| 162 | $layerXML.='></ITEM>'; |
---|
| 163 | |
---|
| 164 | $wLeft=140; |
---|
| 165 | $wTop=115; |
---|
| 166 | $wWidth=550; |
---|
| 167 | $wHeight=280; |
---|
| 168 | $wpages="../propiedades/propiedades_repositorios.php"; |
---|
| 169 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
| 170 | |
---|
| 171 | $layerXML.='<ITEM'; |
---|
| 172 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
---|
| 173 | $layerXML.=' imgitem="../images/iconos/aula.gif"'; |
---|
| 174 | $layerXML.=' textoitem='.$TbMsg[1]; |
---|
| 175 | $layerXML.='></ITEM>'; |
---|
| 176 | |
---|
| 177 | $layerXML.='<SEPARADOR>'; |
---|
| 178 | $layerXML.='</SEPARADOR>'; |
---|
| 179 | |
---|
| 180 | $wParam="../gestores/gestor_repositorios.php"; |
---|
| 181 | |
---|
| 182 | $layerXML.='<ITEM'; |
---|
| 183 | $layerXML.=' alpulsar="colocar('."'".$wParam."'".','.$AMBITO_REPOSITORIOS.')"'; |
---|
| 184 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
---|
| 185 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
| 186 | $layerXML.='></ITEM>'; |
---|
| 187 | |
---|
| 188 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
| 189 | return($layerXML); |
---|
| 190 | } |
---|
| 191 | //________________________________________________________________________________________________________ |
---|
| 192 | function CreacontextualXMLGruposRepositorios(){ |
---|
| 193 | global $AMBITO_REPOSITORIOS; |
---|
| 194 | global $AMBITO_GRUPOSREPOSITORIOS; |
---|
| 195 | global $LITAMBITO_GRUPOSREPOSITORIOS; |
---|
| 196 | global $TbMsg; |
---|
| 197 | |
---|
| 198 | $layerXML='<MENUCONTEXTUAL'; |
---|
| 199 | $layerXML.=' idctx="flo_'.$LITAMBITO_GRUPOSREPOSITORIOS.'"'; |
---|
| 200 | $layerXML.=' maxanchu=185'; |
---|
| 201 | $layerXML.=' swimg=1'; |
---|
| 202 | $layerXML.=' clase="menu_contextual"'; |
---|
| 203 | $layerXML.='>'; |
---|
| 204 | |
---|
| 205 | $layerXML.='<ITEM'; |
---|
| 206 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSREPOSITORIOS.',' ."'".$LITAMBITO_GRUPOSREPOSITORIOS."'". ')"'; |
---|
| 207 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
| 208 | $layerXML.=' textoitem='.$TbMsg[0]; |
---|
| 209 | $layerXML.='></ITEM>'; |
---|
| 210 | |
---|
| 211 | $wLeft=140; |
---|
| 212 | $wTop=115; |
---|
| 213 | $wWidth=550; |
---|
| 214 | $wHeight=280; |
---|
| 215 | $wpages="../propiedades/propiedades_repositorios.php"; |
---|
| 216 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
| 217 | |
---|
| 218 | $layerXML.='<ITEM'; |
---|
| 219 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
---|
| 220 | $layerXML.=' imgitem="../images/iconos/aula.gif"'; |
---|
| 221 | $layerXML.=' textoitem='.$TbMsg[1]; |
---|
| 222 | $layerXML.='></ITEM>'; |
---|
| 223 | |
---|
| 224 | $layerXML.='<SEPARADOR>'; |
---|
| 225 | $layerXML.='</SEPARADOR>'; |
---|
| 226 | |
---|
| 227 | $wParam="../gestores/gestor_repositorios.php"; |
---|
| 228 | |
---|
| 229 | $layerXML.='<ITEM'; |
---|
| 230 | $layerXML.=' alpulsar="colocar('."'".$wParam."'".','.$AMBITO_REPOSITORIOS.')"'; |
---|
| 231 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
---|
| 232 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
| 233 | $layerXML.='></ITEM>'; |
---|
| 234 | |
---|
| 235 | $layerXML.='<SEPARADOR>'; |
---|
| 236 | $layerXML.='</SEPARADOR>'; |
---|
| 237 | |
---|
| 238 | $layerXML.='<ITEM'; |
---|
| 239 | $layerXML.=' alpulsar="modificar_grupos()"'; |
---|
| 240 | $layerXML.=' imgitem="../images/iconos/modificar.gif"'; |
---|
| 241 | $layerXML.=' textoitem='.$TbMsg[7]; |
---|
| 242 | $layerXML.='></ITEM>'; |
---|
| 243 | |
---|
| 244 | $layerXML.='<ITEM'; |
---|
| 245 | $layerXML.=' alpulsar="eliminar_grupos()"'; |
---|
| 246 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
| 247 | $layerXML.=' textoitem='.$TbMsg[4]; |
---|
| 248 | $layerXML.='></ITEM>'; |
---|
| 249 | |
---|
| 250 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
| 251 | return($layerXML); |
---|
| 252 | } |
---|
| 253 | //________________________________________________________________________________________________________ |
---|
| 254 | function CreacontextualXMLRepositorio(){ |
---|
| 255 | global $AMBITO_REPOSITORIOS; |
---|
| 256 | global $LITAMBITO_REPOSITORIOS; |
---|
| 257 | global $TbMsg; |
---|
| 258 | |
---|
| 259 | $layerXML='<MENUCONTEXTUAL'; |
---|
| 260 | $layerXML.=' idctx="flo_'.$LITAMBITO_REPOSITORIOS.'"'; |
---|
| 261 | $layerXML.=' maxanchu=160'; |
---|
| 262 | $layerXML.=' swimg=1'; |
---|
| 263 | $layerXML.=' clase="menu_contextual"'; |
---|
| 264 | $layerXML.='>'; |
---|
| 265 | |
---|
| 266 | $layerXML.='<ITEM'; |
---|
| 267 | $layerXML.=' alpulsar="muestra_inforRepositorios()"'; |
---|
| 268 | $layerXML.=' textoitem='.$TbMsg[5]; |
---|
| 269 | $layerXML.=' imgitem="../images/iconos/informacion.gif"'; |
---|
| 270 | $layerXML.='></ITEM>'; |
---|
| 271 | |
---|
| 272 | $layerXML.='<SEPARADOR>'; |
---|
| 273 | $layerXML.='</SEPARADOR>'; |
---|
| 274 | |
---|
| 275 | $layerXML.='<ITEM'; |
---|
| 276 | $layerXML.=' alpulsar="mover('.$AMBITO_REPOSITORIOS.')"'; |
---|
| 277 | $layerXML.=' imgitem="../images/iconos/mover.gif"'; |
---|
| 278 | $layerXML.=' textoitem='.$TbMsg[6]; |
---|
| 279 | $layerXML.='></ITEM>'; |
---|
| 280 | |
---|
| 281 | $layerXML.='<SEPARADOR>'; |
---|
| 282 | $layerXML.='</SEPARADOR>'; |
---|
| 283 | |
---|
| 284 | $wLeft=140; |
---|
| 285 | $wTop=115; |
---|
| 286 | $wWidth=550; |
---|
| 287 | $wHeight=280; |
---|
[203e7d9] | 288 | $wpages="../comandos/EliminarImagenRepositorio.php"; |
---|
| 289 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
| 290 | |
---|
| 291 | $layerXML.='<ITEM'; |
---|
| 292 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; |
---|
| 293 | $layerXML.=' textoitem='.$TbMsg[10]; |
---|
| 294 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
| 295 | $layerXML.='></ITEM>'; |
---|
| 296 | |
---|
| 297 | $layerXML.='<SEPARADOR>'; |
---|
| 298 | $layerXML.='</SEPARADOR>'; |
---|
| 299 | |
---|
| 300 | $wLeft=140; |
---|
| 301 | $wTop=115; |
---|
| 302 | $wWidth=550; |
---|
| 303 | $wHeight=280; |
---|
[3ec149c] | 304 | $wpages="../propiedades/propiedades_repositorios.php"; |
---|
| 305 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
| 306 | |
---|
| 307 | $layerXML.='<ITEM'; |
---|
| 308 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; |
---|
| 309 | $layerXML.=' textoitem='.$TbMsg[7]; |
---|
| 310 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; |
---|
| 311 | $layerXML.='></ITEM>'; |
---|
| 312 | |
---|
| 313 | $layerXML.='<ITEM'; |
---|
| 314 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; |
---|
| 315 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
| 316 | $layerXML.=' textoitem='.$TbMsg[8]; |
---|
| 317 | $layerXML.='></ITEM>'; |
---|
| 318 | |
---|
| 319 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
| 320 | return($layerXML); |
---|
| 321 | } |
---|
[203e7d9] | 322 | |
---|
| 323 | |
---|
| 324 | //________________________________________________________________________________________________________ |
---|
| 325 | function ContextualXMLComandos($litambito,$ambito){ |
---|
| 326 | global $cmd; |
---|
| 327 | global $TbMsg; |
---|
| 328 | $maxlongdescri=0; |
---|
| 329 | $rs=new Recordset; |
---|
| 330 | $cmd->texto="SELECT idcomando,descripcion,pagina,gestor,funcion |
---|
| 331 | FROM comandos |
---|
| 332 | WHERE activo=1 AND aplicambito & ".$ambito.">0 |
---|
| 333 | ORDER BY descripcion"; |
---|
| 334 | $rs->Comando=&$cmd; |
---|
| 335 | if ($rs->Abrir()){ |
---|
| 336 | $layerXML=""; |
---|
| 337 | $rs->Primero(); |
---|
| 338 | while (!$rs->EOF){ |
---|
| 339 | if (isset($TbMsg["COMMAND_".$rs->campos["funcion"]])) {$descrip=$TbMsg["COMMAND_".$rs->campos["funcion"]];}else{$descrip;} |
---|
| 340 | //$descrip=$TbMsg["COMMAND_".$rs->campos["funcion"]]; |
---|
| 341 | if (empty ($descrip)) { |
---|
| 342 | $descrip=$rs->campos["funcion"]; |
---|
| 343 | } |
---|
| 344 | $layerXML.='<ITEM'; |
---|
| 345 | $layerXML.=' alpulsar="confirmarcomando('."'".$ambito."'".','.$rs->campos["idcomando"].',\''.$rs->campos["descripcion"].'\',\''.$rs->campos["pagina"]. '\',\''.$rs->campos["gestor"]. '\',\''.$rs->campos["funcion"]. '\')"'; |
---|
| 346 | $layerXML.=' textoitem="'.$descrip.'"'; |
---|
| 347 | $layerXML.='></ITEM>'; |
---|
| 348 | if ($maxlongdescri < strlen($descrip)) // Toma la Descripción de mayor longitud |
---|
| 349 | $maxlongdescri=strlen($descrip); |
---|
| 350 | $rs->Siguiente(); |
---|
| 351 | } |
---|
| 352 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
| 353 | $prelayerXML='<MENUCONTEXTUAL'; |
---|
| 354 | $prelayerXML.=' idctx="flo_comandos_'.$litambito.'"'; |
---|
| 355 | $prelayerXML.=' maxanchu='.$maxlongdescri*7; |
---|
| 356 | $prelayerXML.=' clase="menu_contextual"'; |
---|
| 357 | $prelayerXML.='>'; |
---|
| 358 | $finallayerXML=$prelayerXML.$layerXML; |
---|
| 359 | return($finallayerXML); |
---|
| 360 | } |
---|
| 361 | } |
---|
| 362 | ?> |
---|