function submenu($array) { $level = 0; $numsub = 0; for ($i = 1; $i < 15; $i++) { if (array_key_exists($i, $array)) { $icon_lnk = ''; if ($numsub === 0) { echo '<ul class="dropdown-menu">'; } if (array_key_exists($i, $array[$i]) || count($array[$i]) > 5) { echo '<li class="dropdown-submenu">'; } else { echo '<li>'; } if (preg_match("/^[A-Za-z0-9!@#\$%&()*;:_.'\\/\\\\ ]+\\.png\$/", $array[$i]['icon'])) { $icon_lnk = '<img src="' . $array[$i]['icon'] . '"/> '; } echo '<a href="' . $array[$i]['link'] . '">' . $icon_lnk . stripslashes($array[$i]['name']) . '</a>'; submenu($array[$i]); $numsub++; } } if ($numsub > 0) { echo '</ul>'; } }
function cancelar(ruta) { form1.action=ruta; form1.submit(); } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_plantas'); ?> </div></td> </tr> <tr> <td><?php submenu('b_plantas', 'plantas'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
function filtro_oes(){ form1.action='?op=listado'; form1.submit(); } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_consulta'); ?> </div></td> </tr> <tr> <td><?php submenu('b_consulta', $tipo); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
function exportar() { form2.action='excel.php?op=aut_prod'; form2.submit(); form2.action='aut_prod.php?op=listado'; } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_usuarios'); ?> </div></td> </tr> <tr> <td><?php submenu('b_usuarios', 'autorizadores'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
function cancelar(ruta) { form1.action=ruta; form1.submit(); } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_areas'); ?> </div></td> </tr> <tr> <td><?php submenu('b_areas', 'codigo_scrap'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
<td align="right" class="aviso"> <div style="margin-right:30px; margin-top:10px;"><?php echo $_SESSION['USER'] . " [ " . $_SESSION['TYPE'] . " ]"; ?> </div></td> <td rowspan="2"><img src="../imagenes/app_titulo.png" width="285" height="104" /></td> </tr> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_capturae'); ?> </div></td> </tr> <tr> <td><?php submenu('b_capturae', 'b_captura35'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
<td align="right" class="aviso"> <div style="margin-right:30px; margin-top:10px;"><?php echo $_SESSION['USER'] . " [ " . $_SESSION['TYPE'] . " ]"; ?> </div></td> <td rowspan="2"><img src="../imagenes/app_titulo.png" width="285" height="104" /></td> </tr> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_capturam'); ?> </div></td> </tr> <tr> <td><?php submenu('b_capturam', ''); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
} function del_all() { form1.action='?op=del_all'; form1.submit(); } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_mails'); ?> </div></td> </tr> <tr> <td><?php submenu('b_mails', 'mails'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
$out .= mainmenu(0, 3); break; case "subtitle": $out .= $set['subtitle']; break; case "title": $out .= '<a href="' . $set['homepath'] . '">' . $set['title'] . '</a>'; break; case "selected": $out .= $selected['name']; break; case "sitemap": $out .= sitemap(0); break; case "submenu": $out .= submenu(0); break; case "treemenu": $out .= treemenu(0); break; default: if (strpos($command, "plugin") !== false) { $aa = explode(" ", $command, 2); $pluginpath = "plugins/" . trim($aa[1]); if (file_exists($pluginpath . "/first.mod")) { $out = file_get_contents($pluginpath . "/first.mod") . $out; } if (file_exists($pluginpath . "/header.mod")) { $out = str_replace("</head>", file_get_contents($pluginpath . "/header.mod") . "\n</head>", $out); } if (file_exists($pluginpath . "/onload.mod")) {
function filtro_oes(){ form1.action='?op=listado'; form1.submit(); } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_reportes'); ?> </div></td> </tr> <tr> <td><?php submenu('b_reportes', 'preliminar'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td>
function excel() { form1.action = 'excel.php?op=proyectos'; form1.submit(); form1.action = 'proyectos.php?op=listado'; } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_plantas'); ?> </div></td> </tr> <tr> <td><?php submenu('b_plantas', 'proyectos'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
} // ------------------------------------------- add / edit ------------------------------------------- // if ($act == 'fle' && p('edit')) { $file = array('p' => 0, 'url' => '', 'name' => '', 'namei' => '', 'desc' => '', 'width' => 0, 'height' => 0, 'size' => 0, 'mime' => 0, 'dtu' => $curr['datetime'], 'owner' => ''); if ($gfle) { $col = array(); foreach ($file as $k => $v) { $col[] = $k; } $file = db_read(array('table' => 'file', 'col' => $col, 'where' => '`id` = ' . $gfle)); } // ---- submenu ---- // if (p() && $gfle) { $submenu['?Удалить;minus-button'] = array('#Подтвердить;tick-button' => form_sbd('/' . $mod . '/flu/?fle=' . $gfle)); } submenu(); // ---- end: submenu ---- // b('<p class="h1">'); if (!$gfle) { b('Добавление'); } else { b('Редактирование'); } b('</p>'); b(); b(); b(form('file', '/' . $mod . '/flu/', array($gfle ? 'fle=' . $gfle : ''))); b('<table class="edt">'); b('<tr><td>'); b('URL:'); b('<td>');
form1.action='?op=listado'; } else { form1.action='?op=reporte'; form1.submit(); } } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_consulta'); ?> </div></td> </tr> <tr> <td><?php submenu('b_consulta', 'rechazados'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
form1.action='?op=listado'; } else { form1.action='?op=reporte'; form1.submit(); } } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_consulta'); ?> </div></td> </tr> <tr> <td><?php submenu('b_consulta', $op); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
$boton = 'b_plantas'; } if ($op == 'por_areas') { $boton = 'b_areas'; } ?> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu($boton); ?> </div></td> </tr> <tr> <td><?php submenu($boton, 'exportar'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <script> function excel_plantas() { form1.action='excel.php?op=por_plantas'; form1.submit(); form1.action='?op=por_plantas'; }
function cancelar(ruta) { form1.action=ruta; form1.submit(); } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_plantas'); ?> </div></td> </tr> <tr> <td><?php submenu('b_plantas', 'apd'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
<div id="thenavigation" > My ideas </div> <?php // This generates our submenu include_once 'partial_menu.php'; $uri = $this->routes->fetch(); $message = $this->views['message']; $links = array('Add new idea' => 'me/new_idea', 'List all' => 'me/all', 'Invite your friends' => 'me/invite'); submenu($uri, $message, $links); /* * Generates markup for ratings */ function rating($r, $v, $id) { if ($v == 0) { $v = 1; } //get rid of divisions by zero $r = $r / $v; //calculate rating switch ($r) { case $r < 1: $class = "nostar"; break; case $r < 2: $class = "onestar"; break; case $r < 3: $class = "twostar"; break;
$idtop = $row_top[id]; ?> <option <?php if ($item_rs[menu_parent] == $row_top[id]) { echo "selected"; } ?> value="<?php echo $row_top[id]; ?> "><?php echo $row_top[menu_title]; ?> </option> <?php $sub1 = submenu($idtop); while ($row_sub1 = mysql_fetch_array($sub1)) { $idsub = $row_sub1[id]; ?> <option <?php if ($item_rs[menu_parent] == $row_sub1[id]) { echo "selected"; } ?> value="<?php echo $row_sub1[id]; ?> "><?php echo " - " . $row_sub1[menu_title]; ?> </option>
<?php include "../header.php"; ?> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_reportes'); ?> </div></td> </tr> <tr> <td><?php submenu('b_reportes', 'bitacora'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td> <td> <!--Todo el contenido de cada página--->
else { form1.action='?op=reporte'; form1.submit(); } } } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_reportes'); ?> </div></td> </tr> <tr> <td><?php submenu('b_reportes', 'general'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td>
function exportar() { form1.action='excel_reportes.php?op=reporte_sap'; form1.submit(); form1.action='?op=listado'; } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_reportes'); ?> </div></td> </tr> <tr> <td><?php submenu('b_reportes', 'reporte_sap'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
function cancelar(ruta) { form1.action=ruta; form1.submit(); } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_usuarios'); ?> </div></td> </tr> <tr> <td><?php submenu('b_usuarios', 'empleados'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
<?php include "../header.php"; include "../mails.php"; ?> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu(''); ?> </div></td> </tr> <tr> <td><?php submenu('', ''); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td> <td>
if (submenu($row['idmenu'])) { ?> <li> <a href="javascript:;" data-toggle="collapse" data-target="<?php echo '#m' . $row['idmenu']; ?> "><i class="fa fa-fw fa-arrows-v"></i><?php echo ucwords($row['menu']); ?> <i class="fa fa-fw fa-caret-down"></i></a> <ul id="<?php echo 'm' . $row['idmenu']; ?> " class="collapse"> <?php $submenu = submenu($row['idmenu']); $jml = count($submenu); ?> <?php for ($m = 0; $m < $jml; $m++) { ?> <li> <a href="<?php echo site_url('gudang/slug/' . $row['idmenu'] . '/4/' . $submenu[$m]); ?> "><?php echo namemenu($submenu[$m]); ?> </a> </li> <?php
function cancelar(ruta) { form1.action=ruta; form1.submit(); } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_plantas'); ?> </div></td> </tr> <tr> <td><?php submenu('b_plantas', 'segmentos'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
<td align="right" class="aviso"> <div style="margin-right:30px; margin-top:10px;"><?php echo $_SESSION['USER'] . " [ " . $_SESSION['TYPE'] . " ]"; ?> </div></td> <td rowspan="2"><img src="../imagenes/app_titulo.png" width="285" height="104" /></td> </tr> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_capturae'); ?> </div></td> </tr> <tr> <td><?php submenu('b_capturae', 'b_capturat'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
echo "<table width='600px' border='0' align='center' cellpadding='4' cellspacing='0'>"; if (!isset($_GET['templates'])) { $output .= "<input type=\"submit\" name=\"send\" value=\"Send\" /> <label><input type=\"checkbox\" name=\"save\" checked='checked' />Save Copy In Outbox</label> <input type=\"submit\" name=\"draft\" value=\"Save Draft\" /> "; } tr2($output . "<input type=\"submit\" name=\"template\" value=\"Save Template\" />"); echo "</table>"; end_form(); end_frame(); stdfoot(); die; } end_frame(); } begin_frame($pagename); echo "<center>"; print submenu('overview,inbox,outbox,compose,draft,templates', 'overview'); echo "</center><br />"; if ($type == "Overview") { begin_table(); $res = SQL_Query_exec("SELECT COUNT(*), COUNT(`unread` = 'yes') FROM messages WHERE `receiver` = {$CURUSER['id']} AND `location` IN ('in','both')"); $res = SQL_Query_exec("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " AND `location` IN ('in','both')"); $inbox = mysql_result($res, 0); $res = SQL_Query_exec("SELECT COUNT(*) FROM messages WHERE `receiver` = " . $CURUSER["id"] . " AND `location` IN ('in','both') AND `unread` = 'yes'"); $unread = mysql_result($res, 0); $res = SQL_Query_exec("SELECT COUNT(*) FROM messages WHERE `sender` = " . $CURUSER["id"] . " AND `location` IN ('out','both')"); $outbox = mysql_result($res, 0); $res = SQL_Query_exec("SELECT COUNT(*) FROM messages WHERE `sender` = " . $CURUSER["id"] . " AND `location` = 'draft'"); $draft = mysql_result($res, 0); $res = SQL_Query_exec("SELECT COUNT(*) FROM messages WHERE `sender` = " . $CURUSER["id"] . " AND `location` = 'template'"); $template = mysql_result($res, 0); tr2('<a href="mailbox.php?inbox">' . T_("INBOX") . ' </a> ', " {$inbox} " . P_("message", $inbox) . " ({$unread} " . T_("unread") . ")");
function cancelar(ruta) { form1.action=ruta; form1.submit(); } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_areas'); ?> </div></td> </tr> <tr> <td><?php submenu('b_areas', 'relacionado_a'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
form1.submit(); } else { return false; } } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_areas'); ?> </div></td> </tr> <tr> <td><?php submenu('b_areas', 'lineas'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>
form1.submit(); } function change_parent_url(url) { document.location=url; } </script> <tr> <td><div style="margin-left:30px; margin-top:20px;"><?php menu('b_materiales'); ?> </div></td> </tr> <tr> <td><?php submenu('b_materiales', 'partes_padre'); ?> </td> <td background="../imagenes/barra_gris.png" width="285" height="37"><?php general(); ?> </td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="5" valign="top"></td><td></td><td width="5"></td> </tr> <tr height="600" valign="top"> <td background="../imagenes/borde_izq_tabla.png"> </td>