Example #1
0
 function mensaje_correcto($mensaje = "", $url = BASE_URL)
 {
     showHeaders();
     showMenu();
     correct_mensaje($mensaje, $url);
     showFoot();
 }
Example #2
0
 function registrarse()
 {
     showHeaders();
     showMenu();
     $form = $this->M_DATA->readFile("json/registrar_usuario.json");
     $form = $this->C_FORMING->creaForm($form);
     showForm($form);
     //*/
     //showProductos1();
     showFoot();
 }
Example #3
0
function showMenu($arrMenu)
{
    echo "<ul>";
    foreach ($arrMenu as $key => $value) {
        if (is_array($value)) {
            showMenu($value);
        } else {
            echo "<li><a href=\"" . $key . "\"/>" . $value . "</a></li>";
        }
    }
    echo "</ul>";
}
Example #4
0
function showMenu($lstmenu)
{
    $idnhomquyen = $_SESSION['idnhomquyen'];
    echo "<ul class='drop'>";
    if (count($lstmenu) > 0) {
        foreach ($lstmenu as $i) {
            if (checkExistentQ_NQ($idnhomquyen, $i["IDDM"])) {
                echo "<li> <a href='#'> " . $i[Constants::$Ten_DM_name] . "</a>";
                $rs = getDMCon($i[Constants::$ID_DM_name]);
                if (count($rs) > 0) {
                    showMenu($rs);
                }
                echo "</li>";
            }
        }
    }
    echo "</ul>";
}
	function showMenu($menu,$submenu=false)
	{
		$name=$menu[0];
		$title=$menu[1];
		$view=$menu[2];
		$ar=$menu[3];
		
		if($name==getInput("page"))
			$title=boldMenuItem($title);
		$c=tr(td(anchor(page($name),$title),"menu_title","",2));
		
		if(is_array($ar))
		{
			foreach($ar as $a)
			{
				$c.=" | ".tr(td("&nbsp;","menu_side").td(showMenu($a,true)));
			}
		}
		if($submenu)
			return table($c,"submenu");
		else
			return table($c,"menu");
	}
Example #6
0
    function showMenu($models, $model, $child = false)
    {
        ?>
<ul><?php 
        foreach ($models as $g => $m) {
            if (is_array($m)) {
                ?>
                <li><?php 
                echo Html::a('<i class="glyphicon glyphicon-chevron-right"></i>' . $g, false);
                showMenu($m, $model, true);
                ?>
                </li><?php 
            } elseif ($child || $m->id != $model->id) {
                ?>
                <li><?php 
                echo Html::a('<i class="glyphicon glyphicon-chevron-right"></i>' . $m->name, ['site/index', 'sid' => $m->sid]);
                ?>
</li>
            <?php 
            }
        }
        ?>
</ul><?php 
    }
Example #7
0
<html>
<head>
	<link rel="stylesheet" href="/css/960/reset.css">
	<link rel="stylesheet" href="/css/960/960_12_col.css">
	<!--<link rel="stylesheet" href="/css/960/text.css">-->
	<link rel="stylesheet" href="/css/style.css">
	<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
	<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
	<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>	
	<script src="/js/javascript.js"></script>
<body>
<div id="message"></div>
	<div class="container_12">
			<div id="nav">
				<?php 
showMenu();
?>
				<div style="float:right;margin-top:12px; margin-right:15px"><label for="quickSummary">Quick Summary By UPC:</label><input type="number" id="quickSummary" name="quickSummary"><input type="button" value="Go" onClick="window.location.assign('/upcsummary/'+$('#quickSummary').val())"></div>
			</div>
		<div id="content">
			<h2>Add Wine</h2>
			<form id="form" name="form">
			<input type="hidden" id="function" name="function" value="addWine">
			<label for="upc">UPC or Name:</label><input type="number" id="upc" name="upc"><br>
			<label for="upc">Type:</label><select class="select" id="type" name="type">
			<option value="Chardonnay">Chardonnay</option>
			<option value="Fume/Sauvignon Blanc">Fume/Sauvignon Blanc</option>
			<option value="Pinot Grigio">Pinot Grigio</option>
			<option value="White Zinfandel/Rose">White Zinfandel/Rose</option>
			<option value="Other Whites">Other Whites</option>
			<option value="Dessert">Dessert</option>
Example #8
0
        saveMenu($option);
        break;
    case "deleteconfirm":
        deleteconfirm($option, $cid);
        break;
    case "deletemenu":
        deleteMenu($option, $cid, $type);
        break;
    case "copymenu":
        copyMenu($option, $cid, $menu_name, $type);
        break;
    case "cancel":
        cancelMenu($option);
        break;
    default:
        showMenu($option);
        break;
}
/**
* Compiles a list of menumanager items
*/
function showMenu($option)
{
    global $database, $mainframe, $mosConfig_list_limit;
    ## Main Query
    $query = "SELECT a.title, a.params, a.id" . "\n FROM #__modules AS a" . "\n WHERE a.module = 'mod_mainmenu'" . "\n ORDER BY a.title";
    $database->setQuery($query);
    $menus = $database->loadObjectList();
    $total = count($menus);
    ## Query to get menu item count and menutype
    $query = "SELECT a.menutype, count( a.menutype ) as num" . "\n FROM #__menu AS a" . "\n WHERE a.published != -2" . "\n GROUP BY a.menutype" . "\n ORDER BY a.menutype";
Example #9
0
}
if (isset($_POST["store"])) {
    $store = htmlspecialchars($_POST["store"]);
}
if (isset($_SESSION["menu"])) {
    $lastMenu = $_SESSION["menu"];
}
// -------------------------
// establish db connection
mysql_connect($mysqlhost, $mysqluser, $mysqlpass);
mysql_select_db($mysqldb);
mysql_query("set names 'utf8'");
mysql_query("SET lc_time_names = 'de_DE'");
// -----------------------
// Menü
showMenu($menu != "" ? $menu : $lastMenu);
// -----------------------
// Store Parameter
if ($store == "store") {
    if (isset($_POST["new_value"]) && isset($_POST["store_id"])) {
        $newValue = htmlspecialchars($_POST["new_value"]);
        $storeId = htmlspecialchars($_POST["store_id"]);
        if (storeParameter($storeId, $newValue, $unit, $state) == 0) {
            echo "      <br/><div class=\"info\"><b><center>Gespeichert!</center></b></div><br/>\n";
        } else {
            echo "      <br/><div class=\"infoError\"><b><center>Fehler beim speichern von '{$newValue}' " . "für Parameter {$storeId}<br/>>> {$state} <<</center></b></div><br/>\n";
        }
    }
}
// -----------------------
// Edit Parameter
Example #10
0
File: header.php Project: hpie/hpie
	$('#popup').fadeOut('fast');
	$('#window').fadeOut('fast');
	}
</script>
</head>
<body>
		<div id="headerContainer">
		<div id="header"><a title ='Go to Webinator.biz Home' href ='<?php 
echo BASE_URL;
?>
create_page.php' target ='_self'><img src="images/logo.jpg" alt="logo" longdesc="images/logo.jpg" /></a></div>
        </div>
        <div id="navContainer">
        <ul id="nav">
			<?php 
echo showMenu('header');
?>
			<li><?php 
echo $html->link(array('Template gallery' => 'create_page.php'), 'header');
?>
</li>
			<?php 
if ($user_session_id) {
    ?>
			  <li><?php 
    echo $html->link(array('My web pages' => 'my_squeeze_pages.php'), 'header');
    ?>
</li>
				<!--<div id="libox"><div align ='center'><?php 
    echo $html->link(array('Logout' => 'logout.php'), 'header');
    ?>
Example #11
0
function showMenu($lstdm)
{
    echo "<ul class='drop'>";
    if (count($lstdm) > 0) {
        foreach ($lstdm as $i) {
            echo "<li>";
            echo "<a>" . $i[Constants::$Ten_DM_name] . "</a>";
            //kiểm tra xem nó có con hay k, nếu có thì gọi lại chính phương thức này -> đệ qui
            $lstdmCon = getDMbyIDCha($i[Constants::$ID_DM_name]);
            if (count($lstdmCon) > 0) {
                showMenu($lstdmCon);
            }
            echo "</li>";
        }
    }
    echo "</ul>";
}
/**
 *  Show all message templates
 */
function showAllTemplates()
{
    global $client, $page, $limit, $paginatedFunction, $backMenu;
    $paginatedFunction = 'showAllTemplates';
    try {
        $response = $client->templates->getList(array('page' => $page, 'limit' => $limit));
    } catch (\ErrorException $e) {
        error($e);
    }
    $templates = $response['resources'];
    print <<<EOT

TEMPLATES
=========
Page {$response['page']} of {$response['pageCount']}

EOT;
    foreach ($templates as $template) {
        print "{$template['id']}. {$template['name']}: {$template['content']}\n";
    }
    $items = array('Previous page' => 'goToPreviousPage', 'Next page' => 'goToNextPage', 'Delete template' => 'deleteTemplate');
    showMenu($items + $backMenu);
}
Example #13
0
function showPagePart($pagePart)
{
    $links = array("topbar" => "homebtn.html", 'main' => "intro.html;home.html", 'html' => 'html/htm.html', 'css' => 'css/css.html', 'js' => 'js/js.html', 'php' => 'php/php.html', 'sql' => 'sql/sql.html');
    if (isset($links[$pagePart])) {
        switch ($pagePart) {
            case 'topbar':
                showTextDivider("#", "main-header", MAIN_TITLE);
                require "timer.html";
                showMenu();
                require $links[$pagePart];
                break;
            default:
                $parts = explode(";", $links[$pagePart]);
                foreach ($parts as $key => $value) {
                    require $value;
                }
                # code...
                break;
        }
    }
}
Example #14
0
</div>
<div id="wrapperfooter">
    <div id="wrapperfootertop">
    </div>
    <div id="wrapperfooterbottom">
        <div id="bottomservicemenu">
		<?php 
echo showMenu('footer');
?>
     <!-- <a target="_self" href="http://www.kinderopvangcompagnie.nl" title="home">home</a><b> | </b>
        <a target="_self" href="/?page_id=104" title="Disclaimer">disclaimer</a><b> | </b>
        <a target="_self" href="/?page_id=18" title="actueel">actueel</a><b> | </b>
        <a target="_self" href="/?page_id=20" title="contact">contact</a>-->
        </div>
    </div>
<b class="fbottom"><b class="fb4"></b><b class="fb3"></b><b class="fb2"></b><b class="fb1"></b></b>
</div>
</div>
</body>
</html>