<?php // trade class $trade = new trade(); $trade->mysqli = $this->mysqli; $trade->user = $this->user; $trade->sp = $this->sp; if ($this->request['todo'] != 'pdf') { $print_list = $trade->print_form($this->request['id'], $this->request['type']); } if ($this->request['todo'] == 'pdf') { $trade->htmltopdf($this->request['id'], $this->request['type']); } elseif ($this->request['todo'] == 'convert') { $string_out = $print_list; } else { $string_out = "\r<div style=\"margin-top:5px;\"><img src=\"./img/site/print.png\" width =15px onclick=\"window.print();\"></div>\r<frame>\r" . $print_list . "\r</html>\r</frame>"; } $string_out .= " "; /* $this->mime=true; // trade class $trade= new trade ; $trade->mysqli=$this->mysqli; $trade->user=$this->user; $trade->sp=$this->sp; $print_list=$trade->do_pdf_form($this->request['id'],$this->request['type']); /* $string_out = " <div style=\"margin-top:5px;\"><img src=\"./img/site/print.png\" width =15px onclick=\"window.print();\"></div> <frame> ".$print_list."