当前位置: 首页>>代码示例>>PHP>>正文


PHP Layout::displayMenu方法代码示例

本文整理汇总了PHP中Layout::displayMenu方法的典型用法代码示例。如果您正苦于以下问题:PHP Layout::displayMenu方法的具体用法?PHP Layout::displayMenu怎么用?PHP Layout::displayMenu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Layout的用法示例。


在下文中一共展示了Layout::displayMenu方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Connection

<?php

include_once 'CheckLogOut.php';
require_once 'Connection.php';
require_once 'Layout.php';
require_once 'CacheArquivo.php';
require_once 'User';
$c = new Connection();
$lay = new Layout();
$lay->IncreaseStyles();
$lay->displayTitle(1, $USERNAME);
$lay->displayMenu('NewContact.php', 'Adicionar Contato', 'Images/addContact.png', 'EditUser.php', 'Gerenciamento de Conta', 'Images/settings.png', 'Logout.php', 'Deslogar-se', 'Images/logout.png');
echo '<html>';
echo '<body>';
echo '<div id="BODY">';
echo '<form action="User_edt.php" method=POST name="frmUser_edt" Class="form-center">';
echo '<fieldset class="fieldset-auto-width">';
echo '<legend> <h2> <font face="Arial" color="blue"> Edição de Usuário</h2> </font></legend>';
echo 'Login: <br>';
echo '<input type="text" name="userName" value="' . $USERNAME . '" readonly="readonly"> </input> <br>';
echo 'Senha: <br>';
echo '<input type="password" name="password"> </input> <br>';
echo 'Nome do usuário: <br>';
echo '<input type="text" name="fullName"> </input> <br>';
echo '</fieldset>';
echo '<br><input type="submit" value="Salvar Dados"> </input>';
echo '</form>';
echo '</div>';
echo '</body>';
echo '</html>';
开发者ID:andersonbporto,项目名称:programacao_internet_2015_1,代码行数:30,代码来源:EditUser.php

示例2: Layout

<?php

require_once 'Layout.php';
$lay = new Layout();
$lay->IncreaseStyles();
$lay->displayTitle(1, "Visitante");
$lay->displayMenu('NewUser.php', 'Criar usuário', 'Images/newUser.png');
echo '<html>';
echo '<body>';
echo '<div id="BODY">';
echo '<form action="User_ins.php" method=POST name="frmUser_ins" Class="form-center">';
echo '<fieldset class="fieldset-auto-width">';
echo '<legend> <h2> <font face="Arial" color="blue"> Cadastro de Usuário</h2> </font></legend>';
echo 'Login: <br>';
echo '<input type="text" name="userName"> </input> <br>';
echo 'Senha: <br>';
echo '<input type="password" name="password"> </input> <br>';
echo 'Nome do usuário: <br>';
echo '<input type="text" name="fullName"> </input> <br>';
echo '</fieldset>';
echo '<br><input type="submit" value="Salvar Dados"> </input>';
echo '</form>';
echo '</div>';
echo '</body>';
echo '</html>';
开发者ID:andersonbporto,项目名称:programacao_internet_2015_1,代码行数:25,代码来源:NewUser.php

示例3: Layout

<?php 
include_once 'CheckLogOut.php';
require_once 'Layout.php';
$lay = new Layout();
$lay->IncreaseStyles();
$lay->displayTitle(1, $USERNAME);
$lay->displayMenu('NewContact.php', '', 'Images/addContact.png');
echo '<html>';
echo '<body>';
echo '<div id="BODY">';
echo '<form action="Contact_ins.php" method=GET>';
echo '<fieldset>';
echo '<legend> Novo contato </legend>';
echo '<label for="fullName"> Nome: </label> ';
echo '<input type="text" name="fullName"> </input>';
echo '<label for="email"> Email: </label>';
echo '<input type="text" name="email"> </input>';
echo '</fieldset>';
echo '<fieldset>';
echo '<legend> Novo Endereço </legend>';
echo 'Nome da rua: <br><input type="text" name="streetName"> </input> <br>';
echo 'Número: <br><input type="text" name="number"> </input> <br>';
echo 'Complemento: <br><input type="text" name="complement"> </input> <br>';
echo 'Ponto de referência: <br><input type="text"  name="checkPoint"> </input> <br> ';
echo '</fieldset>';
echo '<fieldset>';
echo '<legend> Telefone de Contato </legend>';
echo 'Tipo de Telefone: <br>';
echo '<select name="phoneType">';
echo '<option value="Celular">Celular</option>';
echo '<option value="Residencial">Fone residencial</option>';
开发者ID:andersonbporto,项目名称:programacao_internet_2015_1,代码行数:31,代码来源:NewContact.php

示例4: Connection

$isSet = "false";
if (isset($_GET['orderNome']) && $_GET['orderNome'] != "") {
    $orderBy = "orderNome";
    $orderType = $_GET['orderNome'];
    $isSet = "true";
} else {
    if (isset($_GET['orderId']) && $_GET['orderId'] != "") {
        $orderBy = "orderId";
        $orderType = $_GET['orderId'];
        $isSet = "true";
    } else {
        if (isset($_GET['orderEmail']) && $_GET['orderEmail'] != "") {
            $orderBy = "orderEmail";
            $orderType = $_GET['orderEmail'];
            $isSet = "true";
        }
    }
}
$c = new Connection();
$u = new User();
$lay = new Layout();
$lay->IncreaseStyles();
$lay->displayTitle(1, $USERNAME);
$lay->displayMenu('NewContact.php', 'Adicionar Contato', 'Images/addContact.png', 'Logout.php', 'Deslogar-se', 'Images/logout.png');
if ($isSet == "true") {
    $CacheArquivo = new CacheArquivo();
    $CacheArquivo->set_valor($USERID);
    $u->printContacts($USERID, $orderBy, $orderType);
} else {
    $u->printContacts($USERID);
}
开发者ID:andersonbporto,项目名称:programacao_internet_2015_1,代码行数:31,代码来源:Main.php


注:本文中的Layout::displayMenu方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。