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


PHP GetUserID函数代码示例

本文整理汇总了PHP中GetUserID函数的典型用法代码示例。如果您正苦于以下问题:PHP GetUserID函数的具体用法?PHP GetUserID怎么用?PHP GetUserID使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: ajax_update

 public function ajax_update()
 {
     $this->_validate();
     $data = array('value_min' => $this->input->post('value_min'), 'value_max' => $this->input->post('value_max'), 'percentage' => $this->input->post('percentage'), 'edited_by' => GetUserID(), 'edited_on' => date('Y-m-d H:i:s'));
     $this->payroll->update(array('id' => $this->input->post('id')), $data);
     echo json_encode(array("status" => TRUE));
 }
开发者ID:pay-test,项目名称:ci2,代码行数:7,代码来源:payroll_tax_progressive.php

示例2: ajax_update

 public function ajax_update()
 {
     $this->_validate();
     $data = array('title' => $this->input->post('title'), 'abbr' => $this->input->post('abbr'), 'level_order' => $this->input->post('level_order'), 'level' => $this->input->post('level'), 'parent_position_group_id' => $this->input->post('parent_position_group_id'), 'description' => $this->input->post('description'), 'edited_on' => date('Y-m-d H:i:s', now()), 'edited_by' => GetUserID());
     $this->position_group_model->update(array('id' => $this->input->post('id')), $data);
     echo json_encode(array("status" => TRUE));
 }
开发者ID:abdulghanni,项目名称:_zohobiz_,代码行数:7,代码来源:position_group.php

示例3: ajax_update

 public function ajax_update()
 {
     //$this->_validate();
     $data = array('title' => $this->input->post('title'), 'code' => $this->input->post('code'), 'component_type_id' => $this->input->post('component_type_id'), 'is_annualized' => $this->input->post('is_annualized'), 'tax_component_id' => $this->input->post('tax_component_id'), 'edited_by' => GetUserID(), 'edited_on' => date('Y-m-d H:i:s'));
     $this->payroll->update(array('id' => $this->input->post('id')), $data);
     echo json_encode(array("status" => TRUE));
 }
开发者ID:mazhters,项目名称:ci2,代码行数:7,代码来源:payroll_component.php

示例4: ajax_update

 public function ajax_update()
 {
     $this->_validate();
     $data = array('title' => $this->input->post('title'), 'edited_on' => date('Y-m-d H:i:s', now()), 'edited_by' => GetUserID());
     $this->empl_status_model->update(array('id' => $this->input->post('id')), $data);
     echo json_encode(array("status" => TRUE));
 }
开发者ID:abdulghanni,项目名称:_zohobiz_,代码行数:7,代码来源:empl_status.php

示例5: validateEncuestaYaCompletada

function validateEncuestaYaCompletada($idEncuesta, $idPregunta, $permiteModificaciones) {
	if ($permiteModificaciones == "F") {
		$params = array(":idencuesta" => $idEncuesta, ":idpregunta" => $idPregunta, ":usuario" => GetUserID());
		$sql =
			"SELECT COUNT(*)
				 FROM rrhh.rrp_respuestaspreguntas
				WHERE rp_idencuesta = :idencuesta
					AND rp_idpregunta = :idpregunta
					AND rp_usuario = :usuario";
		if (ValorSql($sql, "", $params) > 0) {
			echo '<span class="Pie">Usted ya ha participado en la encuesta.</span>';
			exit;
		}
	}
}
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:15,代码来源:index.php

示例6: likeAction

 public function likeAction($id)
 {
     $article = new Articles($this->context, $id);
     if (!isset($article->ID) || $article->ID == null) {
         $error = 'Статьи не существует.';
     } elseif ($article->IsActive != '1') {
         $error = 'Статья в черновике.';
     } else {
         $userid = GetUserID();
         $UnknownUserGUID = GetUnknownUserGUID();
         $query = "INSERT INTO ArticleLikes (UserID, ArticleID, UnknownUserGUID) " . "VALUES ({$userid}, {$article->ID}, '{$UnknownUserGUID}');";
         $this->db->exec($query);
         die(1);
     }
     die(json_encode(array('error' => $error)));
 }
开发者ID:AleksandrChukhray,项目名称:good_deals,代码行数:16,代码来源:ArticleController.php

示例7: rawlog

