diff options
| author | Geo Xalkis <gx23100@gmail.com> | 2023-07-31 01:53:36 +0300 |
|---|---|---|
| committer | Geo Xalkis <gx23100@gmail.com> | 2023-07-31 01:53:36 +0300 |
| commit | d5746829da07894db10b01f12219cee78f8af882 (patch) | |
| tree | efc9c7c563f845f7770fe07a70d55c3564cfbf89 /public/app/views/js/pdf-designer/application.php | |
| parent | c6b6f89e7cda2621fd3d0dfa0768d010fc41d437 (diff) | |
| download | gyraf1gov-master.tar.gz gyraf1gov-master.tar.bz2 gyraf1gov-master.zip | |
Diffstat (limited to 'public/app/views/js/pdf-designer/application.php')
| -rw-r--r-- | public/app/views/js/pdf-designer/application.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/public/app/views/js/pdf-designer/application.php b/public/app/views/js/pdf-designer/application.php index 8017fa9..53f5193 100644 --- a/public/app/views/js/pdf-designer/application.php +++ b/public/app/views/js/pdf-designer/application.php @@ -1,10 +1,16 @@ <?php /** application PDF designer * ----------------------------------------------------------------------------- + * + * main function: designer + * @param data (json) : fields'values of petition + * @param defines (json) : data properties of authoriry + * @param protocol (string) : protocol numeber (if exists; else empty string) + * */ ?> <script> -function designer(data, defines) { +function designer(data, defines, protocol = '') { // handle date const d = new Date( data.date ); const options = { @@ -71,6 +77,9 @@ function designer(data, defines) { '\n\nΣχολείο Οργανικής: ',{ style: 'bigger', text: data.belonging_school }, + '\n\nΘέση Υπηρέτησης: ',{ + style: 'bigger', text: '1ο ΓΥΜΝΑΣΙΟ ΡΑΦΗΝΑΣ' + }, // '\n\nΣχολείο Υπηρέτησης:\n\t',{ // style: 'bigger', text: data.constants.organization // }, @@ -113,7 +122,8 @@ function designer(data, defines) { ], footer: { text: [ - 'Αριθμός πρωτοκόλου: A124-2501-4568-7 / 2023-12-15', + 'Αριθμός πρωτοκόλου: ', + ((protocol == '') ? '—' : protocol), '\ndocument signature: ' + defines.ticket ], |
