/** * Dessine l'entete du tableau avec la liste des produits * * @param unknown_type $page */ public function drawTableHeader(&$page) { //entetes de colonnes $this->y -= 15; $page->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA), 12); $page->drawText(mage::helper('purchase')->__('Qty'), 15, $this->y, 'UTF-8'); $page->drawText(mage::helper('purchase')->__('Manufacturer'), 70, $this->y, 'UTF-8'); $page->drawText(mage::helper('purchase')->__('Sku'), 180, $this->y, 'UTF-8'); $page->drawText(mage::helper('purchase')->__('Product'), 310, $this->y, 'UTF-8'); //barre grise fin entete colonnes $this->y -= 8; $page->drawLine(10, $this->y, $this->_BLOC_ENTETE_LARGEUR, $this->y); $this->y -= 15; }
/** * Dessine le pied de page * * @param unknown_type $page */ public function drawFooter(&$page) { //fond du pied de page $page->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA), 10); $page->setFillColor(new Zend_Pdf_Color_GrayScale(0.7)); $page->drawRectangle(10, $this->_BLOC_FOOTER_HAUTEUR + 15, $this->_BLOC_FOOTER_LARGEUR, 15, Zend_Pdf_Page::SHAPE_DRAW_FILL); //rajoute le texte $page->setFillColor(new Zend_Pdf_Color_GrayScale(0.2)); $this->DrawMultilineText($page, Mage::getStoreConfig('purchase/general/footer_text'), 20, $this->_BLOC_FOOTER_HAUTEUR, 10, 0, 15); }
/** * Dessine l'entete du tableau avec la liste des produits * * @param unknown_type $page */ public function drawTableHeader(&$page) { //entetes de colonnes $this->y -= 15; $page->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA), 10); $page->drawText(mage::helper('purchase')->__('SKU'), 15, $this->y, 'UTF-8'); $page->drawText(mage::helper('purchase')->__('Model #'), 80, $this->y, 'UTF-8'); $page->drawText(mage::helper('purchase')->__('Description'), 160, $this->y, 'UTF-8'); $page->drawText(mage::helper('purchase')->__('HTS code'), 300, $this->y, 'UTF-8'); $page->drawText(mage::helper('purchase')->__('Unit Price'), 440, $this->y, 'UTF-8'); $page->drawText(mage::helper('purchase')->__('Qty'), 390, $this->y, 'UTF-8'); //$page->drawText(mage::helper('purchase')->__('WEEE'), 365, $this->y, 'UTF-8'); //$page->drawText(mage::helper('purchase')->__('Tax'), 410, $this->y, 'UTF-8'); $page->drawText(mage::helper('purchase')->__('Total HT'), 510, $this->y, 'UTF-8'); //$page->drawText(mage::helper('purchase')->__('Total + Duty'), 530, $this->y, 'UTF-8'); //barre grise fin entete colonnes $this->y -= 8; $page->drawLine(10, $this->y, $this->_BLOC_ENTETE_LARGEUR, $this->y); $this->y -= 15; }