本文整理匯總了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();
示例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";