function rawlog($message, $type = 's', $loc = "")
{
    global $config;
    // First determine the name of the current log file. The name is
    // based on time.
    $t = UnixTimeNow();
    $fbase = "log_" . date("ymd", $t) . ".txt";
    $filename = $config["LogDir"] . $fbase;
    $newfile = !file_exists($filename);
    $logfile = fopen($filename, "a+");
    if ($newfile) {
        // New file. Write info at top.
        $line = "#" . date("m/d/Y l") . '   ' . $config["ServerName"] . "\n";
        fwrite($logfile, $line);
    }
    // Make sure message is an array of lines, and that embedded new-lines are
    // converted into array elements.
    $msglines = log_fixmsg($message);
    // Now, format the first line...
    $firstline = $msglines[0];
    array_shift($msglines);
    if (empty($type)) {
        $type = 's';
    }
    $line = '*' . date("H:i:s") . ' ' . substr($type, 0, 1);
    $line .= sprintf("%3d", GetUserID());
    if (empty($loc)) {
        $page = basename($_SERVER["SCRIPT_NAME"]);
    } else {
        $page = $loc;
    }
    if (!empty($page)) {
        $line .= ' ' . $page;
    }
    $line .= '> ' . $firstline . "\n";
    fwrite($logfile, $line);
    foreach ($msglines as $line) {
        fwrite($logfile, '+> ' . $line . "\n");
    }
    fclose($logfile);
}
开发者ID:VCHSRobots,项目名称:EpicScouts,代码行数:41,代码来源:loglib.php

示例8: CreateForActualLink

 public static function CreateForActualLink($link)
 {
     $ob = new self();
     $ob->SetAuthorID(GetUserID());
     $ob->SetActualLink($link);
     $random_link = SecretLink::GenerateRandomLink();
     do {
         $old = SecretLink::FetchBy(['select_list' => 'id', 'eq_conds' => ['public_link' => $random_link]]);
         if (count($old) != 0) {
             $random_link = SecretLink::GenerateRandomLink();
         } else {
             break;
         }
     } while (1);
     $ob->SetPublicLink($random_link);
     $res = SecretLink::InsertToDB($ob);
     if (Error::IsError($res)) {
         return $res;
     }
     return $ob;
 }
开发者ID:Gerold103,项目名称:lgmis,代码行数:21,代码来源:secretlink.php

示例9: MAX

                                                                                                             2, hs_idusuario_cambio,
                                                                                                             ss_idusuario_solicitud)
                                                                                                 FROM computos.chs_historicosolicitud chs1
                                                                                                WHERE chs1.hs_idsolicitud = ss_id
                                                                                                  AND chs1.hs_fecha_cambio =
                                                                                                        (SELECT MAX(chs2.hs_fecha_cambio)
                                                                                                           FROM computos.chs_historicosolicitud chs2
                                                                                                          WHERE chs1.hs_idsolicitud = chs2.hs_idsolicitud
                                                                                                            AND chs2.hs_idusuario_cambio NOT IN(
                                                                                                                                            SELECT se_id
                                                                                                                                              FROM art.use_usuarios
                                                                                                                                             WHERE se_sector =
                                                                                                                                                              'COMPUTOS')
                                                                                                            AND chs2.hs_idestado = 2)),
                                                                                              ss_idusuario_solicitud),
                                                                                          ms_nivel) = ".GetUserID().")");

              $link = '<a href="index.php?sistema='.$sistema.'&search=yes&amp;pending_auth_tickets=yes" style="text-decoration: none;">';
              if ($pending_auth_tickets > 0) {
              ?>
                  <br />
			    </p>
                <p>
                <font color="#807F84">Ud. tiene</font> <?echo $link;?>
                <?
              echo $pending_auth_tickets;
              ?>
                </a> <font color="#807F84">tickets pendientes de autorizar. Puede hacer click</font> <?echo $link;?> <font color="#000000">aquí</font><font color="#807F84"> </a> para autorizarlos o rechazarlos.</font></p>
                <?
              }
              ?>			  
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:home.php

示例10: require_once

<?
require_once($_SERVER["DOCUMENT_ROOT"]."/constants.php");
require_once($_SERVER["DOCUMENT_ROOT"]."/../Common/database/db.php");
require_once($_SERVER["DOCUMENT_ROOT"]."/../Common/miscellaneous/general.php");


SetDateFormatOracle("DD/MM/YYYY HH24:MI:SS");

$params = array(":idusuario" => GetUserID());
$sql =
	"SELECT no_codigoetica
		FROM rrhh.rno_notificaciones
	 WHERE no_idusuario = :idusuario";
