Kuisioner Penilaian Dosen

Bambang · Sep 22, 2016
saya membuat sebuah kuisioner, tapi saya baru berhasil sampai menginputkan hasil kuisioner di dalam database. bagaimana cara 10 orang menilai satu orang? mohon bantuannya para master. terimakasih

ini source code dasar yang sudah saya buat
[code=php]
<fieldset>

<form name="form2" method="post" action="">

<tr>
            	<td>id</td>
                <td><input type="text" name="id_hasil_kuisioner" required /></td>
            </tr>
            <tr>
            	<td>Nama Dosen/Instruktur</td>
                <td><input type="text" name="nama_pendidik" required /></td>
            </tr>
            
            <tr>
            	<td>Nama Matkul</td>
                <td><input type="text" name="nama_matkul" required /></td>
            </tr>


                      <table width="746" border="1" cellspacing="2" cellpadding="1" style="font-family:Georgia, 'Times New Roman', Times, serif;">
                        <tr>
                          <th width="40" scope="col">No</th>
                          <th width="734" scope="col">Aspek yang Dinilai </th>
                          <th width="150" scope="col" colspan="5">Skala Penilaian</th>
                         
                        </tr>
                        <tr style="height:70;">
                          <th scope="row">1</th>
                          <td align="justify">Dosen/Instruktur menyampaikan Silabus dan Kontrak Perkuliahan kepada mahasiswa pada awal perkuliahan</td>
                          
                            <td width="30"><p align="center">
                            <label>
                            1 <br>
                            <input type="radio" name="nil_5" value="5" onClick="isi_bil1(this)" >
                      		</label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            2 <br>
                            <input type="radio" name="nil_5" value="4" onClick="isi_bil1(this)" >
                    		</label>
                            </p></td>
                    		
                            <td width="30"><p align="center">
                            <label>
                            3<br>
                            <input type="radio" name="nil_5" value="3" onClick="isi_bil1(this)">
                    		</label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            4<br>
                            <input type="radio" name="nil_5" value="2" onClick="isi_bil1(this)">
                    		</label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            5<br>
                            <input type="radio" name="nil_5" value="1" onClick="isi_bil1(this)">
                    		</label>
                            </p></td>
                        </tr>
                        
                        <tr style="height:70;">
                          <th scope="row">2</th>
                          <td align="justify">Materi kuliah yang disampaikan Dosen/Instruktur sesuai dengan Silabus </td>
                          
                            <td width="30"><p align="center">
                            <label>
                            1 <br> 
                            <input type="radio" name="nil_4" value="5" onClick="isi_bil1(this)" >
                      		</label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            2 <br>
                            <input type="radio" name="nil_4" value="4" onClick="isi_bil1(this)" >
                            </label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            3 <br>
                            <input type="radio" name="nil_4" value="3" onClick="isi_bil1(this)" >
                            </label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            4 <br>
                            <input type="radio" name="nil_4" value="2" onClick="isi_bil1(this)" >
                            </label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            5 <br>
                            <input type="radio" name="nil_4" value="1" onClick="isi_bil1(this)" >
                    		</label>
                            </p></td>
                        </tr>
                        
                        <tr style="height:70;">
                          <th scope="row">3</th>
                          <td align="justify">Apabila Dosen/Instruktur melakukan perubahan jadwal perkuliahan telah disepakati dengan mahasiswa </td>
                          
                          	<td width="30"><p align="center">
                            <label>
                            1 <br>
                            <input type="radio" name="nil_3" value="5" onClick="isi_bil1(this)" >
                    		</label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            2 <br>
                            <input type="radio" name="nil_3" value="4" onClick="isi_bil1(this)" >
                            </label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            3 <br>
                            <input type="radio" name="nil_3" value="3" onClick="isi_bil1(this)" >
                            </label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            4 <br>
                            <input type="radio" name="nil_3" value="2" onClick="isi_bil1(this)" >
                            </label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            5 <br>
                            <input type="radio" name="nil_3" value="1" onClick="isi_bil1(this)" >
                            </label>
                            </p></td>
                        </tr>
                        
                        <tr style="height:70;">
                          <th scope="row">4</th>
                          <td align="justify">Dosen/Instruktur menyiapkan dan mengisi absensi perkuliahan setiap kali pertemuan </td>
                          	
                            <td width="30"><p align="center">
                            <label>
                            1 <br>
                            <input type="radio" name="nil_2" value="5" onClick="isi_bil1(this)" >
                    		</label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            2 <br>
                            <input type="radio" name="nil_2" value="4" onClick="isi_bil1(this)" >
                            </label>
                            </p></td>
                            <td width="30"><p align="center">
                            <label>
                            3 <br>
                            <input type="radio" name="nil_2" value="3" onClick="isi_bil1(this)" >
                            </label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            4 <br>
                            <input type="radio" name="nil_2" value="2" onClick="isi_bil1(this)" >
                            </label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            5 <br>
                            <input type="radio" name="nil_2" value="1" onClick="isi_bil1(this)" >
                    		</label>
                            </p></td>
                        </tr>
                        
                        <tr style="height:70;">
                          <th scope="row">5</th>
                          <td align="justify">Dosen/Instruktur menyiapkan dan mengisi absensi perkuliahan setiap kali pertemuan </td>
                          	
                            <td width="30"><p align="center">
                            <label>
                            1 <br>
                            <input type="radio" name="nil_1" value="5" onClick="isi_bil1(this)" >
                    		</label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            2 <br>
                            <input type="radio" name="nil_1" value="4" onClick="isi_bil1(this)" >
                            </label>
                            </p></td>
                            <td width="30"><p align="center">
                            <label>
                            3 <br>
                            <input type="radio" name="nil_1" value="3" onClick="isi_bil1(this)" >
                            </label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            4 <br>
                            <input type="radio" name="nil_1" value="2" onClick="isi_bil1(this)" >
                            </label>
                            </p></td>
                            
                            <td width="30"><p align="center">
                            <label>
                            5 <br>
                            <input type="radio" name="nil_1" value="1" onClick="isi_bil1(this)" >
                    		</label>
                            </p></td>
                        </tr>
                        
                   </table>
                            
                      
                      <input type="submit" name="SIMPAN" value="SIMPAN" />
                    </form>
                    <p>&nbsp;</p>
                    <div class="clear"></div>
                    
                    <?php
					include "../INCL/koneksi.php";
						$id_hasil_kuisioner=@$_POST['id_hasil_kuisioner'];
						$nama_pendidik=@$_POST['nama_pendidik'];
						$nama_matkul=@$_POST['nama_matkul'];
						$nil_5 = @$_POST['nil_5'];
						$nil_4 = @$_POST['nil_4'];
						$nil_3 = @$_POST['nil_3'];
						$nil_2 = @$_POST['nil_2'];
						$nil_1 = @$_POST['nil_1'];
						$total= $nil_5+$nil_4+$nil_3+$nil_2+$nil_1;
	
	$SIMPAN = @$_POST['SIMPAN'];
	
	if($SIMPAN){
		
			mysql_query("insert into tb_hasil_kuisioner
				values('$id_hasil_kuisioner','$nama_pendidik','$nama_matkul','$nil_5','$nil_4',
				'$nil_3','$nil_2', '$nil_1', '$total')") or die (mysql_error());
				?>
            <script type="text/javascript">
				alert("DATA BERHASIL DISIMPAN");
				window.location.href="?page=kuisioner&action=simpan";
			</script>
            <?php
		
	}
	?>

</fieldset>
Silahkan login untuk menjawab!
0
Loading...
iswandi · Jul 3, 2018 · 0 Suka · 0 Tidak Suka
untuk database-nya, table apa-apa saja yang ada dalam kuisioner.?