]>
git.agnieray.net Git - galette.git/blob - galette/includes/fields_defs/pdfmodels_fields.php
eebc52cd02218ba467a964d22988b2f24fe7cf2c
3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
6 * PDF models declarations
10 * Copyright © 2013-2014 The Galette Team
12 * This file is part of Galette (http://galette.tuxfamily.org).
14 * Galette is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
19 * Galette is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
30 * @author Johan Cwiklinski <johan@x-tnd.be>
31 * @copyright 2013-2014 The Galette Team
32 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
33 * @link http://galette.tuxfamily.org
34 * @since 0.7.5 - 2013-06-02
37 use Galette\Entity\PdfModel
;
39 $pdfmodels_fields = array (
41 'model_id' => PdfModel
:: MAIN_MODEL
,
42 'model_name' => '_T("Main")' ,
43 'model_title' => null ,
44 'model_type' => PdfModel
:: MAIN_MODEL
,
45 'model_header' => '<table>
47 <td id="pdf_assoname"><strong id="asso_name">{ASSO_NAME}</strong><br/>{ASSO_SLOGAN}</td>
48 <td id="pdf_logo">{ASSO_LOGO}</td>
51 'model_footer' => '<div id="pdf_footer">
52 _T("Association") {ASSO_NAME} - {ASSO_ADDRESS}<br/>
56 'model_styles' => 'div#pdf_title {
85 div[dir= \' rtl \' ] td#pdf_logo {
90 div[dir=rtl] td#pdf_assoname {
101 'model_parent' => null
104 'model_id' => PdfModel
:: INVOICE_MODEL
,
105 'model_name' => '_T("Invoice")' ,
106 'model_title' => '_T("Invoice") {CONTRIBUTION_YEAR}-{CONTRIBUTION_ID}' ,
107 'model_type' => PdfModel
:: INVOICE_MODEL
,
108 'model_header' => null ,
109 'model_footer' => null ,
110 'model_body' => '<table>
112 <td width="300"></td>
113 <td><strong>{NAME_ADH}</strong><br/>
115 <strong>{ZIP_ADH} {TOWN_ADH}</strong>
119 <td height="100"></td>
127 <th>_T("Amount")</th>
133 {CONTRIBUTION_LABEL} (_T("on") {CONTRIBUTION_DATE})<br/>
134 _T("from") {CONTRIBUTION_BEGIN_DATE} _T("to") {CONTRIBUTION_END_DATE}<br/>
135 {CONTRIBUTION_PAYMENT_TYPE}<br/>
136 {CONTRIBUTION_COMMENT}
138 <td>{CONTRIBUTION_AMOUNT}</td>
145 'model_styles' => null ,
146 'model_parent' => PdfModel
:: MAIN_MODEL
149 'model_id' => PdfModel
:: RECEIPT_MODEL
,
150 'model_name' => '_T("Receipt")' ,
151 'model_title' => '_T("Receipt") {CONTRIBUTION_YEAR}-{CONTRIBUTION_ID}' ,
152 'model_type' => PdfModel
:: RECEIPT_MODEL
,
153 'model_header' => null ,
154 'model_footer' => null ,
155 'model_body' => '<table>
157 <td width="300"></td>
158 <td><strong>{NAME_ADH}</strong><br/>
160 <strong>{ZIP_ADH} {TOWN_ADH}</strong>
164 <td height="100"></td>
172 <th>_T("Amount")</th>
178 {CONTRIBUTION_LABEL} (_T("on") {CONTRIBUTION_DATE})<br/>
179 _T("from") {CONTRIBUTION_BEGIN_DATE} _T("to") {CONTRIBUTION_END_DATE}<br/>
180 {CONTRIBUTION_PAYMENT_TYPE}<br/>
181 {CONTRIBUTION_COMMENT}
183 <td>{CONTRIBUTION_AMOUNT}</td>
190 'model_styles' => null ,
191 'model_parent' => PdfModel
:: MAIN_MODEL
194 'model_id' => PdfModel
:: ADHESION_FORM_MODEL
,
195 'model_name' => '_T("Adhesion form")' ,
196 'model_title' => '_T("Adhesion form")' ,
197 'model_type' => PdfModel
:: ADHESION_FORM_MODEL
,
198 'model_header' => null ,
199 'model_footer' => null ,
200 'model_body' => '<hr/>
201 <div class="infos">_T("Complete the following form and send it with your funds, in order to complete your subscription.")</div>
204 <td width="50%"></td>
205 <td width="50%">{ASSO_ADDRESS_MULTI}</td>
211 <td height="30"></td>
214 <td>_T("Required membership:")
216 <input type="radio" class="box" name="cotisation" value="none1">_T("Active member")
217 <input type="radio" class="box" name="cotisation" value="none2">_T("Benefactor member")
218 <input type="radio" class="box" name="cotisation" value="none3">_T("Donation")
219 <div class="infos">_T("The minimum contribution for each type of membership are defined on the website of the association. The amount of donations are free to be decided by the generous donor.") </div>
224 <td height="30"></td>
227 <table class="member">
229 <td class="label">_T("Politeness")</td>
230 <td class="input">{TITLE_ADH}</td>
233 <td class="label">_T("Name")</td>
234 <td class="input">{LAST_NAME_ADH}</td>
237 <td class="label">_T("First name")</td>
238 <td class="input">{FIRST_NAME_ADH}</td>
241 <td class="label">_T("Company name") *</td>
242 <td class="input">{COMPANY_ADH}</td>
245 <td class="label">_T("Address")</td>
246 <td class="input">{ADDRESS_ADH}</td>
249 <td class="label"></td>
250 <td class="input"></td>
253 <td class="label"></td>
254 <td class="input"></td>
257 <td class="label">_T("Zip Code")</td>
258 <td class="cpinput">{ZIP_ADH}</td>
259 <td class="label">_T("City")</td>
260 <td class="towninput">{TOWN_ADH}</td>
263 <td class="label">_T("Country")</td>
264 <td class="input">{COUNTRY_ADH}</td>
267 <td class="label">_T("Email address")</td>
268 <td class="input">{EMAIL_ADH}</td>
271 <td class="label">_T("Username") **</td>
272 <td class="input">{LOGIN_ADH}</td>
275 <td colspan="2" height="10"></td>
278 <td class="label">_T("Amount")</td>
279 <td class="input"></td>
282 <p>str_replace( \' %s\' , \' {ASSO_NAME} \' , \' _T("Hereby, I agree to comply to %s association statutes and its rules.") \' )</p><p>_T("At ................................................")</p><p>_T("On .......... / .......... / .......... ")</p><p>_T("Signature")</p>
283 <p class="notes">_T("* Only for compagnies")<br/>_T("** Galette identifier, if applicable")</p>' ,
284 'model_styles' => 'td.label {
290 border-bottom: 1px dotted black;
295 border-bottom: 1px dotted black;
300 border-bottom: 1px dotted black;
316 'model_parent' => PdfModel
:: MAIN_MODEL