//*************************************************************************************************** // PARA EL MENU SSA if ($tabla == "menu_ssa") { $menuesSSA = new MenuesSSA(); $rs = $menuesSSA->GetAll(); $row = $rs->_array; $contenido = ''; foreach ($row as $key => $value) { $fields = $value; $contenido .= $fields['ID_MENU_SSA'] . "#" . $fields['SECCION'] . "#" . $fields['LINK'] . "¶"; } } //*************************************************************************************************** // PARA EL MENU 1 if ($tabla == "menu1") { $menues1 = new Menues1(); $menu1_items = new Menu1_Items(); $rs = $menues1->GetAll(); $row = $rs->_array; $contenido = ''; foreach ($row as $key => $value) { $fields = $value; $id_raiz = $fields['ID_MENU1']; $rs2 = $menu1_items->GETbyIDRaiz($id_raiz); $row2 = $rs2->_array; $subm = ''; if (count($row2) > 0) { foreach ($row2 as $key2 => $value2) { $fields2 = $value2; // Quick $concatenador = "&";
/** * @desc Esta funcion es para verificar que no se ingresen titulos de menu o links repetidos. */ function verificadorDuplicado($link, $id) { $oMenues1 = new Menues1(); $rs = $oMenues1->GetAll(); $row = @$rs->_array; $cantidad = 0; foreach ($row as $key => $value) { $fields = $value; $cantidad++; if (strlen(trim($fields['LINK'])) >= 1) { if (trim($fields['LINK']) == trim($link) and $fields['ID_MENU1'] != $id) { return false; } } } return false; }