Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /***************STARTING INCORPORATION FORMS**************************/
- $sect = $rtf->addSection();
- $parFormat = new PHPRtfLite_ParFormat(PHPRtfLite_ParFormat::TEXT_ALIGN_CENTER);
- $sect->writeText('<b><u>PRIVATE LIMITED COMPANY INCORPORATION<br>The Companies Act (Chapter 50)<br></u></b>', $font, $parFormat);
- $sect->writeText('<br>', $font);
- $font = new PHPRtfLite_Font(8);
- $parFormat = new PHPRtfLite_ParFormat(PHPRtfLite_ParFormat::TEXT_ALIGN_RIGHT);
- $sect->writeText('<i>For the purpose of E-filing</i><br>', $font, $parFormat);
- $font = new PHPRtfLite_Font(10);
- $parFormat = new PHPRtfLite_ParFormat(PHPRtfLite_ParFormat::TEXT_ALIGN_CENTER);
- $table = $sect->addTable(PHPRtfLite_Table::ALIGN_CENTER);
- $table->addRow(1);
- $table->addRow(1);
- $table->addRow(1);
- $table->addRow(1);
- $table->addRow(1);
- $table->addRow(1);
- $table->addRow(1);
- $table->addColumnsList(array(8,9.5));
- //Merge the first row
- $table->mergeCellRange(1, 1, 1, 2);
- // Table border formating
- $border = new PHPRtfLite_Border(
- $rtf,
- new PHPRtfLite_Border_Format(1, '#000000'),
- new PHPRtfLite_Border_Format(1, '#000000'),
- new PHPRtfLite_Border_Format(1, '#000000'),
- new PHPRtfLite_Border_Format(1, '#000000')
- );
- $table->setBorderForCellRange($border, 1, 1, 7, 2);
- // Write data to the table
- $table->writeToCell(1, 1, '<br>Office Details:', $font);
- $table->writeToCell(2, 1, '<br>Name of Company:', $font);
- $table->writeToCell(2, 2, '<br>'.$this_company['Company']['name'], $font);
- $table->writeToCell(3, 1, '<br>Company Limited by:', $font);
- $table->writeToCell(3, 2, '<br>'.$this_company['CompanyType']['name'], $font);
- $table->writeToCell(4, 1, '<br>Notice of Situation of Registered Office:', $font);
- $table->writeToCell(4, 2, '<br>', $font);
- $table->writeToCell(5, 1, '<br>Notice of Situation of Office Hours at Registration:', $font);
- $table->writeToCell(5, 2, '<br>Mondays to Fridays: 9:00am to 5:00pm', $font);
- $table->writeToCell(6, 1, '<br>Address where Register of Members kept if other than the Registered Office:', $font);
- $table->writeToCell(6, 2, '<br>', $font);
- $table->writeToCell(7, 1, '<br>Principal Activities of the Company:', $font);
- $table->writeToCell(7, 2, '<br>'.$this_company['Company']['principal_activity_1'].'<br>'.$this_company['Company']['principal_activity_2'], $font);
- $parFormat = new PHPRtfLite_ParFormat(PHPRtfLite_ParFormat::TEXT_ALIGN_CENTER);
- $sect->writeText("<br><b>SUMMARY OF SHARE CAPITAL AND SHARES</b><br>", $font, $parFormat);
- $parFormat = new PHPRtfLite_ParFormat(PHPRtfLite_ParFormat::TEXT_ALIGN_LEFT);
- $table_2 = $sect->addTable(PHPRtfLite_Table::ALIGN_CENTER);
- $table_2->addRow(0.5);
- $table_2->addRow(0.5);
- $table_2->addRow(0.5);
- $table_2->addRow(0.5);
- $table_2->addRow(0.5);
- $table_2->addColumnsList(array(8.5,5,4));
- //Merge the first row
- $table_2->mergeCellRange(1, 2, 1, 3);
- $table_2->setBorderForCellRange($border, 1, 1, 5, 3);
- $table_2->writeToCell(1, 1, '<br>Currency :', $font);
- $table_2->writeToCell(1, 2, '<b>Singapore Dollars</b>', $font);
- $table_2->writeToCell(2, 1, '<b>Class of Shares:</b>', $font);
- $table_2->writeToCell(2, 2, 'Ordinary', $font);
- $table_2->writeToCell(2, 3, 'Preference', $font);
- $table_2->writeToCell(3, 1, '<b>Number of Shares:</b>', $font);
- $table_2->writeToCell(3, 2, $this_company['Company']['ordinary_shares'], $font);
- $table_2->writeToCell(3, 3, $this_company['Company']['preference_shares'], $font);
- // Merge columns 2 and 3 for the below
- $table_2->mergeCellRange(4, 2, 4, 3);
- $table_2->mergeCellRange(5, 2, 5, 3);
- $table_2->writeToCell(4, 1, '<b>Issued Share Capital:</b>', $font);
- $table_2->writeToCell(4, 2, $this_company['Company']['issued_capital'], $font);
- $table_2->writeToCell(5, 1, '<b>Paid-up Share Capital:</b>', $font);
- $table_2->writeToCell(5, 2, $this_company['Company']['paid_up_capital'], $font);
- $parFormat = new PHPRtfLite_ParFormat(PHPRtfLite_ParFormat::TEXT_ALIGN_CENTER);
- $sect->writeText("<br><b>PARTICULARS OF DIRECTORS, MANAGERS, SECRETARIES, AUDITORS,<br>SHAREHOLDERS AS AT THE DATE OF INCORPORATION</b><br>", $font, $parFormat);
- $parFormat = new PHPRtfLite_ParFormat(PHPRtfLite_ParFormat::TEXT_ALIGN_LEFT);
- /************Directors table**************/
- $table_3 = $sect->addTable(PHPRtfLite_Table::ALIGN_CENTER);
- $table_3->addRow(0.5);
- $table_3->addRow(0.5);
- $table_3->addColumnsList(array(1.5,6.5,4,5.5));
- $table_3->mergeCellRange(1,1,1,4);
- $table_3->writeToCell(1,1, "<b>Directors:</b>", $font);
- $table_3->writeToCell(2,1, "<b>S/No.</b>", $font);
- $table_3->writeToCell(2,2, "<b>Name, Address</b>", $font);
- $table_3->writeToCell(2,3, "<b>Id No.</b>", $font);
- $table_3->writeToCell(2,4, "<b>Nationality</b>", $font);
- // Fill in all the directors
- $directors_ids = array();
- foreach($this_company['Director'] as $director){
- $directors_ids[] = $director['person_id'];
- }
- $this->Director->Person->recursive = 0;
- $directors = $this->Director->Person->find('all', array(
- 'conditions' => array(
- 'OR' => array(
- 'Person.id' => $directors_ids
- )
- ),
- 'contain' => array(
- 'User' => array(
- 'username'
- )
- )
- ));
- $i = 1;
- $start_row = 3;
- foreach($directors as $director){
- $table_3->addRow(0.5);
- $table_3->writeToCell($start_row,1, $i, $font);
- $table_3->writeToCell($start_row,2, $director['Person']['first_name'].' '.$director['Person']['last_name'].', <br>'.$director['Person']['address_field_1'].'<br>'.$this->countryName($director['Person']['address_country']).'-'.$director['Person']['address_postal_code'], $font);
- $table_3->writeToCell($start_row,3, $director['Person']['nric'], $font);
- $table_3->writeToCell($start_row,4, $this->countryName($director['Person']['nationality']), $font);
- $i++;
- $start_row++;
- }
- $table_3->setBorderForCellRange($border, 1, 1, $i+1, 4);
- $sect->insertPageBreak();
- /************Secretaries table**************/
- $table_4 = $sect->addTable(PHPRtfLite_Table::ALIGN_CENTER);
- $table_4->addRow(0.5);
- $table_4->addRow(0.5);
- $table_4->addColumnsList(array(1.5,6.5,4,5.5));
- $table_4->mergeCellRange(1,1,1,4);
- $table_4->writeToCell(1,1, "<b>Secretary:</b>");
- $table_4->writeToCell(2,1, "<b>S/No.</b>");
- $table_4->writeToCell(2,2, "<b>Name, Address</b>");
- $table_4->writeToCell(2,3, "<b>Id No.</b>");
- $table_4->writeToCell(2,4, "<b>Nationality</b>");
- // Fill in all the Secretaries
- $secretaries_ids = array();
- foreach($this_company['Secretary'] as $secretary){
- $secretaries_ids[] = $secretary['person_id'];
- }
- $this->Secretary->Person->recursive = 0;
- $secretaries = $this->Secretary->Person->find('all', array(
- 'conditions' => array(
- 'OR' => array(
- 'Person.id' => $secretaries_ids
- )
- ),
- 'contain' => array(
- 'User' => array(
- 'username'
- )
- )
- ));
- // Print the table.
- $i = 1;
- $start_row = 3;
- foreach($secretaries as $secretary){
- $table_4->addRow(0.5);
- $table_4->writeToCell($start_row,1, $i, $font);
- $table_4->writeToCell($start_row,2, $secretary['Person']['first_name'].' '.$secretary['Person']['last_name'].', <br>'.$secretary['Person']['address_field_1'].'<br>'.$this->countryName($secretary['Person']['address_country']).'-'.$secretary['Person']['address_postal_code'], $font);
- $table_4->writeToCell($start_row,3, $secretary['Person']['nric'], $font);
- $table_4->writeToCell($start_row,4, $this->countryName($secretary['Person']['nationality']), $font);
- $i++;
- $start_row++;
- }
- $table_4->setBorderForCellRange($border, 1, 1, $i+1, 4);
- $sect->writeText("<br><br>");
- /************Shareholders table**************/
- $table_5 = $sect->addTable(PHPRtfLite_Table::ALIGN_CENTER);
- $table_5->addRow(0.5);
- $table_5->addRow(0.5);
- $table_5->addColumnsList(array(1.5,4,3,3,3,3));
- $table_5->mergeCellRange(1,1,1,6);
- $table_5->writeToCell(1,1, "<b>Share Holder (s):</b>", $font);
- $table_5->writeToCell(2,1, "<b>S/No.</b>", $font);
- $table_5->writeToCell(2,2, "<b>Name, Address</b>", $font);
- $table_5->writeToCell(2,3, "<b>Id No.</b>", $font);
- $table_5->writeToCell(2,4, "<b>Nationality</b>", $font);
- $table_5->writeToCell(2,5, "<b>Ordinary Shares Held</b>", $font);
- $table_5->writeToCell(2,6, "<b>Preference Shares Held</b>", $font);
- // Fill in all the Shareholders
- $shareholder_person_ids = array();
- $ordinary_shares_per_person = array();
- $preference_shares_per_person = array();
- $share_certificate_per_person = array();
- $amount_paid_per_person = array();
- $shareholder_company_ids = array();
- $ordinary_shares_per_company = array();
- $preference_shares_per_company = array();
- $share_certificate_per_company = array();
- $amount_paid_per_company = array();
- foreach($this_company['Share'] as $shareholder){
- if(!empty($shareholder['shareholder_person_id'])){
- $shareholder_person_ids[] = $shareholder['shareholder_person_id'];
- $ordinary_shares_per_person[$shareholder['shareholder_person_id']] = $shareholder['number_of_ordinary_shares_alloted_for'];
- $preference_shares_per_person[$shareholder['shareholder_person_id']] = $shareholder['number_of_preference_shares_alloted_for'];
- $share_certificate_per_person[$shareholder['shareholder_person_id']] = $shareholder['certificate_number'];
- $amount_paid_per_person[$shareholder['shareholder_person_id']] = $shareholder['amount_paid_in_cash_for_ordinary_share'] + $shareholder['amount_paid_in_cash_for_preference_share'];
- }
- if(!empty($shareholder['shareholder_company_id'])){
- $shareholder_company_ids[] = $shareholder['shareholder_company_id'];
- $ordinary_shares_per_company[$shareholder['shareholder_company_id']] = $shareholder['number_of_ordinary_shares_alloted_for'];
- $preference_shares_per_company[$shareholder['shareholder_company_id']] = $shareholder['number_of_preference_shares_alloted_for'];
- $share_certificate_per_company[$shareholder['shareholder_company_id']] = $shareholder['certificate_number'];
- $amount_paid_per_company[$shareholder['shareholder_company_id']] = $shareholder['amount_paid_in_cash_for_ordinary_share'] + $shareholder['amount_paid_in_cash_for_preference_share'];
- }
- }
- $this->Share->Person->recursive = 0;
- $this->Share->Company->recursive = 0;
- $shareholder_people = $this->Share->Person->find('all', array(
- 'conditions' => array(
- 'OR' => array(
- 'Person.id' => $shareholder_person_ids
- )
- ),
- 'contain' => array(
- 'User' => array(
- 'username'
- )
- )
- ));
- if(!empty($shareholder_company_ids)){
- $shareholder_companies = $this->Share->Company->find('all', array(
- 'conditions' => array(
- 'OR' => array(
- 'Company.id' => $shareholder_company_ids
- )
- ),
- 'contain' => array(
- 'User' => array(
- 'username'
- )
- )
- ));
- }
- // Print the table.
- $i = 1;
- $start_row = 3;
- if(isset($shareholder_people)){
- foreach($shareholder_people as $shareholder){
- $table_5->addRow(0.5);
- $table_5->writeToCell($start_row,1, $i, $font);
- $table_5->writeToCell($start_row,2, $shareholder['Person']['first_name'].' '.$shareholder['Person']['last_name'].', <br>'.$shareholder['Person']['address_field_1'].'<br>'.$this->countryName($shareholder['Person']['address_country']).'-'.$shareholder['Person']['address_postal_code'], $font);
- $table_5->writeToCell($start_row,3, $shareholder['Person']['nric'], $font);
- $table_5->writeToCell($start_row,4, $this->countryName($shareholder['Person']['nationality']), $font);
- $table_5->writeToCell($start_row,5, $ordinary_shares_per_person[$shareholder['Person']['id']], $font);
- $table_5->writeToCell($start_row,6, $preference_shares_per_person[$shareholder['Person']['id']], $font);
- $i++;
- $start_row++;
- }
- }
- if(isset($shareholder_companies)){
- foreach($shareholder_companies as $shareholder){
- $table_5->addRow(0.5);
- $table_5->writeToCell($start_row,1, $i, $font);
- $table_5->writeToCell($start_row,2, $shareholder['Company']['name'].', <br>'.$shareholder['Company']['office_address_field_1'].'<br>'.$this->countryName($shareholder['Company']['office_address_country']).'-'.$shareholder['Company']['office_address_postal_code'], $font);
- $table_5->writeToCell($start_row,3, 'Reg. No: '.$shareholder['Company']['number'], $font);
- $table_5->writeToCell($start_row,4, 'N/A', $font);
- $table_5->writeToCell($start_row,5, $ordinary_shares_per_company[$shareholder['Company']['id']], $font);
- $table_5->writeToCell($start_row,6, $preference_shares_per_company[$shareholder['Company']['id']], $font);
- $i++;
- $start_row++;
- }
- }
- $table_5->setBorderForCellRange($border, 1, 1, $i+1, 6);
- $sect->writeText('<br>');
- // Certification:
- $table_6 = $sect->addTable(PHPRtfLite_Table::ALIGN_CENTER);
- $table_6->addRow(0.5);
- $table_6->addRow(0.5);
- $table_6->addColumnsList(array(17.5));
- $table_6->writeToCell(1,1, '<b><u>Certification</u></b>', $font);
- $table_6->writeToCell(2,1, 'I, the undermentioned officer of the abovementioned company, hereby certify that the particulars of the above company for the purpose of incorporation are true and accurate at registration:<br><br>', $font);
- $table_6->writeToCell(2,1, 'Signature: ______________________<br><br>', $font);
- $table_6->writeToCell(2,1, 'Name of Director: <u>'.$director_1['Person']['first_name'].' '.$director_1['Person']['last_name'].'</u><tab>Date:', $font);
- $table_6->setBorderForCellRange($border, 1, 1, 2, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement