本文整理汇总了PHP中GetUserName函数的典型用法代码示例。如果您正苦于以下问题:PHP GetUserName函数的具体用法?PHP GetUserName怎么用?PHP GetUserName使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetUserName函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: reject
function reject()
{
global $message;
$id = $_POST['pk1'];
$messageid = $_POST['pk2'];
$sql = "SELECT A.weeknumber, A.memberid, A.swapmemberid " . "FROM {$_SESSION['DB_PREFIX']}oncallswap A " . "WHERE A.id = {$id}";
$result = mysql_query($sql);
if ($result) {
/* Show children. */
while ($member = mysql_fetch_assoc($result)) {
$qry = "UPDATE {$_SESSION['DB_PREFIX']}oncallswap " . "SET agreed = 'X', metamodifieddate = NOW(), metamodifieduserid = " . getLoggedOnMemberID() . " " . "WHERE id = {$id}";
$itemresult = mysql_query($qry);
if (!$itemresult) {
logError($qry . " = " . mysql_error());
}
$qry = "UPDATE {$_SESSION['DB_PREFIX']}messages " . "SET status = 'R', metamodifieddate = NOW(), metamodifieduserid = " . getLoggedOnMemberID() . " " . "WHERE id = {$messageid}";
$itemresult = mysql_query($qry);
if (!$itemresult) {
logError($qry . " = " . mysql_error());
}
sendInternalUserMessage($member['memberid'], "On Call Swap Request", "Your request for on call cover for week " . $member['weeknumber'] . " has been rejected by " . GetUserName($member['swapmemberid']));
$message = "Request has been rejected";
}
}
}
示例2: AskQuestionAdminMail
function AskQuestionAdminMail($to, $userEmail, $category, $question, $date)
{
$res = "-1";
$mailBody = "";
try {
$subject = "MR - Connect Question Asked";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= "From: guide@mentored-research.com" . "\r\n";
// write the mail body here.
$mailBody .= "<h1>MR - Connect Question Asked</h1><br />";
$mailBody .= "Dear Admin, " . "<br />";
$mailBody .= "Following are the details of the question asked on MR-Connect Home: <br /><br />";
$mailBody .= "Name: <b>" . GetUserName($userEmail) . "</b><br />";
$mailBody .= "Email Address: <b>" . $userEmail . "</b><br />";
$mailBody .= "Question Category: <b>" . GetCategoryName($category) . "</b><br />";
$mailBody .= "Question Asked: <b>" . $question . "</b><br />";
$mailBody .= "Request on<b>: " . $date . "</b><br />";
$mailBody .= "<br /><br />Thank You.";
$mailBody .= "<br />MR - Connect";
$mailBody .= "<br /><a href='http://mentored-research.com'>Mentored-Research</a>";
if (mail($to, $subject, $mailBody, $headers) == true) {
$res = "1";
} else {
$res = "-1";
}
return $res;
} catch (Exception $e) {
$res = "-1";
return $res;
}
}
示例3: newPage
function newPage()
{
$this->Image("images/logomain2.png", 245.6, 1);
$this->Image("images/footer.png", 134, 190);
$size = $this->addText(10, 13, "Conversion Statistics : " . GetUserName($_POST['userid']), 12, 4, 'B') + 5;
$this->SetFont('Arial', '', 6);
$cols = array("Customer" => 72, "Customer Code" => 35, "Quotation Number" => 39, "Quotation Date" => 37, "Conversion Date" => 37, "Time Taken" => 29, "Total" => 28);
$this->addCols($size, $cols);
$cols = array("Customer" => "L", "Customer Code" => "L", "Quotation Number" => "L", "Quotation Date" => "L", "Conversion Date" => "L", "Time Taken" => "L", "Total" => "R");
$this->addLineFormat($cols);
$this->SetY(30);
}
示例4: GetUserIdByName
<?php
include_once "common.php";
if (LoggedIn() === true) {
$ownerid = GetUserIdByName(GetUserName());
if (isset($_POST['firstsubmit'])) {
$allowedExts = array("mp3");
// add ogg support eventually
$temp = explode(".", $_FILES["file"]["name"]);
$extension = end($temp);
if ($_FILES["file"]["type"] == "audio/mp3" && in_array($extension, $allowedExts)) {
if ($_FILES["file"]["error"] > 0) {
echo "Error: " . $_FILES["file"]["error"] . "<br>";
} else {
/*echo "Upload: " . $_FILES["file"]["name"] . "<br>";
echo "Type: " . $_FILES["file"]["type"] . "<br>";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB<br>";
echo "Stored in: " . $_FILES["file"]["tmp_name"];*/
$finalfilename = md5($ownerid . time()) . ".mp3";
// Store the file if it doesn't already exist.
if (file_exists("aud/" . $finalfilename)) {
echo $_FILES["file"]["name"] . " already exists. ";
// boot out?
} else {
//move_uploaded_file( $_FILES["file"]["tmp_name"], "aud/" . $_FILES["file"]["name"] );
move_uploaded_file($_FILES["file"]["tmp_name"], "aud/" . $finalfilename);
//echo "Stored in: " . "aud/" . $_FILES["file"]["name"];
// Next, let's grab all the other info, generate a key and stuff the data into the DB.
$filepathname = $finalfilename;
// Process mp3 file and prepare for display of second page.
include "CMP3File.class.php";
示例5: strtoupper
<p class=MsoNormal style='margin-top:0cm;margin-right:0cm;margin-bottom:1.25pt;
margin-left:-.25pt'>En caso de que se considere la existencia de indicios que
podrían configurar un fraude, asimismo, se presentará el caso ante la Unidad de
Análisis de Litigiosidad y Control de Fraude de la Superintendencia de Riesgos
del Trabajo. </p>
<br>
</div>
</i>
<div style="background-color:#6FB43F; <?php
echo $fechaAceptacion != "" ? "height:36px;" : "";
?>
margin-top:8px; padding:18px;">
<div class="auto-style1">
<span style="margin-left:5px; color:#FFFFFF" class="auto-style3">Nombre y apellido: </span>
<span class="auto-style3"><?php
echo strtoupper(GetUserName());
?>
</span></div>
<div style="margin-left:37px; margin-top:4px;" class="auto-style1">
<span class="auto-style3">
<?php
if ($muestroCotrol) {
?>
</span>
<span style="color:#FFFFFF" class="auto-style3"> Me notifico:</span><i>
<input id="notificado" name="notificado" style="margin-left:5px; vertical-align:-3px;" type="checkbox" class="auto-style3" />
<input class="auto-style3" type="button" value="GUARDAR" onClick="guardar()" />
</i><span class="auto-style3">
<?php
示例6: DenyGuest
$doform = true;
if ($_SERVER["REQUEST_METHOD"] == "POST") {
DenyGuest();
if (empty($_POST["User"])) {
goto GenerateHtml;
}
$lastnamefirst = $_POST["User"];
$newuserid = FindUser("LastNameFirst", $lastnamefirst);
if (!$newuserid) {
$error_msg = "Unable to find user id. (Two users with same name?)";
$doform = true;
goto GenerateHtml;
}
$newuserinfo = GetUserInfo($newuserid);
$newusername = $newuserinfo["UserName"];
$currentuser = GetUserName();
log_msg($loc, 'User ' . $currentuser . ' is attemping to masquerade as ' . $newusername);
session_unset();
session_destroy();
session_start();
$okay = StartLogin($newusername, "", true);
if ($okay === false) {
log_msg($loc, "Login failure for masquerade. Starting ALL over.");
session_unset();
session_destroy();
JumpToPage("pages/login.php");
}
SetMasquerader($currentuser);
JumpToPage("pages/welcome.php");
}
GenerateHtml:
示例7: ForumPrintSmilesList
$arResult["ForumPrintSmilesList"] = ForumPrintSmilesList(3, LANGUAGE_ID);
$arResult["SMILES"] = CForumSmile::getSmiles("S", LANGUAGE_ID);
$arResult["FolderName"] = $arParams["FID"] <= $arResult["SystemFolder"] ? GetMessage("PM_FOLDER_ID_" . $arParams["FID"]) : $arResult["UserFolder"][$arParams["FID"]]["TITLE"];
// *****************************************************************************************
$arResult["POST_VALUES"] = array();
if (!$bVarsFromForm && ($mode == "edit" || $mode == "reply")) {
$arResult["POST_VALUES"] = $arResult["MESSAGE"];
if ($arParams["FID"] != 2) {
$arParams["FID"] = intVal($res["FOLDER_ID"]);
}
if ($mode == "reply") {
$arResult["POST_VALUES"]["POST_SUBJ"] = GetMessage("PM_REPLY") . $arResult["POST_VALUES"]["POST_SUBJ"];
$arResult["POST_VALUES"]["~POST_MESSAGE"] = "[QUOTE]" . $arResult["POST_VALUES"]["~POST_MESSAGE"] . "[/QUOTE]";
$arResult["POST_VALUES"]["POST_MESSAGE"] = "[QUOTE]" . $arResult["POST_VALUES"]["POST_MESSAGE"] . "[/QUOTE]";
$arResult["POST_VALUES"]["USER_ID"] = $arResult["POST_VALUES"]["AUTHOR_ID"];
$arResult["POST_VALUES"]["USER_LOGIN"] = htmlspecialcharsEx(GetUserName($arResult["POST_VALUES"]["USER_ID"], $arParams["NAME_TEMPLATE"]));
}
} elseif ($bVarsFromForm) {
$arResult["POST_VALUES"]["POST_SUBJ"] = htmlspecialcharsEx($_REQUEST["POST_SUBJ"]);
$arResult["POST_VALUES"]["~POST_MESSAGE"] = $_REQUEST["POST_MESSAGE"];
$arResult["POST_VALUES"]["POST_MESSAGE"] = htmlspecialcharsEx($_REQUEST["POST_MESSAGE"]);
$arResult["POST_VALUES"]["USER_ID"] = htmlspecialcharsEx($_REQUEST["USER_ID"]);
$arResult["POST_VALUES"]["USE_SMILES"] = $_POST["USE_SMILES"] != "Y" ? "N" : "Y";
} elseif ($arParams["UID"] > 0) {
$arResult["POST_VALUES"]["USER_ID"] = intVal($arParams["UID"]);
}
if (intVal($arResult["POST_VALUES"]["USER_ID"]) > 0) {
$db_res = CForumUser::GetList(array(), array("USER_ID" => $arResult["POST_VALUES"]["USER_ID"], "SHOW_ABC" => ""), array("sNameTemplate" => $arParams["NAME_TEMPLATE"]));
if ($db_res && ($res = $db_res->GetNext())) {
$arResult["POST_VALUES"]["SHOW_NAME"] = array("link" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_PROFILE_VIEW"], array("UID" => $res["USER_ID"])), "text" => $res["SHOW_ABC"]);
}
示例8: sql_result
$session_data = sql_result($uolresult, $uoli, "session_data");
$serialized_data = sql_result($uolresult, $uoli, "serialized_data");
$session_user_agent = sql_result($uolresult, $uoli, "user_agent");
$session_ip_address = sql_result($uolresult, $uoli, "ip_address");
//$UserSessInfo = unserialize_session($session_data);
$UserSessInfo = unserialize($serialized_data);
if (!isset($UserSessInfo['UserGroup'])) {
$UserSessInfo['UserGroup'] = $Settings['GuestGroup'];
}
$AmIHiddenUser = "no";
$user_agent_check = false;
if (user_agent_check($session_user_agent)) {
$user_agent_check = user_agent_check($session_user_agent);
}
if ($UserSessInfo['UserGroup'] != $Settings['GuestGroup'] || $user_agent_check !== false) {
$PreAmIHiddenUser = GetUserName($UserSessInfo['UserID'], $Settings['sqltable'], $SQLStat);
$AmIHiddenUser = $PreAmIHiddenUser['Hidden'];
if ($AmIHiddenUser == "no" && $UserSessInfo['UserID'] > 0 || $user_agent_check !== false) {
if ($olmbn > 0) {
$MembersOnline .= ", ";
}
if ($user_agent_check === false) {
$uatitleadd = null;
if ($GroupInfo['CanViewUserAgent'] == "yes") {
$uatitleadd = " title=\"" . htmlentities($session_user_agent, ENT_QUOTES, $Settings['charset']) . "\"";
}
$MembersOnline .= "<a" . $uatitleadd . " href=\"" . url_maker($exfile['member'], $Settings['file_ext'], "act=view&id=" . $UserSessInfo['UserID'], $Settings['qstr'], $Settings['qsep'], $prexqstr['member'], $exqstr['member']) . "\">" . $UserSessInfo['MemberName'] . "</a>";
if ($GroupInfo['CanViewIPAddress'] == "yes") {
$MembersOnline .= " (<a title=\"" . $session_ip_address . "\" onclick=\"window.open(this.href);return false;\" href=\"" . sprintf($IPCheckURL, $session_ip_address) . "\">" . $session_ip_address . "</a>)";
}
++$olmn;
示例9: SortingEx
$arResult["SortingEx"]["POST_DATE"] = SortingEx("post_date");
$arFilter = array("USER_ID" => $arParams["UID"], "FOLDER_ID" => $arParams["FID"]);
if ($arParams["FID"] == 2) {
//If this is outbox folder
$arFilter = array("OWNER_ID" => $arParams["UID"]);
}
$dbrMessages = CForumPrivateMessage::GetListEx(array($by => $order), $arFilter);
$dbrMessages->NavStart($arParams["PM_PER_PAGE"]);
$dbrMessages->bShowAll = false;
$dbrMessages->nPageWindow = $arParams["PAGE_NAVIGATION_WINDOW"];
$arResult["NAV_RESULT"] = $dbrMessages;
$arResult["NAV_STRING"] = $dbrMessages->GetPageNavStringEx($navComponentObject, GetMessage("PM_TITLE_PAGES"), $arParams["PAGE_NAVIGATION_TEMPLATE"]);
if ($dbrMessages && ($arMsg = $dbrMessages->GetNext())) {
do {
$arMsg["POST_SUBJ"] = wordwrap($arMsg["POST_SUBJ"], 100, " ", 1);
$arMsg["~SHOW_NAME"] = GetUserName($arMsg[$arResult["InputOutput"]], $arParams["NAME_TEMPLATE"]);
$arMsg["SHOW_NAME"] = htmlspecialcharsEx($arMsg["~SHOW_NAME"]);
$arMsg["URL"] = array("MESSAGE" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_PM_READ"], array("FID" => $arParams["FID"], "MID" => $arMsg["ID"])), "MESSAGE_EDIT" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_PM_EDIT"], array("FID" => $arParams["FID"], "mode" => "new", "MID" => 0, "UID" => $arMsg[$arResult["InputOutput"]])), "RECIPIENT" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_PROFILE_VIEW"], array("UID" => $arMsg["RECIPIENT_ID"])), "SENDER" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_PROFILE_VIEW"], array("UID" => $arMsg["AUTHOR_ID"])));
$arMsg["pm_read"] = $arMsg["URL"]["MESSAGE"];
$arMsg["pm_edit"] = $arMsg["URL"]["MESSAGE_EDIT"];
$arMsg["profile_view"] = CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_PROFILE_VIEW"], array("UID" => $arMsg[$arResult["InputOutput"]]));
$arMsg["POST_DATE"] = CForumFormat::DateFormat($arParams["DATE_TIME_FORMAT"], MakeTimeStamp($arMsg["POST_DATE"], CSite::GetDateFormat()));
$arMsg["checked"] = "";
if (in_array($arMsg["ID"], $message)) {
$arMsg["checked"] = " checked ";
}
$arResult["MESSAGE"][$arMsg["ID"]] = $arMsg;
} while ($arMsg = $dbrMessages->GetNext());
}
/************** Folders ********************************************/
$resFolder = CForumPMFolder::GetList(array(), array("USER_ID" => $USER->GetID()));
示例10: rmabs
// --------------------------------------------------------------------
// wo_new.php -- Adds a new work order.
//
// Created: 12/31/15 DLB
// --------------------------------------------------------------------
require_once "../maindef.php";
$loc = rmabs(__FILE__);
session_start();
log_page();
CheckLogin();
$timer = new timer();
$error_msg = "";
$success_msg = "";
$userid = GetUserID();
$username = GetUserName();
$userIPT = GetUserIPT($userid);
$doform = false;
$link_to_view = false;
$picid = 0;
$param_list = array(array("FieldName" => "Title", "FieldType" => "Text", "Caption" => "Title of New Work Order"), array("FieldName" => "Project", "FieldType" => "Selection", "Selection" => $WOProjects, "Caption" => "Project"), array("FieldName" => "DateNeedBy", "FieldType" => "Date", "Caption" => "Date Needed"), array("FieldName" => "Priority", "FieldType" => "Selection", "Selection" => $WOPriorities, "Caption" => "Priority"), array("FieldName" => "Requestor", "FieldType" => "Selection", "Selection" => $WOIPTeams, "Caption" => "Requesting IPT"), array("FieldName" => "Receiver", "FieldType" => "Selection", "Selection" => $WOIPTeams, "Caption" => "Receiving IPT"), array("FieldName" => "Description", "FieldType" => "TextArea", "Rows" => 10, "Columns" => 72, "Caption" => "Describe Work"));
if ($_SERVER["REQUEST_METHOD"] == "GET") {
// Set up defaults...
$data["Priority"] = $WOPriorities[0];
$data["Requestor"] = $userIPT;
$data["Receiver"] = $userIPT;
$data["DateNeedBy"] = date('Y-m-d', time() + 5 * 24 * 3600);
PopulateParamList($param_list, $data);
$doform = true;
goto GenerateHtml;
}
示例11: logError
$j33number = "";
$casenumber = "";
$parties = "";
if (!$result) {
logError("Error: " . mysql_error());
}
//Check whether the query was successful or not
while ($member = mysql_fetch_assoc($result)) {
$j33number = $member['j33number'];
$casenumber = $member['casenumber'];
$parties = $member['plaintiff'];
}
for ($ix = 0; $ix < count($_POST["notificationid"]); $ix++) {
$description = "<h3>Typist Invoice Upload.</h3><table>";
$description .= "<tr><td><b>J33 Number : </b></td><td>{$j33number}</td></tr>";
$description .= "<tr><td><b>Case Number : </b></td><td>{$casenumber}</td></tr>";
$description .= "<tr><td><b>Parties : </b></td><td>{$parties}</td></tr>";
$description .= "<tr><td><b>Pages : </b></td><td>{$page}</td></tr>";
$description .= "</table><h4>Invoice has been uploaded by " . GetUserName() . "</h4>";
sendInternalUserMessage($_POST["notificationid"][$ix], "Typist Invoice", $description);
}
} else {
$qry = "UPDATE {$_SESSION['DB_PREFIX']}typistinvoices SET " . "pages = {$page}, metamodifieddate = NOW(), metamodifieduserid = " . getLoggedOnMemberID() . " " . "WHERE id = {$pageid}";
$result = mysql_query($qry);
if (!$result) {
logError($qry);
}
}
}
array_push($json, array("pages" => $totalpage));
echo json_encode($json);
示例12: array
?>
');
<?
}
else {
$params = array(":id" => $_REQUEST["MotivoAusencia"]);
$sql =
"SELECT ma_detalle
FROM rrhh.rma_motivosausencia
WHERE ma_id = :id";
$motivo = ValorSql($sql, "", $params);
// Envío un e-mail de aviso a RRHH..
$body = "Se registró una nueva ausencia.\n".
"El empleado ausente es: ".$empleado.".\n".
"Reportado por: ".GetUserName().".\n".
"Motivo: ".$motivo.".\n".
"Enviar médico: ".(($_REQUEST["enviarMedico"] == "T")?"Sí":"No").".\n";
if ($_REQUEST["enviarMedico"] == "F")
$body.= "Justificación: ".$_REQUEST["justifique"].".";
SendEmail($body, "Aviso Intranet", "Aviso de Ausencia", array("rrhh-provinciaart"), array(), array());
echo "window.parent.document.getElementById('spanMensaje').style.display = 'block';";
echo "window.parent.LimpiarForm(window.parent.document.getElementById('formAusentismo'))";
}
?>
</script>
</head>
<body>
ok
</body>
示例13: sql_pre_query
<td class="TableMenuColumn4"> </td>
</tr>
</table>
</div>
<?php
}
if ($_POST['act'] == "editmember" && $_POST['update'] == "now" && $_GET['act'] == "editmember" && ($_POST['id'] != "0" || $_POST['id'] != "-1")) {
$ggidquery = sql_pre_query("SELECT * FROM \"" . $Settings['sqltable'] . "groups\" WHERE \"Name\"='%s' LIMIT 1", array($Settings['GuestGroup']));
$ggidresult = sql_query($ggidquery, $SQLStat);
$GuestGroupID = sql_result($ggidresult, 0, "id");
sql_free_result($ggidresult);
$vgidquery = sql_pre_query("SELECT * FROM \"" . $Settings['sqltable'] . "groups\" WHERE \"Name\"='%s' LIMIT 1", array($Settings['ValidateGroup']));
$vgidresult = sql_query($vgidquery, $SQLStat);
$ValidateGroupID = sql_result($vgidresult, 0, "id");
sql_free_result($vgidresult);
$DMemName = GetUserName($_POST['id'], $Settings['sqltable']);
$DMemName = $DMemName['Name'];
$_POST['MemName'] = stripcslashes(htmlspecialchars($_POST['MemName'], ENT_QUOTES, $Settings['charset']));
//$_POST['MemName'] = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['MemName']);
$_POST['MemName'] = remove_spaces($_POST['MemName']);
$_POST['MemEmail'] = remove_spaces($_POST['MemEmail']);
$username_check = null;
if ($_POST['MemName'] != $DMemName) {
$tquery = sql_pre_query("UPDATE \"" . $Settings['sqltable'] . "topics\" SET \"GuestName\"='%s' WHERE \"UserID\"=%i", array($_POST['MemName'], $_POST['id']));
sql_query($tquery, $SQLStat);
$r1query = sql_pre_query("UPDATE \"" . $Settings['sqltable'] . "posts\" SET \"GuestName\"='%s' WHERE \"UserID\"=%i", array($_POST['MemName'], $_POST['id']));
sql_query($r1query, $SQLStat);
$r2query = sql_pre_query("UPDATE \"" . $Settings['sqltable'] . "posts\" SET \"EditUserName\"='%s' WHERE \"EditUser\"=%i", array($_POST['MemName'], $_POST['id']));
sql_query($r2query, $SQLStat);
$sql_username_check = sql_query(sql_pre_query("SELECT \"Name\" FROM \"" . $Settings['sqltable'] . "members\" WHERE \"Name\"='%s'", array($_POST['MemName'])), $SQLStat);
$username_check = sql_num_rows($sql_username_check);
示例14: InitCap
// Estado según el motivo para el usuario original...
$sql = "SELECT 'A la espera de la autorización de ' || InitCap(SE_NOMBRE)
FROM ART.USE_USUARIOS, COMPUTOS.CMS_MOTIVOSOLICITUD
WHERE MS_ID = :id
AND SE_ID = COMPUTOS.GENERAL.GET_USUARIORESPONSABLE(:usuariosolicitud, MS_NIVEL)";
$params = array(":id" => $_REQUEST['DetallePedido'], ":usuariosolicitud" => $_REQUEST["UsuarioSolicitud"]);
$stmt = DBExecSql($conn, $sql, $params);
$useraux = ValorSql($sql, "", $params);
if (($useraux != "") and ($id_estado == 1)) {
$id_estado = 10;
}
}
else {
$user = $user."\r\n"."Ticket cargado por ".GetUserName();
}
}
// Se setea esta variable que se utiliza en el trigger trg_css_permisosolicitud de la tabla computos.css_solicitudsistemas..
$curs = null;
$sql = "BEGIN COMPUTOS.GENERAL.v_nombreusuario := UPPER(:usuario); END;";
$params = array(":usuario" => GetWindowsLoginName());
$stmt = DBExecSP($conn, $curs, $sql, $params, false);
// Doy de alta el ticket...
$sql =
"INSERT INTO computos.css_solicitudsistemas (ss_id, ss_idusuario_carga, ss_fecha_solicitud, ss_idusuario_solicitud, ss_fecha_carga,
ss_idsector_asignado, ss_idequipo, ss_idestadoactual, ss_idmotivosolicitud, ss_notas,
ss_observaciones, ss_prioridad ".$campoEjecutable.", ss_presencial, ss_indicaciones)
VALUES (:id, :idusuario, ART.ACTUALDATE, :idusuariosolicitud, SYSDATE, :idsectorasignado, :idequipo,
示例15: GetUserName
</tr>
<tr>
<td style="border-bottom-style: solid; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px" colspan="2" height="13"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="377" height="50" valign="top" rowspan="2">
<table border="0" id="table3" bgcolor="#FFFFFF" cellspacing="0">
<tr>
<td width="10"></td>
<td><p align="center"><img border="0" src="images/user.jpg" width="26" height="28"></td>
<td><font face="Verdana" style="font-size: 8pt; font-weight: 700" color="#808080">Usuario Actual:</font></td>
<td><font face="Verdana" style="font-size: 8pt" color="#336699"> <?php
echo GetUserName($_SESSION["identidad"]);
?>
</font></td>
</tr>
</table>
</td>
<td align="left" width="293" height="21" valign="top">
<table bgcolor="#FFFFFF" border="0" cellspacing="0" width="293">
<tr>
<td style="border-left-style: solid; border-left-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 0px; padding-left: 4px; padding-right: 4px; width: 120px;" bgcolor="#C0C0C0" bordercolor="#808080"><font face="Verdana" style="font-size: 8pt; font-weight: 700" color="#FFFFFF">Año: </font></td>
<td style="border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 0px; padding-left: 4px; padding-right: 4px; border-right-style:solid; border-right-width:1px" bgcolor="#C0C0C0" bordercolor="#808080"><select id="Ano" name="Ano" size="1" validar="true" title="Año" style="color: #808080; font-family: Verdana; font-size: 8pt; font-weight: bold; border: 1px solid #808080; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px;" onChange="cambiarAno()"></select></td>
</tr>
</table>
<table bgcolor="#FFFFFF" border="0" cellspacing="0" id="tableUsuariosAEvaluar" name="tableUsuariosAEvaluar" width="293">
<tr>
<td bgcolor="#C0C0C0" bordercolor="#808080" style="border-bottom-style: solid; border-bottom-width: 1px; border-left-style: solid; border-left-width: 1px; border-top-style: solid; border-top-width: 1px; padding-left: 4px; padding-right: 4px; width: 120px;"><font face="Verdana" style="font-size: 8pt; font-weight: 700" color="#FFFFFF">Usuario a evaluar: </font></td>