/** * Set * @param string $name * @param mixed $value * @param int $expiry * @param sting $path * @param string $domain * @param bool $httponly * @return BOOL */ public static function set($name, $value, $expiry = self::ONE_YEAR, $path = '/', $domain = null, $httponly = false) { if (headers_sent() || empty($name)) { return false; } if (empty($value)) { $expiry = -1; } else { if (is_numeric($expiry)) { $expiry += time(); } else { $expiry = \DateTime($expiry); } } if (empty($domain) && isset($_SERVER['SERVER_NAME']) && strcasecmp($_SERVER['SERVER_NAME'], 'localhost') !== 0) { if (filter_var($host = parse_url(SITE_URL, PHP_URL_HOST), FILTER_VALIDATE_IP) !== false) { $domain = $host; } else { $domain = '.' . preg_replace('#^www\\.#', '', $host); } } $secure = defined("SITE_PROTOCOL") && SITE_PROTOCOL == 'https://'; if (setcookie($name, $value, $expiry, $path, $domain, $secure, $httponly)) { $_COOKIE[$name] = $value; return true; } return false; }
public function indexAction($name) { $datetime = \DateTime(); $em = $this->getDoctrine()->getManager(); $em->persist($object); $em->flush(); return $this->render('InfoDemoBundle:Default:index.html.twig', array('name' => $name)); }
/** * Creates a new Pasaporte entity. * * @Route("/", name="pasaporte_create") * @Method("POST") * @Template("AppBundle:Pasaporte:new.html.twig") */ public function createAction(Request $request) { $entity = new Pasaporte(); $form = $this->createCreateForm($entity); $form->handleRequest($request); if ($form->isValid()) { $em = $this->getDoctrine()->getManager(); $entity->setFechaDesde(\DateTime($entity->getFechaDesde)); $entity->setFechaHasta(\DateTime($entity->getFechaHasta)); $em->persist($entity); $em->flush(); return $this->redirect($this->generateUrl('pasaporte_show', array('id' => $entity->getId()))); } return array('entity' => $entity, 'form' => $form->createView()); }
<label class="col-md-2 control-label"><?php echo $smarty->get_template_vars('LBL_INVOICE_PAYABLE_DATE'); ?> </label> <div class="col-md-4"> <?php echo $dtls[0]['dNetPaymentdate'] != '0000-00-00' ? DateTime(calcLTzTime($dtls[0]['NetPaymentdate']), 10) : '---'; ?> </div> <label class="col-md-2 control-label"><?php echo $smarty->get_template_vars('LBL_ACCEPTED') . ' ' . $smarty->get_template_vars('LBL_DATE'); ?> </label> <div class="col-md-4"> <?php echo $dtls[0]['dAcceptedDate'] != '0000-00-00' ? DateTime(calcLTzTime($dtls[0]['dAcceptedNetPaymentDate']), 10) : '---'; ?> </div> <label class="col-md-2 control-label"><?php echo $smarty->get_template_vars('LBL_INVOICE_PAYABLE') . ' (' . $smarty->get_template_vars('LBL_ACCEPTED') . ') ' . $smarty->get_template_vars('LBL_AMOUNT'); ?> </label> <div class="col-md-4"> <?php echo $dtls[0]['fAcceptedAmount']; ?> </div> <label class="col-md-2 control-label"> <?php echo $smarty->get_template_vars('LBL_INVOICE_TOTAL'); ?> </label>
function setCreatedAt() { $this->createdAt = \DateTime('now', new \DateTimeZone('America/Sao_Paulo')); return $this; }
function getVerificationMessage($iOrgId, $dtls) { global $smarty; $msg = ""; $userid = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID']; $usertype = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT']; $orgid = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ORGID']; if ($dtls[0]['eStatus'] == "Need to Verify") { if ($dtls[0]['iASMID'] == $userid) { $msg = $smarty->get_template_vars('MSG_OTHER_VERIFICATION_NEED'); } else { $sql = "Select CONCAT(vFirstName,' ',vLastName) as name from " . PRJ_DB_PREFIX . "_security_manager where iSMID=" . $dtls[0]['iASMID']; $musr = $this->_obj->MySqlSelect($sql); $msg = $smarty->get_template_vars('LBL_REC_CREATE_BY') . " " . $musr[0]['name'] . " " . $smarty->get_template_vars('LBL_ON') . " " . DateTime($dtls[0]['dCreatedDate'], '0'); } } else { if ($dtls[0]['eStatus'] == "Modified" || $dtls[0]['eStatus'] == "Delete" || $dtls[0]['eNeedToVerify'] == "Yes") { if ($dtls[0]['eModifiedBy'] == $usertype && $dtls[0]['iModifiedByID'] == $userid) { $msg = $smarty->get_template_vars('MSG_OTHER_VERIFICATION_NEED'); } else { $msg = $smarty->get_template_vars('LBL_REC_MODIFIED_BY') . " " . $dtls[0]['iModifiedByID'] . " " . $smarty->get_template_vars('LBL_ON') . " " . DateTime($dtls[0]['dModifiedDate'], '0'); } } } return $msg; }
echo $titler[13]; ?> /webboard/img/userinfo.gif" width="16" height="16" /> โดย <?php $snickname = "SELECT name FROM `member` WHERE id='{$objResult['2']}'"; $renickname = mysql_query($snickname) or die("Error {$snickname}"); $rnickname = mysql_fetch_row($renickname); echo $rnickname[0]; ?> <img src="http://<?php echo $titler[13]; ?> /webboard/img/calendar-icon.png" width="16" height="16" /> เมื่อ <?php $postDate = $objResult[5]; echo DateTime($postDate); ?> <img src="http://<?php echo $titler[13]; ?> /webboard/img/ip.gif" width="15" height="14" /> <?php echo $objResult[6]; ?> <?php if ($_SESSION[m_id] == $objResult[2]) { ?> <a href="http://<?php echo $titler[13]; ?> /webboard/edit-webboard-reply.php?id=<?php
<p> <span style="display:inline-block; width:359px;"><b style="font-size:12.9px;"><?php echo $this->_tpl_vars['LBL_AWARD_NO']; ?> :</b> <a href="<?php echo $this->_tpl_vars['SITE_URL_DUM']; ?> b2rfq2awardview/<?php echo $this->_tpl_vars['latestaward'][$this->_sections['l']['index']]['iAwardId']; ?> "><b style="font-size:12.9px;"><?php echo $this->_tpl_vars['latestaward'][$this->_sections['l']['index']]['vAwardNum']; ?> </b></a></span> <span><?php echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['latestaward'][$this->_sections['l']['index']]['dADate']) ? $this->_run_mod_handler('calcLTzTime', true, $_tmp) : calcLTzTime($_tmp)) ? $this->_run_mod_handler('DateTime', true, $_tmp, 10) : DateTime($_tmp, 10); ?> </span><br> <label><?php echo $this->_tpl_vars['LBL_RFQ2_CODE']; ?> :</label> <?php echo $this->_tpl_vars['latestaward'][$this->_sections['l']['index']]['vRFQ2Code']; ?> <br> <label><?php echo $this->_tpl_vars['LBL_BUYER2']; ?> :</label> <?php echo $this->_tpl_vars['latestaward'][$this->_sections['l']['index']]['vCompanyName']; ?>
</strong> </td> <td width="25%" height="22" align="right" class="td-bg" valign="top">Created from IP</td> <td width="25%" class="white-bg"> <strong><?php echo $arr[0]['vFromIP']; ?> </strong> </td> </tr> <tr> <td width="25%" height="22" align="right" class="td-bg">Last access date/time</td> <td width="25%" class="white-bg"> <strong> <?php if ($arr[0]['dLastAccess'] != '') { $lastaccess = DateTime($arr[0]['dLastAccess'], "2"); } else { $lastaccess = "---"; } echo $lastaccess; ?> </strong> </td> <td width="25%" height="22" align="right" class="td-bg">Total login</td> <td width="25%" class="white-bg"> <strong><?php echo $arr[0]['iTotLogin']; ?> </strong> </td> </tr>
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="gradient-strip"><img src="<?php echo ADMIN_IMAGES; ?> square-bullet.gif" align="absmiddle" border="0" alt="" />Last login </td> </tr> <tr> <td class="inner-border"> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td width="24%">Last login</td> <td width="1%">:</td> <td width="75%"><strong> <?php echo DateTime($last_log[0]['dLoginDate'], "7"); ?> </strong></td> </tr> <tr> <td>IP address</td> <td>:</td> <td><strong> <?php echo $last_log[0]['vIP']; ?> </strong></td> </tr> </table> </td> </tr>
echo $this->_tpl_vars['LBL_ASSOCIATION']; ?> </h3> <p> <?php echo $this->_tpl_vars['LBL_BUYER2']; ?> :<span> <?php echo $this->_tpl_vars['b2sps_dtls'][0]['vBuyer2']; ?> </span> <?php echo $this->_tpl_vars['LBL_DATE']; ?> :<span> <?php echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['b2sps_dtls'][0]['dADate']) ? $this->_run_mod_handler('calcLTzTime', true, $_tmp) : calcLTzTime($_tmp)) ? $this->_run_mod_handler('DateTime', true, $_tmp, 10) : DateTime($_tmp, 10); ?> </span><br/> <?php echo $this->_tpl_vars['LBL_BPRODUCT']; ?> : <span><?php echo $this->_tpl_vars['b2sps_dtls'][0]['vSupplier']; ?> </span><br /> <?php echo $this->_tpl_vars['LBL_CODE']; ?> : <span><a href="<?php echo $this->_tpl_vars['SITE_URL_DUM']; ?>
<?php } else { ?> <?php echo $AlldataFile[$x]; ?> <?php } } ?> </td> <td width="20%" align="center" ><?php echo DateTime(filemtime($path . $AlldataFile[$x]), '3'); ?> </td> <td width="14%" align="left"> <?php if (is_dir($path . $AlldataFile[$x])) { $size = nicesize(getUserDirectorySize($path . $AlldataFile[$x])); } else { $size = nicesize(filesize($path . $AlldataFile[$x])); } $size = explode(" ", $size); ?> <table border="0" width="100%"> <tr> <td align="right" width="30%"><?php echo $size[0];
echo $this->_tpl_vars['SITE_URL_DUM']; ?> associationview/<?php echo $this->_tpl_vars['activeassocs'][$this->_sections['j']['index']]['iAsociationID']; ?> "><?php echo $this->_tpl_vars['activeassocs'][$this->_sections['j']['index']]['vBuyerOrg']; ?> </a></h3> <p> Buyer Organization Code:<span> <?php echo $this->_tpl_vars['activeassocs'][$this->_sections['j']['index']]['vBuyerCode']; ?> </span> Date :<span> <?php echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['activeassocs'][$this->_sections['j']['index']]['dCreatedDate']) ? $this->_run_mod_handler('calcLTzTime', true, $_tmp) : calcLTzTime($_tmp)) ? $this->_run_mod_handler('DateTime', true, $_tmp, 10) : DateTime($_tmp, 10); ?> </span><br/> <?php if ($this->_tpl_vars['activeassocs'][$this->_sections['j']['index']]['eStatus'] != 'Need to Verify' && $this->_tpl_vars['activeassocs'][$this->_sections['j']['index']]['eStatus'] != 'Modified') { ?> <?php if ($this->_tpl_vars['activeassocs'][$this->_sections['j']['index']]['vVerifiedBy'] != '') { ?> Verified By :<span> <?php echo $this->_tpl_vars['activeassocs'][$this->_sections['j']['index']]['vVerifiedBy']; ?> </span><?php } ?> <?php
<script type="text/javascript" src="<?php echo S_JQUERY; ?> jquery.js" ></script> <!--{*<script type="text/javascript" src="<?php echo S_JQUERY; ?> jquery_plugins.js" async="async"></script>*}--> <script type="text/javascript" src="<?php echo A_G_JS; ?> jgeneral.js"></script> <script type="text/javascript"> var clockLocalStartTime = new Date(); var clockServerStartTime = new Date(<?php echo DateTime(time(), '4'); ?> ); </script> <script type="text/javascript"> var SITE_URL = '<?php echo SITE_URL; ?> '; var SITE_URL_DUM = '<?php echo SITE_URL_DUM; ?> '; var ADMIN_URL = '<?php echo ADMIN_URL; ?>
function getHistory($vAsocCode) { global $smarty; //$sql = "Select GROUP_CONCAT(astv.eStatus) as sts, GROUP_CONCAT(astv.iVerifiedSMID) as verifyid, GROUP_CONCAT(astv.eVerifiedBy) as verifyby, GROUP_CONCAT(astv.dVerifiedDate) as verifydate, GROUP_CONCAT(astv.iRejectedById) as rejectid, GROUP_CONCAT(astv.eRejectedBy) as rejectby, GROUP_CONCAT(astv.dRejectedDate) as rejectdate, astv.* from ".PRJ_DB_PREFIX."_organization_association_toverify astv where astv.vAssociationCode='$vAsocCode' Group By astv.iChangeNo ORDER BY astv.iChangeNo, astv.iVerifiedID ASC "; // $sql = "Select GROUP_CONCAT(astv.eStatus) as sts, GROUP_CONCAT(astv.iModifiedByID) as modifyid, GROUP_CONCAT(astv.eModifiedBy) as modifyby, GROUP_CONCAT(astv.iVerifiedSMID) as verifyid, GROUP_CONCAT(astv.eVerifiedBy) as verifyby, GROUP_CONCAT(astv.dVerifiedDate) as verifydate, GROUP_CONCAT(astv.iRejectedById) as rejectid, GROUP_CONCAT(astv.eRejectedBy) as rejectby, GROUP_CONCAT(astv.dRejectedDate) as rejectdate, astv.* from ".PRJ_DB_PREFIX."_organization_association_toverify astv where astv.vAssociationCode='$vAsocCode' Group By astv.iChangeNo ORDER BY astv.iChangeNo, astv.iVerifiedID ASC "; $sql = "Select astv.eStatus as sts, astv.iModifiedByID as modifyid, astv.eModifiedBy as modifyby, astv.iVerifiedSMID as verifyid, astv.eVerifiedBy as verifyby, astv.dVerifiedDate as verifydate, astv.iRejectedById as rejectid, astv.eRejectedBy as rejectby, astv.dRejectedDate as rejectdate, astv.* from " . PRJ_DB_PREFIX . "_organization_association_toverify astv where astv.vAssociationCode='{$vAsocCode}' ORDER BY astv.iChangeNo, astv.iVerifiedID ASC "; //echo $sql; exit; $vdtls = $this->_obj->MySQLSelect($sql); // prints($vdtls); exit; // for($ln=0;count($vdtls);$l++) { for ($l = 0; $l < count($vdtls); $l++) { if ($vdtls[$l]['eCreatedBy'] == 'SM') { $sql = "Select CONCAT(vFirstName,' ',vLastName) as name from " . PRJ_DB_PREFIX . "_security_manager where iSMID=" . $vdtls[$l]['iCreatedBy']; $cusr = $this->_obj->MySQLSelect($sql); $vdtls[$l]['createdby'] = $cusr[0]['name']; } else { if ($vdtls[$l]['eCreatedBy'] == 'OA') { $sql = "Select CONCAT(vFirstName,' ',vLastName) as name from " . PRJ_DB_PREFIX . "_organization_user where iUserID=" . $vdtls[$l]['iCreatedBy']; $cusr = $this->_obj->MySQLSelect($sql); $vdtls[$l]['createdby'] = $cusr[0]['name']; } } if ($vdtls[$l]['eModifiedBy'] == 'SM') { $sql = "Select CONCAT(vFirstName,' ',vLastName) as name from " . PRJ_DB_PREFIX . "_security_manager where iSMID=" . $vdtls[$l]['iModifiedByID']; $musr = $this->_obj->MySQLSelect($sql); $vdtls[$l]['modifiedby'] = $musr[0]['name']; } else { if ($vdtls[$l]['eModifiedBy'] == 'OA') { $sql = "Select CONCAT(vFirstName,' ',vLastName) as name from " . PRJ_DB_PREFIX . "_organization_user where iUserID=" . $vdtls[$l]['iModifiedByID']; $musr = $this->_obj->MySQLSelect($sql); $vdtls[$l]['modifiedby'] = $musr[0]['name']; } } if ($vdtls[$l]['eVerifiedBy'] != '') { $vrfyid = @explode(',', $vdtls[$l]['verifyid']); $vrfyby = @explode(',', $vdtls[$l]['verifyby']); $vrfydate = @explode(',', $vdtls[$l]['verifydate']); // $vdtls[$l]['verifiedby'] = $smarty->get_template_vars('LBL_VERIFIED_BY')." "; $vdtls[$l]['verifiedby'] = ""; $vrfynm = array(); for ($ln = 0; $ln < count($vrfyid); $ln++) { if ($ln > 1) { if ($vdtls[$l]['eModifiedBy'] == 'SM') { $sql = "Select CONCAT(vFirstName,' ',vLastName) as name from " . PRJ_DB_PREFIX . "_security_manager where iSMID=" . $vdtls[$l]['iModifiedByID']; $musr = $this->_obj->MySQLSelect($sql); $vdtls[$l]['modifiedby'] = $musr[0]['name']; } else { if ($vdtls[$l]['eModifiedBy'] == 'OA') { $sql = "Select CONCAT(vFirstName,' ',vLastName) as name from " . PRJ_DB_PREFIX . "_organization_user where iUserID=" . $vdtls[$l]['iModifiedByID']; $musr = $this->_obj->MySQLSelect($sql); $vdtls[$l]['modifiedby'] = $musr[0]['name']; } } } if ($vrfyby[$ln] == 'SM') { $sql = "Select CONCAT(vFirstName,' ',vLastName) as name from " . PRJ_DB_PREFIX . "_security_manager where iSMID=" . $vrfyid[$ln]; $vusr = $this->_obj->MySQLSelect($sql); if (trim($vusr[0]['name']) == '') { $vusr[0]['name'] = 'Someone'; } if (!in_array($vusr[0]['name'] . "({$vrfyby[$ln]})" . '-' . DateTime($vrfydate[$ln], '0'), $vrfynm)) { $vrfynm[] = $vusr[0]['name'] . "({$vrfyby[$ln]})" . '-' . DateTime($vrfydate[$ln], '0'); if ($vdtls[$l]['verifiedby'] != "") { $vdtls[$l]['verifiedby'] .= ', '; // $vdtls[$l]['verifiedby'] .= ' <br/> <label style="display:inline-block;width:105px;"> </label> '; $vdtls[$l]['verifiedby'] .= '<br/>'; } // $vdtls[$l]['verifiedby'] .= "<span style='display:inline-block; width:190px;'>".$vusr[0]['name']." ($vrfyby[$ln])"."</span> "; // .DateTime($vrfydate[$ln],'7'); $vdtls[$l]['verifiedby'] .= $vusr[0]['name'] . " ({$vrfyby[$ln]}) "; } } else { if ($vrfyby[$ln] == 'OA') { $sql = "Select CONCAT(vFirstName,' ',vLastName) as name from " . PRJ_DB_PREFIX . "_organization_user where iUserID=" . $vrfyid[$ln]; $vusr = $this->_obj->MySQLSelect($sql); if (trim($vusr[0]['name']) == '') { $vusr[0]['name'] = 'Someone'; } if (!in_array($vusr[0]['name'] . "({$vrfyby[$ln]})" . '-' . DateTime($vrfydate[$ln], '0'), $vrfynm)) { $vrfynm[] = $vusr[0]['name'] . "({$vrfyby[$ln]})" . '-' . DateTime($vrfydate[$ln], '0'); if ($vdtls[$l]['verifiedby'] != "") { $vdtls[$l]['verifiedby'] .= ', '; // $vdtls[$l]['verifiedby'] .= ' <br/> <label style="display:inline-block;width:105px;"> </label> '; $vdtls[$l]['verifiedby'] .= '<br/>'; } // $vdtls[$l]['verifiedby'] .= "<span style='display:inline-block; width:190px;'>".$vusr[0]['name']." ($vrfyby[$ln])"."</span> "; // .DateTime($vrfydate[$ln],'7'); $vdtls[$l]['verifiedby'] .= $vusr[0]['name'] . " ({$vrfyby[$ln]}) "; } } } } } if ($vdtls[$l]['eRejectedBy'] != '') { $rjtid = @explode(',', $vdtls[$l]['rejectid']); $rjtby = @explode(',', $vdtls[$l]['rejectby']); $rjtdate = @explode(',', $vdtls[$l]['rejectdate']); //$vdtls[$l]['rejectedby'] = $smarty->get_template_vars('LBL_REJECTED_BY')." "; $vdtls[$l]['rejectedby'] = ""; $rjtnm = array(); for ($ln = 0; $ln < count($rjtid); $ln++) { if ($ln > 1) { if ($vdtls[$l]['eModifiedBy'] == 'SM') { $sql = "Select CONCAT(vFirstName,' ',vLastName) as name from " . PRJ_DB_PREFIX . "_security_manager where iSMID=" . $vdtls[$l]['iModifiedByID']; $musr = $this->_obj->MySQLSelect($sql); $vdtls[$l]['modifiedby'] = $musr[0]['name']; } else { if ($vdtls[$l]['eModifiedBy'] == 'OA') { $sql = "Select CONCAT(vFirstName,' ',vLastName) as name from " . PRJ_DB_PREFIX . "_organization_user where iUserID=" . $vdtls[$l]['iModifiedByID']; $musr = $this->_obj->MySQLSelect($sql); $vdtls[$l]['modifiedby'] = $musr[0]['name']; } } } if ($rjtby[$ln] == 'SM') { $sql = "Select CONCAT(vFirstName,' ',vLastName) as name from " . PRJ_DB_PREFIX . "_security_manager where iSMID=" . $rjtid[$ln]; $rusr = $this->_obj->MySQLSelect($sql); if (trim($rusr[0]['name']) == '') { $rusr[0]['name'] = 'Someone'; } if (!in_array($rusr[0]['name'] . "({$rjtby[$ln]})" . '-' . DateTime($rjtdate[$ln], '7'), $rjtnm)) { $rjtnm[] = $rusr[0]['name'] . "({$rjtby[$ln]})" . '-' . DateTime($rjtdate[$ln], '7'); if ($vdtls[$l]['rejectedby'] != "") { $vdtls[$l]['rejectedby'] .= ', '; // $vdtls[$l]['rejectedby'] .= ' <br/> <label style="display:inline-block;width:111px;"> </label> '; $vdtls[$l]['rejectedby'] .= '<br/>'; } //$vdtls[$l]['rejectedby'] .= $rusr[0]['name']." ($rjtby[$ln])"." at ".DateTime($rjtdate[$ln],'7'); // $vdtls[$l]['rejectedby'] .= "<span style='display:inline-block; width:190px;'>".$rusr[0]['name']." ($rjtby[$ln])"."</span> "; // .DateTime($rjtdate[$ln],'7'); $vdtls[$l]['rejectedby'] .= $rusr[0]['name'] . " ({$rjtby[$ln]}) "; } } else { if ($rjtby[$ln] == 'OA') { $sql = "Select CONCAT(vFirstName,' ',vLastName) as name from " . PRJ_DB_PREFIX . "_organization_user where iUserID=" . $rjtid[$ln]; $rusr = $this->_obj->MySQLSelect($sql); if (trim($rusr[0]['name']) == '') { $rusr[0]['name'] = 'Someone'; } if (!in_array($rusr[0]['name'] . "({$rjtby[$ln]})" . '-' . DateTime($rjtdate[$ln], '7'), $rjtnm)) { $rjtnm[] = $rusr[0]['name'] . "({$rjtby[$ln]})" . '-' . DateTime($rjtdate[$ln], '7'); if ($vdtls[$l]['rejectedby'] != "") { $vdtls[$l]['rejectedby'] .= ', '; //$vdtls[$l]['rejectedby'] .= ' <br/> <label style="display:inline-block;width:111px;"> </label> '; $vdtls[$l]['rejectedby'] .= '<br/>'; } // $vdtls[$l]['rejectedby'] .= "<span style='display:inline-block; width:190px;'>".$rusr[0]['name']." ($rjtby[$ln])"."</span> "; // .DateTime($rjtdate[$ln],'7'); $vdtls[$l]['rejectedby'] .= $rusr[0]['name'] . " ({$rjtby[$ln]}) "; } } } } } // prints($vdtls[$l]); } // } // exit; return $vdtls; }
<td colspan="5" valign="top"> <table width="100%" border="0" class="table-bg" cellspacing="1" cellpadding="0"> <?php for ($i = 0; $i < count($dbFiles); $i++) { ?> <tr onmouseover="this.style.backgroundColor='#F1E6DA'" onmouseout="this.style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF"> <td width="1%" height="20" align="left"><input type="checkbox" style="border:none" name="chkFull[]" id="iIdFull" value="<?php echo $dbFiles[$i]; ?> "></td> <td width="66%" class="indent-left"><?php echo $dbFiles[$i]; ?> </td> <td width="10%" class="indent-left" align="center"><?php echo DateTime(filemtime(BACKUP_DBPATH . $dbFiles[$i]), '3'); ?> </td> <td width="10%" class="indent-left" align="center"><a href="#" class="whitelink-normal" onclick="DownloadDB('<?php echo $dbFiles[$i]; ?> ');return false; " onMouseOver="self.status='';return true"> <?php if ($_SERVER['HTTP_HOST'] == '192.168.32.150') { ?> Download <?php } ?> </a></td> <td width="10%"class="indent-left">
function getInboxDate($date) { $date_date = date('Y-m-d', strtotime($date)); $date_time = date('h:i:s a', strtotime($date)); $today = date('Y-m-d'); //echo $today."==>".$date_date; if ($today == $date_date) { $retdate = $date_time; } else { $retdate = DateTime($date, 2); } return $retdate; }
protected function Footer($pdf) { // Position at 15 mm from bottom $foottext = "This was report produced on " . DateTime()->format('Y-m-d H:i:s') . " at www.juturna.ca. Disclaimer: Data provided in this\nreport is not guaranteed to be error free. Neither the TRCA, EcoSpark nor any of their contributing\npartners or funders shall be liable for any errors or omissions in the published content, or for any\nactions taken in reliance thereon."; $pdf->SetY(-15); // Set font $pdf->SetFont('helvetica', 'I', 8); // Page number $pdf->Cell(0, 10, 'Page ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M'); }
<td> <?php echo $this->_tpl_vars['poData']['vPOCode']; ?> </td> </tr> <tr> <td><?php echo $this->_tpl_vars['LBL_ORDER_DATE']; ?> </td> <td>:</td> <td> <?php echo is_array($_tmp = $this->_tpl_vars['poData']['dOrderDate']) ? $this->_run_mod_handler('DateTime', true, $_tmp, '10') : DateTime($_tmp, '10'); ?> </td> </tr> <?php if ($this->_tpl_vars['imgdt'] != 'yes') { ?> <tr> <td valign="top"><?php echo $this->_tpl_vars['LBL_ORDER_DESCRIPTION']; ?> </td> <td valign="top">:</td> <td> <?php
?> <?php echo $this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['vPoBuyerCode']; ?> </td> <td width="67" align="center"><?php echo $this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['fPOTotal']; ?> </td> <td width="48" align="center"><?php echo $this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['days']; ?> </td> <td width="74" align="center"><?php echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['dCreateDate']) ? $this->_run_mod_handler('calcLTzTime', true, $_tmp) : calcLTzTime($_tmp)) ? $this->_run_mod_handler('DateTime', true, $_tmp, '10') : DateTime($_tmp, '10'); ?> </td> <td width="87" align="center"><?php if ((is_array($_tmp = $this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['vSupplierName']) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)) == '') { ?> ---<?php } else { echo $this->_tpl_vars['activegroup'][$this->_sections['i']['index']]['vSupplierName']; } ?> </td> <?php if ($this->_tpl_vars['orgtype'] != 'Buyer') { ?> <td width="77" align="center"><?php
private function dateOK() { return date('d/m-Y H:i:s')->diff(DateTime($ll)); }
" title="<?php echo $SITE_NAME; ?> " hspace="15" border="0" /></a></td> <td width="50%" align="right"> <table width="270" border="0" style="margin-right:5px;" cellspacing="2" cellpadding="2"> <tr> <td colspan="9" height="18" align="right"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="50%" align="right" id="ClockBkgnd" class="day-date"><?php echo DateTime(time(), '5'); ?> </td> <td width="20%" align="right" id="ClockTime" class="day-date"><?php echo DateTime(time(), '6'); ?> </td> </tr> </table> </td> </tr> <tr> <td width="30"> </td> <!--<td width="24"><a href="<?php echo $helpUrl; ?> " title="Help" class="toplink">Help</a></td> <td width="17" align="center"><img src="<?php echo ADMIN_IMAGES; ?>
<td>:</td> <td><?php echo $this->_tpl_vars['invoiceData']['dAcceptedWHTax']; ?> </td> </tr> </tr> <tr> <td><?php echo $this->_tpl_vars['LBL_ACCEPTED_NET_PAYMENT_DATE']; ?> </td> <td>:</td> <td><?php if ($this->_tpl_vars['invoiceData']['dAcceptedNetPaymentDate'] != '0000-00-00') { echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['invoiceData']['dAcceptedNetPaymentDate']) ? $this->_run_mod_handler('calcLTzTime', true, $_tmp) : calcLTzTime($_tmp)) ? $this->_run_mod_handler('DateTime', true, $_tmp, 10) : DateTime($_tmp, 10); } else { ?> ---<?php } ?> </td> </tr> <?php if ($this->_tpl_vars['invoiceData']['fAcceptedAmount'] > 0) { ?> <tr> <td><?php echo $this->_tpl_vars['LBL_ACCEPTED_AMOUNT'];
echo $TotaltableSize[0]; ?> </td> <td width="25%" align="left"><?php echo $TotaltableSize[1]; ?> </td> </tr> </table> </td> <td width="9%" align="center" class="border-right"><?php echo DateTime($db_sql[$j]['Create_time']); ?> </td> <td width="9%" align="center" class="border-right"><?php echo DateTime($db_sql[$j]['Update_time']); ?> </td> </tr> <?php } ?> </table> </td> </tr> </table> </form> <script type="text/javascript"> function OptmizeTable() { document.frmbackup.type.value = 'optimizeAll';
?> </td><td width="250px"><?php echo is_array($_tmp = $this->_tpl_vars['pohistory'][$this->_sections['i']['index']]['dActionDate']) ? $this->_run_mod_handler('DateTime', true, $_tmp, '7') : DateTime($_tmp, '7'); ?> </td></tr> <?php } elseif ($this->_tpl_vars['pohistory'][$this->_sections['i']['index']]['eType'] == 'Rejected' && $this->_tpl_vars['pohistory'][$this->_sections['i']['index']]['vMailSubject_en'] == 'Purchase Order Status Changed') { ?> <tr><td width="100px"><?php echo $this->_tpl_vars['LBL_REJECTED']; ?> </td><td width="190px"><?php echo $this->_tpl_vars['pohistory'][$this->_sections['i']['index']]['createdby']; ?> </td><td width="250px"><?php echo is_array($_tmp = $this->_tpl_vars['pohistory'][$this->_sections['i']['index']]['dActionDate']) ? $this->_run_mod_handler('DateTime', true, $_tmp, '7') : DateTime($_tmp, '7'); ?> </td></tr> <?php } ?> <?php } } else { ?> <tr><td align="center" colspan="3"><?php echo $this->_tpl_vars['LBL_NO_REC_AVAILABLE']; ?> </td></tr> <?php }
echo "<a href='http://{$titler['13']}/search-tag.php?tag={$tag6}' style='color:#000000'>{$rpost['16']}</a>, "; } ?> </font></td> </tr> <tr> <td><table width="750" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="375" align="left"> <span class='st_facebook_hcount' displayText='Facebook'></span> <span class='st_twitter_hcount' displayText='Tweet'></span> <span class='st_googleplus_hcount' displayText='Google +'></span> </td> <td width="375" align="right"><font size="2"><strong>เขียนเมื่อ : </strong> <?php $postDate = DateTime($rpost[7]); echo $postDate; ?> <strong>เข้าชม :</strong> <?php echo $rpost[8]; ?> <strong>ครั้ง</strong> <?php if (isset($_SESSION[admin_login])) { ?> <a href="http://<?php echo $titler[13]; ?> /admin/del-data-category.php?id=<?php