本文整理汇总了PHP中verifica_nivel函数的典型用法代码示例。如果您正苦于以下问题:PHP verifica_nivel函数的具体用法?PHP verifica_nivel怎么用?PHP verifica_nivel使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了verifica_nivel函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Ajusta_DMA
?>
<input name="procurar" id="procurar" type="text" class="forms" size="20" maxlength="40" onkeyup="javascript:Ajax('contasreceber/pesquisa', 'pesquisa', 'pesquisa='%2Bthis.value%2B'&peri='%2Bdocument.getElementById('peri').value)" onKeypress="return Ajusta_DMA(this, event, document.getElementById('peri').value);"
onclick="if(document.getElementById('pesqdia').checked) {abreCalendario(this);}">
<br>
<input type="radio" name="pesq" id="pesqmesatual" checked="checked" value="mesatual" onclick="javascript:Ajax('contasreceber/pesquisa', 'pesquisa', 'peri=mesatual')"><label for="pesqmesatual"> <?php
echo $LANG['accounts_receivable']['current_month'];
?>
</label>
</td>
<td width="2%" valign="bottom"> </td>
</tr>
</table><br />
<?php
if (verifica_nivel('contas_receber', 'I')) {
?>
<form id="form2" name="form2" method="POST" action="contasreceber/extrato_ajax.php" onsubmit="formSender(this, 'conteudo'); this.reset(); return false;">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="conteudo">
<tr>
<td width="4%">
</td>
<td width="12%"><?php
echo $LANG['accounts_receivable']['deadline'];
?>
<br />
<input type="text" size="13" value="<?php
echo converte_data(hoje(), 2);
?>
" name="datavencimento" id="datavencimento" class="forms">
</td>
示例2: verifica_nivel
$odev = $impar;
}
?>
<tr bgcolor="#<?php
echo $odev;
?>
" onmouseout="style.background='#<?php
echo $odev;
?>
'" onmouseover="style.background='#DDE1E6'">
<td width="684" align="left"><?php
echo $lista[$i]['nome'];
?>
</td>
<td width="66" align="center"><?php
echo verifica_nivel('honorarios', 'L') ? '<a href="javascript:Ajax(\'honorarios/honorarios\', \'conteudo\', \'codigo_convenio=' . $lista[$i][codigo] . '\')"><img src="imagens/icones/honorarios.gif" alt="" width="16" height="18" border="0"></a>' : '';
?>
</td>
<?php
/*<td width="66" align="center"><?php echo ((verifica_nivel('honorarios', 'A'))?'<a href="javascript:Ajax(\'honorarios/gerenciar\', \'conteudo\', \'codigo_convenio='.$lista[$i][codigo].'" onclick="return confirmLink(this)"><img src="imagens/icones/excluir.gif" alt="Excluir" width="19" height="19" border="0"></a>':'')?></td> */
?>
</tr>
<?php
}
?>
</table>
<br>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#<?php
echo $odev;
?>
示例3: header
*
* Smile Odontolóogia
* Rua Laudemira Maria de Jesus, 51 - Lourdes
* Arcos - MG - CEP 35588-000
*
*
*/
include "../lib/config.inc.php";
include "../lib/func.inc.php";
include "../lib/classes.inc.php";
require_once '../lang/' . $idioma . '.php';
header("Content-type: text/html; charset=ISO-8859-1", true);
if (!checklog()) {
die($frase_log);
}
if ($_GET['codigo'] != '' && !verifica_nivel('laboratorios', 'E') || $_GET['codigo'] == '' && !verifica_nivel('laboratorios', 'I')) {
$disable = 'disabled';
}
$laboratorio = new TLaboratorio();
if (isset($_POST[Salvar])) {
$obrigatorios[1] = 'nomefantasia';
$i = $j = 0;
foreach ($_POST as $post => $valor) {
$i++;
if (array_search($post, $obrigatorios) && $valor == "") {
$j++;
$r[$j] = '<font color="#FF0000">';
}
}
if ($j == 0) {
if ($_GET[acao] == "editar") {
示例4: echo
?>
'" onmouseover="style.background='#DDE1E6'">
<td width="63%"><?php
echo (encontra_valor('pacientes', 'codigo', $lista[$i]['codigo'], 'falecido') == 'Sim' ? '<font color="#808080">' : (em_debito($lista[$i][codigo]) ? '<font color="red">' : '')) . $lista[$i][nome] . ' (' . encontra_valor('pacientes', 'codigo', $lista[$i]['codigo'], 'status') . ')';
?>
</td>
<td width="20%"><?php
echo (encontra_valor('pacientes', 'codigo', $lista[$i]['codigo'], 'falecido') == 'Sim' ? '<font color="#808080">' : (em_debito($lista[$i][codigo]) ? '<font color="red">' : '')) . $lista[$i][codigo];
?>
</td>
<td width="8%" align="center"><?php
echo verifica_nivel('pacientes', 'V') ? '<a href="javascript:Ajax(\'pacientes/incluir\', \'conteudo\', \'codigo=' . $lista[$i][codigo] . '&acao=editar\')"><img src="imagens/icones/editar.gif" alt="Editar" width="16" height="18" border="0"></a>' : '';
?>
</td>
<td width="9%" align="center"><?php
echo verifica_nivel('pacientes', 'A') ? '<a href="javascript:Ajax(\'pacientes/gerenciar\', \'conteudo\', \'codigo=' . $lista[$i][codigo] . '" onclick="return confirmLink(this)"><img src="imagens/icones/excluir.gif" alt="Excluir" width="19" height="19" border="0"></a>' : '';
?>
</td>
</tr>
<?php
}
?>
</table>
<br>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#<?php
echo $odev;
?>
" onmouseout="style.background='#<?php
echo $odev;
?>
示例5: str_pad
echo ' <option value="' . str_pad($i, 2, '0', STR_PAD_LEFT) . '">' . nome_mes($i) . '</option>';
}
?>
</select>
<input name="dia2" id="dia2" disabled="disabled" type="text" class="forms" size="4" maxlength="2" onkeyup="javascript:niver()">
</div>
<input name="procurar4" id="procurar4" style="display:none" type="text" class="forms" size="20" maxlength="13" onkeypress="return Ajusta_Telefone(this, event);" onkeyup="javascript:Ajax('pacientes/pesquisa', 'pesquisa', 'pesquisa='%2Bthis.value%2B'&campo='%2BgetElementById('campo').options[getElementById('campo').selectedIndex].value)">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" align="right" valign="bottom">
<?php
echo verifica_nivel('pacientes', 'I') ? '<img src="imagens/icones/novo.gif" alt="Incluir" width="19" height="22" border="0"><a href="javascript:Ajax(\'pacientes/incluir\', \'conteudo\', \'\')">' . $LANG['patients']['include_new_patient'] . '</a>' : '';
?>
</td>
</tr>
</table>
<div class="conteudo" id="table dados"><br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="tabela_titulo">
<tr>
<td bgcolor="#009BE6"> </td>
<td bgcolor="#009BE6"> </td>
<td bgcolor="#009BE6"> </td>
<td bgcolor="#009BE6"> </td>
</tr>
<tr>
<td width="63%" height="23" align="left"><?php
echo $LANG['patients']['patient'];
示例6: url
*
*
*/
if ($_GET[acao] == 'editar') {
$odontograma = "<a href=\"javascript:Ajax('pacientes/odontograma','conteudo','codigo=" . $_GET[codigo] . $acao . "')\">";
$orcamento = "<a href=\"javascript:Ajax('pacientes/orcamento','conteudo','codigo=" . $_GET[codigo] . $acao . "')\">";
$objetivo = "<a href=\"javascript:Ajax('pacientes/objetivo','conteudo','codigo=" . $_GET[codigo] . $acao . "')\">";
$evolucao = "<a href=\"javascript:Ajax('pacientes/evolucao','conteudo','codigo=" . $_GET[codigo] . $acao . "')\">";
$inquerito = "<a href=\"javascript:Ajax('pacientes/inquerito','conteudo','codigo=" . $_GET[codigo] . $acao . "')\">";
$ortodontia = "<a href=\"javascript:Ajax('pacientes/ortodontia','conteudo','codigo=" . $_GET[codigo] . $acao . "')\">";
$implantodontia = "<a href=\"javascript:Ajax('pacientes/implantodontia','conteudo','codigo=" . $_GET[codigo] . $acao . "')\">";
$fotos = "<a href=\"javascript:Ajax('pacientes/fotos','conteudo','codigo=" . $_GET[codigo] . $acao . "')\">";
$outros = "<a href=\"javascript:Ajax('pacientes/outros','conteudo','codigo=" . $_GET[codigo] . $acao . "')\">";
$radio = "<a href=\"javascript:Ajax('pacientes/radio','conteudo','codigo=" . $_GET[codigo] . $acao . "')\">";
}
if ($_GET['codigo'] != '' && !verifica_nivel('pacientes', 'E') || $_GET['codigo'] == '' && !verifica_nivel('pacientes', 'I')) {
$disable = 'disabled';
}
?>
<table width="620" border="0" align="center" cellpadding="0" cellspacing="0">
<tr style="background-image: url('pacientes/img/fundo_submenu_pacientes.jpg')">
<td align="center" width="20%"><a href="javascript:Ajax('pacientes/incluir','conteudo','codigo=<?php
echo $_GET[codigo] . $acao;
?>
')"><span class="link_submenu_pacientes"><?php
echo $LANG['patients']['clinical_sheet'];
?>
</span></a></td>
<td align="center" width="15%"><?php
echo $odontograma . '<span class="link_submenu_pacientes">' . $LANG['patients']['odontogram'];
?>
示例7: header
* Smile Odontolóogia
* Rua Laudemira Maria de Jesus, 51 - Lourdes
* Arcos - MG - CEP 35588-000
*
*
*/
include "../lib/config.inc.php";
include "../lib/func.inc.php";
include "../lib/classes.inc.php";
require_once '../lang/' . $idioma . '.php';
header("Content-type: text/html; charset=ISO-8859-1", true);
if (!checklog()) {
echo '<script>Ajax("wallpapers/index", "conteudo", "");</script>';
die;
}
if (!verifica_nivel('estoque', 'L')) {
echo $LANG['general']['you_tried_to_access_a_restricted_area'];
die;
}
if (checknivel('Dentista')) {
echo '<script>Ajax(\'estoque_dent/extrato\', \'conteudo\', \'\')</script>';
} elseif (checknivel('Administrador') || checknivel('Funcionario')) {
echo '<script>Ajax(\'estoque/extrato\', \'conteudo\', \'\')</script>';
}
/*
?>
<div class="conteudo" id="conteudo_central">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="conteudo">
<tr>
<td width="100%"> <img src="contaspagar/img/contas.png" alt="Contas a pagar da Clínica" border="0"> <a href="javascript:Ajax('contaspagar/extrato', 'conteudo', '')"><span class="h3">Contas a Pagar da Clínica </span></td>
</tr>
示例8: money_form
<td width="13%" align="right"><?php
echo money_form($conta->RetornaDados('valor'));
?>
</td>
<td width="21%" align="right"><input type="text" size="13" name="datapagamento" id="datapagamento" value="<?php
echo converte_data($conta->RetornaDados('datapagamento'), 2);
?>
" onblur="Ajax('contasreceber_dent/atualiza', 'conta_atualiza', 'codigo=<?php
echo $conta->RetornaDados('codigo');
?>
&datapagamento='%2Bthis.value)" onKeypress="return Ajusta_Data(this, event);" <?php
echo !verifica_nivel('contas_receber', 'E') ? 'disabled' : '';
?>
></td>
<td width="5%" align="center"><?php
echo verifica_nivel('contas_receber', 'A') ? '<a href="javascript:Ajax(\'contasreceber_dent/extrato\', \'conteudo\', \'codigo=' . $conta->RetornaDados('codigo') . '&codigo_dentista=' . $_GET[codigo_dentista] . '&senha_dentista=' . $_GET[senha_dentista] . '" onclick="return confirmLink(this)"><img src="imagens/icones/excluir.gif" alt="Excluir" width="19" height="19" border="0"></a>' : '';
?>
</td>
</tr>
<?php
}
if ($odev == $impar) {
$odev = $par;
} else {
$odev = $impar;
}
?>
<tr>
<td height="23" align="left" colspan="5"> </td>
</tr>
<tr bgcolor="#<?php
示例9:
echo $LANG['stock']['search_by_description'];
?>
:
</td>
<td>
<br>
<input name="procurar" id="procurar" type="text" class="forms" size="20" maxlength="40" onkeyup="javascript:Ajax('estoque_dent/pesquisa', 'pesquisa', 'pesquisa='%2Bthis.value)">
</td>
</tr>
</table>
</td>
<td width="2%" valign="bottom"> </td>
</tr>
</table><br />
<?php
if (verifica_nivel('estoque', 'I')) {
?>
<form id="form2" name="form2" method="POST" action="estoque_dent/extrato_ajax.php" onsubmit="formSender(this, 'conteudo'); this.reset(); return false;">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="conteudo">
<tr>
<td width="4%">
</td>
<td width="60%"><?php
echo $LANG['stock']['description'];
?>
<br />
<input type="text" size="80" name="descricao" id="descricao" class="forms">
</td>
<td width="19%"><?php
echo $LANG['stock']['quantity'];
?>
示例10: header
* Smile Odontolóogia
* Rua Laudemira Maria de Jesus, 51 - Lourdes
* Arcos - MG - CEP 35588-000
*
*
*/
include "../lib/config.inc.php";
include "../lib/func.inc.php";
include "../lib/classes.inc.php";
require_once '../lang/' . $idioma . '.php';
header("Content-type: text/html; charset=ISO-8859-1", true);
if (!checklog()) {
echo '<script>Ajax("wallpapers/index", "conteudo", "");</script>';
die;
}
if (!verifica_nivel('cheques', 'L')) {
echo $LANG['general']['you_tried_to_access_a_restricted_area'];
die;
}
if ($_GET[confirm_del] == "delete") {
mysql_query("DELETE FROM `contaspagar` WHERE `codigo` = '" . $_GET[codigo] . "'") or die(mysql_error());
}
if (checknivel('Dentista')) {
echo '<script>Ajax(\'cheques_dent/gerenciar\', \'conteudo\', \'\')</script>';
} else {
echo '<script>Ajax(\'cheques/gerenciar\', \'conteudo\', \'\')</script>';
}
/*
?>
<div class="conteudo" id="conteudo_central">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="conteudo">
示例11: converte_data
?>
</td>
<td width="123" height="23" align="left"><?php
echo converte_data($cheque->RetornaDados('compensacao'), 2);
?>
</td>
<td width="80" height="23" align="right"><?php
echo $LANG['general']['currency'] . ' ' . money_form($cheque->RetornaDados('valor'));
?>
</td>
<td width="66" align="center"><?php
echo verifica_nivel('cheques', 'V') ? '<a href="javascript:;" onclick="javascript:Ajax(\'cheques_dent/incluir\', \'conteudo\', \'codigo=' . $cheque->RetornaDados('codigo') . '&acao=editar\')"><img src="imagens/icones/editar.gif" alt="Editar" width="16" height="18" border="0"></a>' : '';
?>
</td>
<td width="66" align="center"><?php
echo verifica_nivel('cheques', 'E') ? '<a href="javascript:Ajax(\'cheques_dent/gerenciar\', \'conteudo\', \'codigo=' . $cheque->RetornaDados('codigo') . '" onclick="return confirmLink(this)"><img src="imagens/icones/excluir.gif" alt="Excluir" width="19" height="19" border="0"></a>' : '';
?>
</td>
</tr>
<?php
}
?>
</table>
<br>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#<?php
echo $odev;
?>
" onmouseout="style.background='#<?php
echo $odev;
?>
示例12: header
*
*/
include "../lib/config.inc.php";
include "../lib/func.inc.php";
include "../lib/classes.inc.php";
require_once '../lang/' . $idioma . '.php';
header("Content-type: text/html; charset=ISO-8859-1", true);
if (!checklog()) {
echo '<script>Ajax("wallpapers/index", "conteudo", "");</script>';
die;
}
if (!verifica_nivel('idiomas', 'L')) {
echo $LANG['general']['you_tried_to_access_a_restricted_area'];
die;
}
if (!verifica_nivel('idiomas', 'E')) {
$disable = 'disabled';
}
$clinica = new TClinica();
$clinica->LoadInfo();
if (isset($_POST['Salvar'])) {
$clinica->LoadInfo();
$clinica->Idioma = $_POST['idioma'];
$clinica->Salvar();
$strScrp = 'alert("' . $LANG['language']['data_successfully_recorded'] . '"); location.href="./"';
}
if (isset($strScrp)) {
echo '<scr' . 'ipt>' . $strScrp . '</scr' . 'ipt>';
die;
}
?>
示例13: Ajusta_Valor
?>
&valor='%2Bthis.value)" onKeypress="return Ajusta_Valor(this, event);"></td>
<td width="9%" align="center"><?php
echo $_GET['codigo_convenio'] != '1' ? '<input type="text" ' . (!verifica_nivel('honorarios', 'E') ? 'disabled' : '') . ' class="forms" size="8" name="valor_convenio" id="valor_convenio" value="' . number_format($valor_convenio, 2, '.', '') . '" onblur="Ajax(\'honorarios/atualiza\', \'conta_atualiza\', \'&codigo_convenio=' . $_GET['codigo_convenio'] . '&codigo=' . $conta->RetornaDados('codigo') . '&valor=\'%2Bthis.value)" onKeypress="return Ajusta_Valor(this, event);">' : '';
?>
</td>
<td width="9%" align="right"><?php
echo $_GET['codigo_convenio'] != '1' ? $LANG['general']['currency'] . ' ' . @number_format($valor_particular - $valor_convenio, 2, ',', '.') : '';
?>
</td>
<td width="9%" align="right"><?php
echo $_GET['codigo_convenio'] != '1' ? @number_format(round(100 - $valor_convenio / $valor_particular * 100, 2), 2, ',', '.') . ' %' : '';
?>
</td>
<td width="7%" align="center"><?php
echo verifica_nivel('honorarios', 'A') ? '<a href="javascript:Ajax(\'honorarios/honorarios\', \'conteudo\', \'codigo_convenio=' . $_GET['codigo_convenio'] . '&codigo=' . $conta->RetornaDados('codigo') . '" onclick="return confirmLink(this)"><img src="imagens/icones/excluir.gif" alt="Excluir" width="19" height="19" border="0"></a>' : '';
?>
</td>
</tr>
<?php
}
?>
</table>
<br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#<?php
echo $odev;
?>
" onmouseout="style.background='#<?php
echo $odev;
?>
示例14: verifica_nivel
?>
</td>
<td width="105" align="left"><?php
echo $lista[$i]['codigo'] == '1' ? '' : $lista[$i]['telefone'];
?>
</td>
<td width="79" align="center"><?php
echo verifica_nivel('honorarios', 'L') ? '<a href="javascript:Ajax(\'honorarios/honorarios\', \'conteudo\', \'codigo_convenio=' . $lista[$i][codigo] . '\')"><img src="imagens/icones/honorarios.gif" alt="" width="16" height="18" border="0"></a>' : '';
?>
</td>
<td width="59" align="center"><?php
echo $lista[$i]['codigo'] == '1' || !verifica_nivel('convenios', 'V') ? '' : '<a href="javascript:Ajax(\'convenios/incluir\', \'conteudo\', \'codigo=' . $lista[$i]['codigo'] . '&acao=editar\')"><img src="imagens/icones/editar.gif" alt="" width="16" height="18" border="0"></a>';
?>
</td>
<td width="66" align="center"><?php
echo $lista[$i]['codigo'] == '1' || !verifica_nivel('convenios', 'A') ? '' : '<a href="javascript:Ajax(\'convenios/gerenciar\', \'conteudo\', \'codigo=' . $lista[$i]['codigo'] . '" onclick="return confirmLink(this)"><img src="imagens/icones/excluir.gif" alt="" width="19" height="19" border="0"></a>';
?>
</td>
</tr>
<?php
}
?>
</table>
<br>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#<?php
echo $odev;
?>
" onmouseout="style.background='#<?php
echo $odev;
?>
示例15: header
* smile@smileodonto.com.br
*
* Ou envie sua carta para o endereço:
*
* Smile Odontolóogia
* Rua Laudemira Maria de Jesus, 51 - Lourdes
* Arcos - MG - CEP 35588-000
*
*
*/
include "../lib/config.inc.php";
include "../lib/func.inc.php";
include "../lib/classes.inc.php";
require_once '../lang/' . $idioma . '.php';
header("Content-type: text/html; charset=ISO-8859-1", true);
if (!verifica_nivel('permissoes', 'V')) {
echo $LANG['general']['you_tried_to_access_a_restricted_area'];
die;
}
$_GET['nivel'] = $_GET['nivel'] != '' ? $_GET['nivel'] : 'Dentista';
if (isset($_POST['enviar'])) {
unset($_POST['nivel'], $_POST['enviar']);
mysql_query("DELETE FROM permissoes WHERE nivel = '" . $_GET['nivel'] . "'");
echo mysql_error();
foreach ($_POST as $area => $perm) {
mysql_query("INSERT INTO permissoes VALUES ('" . $_GET['nivel'] . "', '" . $area . "', '" . implode(',', $perm) . "')");
}
echo '<script type="text/javascript">Ajax("configuracoes/permissoes", "conteudo", "nivel=' . $_GET['nivel'] . '")</script>';
/*echo '<pre>';
print_r($_POST);
echo '</pre>';*/