Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IPok_Web
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IPok
IPok_Web
Commits
e5bf251b
Commit
e5bf251b
authored
Aug 01, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
printer
parent
78e5247a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Printer.php
application/controllers/Printer.php
+5
-5
No files found.
application/controllers/Printer.php
View file @
e5bf251b
...
...
@@ -204,7 +204,7 @@ class Printer extends CI_Controller {
if
(
!
empty
(
$record_data
[
'letters'
]))
{
$letter
=
json_decode
(
decrypt_data
(
$record_data
[
'letters'
]));
$html
=
$html
.
'
<table style="width:100%">
...
...
@@ -222,7 +222,7 @@ class Printer extends CI_Controller {
<td style="padding:8px;padding-left: 0px;">
<p style="margin:0px;padding-top: 10px;padding-bottom:10px;font-size: 13px;">
'
.
decrypt_data
(
$record_data
[
'letters
'
])
.
'
'
.
$letter
[
'certificate
'
])
.
'
</p>
</td>
</tr>
...
...
@@ -661,7 +661,7 @@ class Printer extends CI_Controller {
if
(
!
empty
(
$record_data
[
'letters'
]))
{
$letter
=
json_decode
(
decrypt_data
(
$record_data
[
'letters'
]));
$html
=
$html
.
'
<table style="width:100%">
...
...
@@ -679,7 +679,7 @@ class Printer extends CI_Controller {
<td style="padding:8px;padding-left: 0px;">
<p style="margin:0px;padding-top: 10px;padding-bottom:10px;font-size: 13px;">
'
.
decrypt_data
(
$record_data
[
'letters'
])
.
'
'
.
$letter
[
'certificate'
]
.
'
</p>
</td>
</tr>
...
...
@@ -707,7 +707,7 @@ class Printer extends CI_Controller {
public
function
print_page
(
$html
,
$record_id
)
{
print_r
(
$html
);
exit
();
//
print_r($html);exit();
// create new PDF document
$pdf
=
new
TCPDF
(
PDF_PAGE_ORIENTATION
,
PDF_UNIT
,
PDF_PAGE_FORMAT
,
true
,
'UTF-8'
,
false
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment