function backMenu() { echo "\n0) Back to menu\n1) Exit\n> "; if (cin() == '0') { menu(); } else { die("Grazie per aver utilizzato PWANEDDLER\n"); } }
function lista($user) { global $dateformat; $user = protect($user); requirelogin(); $title = "Mensagens de {$user}"; include "libs/accounts.php"; // listar todas as mensagens de $user onde hidden = 'n' (para outro user ver) $output = menu($user) . url("message/send/{$user}", "[enviar mensagem]") . "<br>\n"; $usr = resolveuser($user); $qry = mysql_query("SELECT `from`,`content`,`data` FROM messages WHERE `to`='{$usr}' AND `hidden`='n' ORDER BY id DESC LIMIT 30"); if (mysql_numrows($qry) == 0) { $output .= 'Nenhuma mensagem!'; } else { while ($row = mysql_fetch_array($qry)) { $user = mysql_query("SELECT login,foto FROM accounts WHERE id='{$row['from']}'"); $user = mysql_fetch_array($user); $output .= '<p class="row">' . t("De") . ': ' . url("user/profile/{$user['login']}", $user['login']) . '<br/>'; $output .= '<blockquote> ' . bbcode($row['content']) . ' </blockquote> <hr size="1"><i>' . date($dateformat, $row['data']) . '</i> </p>'; } } section($output, $title); }
function menu($parent, $indent) { global $widthTotal, $menu; if (!isset($menu[$parent]->children)) { return; } foreach ($menu[$parent]->children as $sortorder => $id) { $items[] = $sortorder; } sort($items); if ($parent) { echo "\n{$indent} <ul>"; } foreach ($items as $item) { $id = $menu[$parent]->children[$item]; $target = $menu[$id]->target; $title = $menu[$id]->title; echo "\n{$indent} <li><a href='{$target}'"; if (!$parent) { echo " class='menu'"; $widthTotal += $menu[$id]->width; } echo ">{$title}</a>"; menu($id, $indent . " "); echo "</li>"; } if ($parent) { echo "\n{$indent} </ul>\n{$indent}"; } }
protected function navigation() { if ($root = $this->store->getRootCategory()) { foreach ($root->children as $category) { menu('top.navigation')->add('cat-' . $category->id, ['href' => $category->url(), 'text' => $category->name(), 'children' => $this->children($category)]); } } }
function error_head($class) { global $ModPath, $ModStart; include "header.php"; $mainlink = 'ad_l'; menu($mainlink); SearchForm(); echo ' <div class="alert ' . $class . '" role="alert" align="center">'; }
function display_error($msg) { echo "<!DOCTYPE html>\n<html>\n"; display_headers($title); echo "\n<body>"; menu(); echo '<div class="container" style="margin-top:-10px;"><div id="error" style="display:none;"></div></div>'; echo "<script>show_error('" . $msg . "');</script>"; echo "</body></html>"; }
function route() { switch (TRUE) { case isset($_GET['log_file']): view_log($_GET['log_file']); break; default: menu(); } }
function admin($section) { //загрузка представления $data = array(); $data = info($section); $data['menu'] = menu($section); $data['bread'] = breadCrumbs($section); $data['page_name'] = 'Сайт'; require "view/viewSite.php"; }
function showHeader($string) { menu(); ?> <div class="wrap"> <h1 class="header-heading"><?php echo $string; ?> </h1> </div> <?php }
function markdown_menu($text) { $parser_class = MARKDOWN_PARSER_CLASS; $parser = new $parser_class(); # Transform text using parser. $result = $parser->transform($text); if (isset($parser->headers)) { return menu($parser->headers) . $result; } else { return $result; } }
/** * Retorna o html do menu criado com o array passado por parâmetro. * * @param array $data * @return string */ public function criar($data = array()) { if (!empty($data)) { $data = $this->_remove_unnecessary_fields($data); } else { $data = $this->menu_bar; } if ($this->restricted_urls != NULL) { $data = $this->_remove_restrict_urls($data); } $this->menu_html = menu($this->menu_bar); return $this->menu_html; }
function menu($menu) { $buffer = null; foreach ($menu as $name => $link) { if (is_array($link)) { $buffer .= '<li class="dropdown"><a href="" class="dropdown-toggle js-activated" data-toggle="dropdown"> ' . $name . '</a>'; $buffer .= '<ul class="dropdown-menu">' . menu($link) . '</ul></li>'; } else { $buffer .= '<li><a href="' . $link . '">' . $name . '</a></li>'; } } return $buffer; }
function contentheader() { echo '<div id="header">'; echo '<div class="frame">'; echo '<div id="top_section">'; banner(""); menu(""); echo '</div>'; echo '<div id="upper_section" class="middletext">'; ad(); //user(); echo '</div>'; echo '</div>'; echo '</div>'; }
function makeMenu() { return menu("","","start/view.inc.php", array( menu("about","About","start/view.inc.php"), menu("news","News","news/view.inc.php"), menu("screenshots","Screenshots","screenshots/view.inc.php"), menu("features","Features","features/view.inc.php"), menu("download","Download","download/view.inc.php"), menu("contact","Contact/Impressum","contact/view.inc.php"), menu("http://antargis.berlios.de/docs","Documentation",""), menu("http://antargis.berlios.de/phpBB2","Forum...",""), menu("http://antargis.berlios.de/wiki","Wiki...",""), menu("http://developer.berlios.de/projects/antargis","Project site...",""))); }
function viewdownloadcomments($lid, $ttitle) { global $prefix, $dbi, $admin, $bgcolor2, $module_name; include "header.php"; include "modules/{$module_name}/d_config.php"; menu(1); echo "<br>"; $result = sql_query("SELECT ratinguser, rating, ratingcomments, ratingtimestamp FROM " . $prefix . "_downloads_votedata WHERE ratinglid = {$lid} AND ratingcomments != '' ORDER BY ratingtimestamp DESC", $dbi); $totalcomments = sql_num_rows($result, $dbi); $transfertitle = ereg_replace("_", " ", $ttitle); $transfertitle = stripslashes($transfertitle); $displaytitle = $transfertitle; OpenTable(); echo "<center><font class=\"option\"><b>" . _DOWNLOADPROFILE . ": {$displaytitle}</b></font><br><br>"; downloadinfomenu($lid, $ttitle); echo "<br><br><br>" . _TOTALOF . " {$totalcomments} " . _COMMENTS . "</font></center><br>" . "<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"450\">"; $x = 0; while (list($ratinguser, $rating, $ratingcomments, $ratingtimestamp) = sql_fetch_row($result, $dbi)) { $ratingcomments = stripslashes($ratingcomments); ereg("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $ratingtimestamp, $ratingtime); $ratingtime = strftime("%F", mktime($ratingtime[4], $ratingtime[5], $ratingtime[6], $ratingtime[2], $ratingtime[3], $ratingtime[1])); $date_array = explode("-", $ratingtime); $timestamp = mktime(0, 0, 0, $date_array["1"], $date_array["2"], $date_array["0"]); $formatted_date = date("F j, Y", $timestamp); /* Individual user information */ $result2 = sql_query("SELECT rating FROM " . $prefix . "_downloads_votedata WHERE ratinguser = '******'", $dbi); $usertotalcomments = sql_num_rows($result2, $dbi); $useravgrating = 0; while (list($rating2) = sql_fetch_row($result2, $dbi)) { $useravgrating = $useravgrating + $rating2; } $useravgrating = $useravgrating / $usertotalcomments; $useravgrating = number_format($useravgrating, 1); echo "<tr><td bgcolor=\"{$bgcolor2}\">" . "<font class=\"content\"><b> " . _USER . ": </b><a href=\"{$nukeurl}/modules.php?name=Your_Account&op=userinfo&username={$ratinguser}\">{$ratinguser}</a></font>" . "</td>" . "<td bgcolor=\"{$bgcolor2}\">" . "<font class=\"content\"><b>" . _RATING . ": </b>{$rating}</font>" . "</td>" . "<td bgcolor=\"{$bgcolor2}\" align=\"right\">" . "<font class=\"content\">{$formatted_date}</font>" . "</td>" . "</tr>" . "<tr>" . "<td valign=\"top\">" . "<font class=\"tiny\">" . _USERAVGRATING . ": {$useravgrating}</font>" . "</td>" . "<td valign=\"top\" colspan=\"2\">" . "<font class=\"tiny\">" . _NUMRATINGS . ": {$usertotalcomments}</font>" . "</td>" . "</tr>" . "<tr>" . "<td colspan=\"3\">" . "<font class=\"content\">"; if (is_admin($admin)) { echo "<a href=\"admin.php?op=DownloadsModDownload&lid={$lid}\"><img src=\"modules/{$module_name}/images/editicon.gif\" border=\"0\" alt=\"" . _EDITTHISDOWNLOAD . "\"></a>"; } echo " {$ratingcomments}</font>" . "<br><br><br></td></tr>"; $x++; } echo "</table><br><br><center>"; downloadfooter($lid, $ttitle); echo "</center>"; CloseTable(); include "footer.php"; }
function menu($array) { foreach ($array as $key => $value) { if (is_array($value)) { echo '<div class=subMenu>' . '<div class="menuTitle">' . $value['title'] . '</div>'; menu($value); } else { if ($key !== 'title' and $key !== 'self') { $self = isset($array['self']) ? $array['self'] . '/' : ''; echo '<div class="menuItem">' . '<a href="' . DOMEN . '/' . $self . $key . '">' . $value . '</a>' . '</div>'; } } if (is_array($value)) { echo '</div>'; } } }
function menu($search, $lid) { global $menu; if ($search->count(true)) { foreach ($search as $post) { echo '<li>'; echo '<table class="cell-img" width="280" border="0">'; echo '<tr>'; echo '<th width="240"><a href="/?view=' . $post['_id'] . '">' . $post['name'] . '</a></th>'; echo '</li>'; if (!empty($_COOKIE[md5("role")]) && isset($_GET['leftmenu'])) { echo '<th width="20"><a class="left" href="/?chid=' . $post['_id'] . '"><img class="left" src="images/edit.png"></a></th>'; echo '<th width="20"><a class="left" href="/?delid=' . $post['_id'] . '"><img class="left" src="images/delete.png"></a></th>'; } echo ' </tr>'; echo '<tr>'; echo '<th width="240" style="color: yellow; text-transform:none; text-align:right;">Додано: ' . date('d.m.Y', $post['time']) . ' </th>'; echo ' </tr>'; echo ' </table> '; $id = $post['_id']; $service = $_COOKIE['site']; $criteria = array('toId' => $id); $search = $menu->find($criteria)->sort(array($_COOKIE['sortindex'] => 1)); if ($_COOKIE['sortindex'] == 'time') { $search = $menu->find($criteria)->sort(array($_COOKIE['sortindex'] => -1)); } if ($search->count(true)) { echo '<ul>'; menu($search, $id); echo '</ul>'; } else { if (!empty($_COOKIE[md5("role")]) && isset($_GET['leftmenu'])) { echo '<ul>'; echo '<a href="/?ins=' . $id . '"><img src="images/plus.png"></a>'; echo '</ul>'; } } echo '</li>'; } if (!empty($_COOKIE[md5("role")]) && isset($_GET['leftmenu'])) { echo '<li>'; echo '<a href="/?ins=' . $lid . '"><img src="images/plus.png"></a>'; echo '</li>'; } } }
/** * Настройки */ public function settings() { $handler = menu(); $menus = array(); if ($result = $handler->findAll()) { foreach ($result as $menu) { $menus[$menu->id] = $menu->name; } } $form = new Form(array('#name' => 'widget.menu', 'id' => array('type' => 'select', 'validate' => array('Required'), 'label' => t('Выберите меню'), 'value' => $this->options->id, 'values' => $menus), 'actions' => array('#class' => 'form-actions', 'save' => array()))); if ($result = $form->result()) { $this->options->id = $result->id; if ($this->save()) { return TRUE; } } $form->show(); }
function notes($user) { global $url; $output = null; $id_user = resolveuser($user); $qry = mysql_query("SELECT content FROM notes WHERE account='{$id_user}'"); $output = menu($user); if (mysql_num_rows($qry) == 0) { $output .= 'Nenhuma notificação!'; } else { while ($row = mysql_fetch_array($qry)) { $output .= "\n" . '<p class="note"> ' . url("user/profile/{$user}", $user) . ' ' . $row['content'] . ' </p>'; } } section($output, "Notificações de {$user}"); }
function selectCheck() { $numargs = func_num_args(); $args = func_get_args(); $menu = menu(); if ($numargs == 1) { if (!empty($menu[$args[0]])) { return true; } } elseif ($numargs == 2) { foreach ($menu[$args[0]]['citys'] as $k => $v) { if ($args[1] == $v['id']) { return true; } } } return false; }
function menu($menu) { global $db; $out = "<ul>\n"; $result = $db->query("SELECT * FROM `{PREFIX}nav` WHERE `menu` = {$menu} AND `start` = 1"); while ($row = mysql_fetch_array($result)) { $next = $row['id']; } while ($next != 0) { $out .= "<li><a href=\"?var=navedit&link={$next}\">" . $db->getvalue('text', 'nav', 'id', $next) . "</a></li>\n"; if ($db->has($next, 'menu', 'nav')) { $out .= menu($next); } $next = $db->getvalue('next', 'nav', 'id', $next); } $out .= "</ul>\n"; return $out; }
function make_menus() { global $db, $leftmenu, $rightmenu; $db->query('SELECT suche, ersetze FROM ' . DB_PRE . 'ecp_menu_links WHERE sprache = \'' . LANGUAGE . '\''); $search = array(); $replace = array(); while ($row = $db->fetch_assoc()) { $search[] = $row['suche']; $replace[] = $row['ersetze']; } $result = $db->query('SELECT `menuID`, `name`, `headline`, `modul`, `inhalt`, `hposi`, `vposi`, `usetpl`, `design` FROM ' . DB_PRE . 'ecp_menu WHERE design = \'' . DESIGN . '\' AND (access = "" OR ' . $_SESSION['access_search'] . ') AND (lang = "" OR lang LIKE \'%' . LANGUAGE . '%\') ORDER BY vposi ASC'); while ($row = mysql_fetch_assoc($result)) { $content = ''; $row['inhalt'] = str_replace($search, $replace, $row['inhalt']); if ($row['modul'] != '') { ob_start(); if (file_exists('inc/module/' . $row['modul'])) { include 'inc/module/' . $row['modul']; $content = ob_get_contents(); ob_end_clean(); } } elseif ($row['usetpl']) { $links = explode('<br />', $row['inhalt']); $tpl = new smarty(); $tpl->assign('links', $links); ob_start(); $tpl->display(DESIGN . '/tpl/menu_links.html'); $content = ob_get_contents(); ob_end_clean(); } else { $content = $row['inhalt']; } if ($content) { ob_start(); menu($row['headline'], $content); if ($row['hposi'] == 'l') { $leftmenu .= ob_get_contents(); } else { $rightmenu .= ob_get_contents(); } ob_end_clean(); } } }
/** * Render the layout html by type (see View/config/defaults.php) * todo allow application to implement renderers * @param $config * @return bool */ protected function renderByType($config) { if ($config['script']) { return $this->script($config['script']); } elseif ($config['meta']) { return $this->meta($config['meta']); } elseif ($config['style']) { return $this->style($config['style']); } elseif ($config['menu']) { return menu($config['menu']); } elseif (form()->exists($config['form'])) { return form($config['form']); } elseif (view()->exists($config['view'])) { return view($config['view']); } elseif ($config['config']) { return config($config['config']); } return false; }
function menu(array $pages, array $options = array()) { // Defaults $level = 0; $maxdepth = null; $logged = false; extract($options, EXTR_SKIP); if ($level > $maxdepth || count($pages) === 0) { return ''; } $html = ''; $html .= '<ul>' . "\n"; foreach ($pages as $page) { if (isset($page['only_logged_user']) && $page['only_logged_user'] && !$logged) { continue; } $classes = array(); $operation = isset($page['operation']) ? $page['operation'] : null; if ($operation === 'link') { $href = $page['link']; $target = $page['link_open_in']; $title = $page['link_title']; } else { $href = '/' . $page['absolute_path']; $target = null; $title = null; } $target = $target ? ' target="' . $target . '"' : ''; $title = $title ? ' title="' . $title . '"' : ''; $classes[] = isset($page['active']) && $page['active'] ? 'active' : null; $classes[] = isset($page['current']) && $page['current'] ? 'current' : null; $classes = implode(' ', array_filter($classes)); $classes = $classes ? ' class="' . $classes . '"' : ''; $html .= "\t" . '<li>' . "\n" . "\t\t" . '<a' . $classes . ' href="' . $href . '"' . $target . $title . '>' . $page['title'] . '</a>' . "\n"; if (isset($page['children']) && is_array($page['children'])) { $html .= menu($page['children'], array_merge($options, array('level' => $level + 1))); } $html .= "\t" . '</li>' . "\n"; } $html .= '</ul>' . "\n"; return $html; }
function lista($user) { global $dateformat, $home; requirelogin(); include "libs/accounts.php"; $output = menu($user); $owner = resolveuser($user); $qry = mysql_query("SELECT * FROM blog WHERE `owner`='{$owner}' ORDER BY `id` DESC LIMIT 30"); if (mysql_num_rows($qry) == 0) { $output .= infobox($user . ' ' . t("ainda não postou em seu blog."), false); } else { while ($post = mysql_fetch_array($qry)) { $post_author = mysql_fetch_array(mysql_query("SELECT * FROM accounts WHERE `id`='{$post['owner']}'")); // begin post $output .= '<div class="row"> <h3><a name="post_' . $post['id'] . '">' . $post['title'] . '</a></h3> <p><i>' . date($dateformat, $post['date']) . '</i><br/> ' . bbcode($post['text']) . ' </p>'; // end post $commnt = mysql_query("SELECT * FROM blog_comments WHERE `post`='{$post['id']}' ORDER BY `id` DESC LIMIT 20"); if (mysql_num_rows($commnt) != 0) { while ($comment = mysql_fetch_array($commnt)) { $comment_author = mysql_fetch_array(mysql_query("SELECT * FROM accounts WHERE `id`='{$comment['owner']}'")); // begin comments $output .= "\n" . '<blockquote>' . url("user/profile/{$comment_author['login']}", $comment_author['login']) . ': ' . bbcode($comment['content']) . '</blockquote><br/>'; // end comments } } $output .= '<p> <form action="' . $home . 'blog/commentpost" method="post"> <input type="hidden" name="post" value="' . $post['id'] . '"> <input type="hidden" name="post_author" value="' . $post_author['login'] . '"> <textarea rows="3" cols="25" name="content"></textarea><br> <input type="submit" value="Comentar"> </form> </p> </div>'; } } section($output, t("Blog de") . ' ' . $user); }
function admin($section) { $data = array(); $data = info($section); $data['nameB'] = 'edit'; $data['valueB'] = 'Изменить'; $data['buttonDelet'] = '<input type="submit" name="delete" value="Удалить"></p>'; $data['nameAct'] = 'Добавить раздел'; $data['idAct'] = 0; if ($section == 0) { $data['id'] = 0; $data['nameB'] = 'add'; $data['valueB'] = 'Добавить'; $data['buttonDelet'] = ""; $data['nameAct'] = 'Редактировать раздел'; $data['idAct'] = 1; } $data['menu'] = menu($section); $data['page_name'] = 'Админ'; require "view/viewAdmin.php"; }
function layout_topo($topo) { global $pagina_sem_layout; // Variavel global que indica se haverá layout ou não if($pagina_sem_layout==1) return; // Para páginas sem layout if($_SESSION['perfil_do_usuario']!= 'adm' ){ // Este é o layout das páginas echo ' <HTML> <HEAD> <TITLE>CIDE Estágios - Intermediando o seu desenvolvimento ::::::::::::::::::::::::::</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="../geral/html/padrao_ie.css" type="text/css"> </HEAD> <BODY STYLE="background-image: url(../geral/html/images/bg_pg.gif);" BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> <TABLE WIDTH=790 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>'.$topo.'<TR> <TD background="../geral/html/images/index_07.gif"> </TD> <TD bgcolor="#FFFFFF" height="250px" valign="top"><div id="central"> '; } else if($_SESSION['perfil_do_usuario']== 'adm' ) { menu(); } }
function menu($menu_root, $level) { $indent = ">"; if ($menu_root == -1) { $query = "SELECT m.menuid, m.title, m.articleid, s.antall FROM menu m left join (SELECT parentid, count(*) AS antall FROM menu GROUP BY parentid) s ON (m.menuid = s.parentid) WHERE m.parentid IS NULL ORDER BY m.priority, m.title"; } else { $query = "SELECT m.menuid, m.title, m.articleid, s.antall FROM menu m left join (SELECT parentid, count(*) AS antall FROM menu GROUP BY parentid) s ON (m.menuid = s.parentid) WHERE m.parentid = " . $menu_root . " ORDER BY m.priority, m.title"; } $result = DB_get_table($query); while ($row = DB_next_row($result)) { // hvis den ikke referer til en artikkel, behandles den som en overskrift if ($row['articleid'] == '') { echo '<div class="menu_header">' . str_repeat($indent, $level) . $row['title'] . '</div>'; } else { echo '<a href="index.php?m_c=m_va&articleid=' . $row['articleid'] . '">' . str_repeat($indent, $level) . $row['title'] . '</a><br />'; } // Går ned ett hakk: echo '<div class="menu_sub_header">'; menu($row['menuid'], $level + 1); echo '</div>'; } }
function page_create($title = "CSC Bonspiel App Webpage", $menu) { ?> <html> <head> <title><?php echo $title; ?> </title> <link rel='stylesheet' type='text/css' href='/css/main.css'/> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <?php if (USES_HTTPS) { ?> <script> if ('serviceWorker' in navigator) { navigator.serviceWorker.register('/sw.js', {scope: '/'}).then(function (reg) { // registration worked //console.log('Registration succeeded. Scope is ' + reg.scope); }).catch(function (error) { // registration failed //console.log('Registration failed with ' + error); }); } </script> <?php } ?> <!--[if lt IE 9]> <META http-equiv="refresh" content="0;URL=unsupported"> <body> <![endif]--> <script src="/js/menu.js"></script> </head> <div id="container"> <?php menu($menu); }
function viewdownloadeditorial($lid, $ttitle) { global $prefix, $dbi, $admin, $module_name; include "header.php"; include "modules/{$module_name}/d_config.php"; menu(1); $result = sql_query("SELECT adminid, editorialtimestamp, editorialtext, editorialtitle FROM " . $prefix . "_downloads_editorials WHERE downloadid = {$lid}", $dbi); $recordexist = sql_num_rows($result, $dbi); $transfertitle = ereg_replace("_", " ", $ttitle); $transfertitle = stripslashes($transfertitle); $displaytitle = $transfertitle; echo "<br>"; OpenTable(); echo "<center><font class=\"option\"><b>" . _DOWNLOADPROFILE . ": {$displaytitle}</b></font><br>"; downloadinfomenu($lid, $ttitle); if ($recordexist != 0) { while (list($adminid, $editorialtimestamp, $editorialtext, $editorialtitle) = sql_fetch_row($result, $dbi)) { $editorialtitle = stripslashes($editorialtitle); $editorialtext = stripslashes($editorialtext); ereg("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $editorialtimestamp, $editorialtime); $editorialtime = strftime("%F", mktime($editorialtime[4], $editorialtime[5], $editorialtime[6], $editorialtime[2], $editorialtime[3], $editorialtime[1])); $date_array = explode("-", $editorialtime); $timestamp = mktime(0, 0, 0, $date_array["1"], $date_array["2"], $date_array["0"]); $formatted_date = date("F j, Y", $timestamp); echo "<br><br>"; OpenTable2(); echo "<center><font class=\"option\"><b>'{$editorialtitle}'</b></font></center>" . "<center><font class=\"tiny\">" . _EDITORIALBY . " {$adminid} - {$formatted_date}</font></center><br><br>" . "{$editorialtext}"; CloseTable2(); } } else { echo "<br><br><center><font class=\"option\"><b>" . _NOEDITORIAL . "</b></font></center>"; } echo "<br><br><center>"; downloadfooter($lid, $ttitle); echo "</center>"; CloseTable(); include "footer.php"; }