daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <form method="POST" action="<?php echo base_url();?>admin/simpannilai" name="studi">
  2. <table style="border:pt solid #000000;"  cellpadding="5">
  3.     <tr>
  4.         <td></td>
  5.         <td>NIM</td>
  6.         <td>:</td>
  7.         <td><b><?php echo $nimmhs;?></b></td>
  8.     </tr>  
  9.     <?php $i = 1 ?>
  10.     <?php for($i=1;$i<=$banyak_data;$i++): ?>
  11.     <tr rowspan="4">
  12.         <td><?php echo $i?></td>
  13.         <td>Mata Kuliah</td>
  14.         <td>:</td>
  15.         <td>
  16.             <select name="data[<?php echo $i ?>][id_mk]" class="textfield-option">
  17.             <option value="" selected>-</option>
  18.             <?php
  19.             foreach($daftar_mk->result_array() as $k)
  20.             {
  21.                 echo "<option value='".$k["id"]."'>".$k["namamk"]."</option>";
  22.             }
  23.             ?>
  24.             </select>
  25.             <?php echo form_error('data[$i][id_mk]','<div class="error">','</div>');?>
  26.         </td>      
  27.     </tr>
  28.     <tr>
  29.         <td></td>
  30.         <td>Dosen</td>
  31.         <td>:</td>
  32.         <td>
  33.             <select name="data[<?php echo $i ?>][id_dosen]" class="textfield-option">
  34.             <option value="" selected>-</option>
  35.             <?php
  36.             foreach($daftar_dsn->result_array() as $k)
  37.             {
  38.                 echo "<option value='".$k["id"]."'>".$k["dosen"]."</option>";
  39.             }
  40.             ?>
  41.             </select>
  42.             <?php echo form_error('data[$i][id_dosen]','<div class="error">','</div>');?>
  43.         </td>
  44.     </tr>
  45.     <tr>
  46.         <td></td>
  47.         <td>Semester</td>
  48.         <td>:</td>
  49.         <td><input type="text" readonly="readonly" class="texfield" name="data[<?php echo $i ?>][semester]" value="<?php echo $semester;?>" size="8" />
  50.         <?php echo form_error('data[$i][semester]','<div class="error">','</div>');?></td>
  51.     </tr>
  52.     <tr>
  53.         <td></td>
  54.         <td>Tahun akademik</td>
  55.         <td>:</td>
  56.         <td><input type="text" class="texfield" readonly="readonly" value="<?php echo $kode_ta;?>" name="data[<?php echo $i ?>][kode_ta]" size="10" />
  57.         <?php echo form_error('data[$i][kode_ta]','<div class="error">','</div>');?></td>
  58.     </tr>
  59.     <tr>
  60.         <td></td>
  61.         <td>NIM</td>
  62.         <td>:</td>
  63.         <td><input type="text" readonly="readonly" class="texfield" name="data[<?php echo $i ?>][nim]" value="<?php echo $nimmhs;?>" size="30" />
  64.         <?php echo form_error('data[$i][nim]','<div class="error">','</div>');?></td>
  65.     </tr>
  66.     <?php endfor ?>
  67.     <input type="hidden" class="texfield" readonly="readonly" value="<?php echo $banyak_data;?>" name="banyak_data" size="10" />
  68.     <tr>
  69.         <td></td>
  70.         <td></td>
  71.         <td></td>
  72.         <td><input type="submit" class="button" value="Simpan Rencana Studi" onclick="javascript:validasi();"/><input type="reset" class="button" value="Hapus" /></td>
  73.     </tr>
  74. </table>
  75. </form>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top