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


PHP Perfil::md5_encrypt方法代码示例

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


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

示例1: Template

<?php

$menu = 2;
include "includes/lock.php";
$tpl = new Template("view/templates/default_bootstrap_lteadmin.html");
$tpl->addFile("CONTENT", "view/perfil/list.html");
include "includes/config.php";
$tpl->HEADER_TITLE = "Lista de Perfis";
$tpl->HEADER_BREAD_CRUMB = '<li><a href="home-home"><i class="fa fa-home"> </i> Home</a></li>
                                        <li><a href="perfil-main"><i class="fa fa-users"> </i> Perfil</a></li>
                                         <li class="active">Listar</li>';
//INSTACIA CLASSES
$perfil = new Perfil();
//CONFIGURA O BREADCRUMB
$alist = $perfil->getRows(0, 9999, array(), array("empresa" => "=" . EMPRESA));
$tpl->QUANTIDADE = count($alist);
foreach ($alist as $key => $perfilario) {
    $tpl->disabled = "";
    $tpl->nome = $perfilario->descricao;
    $tpl->ID_HASH = $perfil->md5_encrypt($perfilario->id);
    $tpl->block("BLOCK_ITEM_LISTA");
}
$tpl->show();
开发者ID:rodharley,项目名称:condominio,代码行数:23,代码来源:main.php

示例2: Perfil

include "tupi.template.inicializar.php";
$codAcesso = 6;
include "tupi.seguranca.php";
if (!isset($_REQUEST['ajax'])) {
    $tpl->BREADCRUMB = '    <ul class="breadcrumb">
    <li>
    <a href="home.php">Home</a> <span class="divider">/</span>
    </li>
    <li>
    <a href="#">Cadastro</a> <span class="divider">/</span>
    </li>
    <li class="active">Lista Perfil</li>
    </ul>';
}
$oPerfil = new Perfil();
$totalPerfis = $oPerfil->recuperaTotal();
$configPaginacao = $oPerfil->paginar($totalPerfis, isset($_REQUEST['pagina']) ? $_REQUEST['pagina'] : 1);
$rsPerfis = $oPerfil->getRows($configPaginacao['primeiroRegistro'], $configPaginacao['quantidadePorPagina'], array(), array());
if ($configPaginacao['totalPaginas'] > 1) {
    $tpl->block("BLOCK_PAGINACAO");
}
$tpl->TOTAL_PAGINAS = $configPaginacao['totalPaginas'];
$tpl->PAGINA_ANTERIOR = $configPaginacao['paginaAnterior'];
$tpl->PROXIMA_PAGINA = $configPaginacao['proximaPagina'];
foreach ($rsPerfis as $key => $perfil) {
    $tpl->ID = $perfil->id;
    $tpl->DESCRICAO = $perfil->descricao;
    $tpl->ID_HASH = $oPerfil->md5_encrypt($perfil->id);
    $tpl->block("BLOCK_ITEM_LISTA");
}
include "tupi.template.finalizar.php";
开发者ID:rodharley,项目名称:obrademaria,代码行数:31,代码来源:cadastro.perfis.php


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