function Header() { parent::Header(); $this->setStyle('small'); $this->x = $this->left; $this->y = $this->top - $this->getLineHeight() - 0.5; $user = getvar('UserName'); $time = date('d/m/Y'); $edit = getstr('EditBy'); $date = getstr('Updated'); $input = "Nhaäp bôûi [{$edit}] ngaøy {$date}"; $print = "In bôûi [{$user}] ngaøy {$time}"; $print = $edit ? "{$input}. {$print}" : $print; $html = "\n\t<table width={$this->width}><tr>\n\t\t<td nowrap>Coâng ty TNHH Quoác Daân - Chi nhaùnh TPHCM</td>\n\t\t<td align=right nowrap>{$print}</td>\n\t</tr></table>\n\t"; $this->htmltable($html, 0); $this->hr(); $this->y = $this->top; }
function Header() { global $rootpath; parent::Header(); $this->setStyle('small'); $this->x = $this->rifht; $this->y = $this->top - $this->getLineHeight() - 0.5; $this->Image($rootpath . 'images/logo.jpg', 16.9, 6, 29); $time = date('d F Y h:m:s'); $html = "\r\n\t<table width={$this->width}><tr>\r\n\t\t<td align=left>http://chandrawira.wordpress.com </td>\r\n\t\t<td align=right> Date Print : " . $time . "</td>\t\t\r\n\t</tr></table>\r\n\t"; $this->htmltable($html, 0); $this->hr(); $this->y = $this->top; }