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


PHP users::updatex方法代码示例

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


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

示例1: redirecina

 * @package ProEthos-Admin
 * @subpackage user
 */
require "cab.php";
/* Admin Common */
$ok = ($perfil->valid('#ADM') or $perfil->valid('#SCR') or $perfil->valid('#COO'));
if ($ok == 0) {
    redirecina('main.php');
}
global $acao, $dd, $cp, $tabela;
require $include . 'sisdoc_colunas.php';
require $include . '_class_form.php';
$form = new form();
require 'form_css.php';
$cl = new users();
$cp = $cl->cp_admin();
$tabela = $cl->tabela;
$http_edit = 'admin_user_ed.php';
$http_redirect = '';
/** Comandos de Edicao */
echo '<CENTER><h2>' . msg('users') . '</h2></CENTER>';
$tela = $form->editar($cp, $tabela);
/** Caso o registro seja validado */
if ($form->saved > 0) {
    $cl->updatex();
    redirecina('admin_user.php');
} else {
    echo $tela;
}
echo '</div>';
echo $hd->foot();
开发者ID:bireme,项目名称:proethos,代码行数:31,代码来源:admin_user_ed.php

示例2: array

 * @copyright © Pan American Health Organization, 2013. All rights reserved.
 * @access public
 * @version v.0.13.46
 * @package Proethos
 * @subpackage Protocol
 */
/* Add Styles */
$style_add = array('proethos_form.css');
$active_page = 'my';
require "cab.php";
require $include . 'sisdoc_data.php';
require $include . '_class_form.php';
$form = new form();
require "form_css.php";
$uss = new users();
$cp = $uss->cp_myaccount();
$dd[0] = $ss->user_id;
$uss->id = $dd[0];
$tabela = 'usuario';
echo '<h1>' . msg('my_account') . '</h1>';
echo '<fieldset><legend>' . msg('my_account') . '</legend>';
$tela = $form->editar($cp, $uss->tabela);
if ($form->saved > 0) {
    $uss->updatex();
    redirecina('main.php');
} else {
    echo $tela;
    echo '<center>' . msg('my_profile') . '</center>';
    echo $perfil->display();
}
echo $hd->foot();
开发者ID:bireme,项目名称:proethos,代码行数:31,代码来源:my_account.php

示例3: users

// ProEthos under the terms of the ProEthos License as published by PAHO, which
// restricts commercial use of the Software.
//
// ProEthos is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
// PARTICULAR PURPOSE. See the ProEthos License for more details.
//
// You should have received a copy of the ProEthos License along with the ProEthos
// Software. If not, see
// https://raw.githubusercontent.com/bireme/proethos/master/LICENSE.txt
$include = '';
$nosec = 1;
require "cab.php";
$nw = new users();
$chk = checkpost($dd[1]);
$nw->updatex();
echo '<H1>' . msg('user_new') . '</h1>';
$ok1 = ($perfil->valid('#ADM') or $perfil->valid('#MAS') or $perfil->valid('##MEM'));
$ok2 = ($perfil->valid('#ADC') and $dd[1] == 'Z');
/* Nao alterar - dados comuns */
if ($chk == $dd[90]) {
    echo '<h2>' . msg('chk_email_ok_tit') . '</h2>';
    echo '<table width="100%"><TR><TD>' . msg('chk_email_ok') . '</table>';
    $sql = "update " . $nw->tabela . " set us_ativo = 1, us_confirmed = 1 ";
    $sql .= " where us_email = '" . trim($dd[1]) . "' ";
    $rlt = db_query($sql);
} else {
    echo '<h2>' . msg('chk_email_erro_tit') . '</h2>';
    echo '<font color="red">';
    echo msg('chk_email_erro');
    echo '</font>';
开发者ID:bireme,项目名称:proethos,代码行数:31,代码来源:login_user_valid.php


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