/**
 *  recursive iterate and create map thought multidimensional menu array
 *
 * @param 	array $array;  Pass multidimensional array for menu;  name and/or url
 * @return  array of processed elements via  wrapElement()
 *
 */
function drawMenu($array, $level = 0)
{
    $menu = "";
    foreach ($array as $key => $value) {
        $addClass = '';
        // check the level to decide the main items for class 'ismain'
        if ($level == 0) {
            $addClass = ' ismain';
        }
        !empty($value['url']) ? $url = $value['url'] : ($url = NULL);
        // inside the loop items that has no subs
        if (!isset($value['subpages'])) {
            $class = 'inside';
            $menu .= wrapElement(array('element' => 'li', 'class' => $class . $addClass, 'content' => $value['name'], 'url' => $url));
        } else {
            // outside the loop items that do has subs
            $class = 'outside';
            $menu .= wrapElement(array('element' => 'li', 'class' => $class . $addClass, 'content' => $value['name'], 'url' => $value['url'], 'openTag' => TRUE));
            $menuItemContent = drawMenu($value['subpages'], $level + 1);
            $menu .= wrapElement(array('element' => 'ul', 'content' => $menuItemContent));
            $menu .= wrapElement('li');
        }
    }
    return $menu;
}
Exemplo n.º 2
0
function drawMenu($main_category, $category, $parent_path)
{
    $each['id'] = $main_category;
    echo "<ul class='category'>";
    $child_categories = $category->getChildCategories($each['id']);
    foreach ($child_categories as $array => $each) {
        echo "<li><a href='" . PATHSITE . "/category/" . $each['id'] . "'>" . $each['name'] . "</a></li>";
        if (in_array($each['id'], $parent_path)) {
            drawMenu($each['id'], $category, $parent_path);
        }
    }
    echo "</ul>";
}
Exemplo n.º 3
0
}
/*-------------------------------*/
$cli = new XML_RPC_Client('/RPCSERVER', 'localhost', 5000);
?>


<!-- Begin Site -->
<html>
<head>
    <LINK href="mystyle.css" rel="stylesheet" type="text/css">
    </head>

<body class='bheader' >

    <?php 
drawMenu();
?>
    <br>

    <form action='run_tests.php' method='get' name='sut_pretest'>
        <div class='column'>
            <span > <?php 
listTests($cli);
?>
 &nbsp;</span>
            <span > <?php 
listSUTVersions($cli);
?>
 &nbsp;</span>
            <span > <?php 
listOSes($cli);
Exemplo n.º 4
0
include_once "../models/categories.php";
include_once "../models/goods.php";
include_once "../views/functions.php";
$id_category = getIdFromUrl();
$category = new Categories();
$GLOBALS['title'] = $category->getNameCategory($id_category);
include_once "header.php";
?>

<div id="sidebar">
<?php 
$parent_path = $category->getParentPath($id_category);
$main_category = $parent_path[0];
$child_categories = $category->getAllChildCategories($id_category);
$main_child_categories = $category->getChildCategories($main_category);
drawMenu($main_category, $category, $parent_path);
?>
</div>

<div id="content">

<?php 
$good = new Goods();
$all_goods = $good->getGoodsFromCategories($child_categories);
foreach ($all_goods as $array => $each) {
    if ($each['is_showed'] == 1) {
        echo "<div class='good'>";
        echo "<a href='" . PATHSITE . "/good/" . $each['id'] . "'><p class='good-name'>" . $each['name'] . "</p>";
        if ($each['img_link'] == "") {
            $each['img_link'] = "none-link.jpg";
        }
Exemplo n.º 5
0
<?php

session_start();
?>
<html>
<head>
<title>Seraph documentation</title>
<link href='mystyle.css' rel='stylesheet' type='text/css'>
</head>
<body class='bheader'>
<?php 
require_once 'base_lib.php';
if (!drawMenu()) {
    echo "</body></html>";
    return;
}
?>
<pre>
TODO.
=========================
Add Documents from the libraries of testAPI.


Testing Framework.
=========================
    In software development, a framework is a defined support structure in which another
software project can be organized and developed.
The presented framework facilitates the developement of test scripts and includes the
folowing modules:
        a) testCases( testing scripts)
        b) testDriver(seraph-support program)
