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


PHP ew_StdCurrentDateTime函数代码示例

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


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

示例1: WriteAuditTrailOnLogout

 function WriteAuditTrailOnLogout($usr)
 {
     global $Language;
     ew_WriteAuditTrail("log", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $Language->Phrase("AuditTrailLogout"), ew_CurrentUserIP(), "", "", "", "");
 }
开发者ID:scintes,项目名称:sistemas,代码行数:5,代码来源:logout.php

示例2: WriteAuditTrailOnEdit

 function WriteAuditTrailOnEdit(&$rsold, &$rsnew)
 {
     if (!$this->AuditTrailOnEdit) {
         return;
     }
     $table = 'socios';
     // Get key value
     $key = "";
     if ($key != "") {
         $key .= $GLOBALS["EW_COMPOSITE_KEY_SEPARATOR"];
     }
     $key .= $rsold['socio_nro'];
     // Write Audit Trail
     $dt = ew_StdCurrentDateTime();
     $id = ew_ScriptName();
     $usr = CurrentUserID();
     foreach (array_keys($rsnew) as $fldname) {
         if ($this->fields[$fldname]->FldDataType != EW_DATATYPE_BLOB) {
             // Ignore BLOB fields
             if ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) {
                 // DateTime field
                 $modified = ew_FormatDateTime($rsold[$fldname], 0) != ew_FormatDateTime($rsnew[$fldname], 0);
             } else {
                 $modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]);
             }
             if ($modified) {
                 if ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) {
                     // Memo field
                     if (EW_AUDIT_TRAIL_TO_DATABASE) {
                         $oldvalue = $rsold[$fldname];
                         $newvalue = $rsnew[$fldname];
                     } else {
                         $oldvalue = "[MEMO]";
                         $newvalue = "[MEMO]";
                     }
                 } elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) {
                     // XML field
                     $oldvalue = "[XML]";
                     $newvalue = "[XML]";
                 } else {
                     $oldvalue = $rsold[$fldname];
                     $newvalue = $rsnew[$fldname];
                 }
                 ew_WriteAuditTrail("log", $dt, $id, $usr, "U", $table, $fldname, $key, $oldvalue, $newvalue);
             }
         }
     }
 }
开发者ID:scintes,项目名称:sistemas,代码行数:48,代码来源:cciagsociosedit.php

示例3: WriteAuditTrailOnAdd

 function WriteAuditTrailOnAdd(&$rs)
 {
     if (!$this->AuditTrailOnAdd) {
         return;
     }
     $table = 'montos';
     // Get key value
     $key = "";
     if ($key != "") {
         $key .= $GLOBALS["EW_COMPOSITE_KEY_SEPARATOR"];
     }
     $key .= $rs['id'];
     // Write Audit Trail
     $dt = ew_StdCurrentDateTime();
     $id = ew_ScriptName();
     $usr = CurrentUserID();
     foreach (array_keys($rs) as $fldname) {
         if ($this->fields[$fldname]->FldDataType != EW_DATATYPE_BLOB) {
             // Ignore BLOB fields
             if ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) {
                 if (EW_AUDIT_TRAIL_TO_DATABASE) {
                     $newvalue = $rs[$fldname];
                 } else {
                     $newvalue = "[MEMO]";
                 }
                 // Memo Field
             } elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) {
                 $newvalue = "[XML]";
                 // XML Field
             } else {
                 $newvalue = $rs[$fldname];
             }
             ew_WriteAuditTrail("log", $dt, $id, $usr, "A", $table, $fldname, $key, "", $newvalue);
         }
     }
 }
开发者ID:scintes,项目名称:sistemas,代码行数:36,代码来源:cciag_montosadd.php

示例4: WriteAuditTrailDummy

 function WriteAuditTrailDummy($typ)
 {
     $table = 'deudas';
     $usr = CurrentUserID();
     ew_WriteAuditTrail("log", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, "", "", "", "");
 }
开发者ID:scintes,项目名称:sistemas,代码行数:6,代码来源:cciagdeudaslist.php

示例5: ew_WriteAuditTrailOnLogInOut

function ew_WriteAuditTrailOnLogInOut($usr, $logtype)
{
    ew_WriteAuditTrail("log", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $logtype, ew_CurrentUserIP(), "", "", "", "");
}
开发者ID:Razinsky,项目名称:echaude-com,代码行数:4,代码来源:phpfn8.php

示例6: WriteAuditTrailOnDelete

 function WriteAuditTrailOnDelete(&$rs)
 {
     if (!$this->AuditTrailOnDelete) {
         return;
     }
     $table = 'usuario';
     // Get key value
     $key = "";
     if ($key != "") {
         $key .= $GLOBALS["EW_COMPOSITE_KEY_SEPARATOR"];
     }
     $key .= $rs['id'];
     // Write Audit Trail
     $dt = ew_StdCurrentDateTime();
     $id = ew_ScriptName();
     $curUser = CurrentUserID();
     foreach (array_keys($rs) as $fldname) {
         if (array_key_exists($fldname, $this->fields) && $this->fields[$fldname]->FldDataType != EW_DATATYPE_BLOB) {
             // Ignore BLOB fields
             if ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) {
                 if (EW_AUDIT_TRAIL_TO_DATABASE) {
                     $oldvalue = $rs[$fldname];
                 } else {
                     $oldvalue = "[MEMO]";
                 }
                 // Memo field
             } elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) {
                 $oldvalue = "[XML]";
                 // XML field
             } else {
                 $oldvalue = $rs[$fldname];
             }
             ew_WriteAuditTrail("log", $dt, $id, $curUser, "D", $table, $fldname, $key, $oldvalue, "");
         }
     }
 }
开发者ID:scintes,项目名称:sistemas,代码行数:36,代码来源:cciagusuariodelete.php

示例7: AutoLogin

 function AutoLogin()
 {
     if (@$_COOKIE[EW_PROJECT_NAME]['AutoLogin'] == "autologin") {
         $usr = ew_Decrypt(@$_COOKIE[EW_PROJECT_NAME]['Username']);
         $pwd = ew_Decrypt(@$_COOKIE[EW_PROJECT_NAME]['Password']);
         $AutoLogin = $this->ValidateUser($usr, $pwd, TRUE);
         if ($AutoLogin) {
             ew_WriteAuditTrail("log", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $GLOBALS["Language"]->Phrase("AuditTrailAutoLogin"), ew_CurrentUserIP(), "", "", "", "");
         }
     } else {
         $AutoLogin = FALSE;
     }
     return $AutoLogin;
 }
开发者ID:scintes,项目名称:sistemas,代码行数:14,代码来源:cciag_phpfn11.php


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