$fechaAceptacion = ValorSql($sql, "", $params);
?>
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
	<head>
		<title>..:: CÓDIGO DE VALORES Y CONDUCTA | PROVINCIA A.R.T. ::..</title>
		<script language="JavaScript">
			function disableselect(e) 
			{ 
			   return false 
			} 
			function reEnable() 
			{ 
			   return true 
			} 
			//if IE4+ 
			document.onselectstart=new Function ("return false") 
			//if NS6 
			if (window.sidebar) 
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:codigo.php

示例11: ajax_update

 public function ajax_update()
 {
     //$i = $this->input->post('checkbox1');print_r($i);print_r($this->input->post('job_value_id'));print_mz($this->input->post('value'));
     $this->_validate();
     $session_id = $this->input->post('session');
     $id = $this->input->post('id');
     $data = array('title' => $this->input->post('title'), 'code' => $this->input->post('code'), 'component_type_id' => $this->input->post('component_type_id'), 'is_annualized' => $this->input->post('is_annualized'), 'tax_component_id' => $this->input->post('tax_component_id'), 'edited_by' => GetUserID(), 'edited_on' => date('Y-m-d H:i:s'));
     $this->payroll->update(array('id' => $this->input->post('id')), $data);
     $num_rows = getAll('payroll_component_value', array('payroll_component_id' => 'where/' . $id, 'session_id' => 'where/' . $session_id))->num_rows();
     $data2 = array('payroll_component_id' => $id, 'formula' => strtoupper($this->input->post('formula')), 'is_condition' => $this->input->post('is_condition'), 'min' => str_replace(',', '', $this->input->post('min')), 'max' => str_replace(',', '', $this->input->post('max')), 'session_id' => $this->input->post('session'));
     if ($num_rows > 0) {
         $this->db->where('payroll_component_id', $id)->where('session_id', $session_id)->update('payroll_component_value', $data2);
     } else {
         $this->db->insert('payroll_component_value', $data2);
     }
     echo json_encode(array("status" => TRUE));
 }
开发者ID:pay-test,项目名称:ci2,代码行数:17,代码来源:payroll_component.php

示例12: ValidarFormTicket

if ($sistema == 3) {
	$textoHeader = 'Solicitud a Sistemas del Grupo Banco Provincia';
	$textoSubHeader = 'Este módulo le permitirá realizar una solicitud a la Gerencia de Sistemas';
}
if ($sistema == 4) {
	$textoHeader = 'Solicitud a Análisis y Control de Gestión';
	$textoSubHeader = 'Este módulo le permitirá realizar una solicitud a la Gerencia de Análisis y Control de Gestión';
}
?>
	<div id="stylized" class="formGeneric" style="font-size:12px; width:500px;">
		<form action="ticket_save.php?sistema=<?echo $sistema;?>" id="formSolicitud" name="formSolicitud" method="post" onSubmit="return ValidarFormTicket(formSolicitud)" enctype="multipart/form-data">
			<b><?echo $textoHeader;?></b>
			<br />
			<p><?echo $textoSubHeader;?></p>
<?
$params = array(":idusuario" => GetUserID(), ":idsistema" => $sistema);
$sql = 
	"SELECT COUNT(*)
		 FROM computos.css_solicitudsistemas
		WHERE ss_idestadoactual = 5
			AND ss_fechamodif < art.actualdate - 7
			AND ss_idusuario_solicitud = :idusuario
			AND ss_idsistematicket = :idsistema";