Exemplo n.º 6
0
                        </form>
                        <tr><td height="100"></td></tr>
                        <tr>
                            <td height="60" width="170" class="myform" align="center" colspan="8" style="font-size:25px;">Menu</td>
                        </tr>
                        <tr>
                            <td colspan="8">
                                <table border="3" cellpadding="0" cellspacing="0" width="100%" align="center" style="border-collapse:collapse;" rules="rows" frame="hsides">
                                    <tr bgcolor="#96638e"> 
                                        <td class="myform" align="center" height="30" width="160" style="font-size:15px; color:#ffffff;">Image</td>
                                        <td class="myform" align="center" height="30" width="350" style="font-size:15px; color:#ffffff;">Item</td>
                                        <td class="myform" align="center" height="30" width="100" style="font-size:15px; color:#ffffff;">Price</td>
                                        <td class="myform" align="center" height="30" width="100" style="font-size:15px; color:#ffffff;"></td>
                                    </tr>
                                    <?php 
drawMenu($conn, $license);
?>
                                </table>
                            </td>
                        </tr>
                        <tr><td height="20"></td></tr>
                        <tr><td colspan="8" align="right">
                            <input type="button" onclick="addMenu();" value="Add Menu" class="mymenu" style="height:50px; width:150px; color:white; background-color:#74416c; border:none;" />
                        </td></tr>
                        </form>
                        <tr><td height="100"></td></tr>
                        <tr>
                            <td height="60" width="170" class="myform" align="center" colspan="8" style="font-size:25px;">Review</td>
                        </tr>
                        <tr>
                            <td colspan="8">
Exemplo n.º 7
0
<head>
    <meta charset="utf-8" />
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
    <meta name="viewport" content="width=device-width">
    <title>Brian Reynolds - Resume</title>
    
    <!-- CSS -->
    <link href="style2.css" rel="stylesheet" type="text/css" />
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
    <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css' />
    <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css' />
</head>

<body>
    <?php 
drawMenu("resume.php");
?>
    
    <div id="main">
	<div id="resume">
	    <h1>Brian Reynolds</h1>
	    <div id="personal">
		<p>Honours Computer Science</p>
		<p><strong>Email:</strong> brian@bareynol.com</p>
		<p><strong>Phone:</strong> (519) - 807 - 9096</p>
	    </div>
	    <div id="qualifications">
		<h2>Qualifications</h2>
		<ul>
		    <li>Experienced in: PHP, HTML, CSS, Javascript (jQuery), C++</li>
		    <li>Experience with: C, MySQL, Python, MIPS Assembly, Visual Basic, MATLAB (unfortunate), Scheme(DrRacket), Windows OS, Unix based OS, Adobe Photoshop</li>
Exemplo n.º 8
0
<?php 
getToolbar($phpurl, $doc, $repository, 1, $docroot);
?>

<table width="100%">
<tr>
<td class="sidebar">
<div class="toc" style="clear:both;">
	<h2><a href="<?php 
echo $phpurl;
echo $doc;
?>
/summary" style="text-decoration:none;">Table of Contents</a></h2>
	<div id="contentMenu1">
		<?php 
$final = drawMenu($appurl, $phpurl, $doc, $section, $menuOrder);
echo $final;
?>
	</div>
	<br /><hr /><br />
	<h2><a href="<?php 
echo $phpurl;
echo $doc;
?>
/dsc" style="text-decoration:none">Container List</a></h2>
	<p>&nbsp;<a href="<?php 
echo $phpurl;
echo $doc;
?>
/dsc" style="font-size:11px;">View all</a></p>
	<div id="contentMenu"><p align="center"><img src="<?php 
Exemplo n.º 9
0
    <meta name="description" content="Brian Reynolds -- Developer, Designer" />
    <meta name="keywords" content="programming, web development, database management, resume" />

    <title>Brian Reynolds</title>

    <!-- CSS -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
    <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css' />
    <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css' />
    <link href="style2.css" rel="stylesheet" type="text/css" />
	
</head>

<body>
    <?php 
