Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.7 KiB

5 years ago
  1. <?php
  2. namespace Prometeo\CommandsBundle\ManualTraits;
  3. use PhpOffice\PhpWord\Element\Footer;
  4. use PhpOffice\PhpWord\SimpleType\Jc;
  5. trait FooterTrait
  6. {
  7. public function createFooter(&$section){
  8. $footer = $section->addFooter(Footer::AUTO);
  9. $footer->addText('PROMETEO INNOVATIONS S.L. – CIF B74.197.708', $this->fonts['footer'],[ 'align' => Jc::CENTER ]);
  10. $footer->addText('c/Ada Byron 107 – Parque Científico y Tecnológico – 33203 Gijón, Asturias. España', $this->fonts['footer'],[ 'align' => Jc::CENTER ]);
  11. $footer->addText('Tel :: +34 985 09 88 86 - 689 90 05 05 - mail :: prometeo@prometeoinnova.com', $this->fonts['footer'],[ 'align' => Jc::CENTER ]);
  12. $textRun = $footer->addTextRun(array('alignment' => Jc::END));
  13. $textRun->addField('PAGE', array('format' => 'Arabic'));
  14. $textRun->addText(' de ');
  15. $textRun->addField('NUMPAGES', array('format' => 'Arabic'));
  16. $footer2=$section->addFooter(Footer::FIRST);
  17. // $footer2 = $section->addFooter(Footer::EVEN);
  18. // $footer2->addText('PROMETEO INNOVATIONS S.L. – CIF B74.197.708', $this->fonts['footer'],[ 'align' => Jc::CENTER ]);
  19. // $footer2->addText('c/Ada Byron 107 – Parque Científico y Tecnológico – 33203 Gijón, Asturias. España', $this->fonts['footer'],[ 'align' => Jc::CENTER ]);
  20. // $footer2->addText('Tel :: +34 985 09 88 86 - 689 90 05 05 - mail :: prometeo@prometeoinnova.com', $this->fonts['footer'],[ 'align' => Jc::CENTER ]);
  21. // $textRun2 = $footer2->addTextRun();
  22. // $textRun2->addField('PAGE', array('format' => 'Arabic'));
  23. // $textRun2->addText(' de ');
  24. // $textRun2->addField('NUMPAGES', array('format' => 'Arabic'));
  25. }
  26. }