$pending_tickets = ValorSQL($sql, "", $params);
$link = '<b><a href="index.php?sistema='.$sistema.'&search=yes&amp;pending_tickets=yes" style="text-decoration: none;">';
if ($pending_tickets > 0) {
?>
	Ud. tiene <?echo $link;?>
<?
	echo $pending_tickets;
	echo "</a></b>";
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:ticket_new.php

示例13: DECODE

<?php

require_once $_SERVER["DOCUMENT_ROOT"] . "/constants.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/../Common/database/db.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/../Common/database/db_funcs.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/../Common/miscellaneous/general.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/../Common/miscellaneous/send_email.php";
/* Implementación de múltiples sistemas dentro del sistema de tickets */
if (isset($_REQUEST["sistema"])) {
    $sistema = $_REQUEST["sistema"];
} else {
    $sistema = 1;
}
// Guardo la calificación del pedido en la tabla..
$sql = "UPDATE computos.css_solicitudsistemas\n\t\tSET ss_fechamodif = SYSDATE,\n\t\t\t\tss_idusumodif = :idusumodif,\n\t\t\t\tss_idestadoactual = :idestadoactual,\n\t\t\t\tss_idcalificacion = DECODE(:idcalificacion, -1, NULL, :idcalificacion),\n\t\t\t\tss_resuelto = :resuelto,\n\t\t\t\tss_comentarios_usuario = :comentarios\n  WHERE ss_id = :id";
$params = array(":idusumodif" => GetUserID(), ":idestadoactual" => 7, ":idcalificacion" => $_REQUEST["calificacion"], ":resuelto" => $_REQUEST["resuelto"], ":comentarios" => $_REQUEST["comentarios"], ":id" => $_REQUEST["id"]);
DBExecSql($conn, $sql, $params);
?>
<html>
	<head>
		<meta http-equiv="Refresh" content="0; url=index.php?sistema=<?echo $sistema; ?>&ticket_detail=yes&id=<?php 
echo $_REQUEST["id"];
?>
" />
	</head>
	<body>

	</body>
</html>
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:29,代码来源:ticket_qualification_save.php

示例14: array

require_once $_SERVER["DOCUMENT_ROOT"] . "/../Common/miscellaneous/send_email.php";
/* Implementación de múltiples sistemas dentro del sistema de tickets */
if (isset($_REQUEST["sistema"])) {
    $sistema = $_REQUEST["sistema"];
} else {
    $sistema = 1;
}
$estado = 3;
// Se setea esta variable que se utiliza en el trigger trg_css_permisosolicitud de la tabla computos.css_solicitudsistemas..
$curs = null;
$params = array(":usuario" => GetWindowsLoginName());
$sql = "BEGIN COMPUTOS.GENERAL.v_nombreusuario := UPPER(:usuario); END;";
$stmt = DBExecSP($conn, $curs, $sql, $params, false);
// Guardo la autorización del pedido en la tabla..
$sql = "UPDATE computos.css_solicitudsistemas\n           SET ss_fechamodif = SYSDATE,\n      \t       ss_idusumodif = :idusumodif,\n      \t       ss_idestadoactual = :idestadoactual,\n               ss_notas = SUBSTR(ss_notas || CHR(10) || CHR(13) || :comentarios,1,1000),\n               ss_observaciones = :comentarios\n         WHERE ss_id = :id";
$params = array(":idusumodif" => GetUserID(), ":idestadoactual" => $estado, ":comentarios" => $_REQUEST["comentarios"], ":id" => $_REQUEST["id"]);
DBExecSql($conn, $sql, $params);
?>
<html>
	<head>
		<link href="/styles/style_sistemas.css?sid=<?php 
echo date('YmdHis');
?>
" rel="stylesheet" type="text/css" />
		<meta http-equiv="Refresh" content="0; url=index.php?sistema=<?echo $sistema; ?>&ticket_detail=yes&id=<?php 
echo $_REQUEST["id"];
?>
" />
	</head>
	<body>
  Procesando la información añadida...
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:ticket_information_save.php

示例15: NVL

             WHERE se_fechabaja IS NULL
               AND se_usuariogenerico = 'N'
               AND se_respondea = NVL(UPPER(:respondea), '')
             UNION
            SELECT se_id ID, InitCap(se_nombre) DETALLE, SE_USUARIO IDUSUARIO                             /* Los empleados de los empleados a cargo */
              FROM art.use_usuarios
             WHERE se_fechabaja IS NULL
               AND se_usuariogenerico = 'N'
               AND se_respondea IN (SELECT se_usuario
                                      FROM art.use_usuarios
                                     WHERE se_fechabaja IS NULL
                                       AND se_usuariogenerico = 'N'
                                       AND se_respondea = NVL(UPPER(:respondea), ''))
          ORDER BY 2";

$RCselectedItem = GetUserID();
FillCombo();

$RCfield = "TipoPedido";
$RCparams = array();
$RCquery = "SELECT ms_id ID, ms_descripcion DETALLE
              FROM computos.cms_motivosolicitud
             WHERE ms_idpadre = -1
               AND ms_visible = 'S'
               AND ms_fechabaja IS NULL
               AND ms_id IN (SELECT ms_idpadre
                               FROM computos.cms_motivosolicitud, computos.cts_ticketsector
                              WHERE art.agenda_pkg.is_sectordependiente(ts_idsector, ms_idsectordefault) = 'S'
                                AND ts_idsistematicket = " . $sistema . ")
          ORDER BY 2";
$RCselectedItem = -1;
开发者ID:javierlov,项目名称:FuentesWeb,代码行数:31,代码来源:ticket_new+-+copia.php


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