Exemple #1
0
<!-- Content -->
<table border="0" cellpadding="0" cellspacing="5">

<!-- Menu left -->
<tr><td valign="top" align="left">
<table class="mainMenu">
<?php 
menuItemCurrent($textPage1);
menuItem($textDocumentation, $language);
menuItem($textBasicPackages, $language);
menuItem($textGnomeCore, $language);
menuItem($textGnomeExtra, $language);
menuItem($text5thToe, $language);
menuItem($text3rdParty, $language);
menuItem($textNonGnome, $language);
?>
</table>
</td>


<!-- current page content -->
<td valign="top">
Welcome to the Gnome for SuSE Project page.
<p>
03.03.2003&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this site is still under construction
</p>
<p>
You can get the latest Gnome SPECS for SuSE via anonymous CVS
</p>
 function displayMainMenuContainer()
 {
     echo "<div  id='menuContainer' class='container ' >\r\n            <div   class='row col-lg-12'>\r\n            <div id ='Starters' class='box'>\r\n                <div  class='col-lg-12'>\r\n                    <hr>\r\n                    <h2 class='intro-text text-center'>On The Rocks\r\n                        <strong>Menu</strong>\r\n                    </h2>\r\n                    <hr>\r\n                </div>\r\n                <div  id='galleryRow' class='col-lg-12 text-center'>\r\n                    <!-- STARTER SECTION -->\r\n                        <div class='row'>";
     menuItem('6 Crumb Butterfly Prawns', '54.90', 'http://placehold.it/320x150');
     echo "<!-- \\STARTER SECTION  -->\r\n                    </div>\r\n                    \r\n                </div>";
 }
/**
 * showTranslateAdminmenu() creates the main menu options for the survey translation page
 * @param string $surveyid The survey ID
 * @param string $survey_title 
 * @param string $tolang
 * @param string $activated
 * @param string $scriptname
 * @global string $imageurl, $clang, $publicurl
 * @return string
 */
function showTranslateAdminmenu($surveyid, $survey_title, $tolang, $scriptname)
{
    global $imageurl, $clang, $publicurl;
    $baselang = GetBaseLanguageFromSurveyID($surveyid);
    $supportedLanguages = getLanguageData(false);
    $langs = GetAdditionalLanguagesFromSurveyID($surveyid);
    $adminmenu = "" . "<div class='menubar'>\n" . "<div class='menubar-title ui-widget-header'>\n" . "<strong>" . $clang->gT("Translate survey") . ": {$survey_title}</strong>\n" . "</div>\n" . "<div class='menubar-main'>\n";
    $adminmenu .= "" . "<div class='menubar-left'>\n";
    // Return to survey administration button
    $adminmenu .= menuItem($clang->gT("Return to survey administration"), $clang->gTview("Return to survey administration"), "Administration", "home.png", "{$scriptname}?sid={$surveyid}");
    // Separator
    $adminmenu .= menuSeparator();
    // Test / execute survey button
    if ($tolang != "") {
        $sumquery1 = "SELECT * FROM " . db_table_name('surveys') . " inner join " . db_table_name('surveys_languagesettings') . " on (surveyls_survey_id=sid and surveyls_language=language) WHERE sid={$surveyid}";
        //Getting data for this survey
        $sumresult1 = db_select_limit_assoc($sumquery1, 1);
        //Checked
        $surveyinfo = $sumresult1->FetchRow();
        $surveyinfo = array_map('FlattenText', $surveyinfo);
        $activated = $surveyinfo['active'];
        if ($activated == "N") {
            $menutext = $clang->gT("Test This Survey");
            $menutext2 = $clang->gTview("Test This Survey");
        } else {
            $menutext = $clang->gT("Execute This Survey");
            $menutext2 = $clang->gTview("Execute This Survey");
        }
        if (count(GetAdditionalLanguagesFromSurveyID($surveyid)) == 0) {
            $adminmenu .= menuItem($menutext, $menutext2, "do.png", "{$publicurl}/index.php?sid={$surveyid}&amp;newtest=Y&amp;lang={$baselang}");
        } else {
            $icontext = $clang->gT($menutext);
            $icontext2 = $clang->gT($menutext);
            $adminmenu .= "<a href='#' id='dosurvey' class='dosurvey'" . "title=\"" . $icontext2 . "\" accesskey='d'>" . "<img  src='{$imageurl}/do.png' alt='{$icontext}' />" . "</a>\n";
            $tmp_survlangs = GetAdditionalLanguagesFromSurveyID($surveyid);
            $tmp_survlangs[] = $baselang;
            rsort($tmp_survlangs);
            // Test Survey Language Selection Popup
            $adminmenu .= "<div class=\"langpopup\" id=\"dosurveylangpopup\">" . $clang->gT("Please select a language:") . "<ul>";
            foreach ($tmp_survlangs as $tmp_lang) {
                $adminmenu .= "<li><a accesskey='d' onclick=\"\$('.dosurvey').qtip('hide');" . "\" target='_blank' href='{$publicurl}/index.php?sid={$surveyid}&amp;" . "newtest=Y&amp;lang={$tmp_lang}'>" . getLanguageNameFromCode($tmp_lang, false) . "</a></li>";
            }
            $adminmenu .= "</ul></div>";
        }
    }
    // End of survey-bar-left
    $adminmenu .= "</div>";
    // Survey language list
    $selected = "";
    if (!isset($tolang)) {
        $selected = " selected='selected' ";
    }
    $adminmenu .= "" . "<div class='menubar-right'>\n" . "<span class=\"boxcaption\">" . $clang->gT("Translate to") . ":</span>" . "<select onchange=\"window.open(this.options[this.selectedIndex].value,'_top')\">\n";
    if (count(GetAdditionalLanguagesFromSurveyID($surveyid)) > 1) {
        $adminmenu .= "<option {$selected} value='{$scriptname}?action=translate&amp;sid={$surveyid}'>" . $clang->gT("Please choose...") . "</option>\n";
    }
    foreach ($langs as $lang) {
        $selected = "";
        if ($tolang == $lang) {
            $selected = " selected='selected' ";
        }
        $tolangtext = $supportedLanguages[$lang]['description'];
        $adminmenu .= "<option {$selected} value='{$scriptname}?action=translate&amp;sid={$surveyid}&amp;tolang={$lang}'> " . $tolangtext . " </option>\n";
    }
    $adminmenu .= "" . "</select>\n" . "</div>\n";
    // End of menubar-right
    $adminmenu .= "" . "</div>\n";
    $adminmenu .= "" . "</div>\n";
    return $adminmenu;
}
Exemple #4
0
<body class="wave">
<div class="page">
	<div class="logo"><img class="logo" src="img/wave-logo.png"/></div>
	<div class="pageContent">
		<h1 class="title">WAVE &ndash; Web Application Visual Environment</h1>
		<h3 class="subtitle">Model-Driven Development (MDD) for the Zend Web Application Framework</h3>
		<div class='main'>
		<?php 
if (!$_REQUEST["page"]) {
    $_REQUEST["page"] = "overview";
}
// menu
echo "<div class='menubar'>";
foreach ($menu as $key => $val) {
    echo menuItem($key);
}
echo "</div>";
// content
echo "<div class='content'>";
include "content/" . $_REQUEST["page"] . ".inc";
echo "</div>";
?>
		</div>
		
		<div class="license">
			Licensed under the <a href='http://www.gnu.org/licenses/gpl.txt' target='_blank'>GNU General Public License</a> (GPL).
		</div>

		<div class="credits">
		&copy;