当前位置: 首页>>代码示例>>PHP>>正文


PHP Cezpdf::roundedRectangle方法代码示例

本文整理汇总了PHP中Cezpdf::roundedRectangle方法的典型用法代码示例。如果您正苦于以下问题:PHP Cezpdf::roundedRectangle方法的具体用法?PHP Cezpdf::roundedRectangle怎么用?PHP Cezpdf::roundedRectangle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Cezpdf的用法示例。


在下文中一共展示了Cezpdf::roundedRectangle方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: define

 define('PRICING_COLUMN_SIZES', '67');
 $vilains = array("à", "á", "â", "ã", "ä", "å", "æ", "ç", "è", "é", "ê", "ë", "ì", "í", "î", "ï", "ð", "ñ", "ò", "ó", "ô", "õ", "ö", "÷", "ø", "ù", "ú", "û", "ü", "ý", "þ", "ÿ", "ß", "'", " ", "à", "á", "ã", "ä", "&Arond;", "è", "æ", "ê", "ë", "ì", "í", "Í", "î", "ï", "ò", "ó", "ô", "õ", "ö", "ø", "ù", "ú", "û", "ü", "ñ", "ç", "ý", "<", ">", "&");
 $cools = array('à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ð', 'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', '÷', 'ø', 'ù', 'ú', 'û', 'ü', 'ý', 'þ', 'ÿ', 'ß', '\'', ' ', 'à', 'á', 'ã', 'ä', 'å', 'è', 'æ', 'ê', 'ë', 'ì', 'í', 'î', 'Î', 'ï', 'ò', 'ó', 'ô', 'õ', 'ö', 'ø', 'ù', 'ú', 'û', 'ü', 'ñ', 'ç', 'ý', '<', '>', '&');
 $currencies = new currencies();
 $pdf->selectFont(BATCH_PDF_DIR . 'Helvetica.afm');
 $pdf->setFontFamily(BATCH_PDF_DIR . 'Helvetica.afm');
 // company name and details pulled from the my store address and phone number
 // in admin configuration mystore
 $y = $pdf->ezText(STORE_NAME_ADDRESS, COMPANY_HEADER_FONT_SIZE);
 $y -= 10;
 // logo image  set to right of the above .. change first number to move sideways
 $pdf->addJpegFromFile('../images/' . 'store_logo.jpg', 365, 730, 85, 80);
 // extra info boxs to be used by staff
 $pdf->setStrokeColor(0, 0, 0);
 $pdf->setLineStyle(1);
 $pdf->roundedRectangle(470, 730, 85, 85, 10, $f = 0);
 $pdf->rectangle(535, 748, 10, 10);
 $pdf->rectangle(535, 769, 10, 10);
 $pdf->rectangle(535, 790, 10, 10);
 $pdf->addText(480, 790, GENERAL_FONT_SIZE, TEXT_BANK);
 $pdf->addText(480, 769, GENERAL_FONT_SIZE, TEXT_POST);
 $pdf->addText(480, 748, GENERAL_FONT_SIZE, TEXT_SALES);
 // line between header order number and order date
 $pdf->setLineStyle(1);
 $pdf->line(LEFT_MARGIN, $y, LINE_LENGTH, $y);
 $pdf->ezSetY($y);
 $dup_y = $y;
 // order number
 $y = $pdf->ezText("<b>" . TEXT_ORDER_NUMBER . " </b>" . $orders['orders_prefix'] . $orders['orders_id'] . "\n\n", SUB_HEADING_FONT_SIZE);
 // order date
 if ($_POST['show_order_date']) {
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:Invoice.php

示例2: foreach

 $pos = $y;
 foreach ($delivery_address_array as $key => $value) {
     $pdf->addText(LEFT_MARGIN, $pos -= SMALL_LEADING, SENDER_SMALL_FONT_SIZE, $value);
 }
 $pos = $y;
 //  $address_array=explode('<br>', str_replace("\r\n", "<br>", STORE_NAME_ADDRESS));
 foreach ($store_address_array as $key => $value) {
     // echo $value.'<br>' ;
     $pdf->addText(SHIP_TO_COLUMN_START, $pos -= SMALL_LEADING, SENDER_SMALL_FONT_SIZE, $value);
 }
 $y -= 70;
 // company name and details pulled from the my store address and phone number
 // in admin configuration mystore
 $pdf->setStrokeColor(0, 0, 0);
 $pdf->setLineStyle(1);
 $pdf->roundedRectangle(28, 640, 230, 120, 10, $f = 0);
 // order number
 //$y = $pdf->ezText("" . TEXT_ORDER_NUMBER . " " . $orders['orders_id'] ."\n\n",SENDER_FONT_SIZE);
 $indent = LEFT_MARGIN + TEXT_BLOCK_SMALL_INDENT;
 $pdf->addText($indent, $y, SUB_HEADING_FONT_SIZE, "<b>" . TEXT_TO . "</b>");
 //$y = $pdf->ezText(STORE_NAME_ADDRESS,GENERAL_FONT_SIZE);
 $pos = $y;
 $indent = LEFT_MARGIN + TEXT_BLOCK_INDENT;
 foreach ($store_address_array as $key => $value) {
     $pdf->addText($indent, $pos -= LABEL_LEADING, LABEL_FONT_SIZE, "<b>" . $value . "</b>");
 }
 // logo image  set to right of the above .. change first number to move sideways
 // $pdf->addJpegFromFile(BATCH_PRINT_INC . 'templates/' . 'invoicelogo.jpg',365,730,85,85);
 $pdf->setStrokeColor(0, 0, 0);
 $pdf->setLineStyle(1);
 $pdf->roundedRectangle(300, 640, 260, 120, 10, $f = 0);
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:Integrated-Packing.php

示例3: foreach

 $pos = $y;
 foreach ($delivery_address_array as $key => $value) {
     $pdf->addText(LEFT_MARGIN, $pos -= SMALL_LEADING, SENDER_SMALL_FONT_SIZE, $value);
 }
 $pos = $y;
 //  $address_array=explode('<br>', str_replace("\r\n", "<br>", STORE_NAME_ADDRESS));
 foreach ($store_address_array as $key => $value) {
     // echo $value.'<br>' ;
     $pdf->addText(SHIP_TO_COLUMN_START, $pos -= SMALL_LEADING, SENDER_SMALL_FONT_SIZE, $value);
 }
 $y -= 55;
 // company name and details pulled from the my store address and phone number
 // in admin configuration mystore
 $pdf->setStrokeColor(0, 0, 0);
 $pdf->setLineStyle(1);
 $pdf->roundedRectangle(28, 570, 230, 120, 10, $f = 0);
 // order number
 //$y = $pdf->ezText("" . TEXT_ORDER_NUMBER . " " . $orders['orders_id'] ."\n\n",SENDER_FONT_SIZE);
 $indent = LEFT_MARGIN + TEXT_BLOCK_SMALL_INDENT;
 $pdf->addText($indent, $y, SUB_HEADING_FONT_SIZE, "<b>" . TEXT_TO . "</b>");
 //$y = $pdf->ezText(STORE_NAME_ADDRESS,GENERAL_FONT_SIZE);
 $pos = $y;
 $indent = LEFT_MARGIN + TEXT_BLOCK_INDENT;
 foreach ($store_address_array as $key => $value) {
     $pdf->addText($indent, $pos -= LABEL_LEADING, LABEL_FONT_SIZE, "<b>" . $value . "</b>");
 }
 // logo image  set to right of the above .. change first number to move sideways
 // $pdf->addJpegFromFile(BATCH_PRINT_INC . 'templates/' . 'invoicelogo.jpg',365,730,85,85);
 $pdf->setStrokeColor(0, 0, 0);
 $pdf->setLineStyle(1);
 $pdf->roundedRectangle(330, 570, 260, 120, 10, $f = 0);
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:Integrated-Packing2.php

示例4: foreach

             case 3:
                 $store_address_array[3] = $value;
                 break;
             case 4:
                 $store_address_array[4] = $value;
                 break;
             default:
                 $store_address_array[4] .= ', ';
                 $store_address_array[4] .= $value;
                 break;
         }
     }
 }
 $pdf->setStrokeColor(0, 0, 0);
 $pdf->setLineStyle(1);
 $pdf->roundedRectangle(10, 5, 170, 90, 10, $f = 0);
 $pos = $y - 2 * GENERAL_LEADING;
 //  $address_array=explode('<br>', str_replace("\r\n", "<br>", STORE_NAME_ADDRESS));
 foreach ($store_address_array as $key => $value) {
     // echo $value.'<br>' ;
     $pdf->addText(LEFT_MARGIN, $pos -= SMALL_LEADING, SENDER_SMALL_FONT_SIZE, $value);
 }
 $pdf->addText(LEFT_MARGIN, $pos -= LABEL_LINE_SPACING, ORDERIDFONTSIZE, 'Order ' . $orders['orders_id']);
 $pos = $y;
 if ($billing == true) {
     $address_array = explode('<br>', tep_address_format($order->delivery['format_id'], $order->billing, 1, '', '<br>'));
 } else {
     $address_array = explode('<br>', tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>'));
 }
 if (SHIP_FROM_COUNTRY == $address_array[count($address_array) - 1]) {
     $address_array[count($address_array) - 1] = '';
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:Labelwriter.php


注:本文中的Cezpdf::roundedRectangle方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。