Changeset 901d2de
- Timestamp:
- Apr 14, 2011, 3:40:30 PM (12 years ago)
- Branches:
- master
- Children:
- fb26fde
- Parents:
- f2000c1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
web/doc_otchet.php
rf2000c1 r901d2de 873 873 $agent_id=rcv('agent_id'); 874 874 875 876 875 if($firm_id) 877 876 { … … 912 911 913 912 $pdf->Ln(8); 914 913 $y=$pdf->GetY(); 914 $base_x=$pdf->GetX(); 915 915 $pdf->SetLineWidth(0.5); 916 $t_width=array(1 5,50,15,15,15,50,15,0);916 $t_width=array(17,44,17,17,17,44,17,0); 917 917 $t_text=array('Дата', 'Операция', 'Дебет', 'Кредит', 'Дата', 'Операция', 'Дебет', 'Кредит'); 918 $str=iconv('UTF-8', 'windows-1251', "По данным {$firm_vars['firm_name']}"); 919 $pdf->Cell($t_width[0]+$t_width[1]+$t_width[2]+$t_width[3],5,$str,1,0,'L',0); 920 $str=iconv('UTF-8', 'windows-1251', "По данным {$agent['fullname']}"); 921 $pdf->Cell(0,5,$str,1,0,'L',0); 918 919 $h_width=$t_width[0]+$t_width[1]+$t_width[2]+$t_width[3]; 920 $str1=iconv('UTF-8', 'windows-1251', "По данным {$firm_vars['firm_name']}"); 921 $str2=iconv('UTF-8', 'windows-1251', "По данным {$agent['fullname']}"); 922 923 $pdf->MultiCell($h_width,5,$str1,0,'L',0); 924 $max_h=$pdf->GetY()-$y; 925 $pdf->SetY($y); 926 $pdf->SetX($base_x+$h_width); 927 $pdf->MultiCell(0,5,$str2,0,'L',0); 928 if( ($pdf->GetY()-$y) > $max_h) $max_h=$pdf->GetY()-$y; 929 //$pdf->Cell(0,5,$str2,1,0,'L',0); 930 $pdf->SetY($y); 931 $pdf->SetX($base_x); 932 $pdf->Cell($h_width,$max_h,'',1,0,'L',0); 933 $pdf->Cell(0,$max_h,'',1,0,'L',0); 922 934 $pdf->Ln(); 923 935 foreach($t_width as $i => $w) … … 963 975 $str=iconv('UTF-8', 'windows-1251', "Сальдо на начало периода"); 964 976 $pdf->Cell($t_width[0]+$t_width[1],4,$str,1,0,'L',0); 965 $pdf->Cell($t_width[2],4,$ras,1,0,' L',0);966 $pdf->Cell($t_width[3],4,$pr,1,0,' L',0);977 $pdf->Cell($t_width[2],4,$ras,1,0,'R',0); 978 $pdf->Cell($t_width[3],4,$pr,1,0,'R',0); 967 979 $pdf->Cell($t_width[4]+$t_width[5],4,'',1,0,'L',0); 968 980 $pdf->Cell($t_width[6],4,'',1,0,'L',0); … … 1015 1027 $pdf->Cell($t_width[0],4,$dt,1,0,'L',0); 1016 1028 $pdf->Cell($t_width[1],4,$str,1,0,'L',0); 1017 $pdf->Cell($t_width[2],4,$deb,1,0,' L',0);1018 $pdf->Cell($t_width[3],4,$kr,1,0,' L',0);1029 $pdf->Cell($t_width[2],4,$deb,1,0,'R',0); 1030 $pdf->Cell($t_width[3],4,$kr,1,0,'R',0); 1019 1031 $pdf->Cell($t_width[4],4,'',1,0,'L',0); 1020 1032 $pdf->Cell($t_width[5],4,'',1,0,'L',0); … … 1034 1046 $str=iconv('UTF-8', 'windows-1251', "Обороты за период"); 1035 1047 $pdf->Cell($t_width[0]+$t_width[1],4,$str,1,0,'L',0); 1036 $pdf->Cell($t_width[2],4,$ras,1,0,' L',0);1037 $pdf->Cell($t_width[3],4,$pr,1,0,' L',0);1048 $pdf->Cell($t_width[2],4,$ras,1,0,'R',0); 1049 $pdf->Cell($t_width[3],4,$pr,1,0,'R',0); 1038 1050 $pdf->Cell($t_width[4]+$t_width[5],4,'',1,0,'L',0); 1039 1051 $pdf->Cell($t_width[6],4,'',1,0,'L',0);
Note: See TracChangeset
for help on using the changeset viewer.