Custodian Paperwork – This form is required by your IRA Custodian'; } if($la_data['registration_type']=='Trust') { $rt ='
  • Trust Paperwork - Provide Trust Articles of Incorporation
  • '; } if($la_data['registration_type']=='Estate') { $rt ='
  • Estate - Provide Appointment of Personal Representative
  • '; } if($la_data['registration_type']=='LLC') { $rt ='
  • LLC Paperwork - Provide Articles of Organization & Operation Agreement
  • '; } if($la_data['registration_type']=='Corporation') { $rt ='
  • Corporate Paperwork - Provide Corporate Resolution & Articles of Incorporation
  • '; } if($la_data['registration_type']=='Partnership') { $rt ='
  • Partnership Paperwork - Provide Partnership Agreement
  • '; } $drip=''; if($la_data['drip']=='1') { $drip ='
  • Change of Distribution Election Form (This will cancel your participation in the Dividend Re-investment Program(DRIP))
  • '; } //define('CID', $cid); //define('READ_ONLY_SESSION',true); require_once($_SERVER['DOCUMENT_ROOT'].'/modules/Libs/TCPDF/tcpdf4/tcpdf.php'); require_once($_SERVER['DOCUMENT_ROOT'].'/include.php'); require_once($_SERVER['DOCUMENT_ROOT'].'/modules/Utils/Attachment/AttachmentCommon_0.php'); //require_once(dirname(__FILE__)."/modules/Libs/TCPDF/tcpdf4/tcpdf.php"); //require_once(dirname(__FILE__).'/qrcode.php'); //require_once('crm/modules/Libs/TCPDF/tcpdf4/tcpdf.php'); //define('TCPDF_DIR', 'modules/Libs/TCPDF/tcpdf4/'); //require_once (TCPDF_DIR.'tcpdf.php'); $l = Array(); // PAGE META DESCRIPTORS -------------------------------------- $l['a_meta_charset'] = 'UTF-8'; $l['a_meta_dir'] = 'ltr'; $l['a_meta_language'] = 'en'; // TRANSLATIONS -------------------------------------- $l['w_page'] = 'page'; $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); // set document information $pdf->SetCreator(PDF_CREATOR); $pdf->SetAuthor('JLB'); $pdf->SetTitle('Listing Agreement'); $pdf->SetSubject('Listing Agreement'); // remove default header/footer $pdf->setPrintHeader(false); $pdf->setPrintFooter(false); //$pdf->setPrintFooter(false); // set default monospaced font // //set margins $pdf->SetMargins(5, PDF_MARGIN_TOP, 5); $pdf->SetHeaderMargin(PDF_MARGIN_HEADER); $pdf->SetFooterMargin(0); //set auto page breaks $pdf->SetAutoPageBreak(TRUE, 0); //set image scale factor $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); //set some language-dependent strings $pdf->setLanguageArray($l); // --------------------------------------------------------- $image_file = '/images/ctt.png'; $cb_image = '/cimages/checkbox.png'; $sig = '/images/gpsig.jpg'; // set font $pdf->startPageGroup(); // add a page $pdf->AddPage(); // ----------------------------------------------------------------------------- // set font $pdf->ln(100); $pdf->SetFont('helvetica', '', 10); $txt="Seller
    ". $la_data['registration']."
    " .$la_data['contact']."
    " .$la_data['contact_address']."
    " .$la_data['contact_city']."
    " .$la_data['contact_phone']."
    " .$la_data['contact_email']."

    " ."Rep
    " .$la_data['rep']."
    " .$la_data['company_name']."
    " .$la_data['rep_address']."
    " .$la_data['rep_city']."
    " .$la_data['rep_phone']."
    " .$la_data['rep_email']."

    " ."Custodian
    " .$la_data['custodian']."
    " .$la_data['custodian_address']."
    " .$la_data['custodian_city']."
    " .$la_data['custodian_phone']."
    " .$la_data['custodian_email']."

    " ."Transfer Agent
    " .$la_data['transfer_agent']."
    " .$la_data['transfer_agent_address']."
    " .$la_data['transfer_agent_city']."
    " .$la_data['transfer_agent_phone']."
    " .$la_data['transfer_agent_email']; $pdf->MultiCell(90, 30, $txt, 0, 'L', 0, 0, '', '', true,0,true); $pdf->SetFont('helvetica', 'B', 10); $txt="Details
    ". "Sell Order Date:
    " ."Product:
    " ."Shares:
    " ."Reserve:
    " ."Commission Rate:
    " ."Commission:
    " ."Transfer Fee:
    " ."Escrow Fee:
    " ."Net:
    " ."Net/Share:

















    "; $pdf->MultiCell(35, 60, $txt, 0, 'L', 0, 0, '', '', true,0,true); $pdf->SetFont('helvetica', '', 10); $txt="
    ". $la_data['sell_order_date']."
    " .$la_data['program']."
    " .$la_data['shares']."
    " .$la_data['minimum_price']."
    " .$la_data['commission_rate']."
    " .$la_data['commission']."
    " .$la_data['escrow_fees']."
    " .$la_data['transfer_fees']."
    " .$la_data['minimum_net_proceeds']."
    " .$la_data['minimum_net_proceeds_share']."

















    "; $pdf->MultiCell(80, 60, $txt, 0, 'L', 0, 1, '', '', true,0,true); $pdf->SetFont('times', 'B', 100); $pdf->MultiCell(110, 1, $soid, 0, 'L', 0, 0, '', '', true,0,true); $pdf->SetFont('helvetica', '', 10); $txt="Milestones
    ". "Verification Sent:
    " ."Verification Received:
    " ."
    " ."Packet Sent:
    " ."Packet Received:
    "; $pdf->MultiCell(40, 1, $txt, 0, 'L', 0, 0, '', '', true,0,true); $pdf->SetFont('helvetica', '', 10); $txt="
    ". $la_data['verification_sent']."
    " .$la_data['verification_received']."
    " ."
    " .$la_data['packet_sent']."
    " .$la_data['packet_received']."



    "; $pdf->MultiCell(35, 1, $txt, 0, 'L', 0, 1, '', '', true,0,true); $pdf->SetFont('times', 'B', 16); $txt=$la_data["contact"]." - ".$la_data["program"]." - ".$la_data["shares"]." @ ".$la_data["minimum_price"]."
    "; $pdf->MultiCell(190, 1, $txt, 0, 'L', 0, 1, '', '', true,0,true); $args = array(); $args[0]='1'; $func = array(); $func[0]= 'Trading_SellOrderCommon'; $func[1]= 'search_format'; $func = serialize($func); $args = serialize($args); $group= 'trading_sellorder/'.$rid; $oryg = 'tracking_sheet.pdf'; $local = '/data/Utils_Attachment/'.$group; $name = $local; $pdf_output=$pdf->Output('tracking_sheet.pdf', 'S'); DB::Execute('INSERT INTO utils_attachment_link(local,permission,permission_by,sticky,func,args) VALUES(%s,%d,%d,%b,%s,%s)',array($group,0,1,0,$func,$args)); $id = DB::Insert_ID('utils_attachment_link','id'); DB::Execute('INSERT INTO utils_attachment_file(attach_id,original,created_by) VALUES(%d,%s,%d)',array($id,$oryg,Acl::get_user())); $fid = DB::Insert_ID('utils_attachment_file','id'); DB::Execute('INSERT INTO utils_attachment_note(attach_id,text,created_by,revision) VALUES(%d,%s,%d,0)',array($id,$oryg,Acl::get_user())); $name = $_SERVER['DOCUMENT_ROOT'].$local.'/'.$fid; @mkdir($_SERVER['DOCUMENT_ROOT'].$local,0777,true); $f = fopen($name, 'wb'); if (!$f) { $this->Error('Unable to create output file: '.$oryg); } fwrite($f,$pdf_output); fclose($f); return true; /*if($file) { @mkdir($local,0777,true); $dest_file = $local.'/'.$id.'_0'; rename("/tmp/tmp_file.txt", $dest_file); } /*if (isset($this->watchdog_category)) Utils_WatchdogCommon::new_event($this->watchdog_category,$this->watchdog_id,'N_+_'.$id);*/ //============================================================+ // END OF FILE //============================================================+