[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6751] bkbooking: fixed picture path
From: |
Kjell Arne Espedal |
Subject: |
[Fmsystem-commits] [6751] bkbooking: fixed picture path |
Date: |
Wed, 12 Jan 2011 08:32:53 +0000 |
Revision: 6751
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6751
Author: kjell
Date: 2011-01-12 08:32:52 +0000 (Wed, 12 Jan 2011)
Log Message:
-----------
bkbooking: fixed picture path
Modified Paths:
--------------
trunk/booking/jasper/templates/application.jrxml
trunk/bookingfrontend/inc/class.uiapplication.inc.php
Modified: trunk/booking/jasper/templates/application.jrxml
===================================================================
--- trunk/booking/jasper/templates/application.jrxml 2011-01-11 22:28:48 UTC
(rev 6750)
+++ trunk/booking/jasper/templates/application.jrxml 2011-01-12 08:32:52 UTC
(rev 6751)
@@ -27,6 +27,7 @@
<style name="Sans_Bold_Italic" fontName="FreeSerif" fontSize="10"
isBold="true" isItalic="true" isUnderline="false" isStrikeThrough="false"/>
<parameter name="BK_APPLICATION_ID" class="java.lang.String"/>
<parameter name="BK_BUILDING_NAME" class="java.lang.String"/>
+ <parameter name="BK_PATH" class="java.lang.String"/>
<queryString>
<![CDATA[SELECT bb_application.id AS application_id,
bb_application.status AS application_status, to_char(bb_application.created,
'DD/MM/YYYY HH24:MI') AS application_created, to_char(bb_application.modified,
'DD/MM/YYYY HH24:MI') AS application_modified,bb_application.contact_name,
bb_application.contact_email,
bb_application.contact_phone,bb_application.description,
to_char(bb_application_date.from_, 'DD/MM/YYYY HH24:MI') AS from,
to_char(bb_application_date.to_, 'DD/MM/YYYY HH24:MI') AS to, bb_activity.name
AS activity_name, bb_event.cost AS price,bb_application_comment.comment AS
comment FROM bb_application, bb_application_date,bb_activity, bb_event,
bb_application_comment WHERE bb_application.id = ANY
(string_to_array($P{BK_APPLICATION_ID}, ',')::int4[]) AND bb_application.id =
bb_application_date.application_id AND bb_application.activity_id =
bb_activity.id AND bb_application.id = bb_event.application_id AND
bb_application.id = bb_application_comment.application_id LIMIT 1]]>
</queryString>
@@ -50,11 +51,11 @@
<band height="107" splitType="Stretch">
<image>
<reportElement x="0" y="11" width="102"
height="74"/>
- <imageExpression
class="java.lang.String"><![CDATA["/srv/portico/webapp/booking/jasper/templates/logo.png"]]></imageExpression>
+ <imageExpression
class="java.lang.String"><![CDATA[$P{BK_PATH} +
"/booking/jasper/templates/logo.png"]]></imageExpression>
</image>
<image>
<reportElement x="405" y="0" width="150"
height="100"/>
- <imageExpression
class="java.lang.String"><![CDATA["/srv/portico/webapp/booking/jasper/templates/aktivby.png"]]></imageExpression>
+ <imageExpression
class="java.lang.String"><![CDATA[$P{BK_PATH} +
"/booking/jasper/templates/aktivby.png"]]></imageExpression>
</image>
</band>
</title>
Modified: trunk/bookingfrontend/inc/class.uiapplication.inc.php
===================================================================
--- trunk/bookingfrontend/inc/class.uiapplication.inc.php 2011-01-11
22:28:48 UTC (rev 6750)
+++ trunk/bookingfrontend/inc/class.uiapplication.inc.php 2011-01-12
08:32:52 UTC (rev 6751)
@@ -37,12 +37,13 @@
if ($_SERVER['REQUEST_METHOD'] == 'POST' &&
$_POST['print'])
{
$output_type = 'PDF';
- $jasper_parameters =
sprintf("\"BK_BUILDING_NAME|%s;BK_APPLICATION_ID|%s\"",
+ $jasper_parameters =
sprintf("\"BK_BUILDING_NAME|%s;BK_APPLICATION_ID|%s;BK_PATH|%s\"",
$application['building_name'],
- $id);
+ $id,
+ $GLOBALS['_SERVER']['DOCUMENT_ROOT']);
// DEBUG
- //print_r($jasper_parameters);
- //exit(0);
+ // print_r($jasper_parameters);
+ // exit(0);
$jasper_wrapper =
CreateObject('phpgwapi.jasper_wrapper');
$report_source =
PHPGW_SERVER_ROOT.'/booking/jasper/templates/application.jrxml';
@@ -53,7 +54,7 @@
catch(Exception $e)
{
$errors[] = $e->getMessage();
- echo
"<pre>\nErrors:";print_r($errors);exit;
+ echo "<pre>\nError:
";print_r($errors[0]);exit;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6751] bkbooking: fixed picture path,
Kjell Arne Espedal <=