14 if (!defined(
'IN_PEEL')) {
 
   17 require_once(
$GLOBALS[
'dirroot'] . 
"/lib/class/pdf/tcpdf.php");
 
   37           global $dateAdded1, $dateAdded2;
 
   39           $this->
SetFont(
'Helvetica', 
'B', 15);
 
   57           $this->
SetFont(
'Helvetica', 
'I', 8);
 
   72           $this->
SetFont(
"Helvetica", 
"B", 10);
 
   73           foreach(explode(
"\n", $this->PickingList_title) as $this_title) {
 
   74                $this->
Cell(0, 4, $this_title, 0, 0, 
"C");
 
   78           $this->
SetFont(
"Helvetica", 
"", 8);
 
   92           if (is_numeric($statut)) {
 
   95           $sql = 
"SELECT c.*, sp.technical_code AS statut_paiement 
   97                LEFT JOIN peel_statut_paiement sp ON sp.id=c.id_statut_paiement AND " . 
get_filter_site_cond(
'statut_paiement', 
'sp') . 
" 
   99                ORDER BY c.o_timestamp";
 
  110           $y_block_margin = 13;
 
  114                $id = $commande[
'id'];
 
  117                $client = $order_infos[
'client_infos_ship'];
 
  122                $h += count(explode(
"\n", $client)) * 3;
 
  123                if (!empty($product_infos_array)) {
 
  124                     foreach ($product_infos_array as $this_ordered_product) {
 
  125                          $h += 1 + (1 + count(explode(
"\n", $this_ordered_product[
'product_technical_text']))) * 3;
 
  128                if ($y1 + $y_block_margin + 
$h > $y_max && $y1 > ($y_max - $y_top) / 2) {
 
  140                $y1 = $y1 + $y_block_margin;
 
  143                $this->
Rect($x1, $y1, 
$w, 9, 
'DF');
 
  148                $this->
SetFont(
"Helvetica", 
"B", 10);
 
  149                $this->
SetXY($x1 + 2, $y1 + 1.5);
 
  150                $this->
Cell(
$w-2, 6, 
$GLOBALS[
"STR_ORDER_NAME"].
$GLOBALS[
"STR_BEFORE_TWO_POINTS"].
": ".$commande[
'order_id'].
"       ".
$GLOBALS[
"STR_DATE"].
$GLOBALS[
"STR_BEFORE_TWO_POINTS"].
": ".$date_commande);
 
  153                $this->
SetXY($x1 + 2, $y1);
 
  155                $this->
SetFont(
"Helvetica", 
"B", 8);
 
  159                $this->
SetXY($x1 + 2, $y1);
 
  161                $this->
SetFont(
"Helvetica", 
"", 8);
 
  162                foreach(explode(
"\n", $client) as $this_line) {
 
  163                     $this->
Cell(0, 3, $this_line);
 
  165                     $this->
SetXY($x1 + 2, $y1);
 
  169                $this->
SetXY($x1 + 2, $y1);
 
  171                $this->
SetFont(
"Helvetica", 
"B", 8);
 
  172                $this->
Cell(
$w-2, 4, $GLOBALS[
'STR_LIST_PRODUCT'] . 
" :");
 
  175                $this->
SetFont(
"Helvetica", 
"", 8);
 
  176                if (!empty($product_infos_array)) {
 
  178                     foreach ($product_infos_array as $this_ordered_product) {
 
  180                          $this->
SetXY($x1 + $x_margin, $y1);
 
  181                          $produit_text = $this_ordered_product[
'product_technical_text'] . 
" - " . $GLOBALS[
'STR_QUANTITY_SHORT'] . 
" : " . $this_ordered_product[
'quantite'];
 
  182                          $this->
MultiCell(
$w-2 * $x_margin, 4, $produit_text . 
"\n", 0, 
'J', 
false, 1, $x1 + 12);
 
  184                          if (!empty($this_ordered_product[
"produit_id"])) {
 
  187                               if (!empty($main_image)) {
 
  188                                    $this->
Image($GLOBALS[
'uploaddir'] . 
'/' . $main_image, $x1 + 3, $y1, 9, 9, 
'', 
'', 
'', 
true);
 
  193                          if ($y1 + 6 > $y_max) {
 
  202                               $y1 = $y_top + $y_block_margin;
 
  206                               $this->
SetXY($x1 + $x_margin, $y1 + 1);
 
  207                               $this->
Cell(0, 4, 
'... '.$GLOBALS[
"STR_ADMIN_PICKING_GENERATED_NEW_PAGE_FOR_ORDER"].
' ' . $commande[
'order_id'] . 
' ...');
 
static strtoupper($string)
Returns string with all alphabetic characters converted to uppercase. 
 
get_product_infos_array_in_order($order_id, $devise=null, $currency_rate=null, $order_by=null, $add_total_prix_attribut=false)
get_product_infos_array_in_order() 
 
SetDrawColor($col1=0, $col2=-1, $col3=-1, $col4=-1, $ret=false, $name='')
Defines the color used for all drawing operations (lines, rectangles and cell borders). 
 
get_delivery_status_name($id)
get_delivery_status_name() 
 
Output($name='doc.pdf', $dest='I')
Send the document to a given destination: string, local file or browser. 
 
SetY($y, $resetx=true, $rtloff=false)
Moves the current abscissa back to the left margin and sets the ordinate. 
 
$k
Scale factor (number of points in user unit). 
 
$w
Current width of page in user unit. 
 
Rect($x, $y, $w, $h, $style='', $border_style=array(), $fill_color=array())
Draws a rectangle. 
 
nohtml_real_escape_string($value, $allowed_tags=null)
Protège les données pour insertion dans MySQL ET supprime les tags HTML pour protéger de toute sorte ...
 
lastPage($resetmargins=false)
Reset pointer to the last document page. 
 
if(empty($_GET['id'])) if(!empty($GLOBALS['site_parameters']['allow_multiple_product_url_with_category'])) $product_object
 
SetFillColor($col1=0, $col2=-1, $col3=-1, $col4=-1, $ret=false, $name='')
Defines the color used for all filling operations (filled rectangles and cell backgrounds). 
 
Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='', $stretch=0, $ignore_min_height=false, $calign='T', $valign='M')
Prints a cell (rectangular area) with optional borders, background color and character string...
 
get_filter_site_cond($table_technical_code, $table_alias=null, $use_strict_rights_if_in_admin=false, $specific_site_id=null, $exclude_public_items=false, $admin_force_multisite_if_allowed=false)
Retourne la condition SQL permettant de filtrer les données pour une table. 
 
query($query, $die_if_error=false, $database_object=null, $silent_if_error=false, $security_sql_filter=true)
The query() function is meant to be called anywhere you want to make a query. 
 
SetFont($family, $style='', $size=null, $fontfile='', $subset='default', $out=true)
Sets the font used to print character strings. 
 
SetTextColor($col1=0, $col2=-1, $col3=-1, $col4=-1, $ret=false, $name='')
Defines the color used for text. 
 
$h
Current height of page in user unit. 
 
FillDocument($dateAdded1, $dateAdded2, $statut)
PickingList::FillDocument() 
 
Ln($h='', $cell=false)
Performs a line break. 
 
Image($file, $x='', $y='', $w=0, $h=0, $type='', $link='', $align='', $resize=false, $dpi=300, $palign='', $ismask=false, $imgmask=false, $border=0, $fitbox=false, $hidden=false, $fitonpage=false, $alt=false, $altimgs=array())
Puts an image in the page. 
 
AddPage($orientation='', $format='', $keepmargins=false, $tocpage=false)
Adds a new page to the document. 
 
fetch_assoc($query_result)
fetch_assoc() 
 
PageNo()
Returns the current page number. 
 
AliasNbPages($s='')
This method is DEPRECATED and doesn't have any effect. 
 
GetY()
Returns the ordinate of the current position. 
 
$GLOBALS['page_columns_count']
 
getAliasNbPages()
Returns the string alias used for the total number of pages. 
 
SetXY($x, $y, $rtloff=false)
Defines the abscissa and ordinate of the current position. 
 
get_order_infos_array($order_object)
get_order_infos_array() 
 
MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0, $valign='T', $fitcell=false)
This method allows printing text with line breaks. 
 
PHP class for generating PDF documents without requiring external extensions. 
 
if(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']