Guest User

Untitled

a guest
Nov 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. $this->load->library('table');
  2. $this->table->set_caption($campagne);
  3. $this->table->set_heading('Campagne','Datum','Eindecode', 'Totaal', '09:00', '09:30', '10:00', '10:30', '11:00', '11:30', '12:00', '12:30', '13:00', '13:30', '12:00', '12:30', '13:00', '13:30', '14:00', '14:30', '15:00', '15:30', '16:00', '16:30', '17:00', '17:30', '18:00', '18:30', '19:00', '19:30');
  4. $template = array(
  5. 'table_open' => '<table border="1" cellpadding="4" cellspacing="0">',
  6.  
  7. 'thead_open' => '<thead>',
  8. 'thead_close' => '</thead>',
  9.  
  10. 'heading_row_start' => '<tr>',
  11. 'heading_row_end' => '</tr>',
  12. 'heading_cell_start' => '<th>',
  13. 'heading_cell_end' => '</th>',
  14.  
  15. 'tbody_open' => '<tbody>',
  16. 'tbody_close' => '</tbody>',
  17.  
  18. 'row_start' => '<tr>',
  19. 'row_end' => '</tr>',
  20. 'cell_start' => '<td>',
  21. 'cell_end' => '</td>',
  22.  
  23. 'row_alt_start' => '<tr>',
  24. 'row_alt_end' => '</tr>',
  25. 'cell_alt_start' => '<td>',
  26. 'cell_alt_end' => '</td>',
  27.  
  28. 'table_close' => '</table>'
  29. );
  30.  
  31. $this->table->set_template($template);
  32. return $this->table->generate($query1);
Add Comment
Please, Sign In to add comment