Welcome Guest, Not a member yet? Register   Sign In
Inserting For each?
#4

[eluser]Dizza[/eluser]
Here is my view! Sorry for the mess, usually i clean it up after i fixed the entire function Tongue

The leerling = student!

Code:
<table id="aanwezigheid">
  &lt;?php echo form_open('aanwezigheid/update/');

$lesuur = array(
                  '1'   =>  '1',
                  '2'   =>  '2',
                  '3'   =>  '3',
                  '4'   =>  '4',
                  '5'   =>  '5',
                  '6'   =>  '6',                                
                  '7'   =>  '7',                                                  
                  '8'   =>  '8',                                                                    
                );
                
                echo form_dropdown('lesuur', $lesuur, '');
                ?&gt;
  <thead>
    <tr>
      <th>Naam</th>
      <th>Leerlingnummer</th>
      <th>Absent</th>
    </tr>
  </thead>
  <tbody>
    &lt;?php foreach ($leerling as $leerlingen) {
$options = array(
                  'Aanwezig'  =>   'Aanwezig',
                  'Geoorloofd afwezig'    => 'Geoorloofd afwezig',
                  'Ongeoorloofd afwezig'   =>  'Ongeoorloofd afwezig',
                  'Te laat' =>  'Te laat',
                );?&gt;
    
  <tr><td>&lt;?php echo form_hidden('ID', $leerlingen['ID']);
                echo $leerlingen['voornaam'];                            
                echo '&nbsp;';
       echo $leerlingen['tussenvoegsel'];  
       echo '&nbsp;';
       echo $leerlingen['achternaam']; ?&gt;</td>
      <td>&lt;?php echo $leerlingen['leerlingnummer']; ?&gt;</td>
      <td>&lt;?php echo form_dropdown('aanwezigheid', $options, ''); ?&gt;</td>
    </tr>
    &lt;?php } ?&gt;
    <tr>
  </tbody>
  &lt;?php echo form_submit('submit', 'Submit Post!'); ?&gt; &lt;?php echo form_close(); ?&gt;
</table>


Thanks!


Messages In This Thread
Inserting For each? - by El Forum - 06-11-2012, 07:15 AM
Inserting For each? - by El Forum - 06-11-2012, 10:18 AM
Inserting For each? - by El Forum - 06-11-2012, 10:35 AM
Inserting For each? - by El Forum - 06-11-2012, 10:40 AM
Inserting For each? - by El Forum - 06-11-2012, 10:49 AM
Inserting For each? - by El Forum - 06-11-2012, 10:58 AM
Inserting For each? - by El Forum - 06-11-2012, 11:03 AM
Inserting For each? - by El Forum - 06-11-2012, 11:07 AM
Inserting For each? - by El Forum - 06-11-2012, 12:08 PM
Inserting For each? - by El Forum - 06-11-2012, 12:14 PM
Inserting For each? - by El Forum - 06-11-2012, 12:42 PM
Inserting For each? - by El Forum - 06-11-2012, 01:03 PM
Inserting For each? - by El Forum - 06-11-2012, 01:24 PM
Inserting For each? - by El Forum - 06-11-2012, 01:31 PM
Inserting For each? - by El Forum - 06-11-2012, 02:06 PM
Inserting For each? - by El Forum - 06-11-2012, 02:45 PM
Inserting For each? - by El Forum - 06-11-2012, 03:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB