Browse files

PDF reporting feature shown

  • Loading branch information...
1 parent 3797477 commit d68a5d4d7f606333f4dc23ea7e26c377e7519edc @kthakore committed Mar 8, 2011
View
1 implementation/SIMS/SIMS/lib/SIMS/Controller/Meeting.pm
@@ -142,6 +142,7 @@ sub assign_advisor : Chained('base') : PartPart('assign_advisor') : Args(1) {
}
# Make a confirmation and send an email
+ $c->response->redirect( $c->uri_for('/')."meeting/".$c->stash->{meeting}->id() )
}
catch {
View
28 implementation/SIMS/SIMS/root/templates/hello_pdf.tt
@@ -1,17 +1,31 @@
- [% pdf.prFont('Helvetica-Bold') %]
- [% pdf.prFontSize(20) %]
- [% pdf.prText(50,800,'Advisory Meeting Report') %]
[% BLOCK image %]
[% img = pdf.prJpeg(sign, 200, 50) %]
- [% str = "q\n200 0 0 50 " _ x _ " " _ y _ " cm\n/" %]
+ [% imgy = y - 20 %]
+ [% str = "q\n200 0 0 50 " _ x _ " " _ imgy _ " cm\n/" %]
[% str2 = str _ img %]
[% str3 = " Do\nQ\n" %]
[% final = str2 _ str3 %]
[% pdf.prAdd(final) %]
[% END %]
- [% pdf.prFontSize(15) %]
- [% pdf.prText(50,780,'Student') %]
- [% PROCESS image sign=student_sign_jpeg,x=50, y=720 %]
+
+ [% pdf.prFont('Helvetica-Bold') %]
+ [% pdf.prFontSize(20) %]
+ [% date = meeting.datetime.mdy('/') %]
+ [% time = meeting.datetime.hms() %]
+ [% datetime = "(" _ date _ " " _ time _ " ) " %]
+ [% gy = 800 %]
+ [% pdf.prText(50,gy,'Advisorgy Meeting Report: ' _ datetime)%]
+ [% gy = gy - 20 %]
+ [% pdf.prText(50,gy,'Student: ' _ meeting.student.name) %]
+ [% gy = gy - 40 %]
+ [% PROCESS image sign=student_sign_jpeg,x=50,y=gy %]
+ [% gy = gy - 40 %]
+ [% pdf.prText(50,gy,'Meeting Description: ')%]
+ [% gy = gy - 20 %]
+ [% pdf.prText(50,gy, meeting.description )%]
+ [% gy = gy - 60 %]
+
+
[% pdf.prEnd() %]

0 comments on commit d68a5d4

Please sign in to comment.