drawMenu("index.php");
?>
    <div id="main">
	<div id="index-me">
	    <h1>Hi Mom!</h1>
	    <h3>I'm Brian, and I am a third year computer science student at the University of Waterloo. This is my site.</h3>
	    <p>A little about me: I have worked as a PHP developer and systems analyst for two work terms. My passion is programming, but I'll get any chance to
	    design pretty things that I can. Currently I have a few projects in the works, a CSS "compiler" (maybe more aptly a translator), a JavaScript
	    minifier, and a few projects to do with 3D graphics, three.js, and WebGL. Take a look at my <a href="projects.html">projects</a> page for more information!</p>
	</div>
    </div>
    <div id="contact-info">
	<h4>Get in contact with me here!</h4>
	<ul class="social">
	    <li><img src="./images/gmail-48-black.png"></li>
	    <li><img src="./images/facebook-48-black.png"></li>
Exemplo n.º 10
0
<?php

include "functions.php";
?>

<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8" />
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
    <meta name="viewport" content="width=device-width">
    <title>Brian Reynolds - About</title>
    
    <!-- CSS -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
    <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css' />
    <link href="style2.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <?php 
drawMenu("about.php");
?>
    
    <div id="main">
	<h4>Who am I?</h4>
    </div>
</body>
</html>
Exemplo n.º 11
0
function drawMenu($menuArray)
{
    $c = '';
    foreach ($menuArray as $name => $item) {
        if (is_array($item)) {
            $c .= '<a href="#">' . htmlspecialchars($name) . '</a>';
            $c .= '<ul>' . drawMenu($item) . '</ul>';
        } else {
            $c .= '<a href="' . $item . '">' . htmlspecialchars($name) . '</a>';
        }
    }
    return $c;
}
Exemplo n.º 12
0
} else {
    $op = "main";
}
// ---------- Popup Menu ----------------------
$menu_label = array();
$menu_url = array();
$menu_label["main"] = $lang->def("_LINK");
$menu_url["main"] = $page_url . "&amp;op=main";
if (isEditorInWiki()) {
    $menu_label["wiki_new"] = $lang->def("_WIKI_PAGE_NEW");
    $menu_url["wiki_new"] = $page_url . "&amp;op=wiki_new";
    $menu_label["wiki_sel"] = $lang->def("_WIKI_PAGE_SEL");
    $menu_url["wiki_sel"] = $page_url . "&amp;op=wiki_sel";
}
// ---------------------------------------------
drawMenu($menu_label, $menu_url, $op);
// --------------------------------------------------------------------------------------------
$GLOBALS['page']->add('<link href="' . $GLOBALS["where_framework_relative"] . '/templates/standard/style/base-old-treeview.css" rel="stylesheet" type="text/css" />' . "\n", 'page_head');
$GLOBALS['page']->add('<script type="text/javascript"> window.resizeTo(640, 480); </script>', 'page_head');
// --------------------------------------------------------------------------------------------
define("_USER_FPATH_INTERNAL", "/common/users/");
define("_USER_FPATH", $GLOBALS["where_files_relative"] . _USER_FPATH_INTERNAL);
define("_FPATH_INTERNAL", "/appCms/media/");
define("_FPATH", $GLOBALS["where_files_relative"] . _FPATH_INTERNAL);
define("_PPATH_INTERNAL", "/appCms/media/preview/");
define("_PPATH", $GLOBALS["where_files_relative"] . _PPATH_INTERNAL);
switch ($op) {
    case "main":
        show_main($out, $lang);
        break;
    case "wiki_new":
Exemplo n.º 13
0
<?php 
require_once 'function.php';
require_once 'resource.php';
// @@ wrap the menu element with Ul and class 'nagivate'
if (!empty($aMenu)) {
    print $aMenu = wrapElement(array('element' => 'ul', 'class' => 'navigate', 'content' => drawMenu($aMenu)));
}
Exemplo n.º 14
0
    <title>Brian Reynolds - Projects</title>

    <!-- CSS -->
    <link href="sliderstyle.css" rel="stylesheet" type="text/css" />
    <link href="style2.css" rel="stylesheet" type="text/css" />
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
    <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css' />
    <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css' />
    
</head>

<body>
	
    <?php 
drawMenu("projects.php");
?>
    
    <article id=slider>
    
	<!-- Slider Setup -->

	<input checked type=radio name=slider id=slide1 />
	<input type=radio name=slider id=slide2 />
	<input type=radio name=slider id=slide3 />
	<input type=radio name=slider id=slide4 />
	<input type=radio name=slider id=slide5 />


	<!-- The Slider -->