[eluser]Programming Life[/eluser]
i am trying to make a template using table can anyone see my code
how i can give or set the colspan in this template
please correct this.
---------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $title; ?></title>
</head>
<body>
<?php
/* $tmpl = array ( 'table_open' => '<table border="1" width=700 height==700 cellpadding="2" cellspacing="1" class="mytable">' );
$this->table->set_template($tmpl);*/
/*
$this->table->set_heading('');
$this->table->add_row($header);
, 'contents');
$this->table->add_row($this->load->view('basic registeration system/footer'));
echo $this->table->generate();
*/ /*
$this->load->view('basic registeration system/content');
*/
$tmpl = array (
'table_open' => '<table border="1" width=750 height=750 cellpadding="4" cellspacing="0">',
'heading_row_start' => '<tr>',
'heading_row_end' => '</tr>',
'heading_cell_start' => '<th>',
'heading_cell_end' => '</th>',
'row_start' => '<tr>',
'row_end' => '</tr>',
'cell_start' => '<td>',
'cell_end' => '</td>',
'row_alt_start' => '<tr>',
'row_alt_end' => '</tr>',
'cell_alt_start' => '<td>',
'cell_alt_end' => '</td>',
'table_close' => '</table>'
);
// echo $tmpl[''];
/*
echo $tmpl['row_start';
echo $tmpl['cell_alt_start']; echo $tmpl['cell_alt_end'];
echo $tmpl['row_end'];
*/
echo $tmpl['table_open'];
echo $tmpl['row_start'];
echo $tmpl['cell_alt_start'];
echo $this->load->view('basic registeration system/header');
echo $tmpl['cell_alt_end'];
echo $tmpl['row_end'];
echo $tmpl['row_start'];
echo $tmpl['cell_alt_start'];
echo $this->load->view('basic registeration system/leftmenu');
echo $tmpl['cell_alt_end'];
echo $tmpl['cell_alt_start'];
echo "contents";
echo $tmpl['cell_alt_end'];
echo $tmpl['row_end'];
echo $tmpl['row_start'];
echo $tmpl['cell_alt_start'];
$this->load->view('basic registeration system/footer');
echo $tmpl['cell_alt_end'];
echo $tmpl['row_end'];
echo $tmpl['table_close'];
//echo $this->table->;
$this->table->set_template($tmpl);
?>