Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14346

A new row with a link at the left side of the table

$
0
0
PHP Code:
MODEL:
 
$database $this->verversBelbestand();
 
       if($database == null){
 
           $database $database;
 
       } else {

 
      //Defineer hier de database
 
       $config['hostname'] = 'secret';
 
       $config['username'] = 'secret';
 
       $config['password'] = 'secret';
 
       $config['database'] = $database;
 
       $config['dbdriver'] = 'sqlsrv';
 
       $config['dbprefix'] = '';
 
       $config['pconnect'] = FALSE;
 
       $config['db_debug'] = TRUE;
 
       $config['cache_on'] = FALSE;
 
       $config['cachedir'] = '';
 
       $config['char_set'] = 'utf8';
 
       $config['dbcollat'] = 'utf8_general_ci';

 
       $this->customDb $this->load->database($configtrue);

 
       $this->load->library('table');

 
       $campagne '';
 
       $datum date("Y/m/d");
 
       $bmnrlic $this->getBmnrLicentie();

 
       $this->table->set_heading('Campagne ''Aantal agenten''Nog benaderbaar''Terugbellers''Nog na te kijken''BMNR uitgesloten''Geparkeerd''Maxbeldatum');

 
       $objquery $this->customDb->query("Aantallen_datum_intranet '".$campagne."','".$datum."','".$bmnrlic."'");

 
       $template = array(
 
       'table_open'            => '<table border="1" cellpadding="4" cellspacing="0">',

 
       'thead_open'            => '<thead>',
 
       'thead_close'           => '</thead>',

 
       'heading_row_start'     => '<tr>',
 
       'heading_row_end'       => '</tr>',
 
       'heading_cell_start'    => '<th>',
 
       'heading_cell_end'      => '</th>',

 
       'tbody_open'            => '<tbody>',
 
       'tbody_close'           => '</tbody>',
 
      
        
'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>'
 
           );

 
       $this->table->set_template($template);  
        return $this
->table->generate($objquery); 


VIEW:

Code:
<button onclick="myFunction()" class="btn"><span style="color: green;">Ververs</span></button><br><hr>
<form method="post" accept-charset="utf-8">
<button class="btn dropdown scrollable-menu" type="button" id="" data-toggle="dropdown"  aria-expanded="true">
Terugbel Afpsraken
<span class="caret"></span>
</button>

<br>
<select name="klanten" class="dropdown-menu" onchange="this.form.submit()"> 
<?php foreach($klanten as $row){ ?>
<option value="<?php echo $row->klantnaam;?>"> 
<?php echo $row->klantnaam; ?></option> 
<?php } ?>
</select>
</form>

</div>

<p> <?php echo $terugbel; ?></p>
</div></div>
  
</div>



Well..the title already says it. I have a generated table right now.
But I want an emptry row at the left side of the table with a link in it.
But I have seriously no idea how I should do it..
Anyone who can help me please? Thanks in advance.

Viewing all articles
Browse latest Browse all 14346

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>