<script type="text/javascript" src="tinymce/js/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
  tinymce.init({
  selector: 'textarea',
  height: 500,
  theme: 'modern',
  plugins: [
    'advlist autolink lists link image charmap print preview hr anchor pagebreak',
    'searchreplace wordcount visualblocks visualchars code fullscreen',
    'insertdatetime media nonbreaking save table contextmenu directionality',
    'emoticons template paste textcolor colorpicker textpattern imagetools'
  ],
  toolbar1: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
  toolbar2: 'print preview media | forecolor backcolor emoticons',
  image_advtab: true,
  templates: [
    { title: 'Test template 1', content: 'Test 1' },
    { title: 'Test template 2', content: 'Test 2' }
  ],
  content_css: [
    '//fast.fonts.net/cssapi/e6dc9b99-64fe-4292-ad98-6974f93cd2a2.css',
    '//www.tinymce.com/css/codepen.min.css'
  ]
 });
</script>
<div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            DATA KEGIATAN UKS
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            
          </ol>
        </section>

        <!-- Main content -->
        <section class="content">

          <div class="row">
              
              <!-- TABS ------------------------------------------------------------------------------------- -->
            <div class="col-md-12">
              <div class="nav-tabs-custom">
                <ul class="nav nav-tabs">
                 
                  </ul>
                  <div class="tab-pane" id="SuratMasuk">
                   <!-- Post -->
                    <div class="post">
                      <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">INPUT DATA KEGIATAN</h3> 
                            
                        </div><!-- /.box-header -->
                        
                            <div class="box-body">
                            
                    <form id="form-data" role="form" action="" method="post" enctype="multipart/form-data">
                      <div class="form-group">
                        <label for="inputName" class="col-sm-2 control-label">Nama Kegiatan</label>
                        <div class="col-sm-3">
                          <input type="text" class="form-control" id="JenisSurat" placeholder="" name="JenisSurat">
                        </div>
                      </div>
                      <br><br>
                      <div class="form-group">
                        <label for="inputExperience" class="col-sm-2 control-label">Lokasi</label>
                        <div class="col-sm-10">
                          <input type="text" class="form-control" id="NoSurat" placeholder="" name="NoSurat">
                        </div>
                      </div>
                      <br><br>
                      <div class="form-group">
                        <label for="inputSkills" class="col-sm-2 control-label">Waktu Pelaksanaan</label>
                        <div class="col-sm-4">
                          <input type="date" class="form-control" id="TanggalSurat" placeholder=" " name="TanggalSurat">
                        </div>
                      </div>
                      <br><br>
                      <div class="form-group">
                        <label for="inputExperience" class="col-sm-2 control-label">Isi</label>
                        <div class="col-sm-10">
                          <textarea class="form-control" id="IsiSurat" name="IsiSurat"></textarea><br>
                        </div>
                      </div>
                      <br><br>
                      <div class="form-group">
                        <label for="inputSkills" class="col-sm-2 control-label">Penanggungjawab</label>
                        <div class="col-sm-10">
                          <input type="text" class="form-control" id="Pengirim" placeholder="" name="Pengirim"><br>
                        </div>
                      </div>
                      
                      <div class="form-group">
                        <label for="inputSkills" class="col-sm-2 control-label">Keterangan</label>
                        <div class="col-sm-10">
                          <input type="text" class="form-control" id="Keterangan" placeholder="" name="Keterangan"><br>
                        </div>
                      </div>  
                      <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                          <button type="submit" class="btn btn-danger"name="TambahAgenda">Submit</button>
                          <?php
				if (isset($_POST['TambahAgenda'])) 
				{
				include 'koneksi.php';					
				    $JenisSurat = $_POST['JenisSurat'];
	                            $NoSurat= $_POST['NoSurat']; 
	                            $TanggalSurat= $_POST['TanggalSurat']; 
	                            $IsiSurat= $_POST['IsiSurat']; 
	                            $Pengirim= $_POST['Pengirim'];
	                          
	                            $Keterangan = $_POST['Keterangan'];
				$query3=mysql_query("INSERT INTO SuratMasuk(ID,JenisSurat,NoSurat,TanggalSurat,IsiSurat,Pengirim,Penerima,Keterangan) VALUES ('','$JenisSurat','$NoSurat','$TanggalSurat','$IsiSurat','$Pengirim','$Penerima','$Keterangan')")or die(mysql_error());  
				echo "<script>window.location='indexadmin.php?p=UksKegiatan';</script>";
				}
				?>
                        </div>
                      </div>
                    </form>
                  </div><!-- /.tab-pane -->
                </div><!-- /.tab-content -->
              </div><!-- /.nav-tabs-custom -->
            </div><!-- /.col -->
          </div><!-- /.row -->

        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->
            <script src="plugins/jQuery/jQuery-2.1.4.min.js"></script>