当前位置: 首页>>代码示例>>PHP>>正文


PHP inputan函数代码示例

本文整理汇总了PHP中inputan函数的典型用法代码示例。如果您正苦于以下问题:PHP inputan函数的具体用法?PHP inputan怎么用?PHP inputan使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了inputan函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: tampiljadwal

 function tampiljadwal()
 {
     $konsentrasi = $_GET['konsentrasi'];
     $tahun_akademik = $_GET['tahun_akademik'];
     $semester = $_GET['semester'];
     echo "<table class='table table-bordered' id='jadwal'>\n        <tr><th width=7>No</th>\n        <th width=120>Hari</th>\n        <th>Kode</th>\n        <th>Matakuliah</th>\n        <th width=5>SKS</th>\n        <th width=115>Ruang</th>\n        <th  width=154>Jam</th>\n        <th>Dosen</th>\n        <th></th></tr>";
     $i = 1;
     if ($semester == 0) {
         // looping semester
         $smt = getField('akademik_konsentrasi', 'jml_semester', 'konsentrasi_id', $konsentrasi);
         for ($j = 1; $j <= $smt; $j++) {
             echo "<tr class='success'><th colspan=9>SEMESTER {$j}</th></tr>";
             $sql = "  SELECT jk.*,mm.jam,mm.nama_makul,mm.kode_makul,mm.sks,mm.semester,jk.jam_mulai,jk.jam_selesai\n                FROM akademik_jadwal_kuliah as jk,makul_matakuliah as mm\n                WHERE mm.makul_id=jk.makul_id and jk.tahun_akademik_id={$tahun_akademik} and jk.konsentrasi_id={$konsentrasi} and jk.semester={$j}";
             $data = $this->db->query($sql)->result();
             $class = "class='form-control'";
             foreach ($data as $r) {
                 echo "<tr><td>{$i}</td>\n                        <td>";
                 echo editcombo('hari', 'app_hari', 'col-sm-14', 'hari', 'hari_id', '', array('onchange' => 'simpanhari(' . $r->jadwal_id . ')', 'id' => 'hariid' . $r->jadwal_id), $r->hari_id);
                 echo "</td>\n                        <td>" . strtoupper($r->kode_makul) . "</td>\n                        <td>" . strtoupper($r->nama_makul) . "</td>\n                        <td align='center'>{$r->sks}</td>\n                        <td>";
                 echo editcombo('ruang', 'app_ruangan', 'col-sm-14', 'nama_ruangan', 'ruangan_id', '', array('onchange' => 'simpanruang(' . $r->jadwal_id . ')', 'id' => 'ruangid' . $r->jadwal_id), $r->ruangan_id);
                 echo "</td>\n                        <td>";
                 echo inputan('text', '', 'col-sm-9', '', 1, $r->jam_mulai, array('onKeyup' => 'simpanjam(' . $r->jadwal_id . ')', 'id' => 'jamid' . $r->jadwal_id));
                 echo inputan('text', '', 'col-sm-9', '', 1, $r->jam_selesai, array('disabled' => 'disabled'));
                 //echo editcombo('waktu_kuliah','akademik_waktu_kuliah','col-sm-13','keterangan','waktu_id','',array('onchange'=>'simpanjam('.$r->jadwal_id.')','id'=>'jamid'.$r->jadwal_id),$r->waktu_id);
                 echo "</td>\n                        <td>";
                 echo editcombo('dosen', 'app_dosen', 'col-sm-13', 'nama_lengkap', 'dosen_id', '', array('onchange' => 'simpandosen(' . $r->jadwal_id . ')', 'id' => 'dosenid' . $r->jadwal_id), $r->dosen_id);
                 echo "</td>\n                            <td><i class='gi gi-print' title='cetak absen'></i></td></tr>";
                 $i++;
             }
         }
     } else {
         $sql = "  SELECT jk.*,mm.jam,mm.nama_makul,mm.kode_makul,mm.sks,mm.semester,jk.jam_mulai,jk.jam_selesai\n                FROM akademik_jadwal_kuliah as jk,makul_matakuliah as mm\n                WHERE mm.makul_id=jk.makul_id and jk.tahun_akademik_id={$tahun_akademik} and jk.konsentrasi_id={$konsentrasi} and jk.semester={$semester}";
         $data = $this->db->query($sql)->result();
         $class = "class='form-control'";
         foreach ($data as $r) {
             echo "<tr><td>{$i}</td>\n                        <td>";
             echo editcombo('hari', 'app_hari', 'col-sm-14', 'hari', 'hari_id', '', array('onchange' => 'simpanhari(' . $r->jadwal_id . ')', 'id' => 'hariid' . $r->jadwal_id), $r->hari_id);
             echo "</td>\n                        <td>" . strtoupper($r->kode_makul) . "</td>\n                        <td>" . strtoupper($r->nama_makul) . "</td>\n                        <td align='center'>{$r->sks}</td>\n                        <td>";
             echo editcombo('ruang', 'app_ruangan', 'col-sm-14', 'nama_ruangan', 'ruangan_id', '', array('onchange' => 'simpanruang(' . $r->jadwal_id . ')', 'id' => 'ruangid' . $r->jadwal_id), $r->ruangan_id);
             echo "</td>\n                        <td>";
             echo inputan('text', '', 'col-sm-9', '', 1, $r->jam_mulai, array('onKeyup' => 'simpanjam(' . $r->jadwal_id . ')', 'id' => 'jamid' . $r->jadwal_id));
             echo inputan('text', '', 'col-sm-9', '', 1, $r->jam_selesai, array('disabled' => 'disabled'));
             //echo editcombo('waktu_kuliah','akademik_waktu_kuliah','col-sm-13','keterangan','waktu_id','',array('onchange'=>'simpanjam('.$r->jadwal_id.')','id'=>'jamid'.$r->jadwal_id),$r->waktu_id);
             echo "</td>\n                        <td>";
             echo editcombo('dosen', 'app_dosen', 'col-sm-13', 'nama_lengkap', 'dosen_id', '', array('onchange' => 'simpandosen(' . $r->jadwal_id . ')', 'id' => 'dosenid' . $r->jadwal_id), $r->dosen_id);
             echo "</td>\n                            <td><i class='gi gi-print' title='cetak absen'></i></td></tr>";
             $i++;
         }
     }
     echo "</table>";
 }
开发者ID:ahmadisurahman05,项目名称:AKADEMIK,代码行数:51,代码来源:jadwalkuliah.php

示例2: loadform

 function loadform()
 {
     $konsentrasi = $_GET['konsentrasi'];
     $tahun_angkatan_id = $this->db->get_where('student_angkatan', array('aktif' => 'y'))->row_array();
     $tahun_ajaran = $tahun_angkatan_id['angkatan_id'];
     $no = 1;
     $keuangan_jenis_bayar = $this->db->get('keuangan_jenis_bayar')->result();
     echo "<table class='table table-bordered'>\n            <tr><th width=10>No</th><th>Jenis Biaya Kuliah</th><th width=150>Jumlah Bayar</th></tr>";
     foreach ($keuangan_jenis_bayar as $r) {
         $a = $this->chek_data_biaya_kuliah($konsentrasi, $r->jenis_bayar_id);
         $jumlah = $this->get_biaya_kuliah($tahun_ajaran, $r->jenis_bayar_id, $konsentrasi, 'jumlah');
         $id = $this->get_biaya_kuliah($tahun_ajaran, $r->jenis_bayar_id, $konsentrasi, 'biaya_kuliah_id');
         echo "<tr>\n                    <td>{$no}</td>\n                    <td> " . strtoupper($r->keterangan) . "</td>\n                    <td> " . inputan('text', 'jumlah', 'col-sm-12', '', 1, $jumlah, array('id' => 'test', 'onkeyup' => "simpan({$id})", 'id' => "jumlah{$id}")) . "</td>\n                    </tr>";
         $no++;
     }
     echo "</table>";
 }
开发者ID:ahmadisurahman05,项目名称:AKADEMIK,代码行数:17,代码来源:setupbiayakuliah.php

示例3: inputan

 <div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title">Entry Record</h3>
  </div>
  <div class="panel-body">
<table class="table table-bordered">
    <tr>
    <td width="150">Kode</td><td>
        <?php 
echo inputan('text', 'kode', 'col-sm-4', 'Kode ..', 1, '', '');
?>
    </td>
    </tr>
        <tr>
    <td width="150">Nama</td><td>
        <?php 
echo inputan('text', 'nama', 'col-sm-4', 'Nama Kelompok ..', 1, '', '');
?>
    </td>
    </tr>
    <tr>
         <td></td><td colspan="2"> 
            <input type="submit" name="submit" value="simpan" class="btn btn-danger  btn-sm">
            <?php 
echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm'));
?>
        </td></tr>
    
</table>
  </div></div>
</form>
开发者ID:ahmadisurahman05,项目名称:AKADEMIK,代码行数:31,代码来源:post.php

示例4: textarea

 
            <tr>
    <td width="150">Alamat</td><td>
        <?php 
echo textarea('alamat', '', 'col-sm-5', 2, $r['alamat']);
?>
    </td>
    </tr>
        <tr>
    <td width="150">No Hp ,Email</td><td>
        <?php 
echo inputan('text', 'hp', 'col-sm-2', 'No HP ..', 1, $r['hp'], '');
?>
 
         <?php 
echo inputan('email', 'email', 'col-sm-4', 'Email ..', 1, $r['email'], '');
?>
    </td>
    </tr>
 
           
         <td></td><td colspan="2"> 
            <input type="submit" name="submit" value="simpan" class="btn btn-danger  btn-sm">
            <?php 
echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm'));
?>
        </td></tr>
    
</table>
  </div>
</form>
开发者ID:rayxaxnerx,项目名称:siakademik,代码行数:30,代码来源:edit.php

示例5: form_open_multipart

        <li class="active">Entry Record</li>
    </ol>
</div>
    
    <?php 
echo form_open_multipart($this->uri->segment(1) . '/post');
?>
<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title">Entry Record</h3>
  </div>
  <div class="panel-body">
<table class="table table-bordered">
    <tr>
    <td width="150">Tahun Akademik</td><td>
        <?php 
echo inputan('text', 'tahun', 'col-sm-4', 'Tahun Akademik ..', 1, '', '');
?>
    </td>
    </tr>
    <tr>
         <td></td><td colspan="2"> 
            <input type="submit" name="submit" value="simpan" class="btn btn-danger  btn-sm">
            <?php 
echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm'));
?>
        </td></tr>
    
</table>
  </div></div>
</form>
开发者ID:rayxaxnerx,项目名称:siakademik,代码行数:31,代码来源:post.php

示例6: inputan

?>
    </td>
    </tr>
    
      <tr>
    <td width="150">Link</td><td>
        <?php 
echo inputan('text', 'link', 'col-sm-5', 'Link ...', 1, $r['link'], '');
?>
    </td>
    </tr>
   
      <tr>
    <td width="150">Icon</td><td>
        <?php 
echo inputan('text', 'icon', 'col-sm-2', 'Icon', 0, $r['icon'], '');
?>
    </td>
    </tr>
        <tr>
    <td width="150">Level</td><td>
        <div class="col-sm-3">
        <?php 
echo form_dropdown('level', $level, $r['level'], $class);
?>
        </div>  
    </td>
    </tr>
    <tr><td></td><td> 
            <input type="submit" name="submit" value="simpan" class="btn btn-danger">
             <?php 
开发者ID:ahmadisurahman05,项目名称:AKADEMIK,代码行数:31,代码来源:edit.php

示例7: inputan

    <td width="150">Nama Kampus</td><td>
        <?php 
echo inputan('text', 'nama', 'col-sm-4', 'Nama Lengkap ..', 1, $r['nama_kampus'], '');
?>
    </td>
    </tr>
 
            <tr>
    <td width="150">Alamat</td><td>
        <?php 
echo textarea('alamat', '', 'col-sm-5', 2, $r['alamat_kampus']);
?>
    </td>
    </tr>
      <tr>
    <td width="150">No Telpon</td><td>
        <?php 
echo inputan('text', 'telpon', 'col-sm-4', 'No Telpon ..', 1, $r['telpon'], '');
?>
    </td>
    </tr>
           
         <td></td><td colspan="2"> 
            <input type="submit" name="submit" value="simpan" class="btn btn-danger  btn-sm">
            <?php 
echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm'));
?>
        </td></tr>
    
</table>
</form>
开发者ID:ahmadisurahman05,项目名称:AKADEMIK,代码行数:31,代码来源:profile.php

示例8: inputan



            <!-- Modal itself -->
            <div id="example-modal" class="modal">
                <!-- Modal Dialog -->
                <div class="modal-dialog">
                    <!-- Modal Content -->
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal">×</button>
                            <h4>Autosave</h4>
                        </div>
                        <div class="modal-body">
                                                     <table class="table table-bordered">
                            <tr><td>Tanggal</td><td><?php 
echo inputan('text', 'tanggal2', 'col-md-4', 'Tanggal', 1, '', array('id' => 'datepicker2'));
?>
</td><tr>
                             <tr><td>Matakuliah</td><td>
                <select name="jadwal" class="form-control">
                    <?php 
foreach ($kelas as $k) {
    echo "<option value='{$k->jadwal_id}'>" . strtoupper($k->nama_makul) . "</option>";
}
?>
                </select>
            </td><tr>
                             <tr><td colspan="2"><textarea class="form-control" placeholder="Judul Materi" name="materi"></textarea></td></tr>
                            </table>
                            
                                    
开发者ID:ahmadisurahman05,项目名称:AKADEMIK,代码行数:27,代码来源:view.php

示例9: array

<?php

$status = array(0 => 'Lunas', 1 => 'Pembayaran Ke 1', 2 => 'Pembayaran Ke 2', 3 => 'Pembayaran Ke 3', 4 => 'Pembayaran Ke 4');
echo form_open('keuangan/jurnalkhusus');
?>
<table class="table table-bordered">
    <tr class="success"><td colspan="2">JURNAL KHUSUS</td></tr>
    <tr><td width="150">Tanggal Mulai</td><td><?php 
echo inputan('text', 'tanggal1', 'col-sm-3', 'Tanggal Awal ..', 1, $tanggal1, array('id' => 'datepicker'));
?>
</td></tr>
     <tr><td>Tanggal Sampai</td><td><?php 
echo inputan('text', 'tanggal2', 'col-sm-3', 'Tanggal Akhir ..', 1, $tanggal2, array('id' => 'datepicker1'));
?>
</td></tr>
     <tr><td colspan="2"><input type="submit" name="submit" value="Preview" class="btn btn-danger  btn-sm"> 
              <?php 
echo anchor(base_url() . 'keuangan/cetakjurnalkhusus/' . $tanggal1 . '/' . $tanggal2 . '/cetak', 'cetak', array('class' => 'btn btn-danger   btn-sm', 'target' => '_blank'));
?>
             <?php 
echo anchor(base_url() . 'keuangan/cetakjurnalkhusus/' . $tanggal1 . '/' . $tanggal2 . '/download', 'Export Ke Ms.Word', array('class' => 'btn btn-danger   btn-sm', 'target' => '_blank'));
?>
         </td></tr>
</table>
</form>
<?php 
if (isset($_POST['submit'])) {
    ?>
<table class="table table-bordered">
  <tr>
    <th width="15" rowspan="2">No</th>
开发者ID:ahmadisurahman05,项目名称:AKADEMIK,代码行数:31,代码来源:jurnalkhusus.php

示例10: form_open

</div>
    
    <?php 
echo form_open($this->uri->segment(1) . '/edit');
echo "<input type='hidden' name='id' value='{$r['angkatan_id']}'>";
?>
<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title">Edit Record</h3>
  </div>
  <div class="panel-body">
<table class="table table-bordered">
        <tr>
    <td width="150">Tahun Akademik</td><td>
        <?php 
echo inputan('text', 'tahun', 'col-sm-4', 'Tahun Akademik ..', 1, $r['keterangan'], '');
?>
    </td>
    </tr>
    <tr><td>Status</td><td>
            <div class="col-sm-2">
                <?php 
$status = array('y' => 'Open', 'n' => 'Closed');
echo form_dropdown('status', $status, $r['aktif'], "class='form-control'");
?>
            </div>
        </td></tr>
    <tr>
         <td></td><td colspan="2"> 
            <input type="submit" name="submit" value="simpan" class="btn btn-danger  btn-sm">
            <?php 
开发者ID:ahmadisurahman05,项目名称:AKADEMIK,代码行数:31,代码来源:edit.php

示例11: inputan

?>
        </div>
    </td>
    </tr>
    
        
        <tr>
    <td width="150">Gelar</td><td>
        <?php 
echo inputan('text', 'gelar', 'col-sm-2', 'Gelar ..', 0, '', '');
?>
    </td>
    </tr>
    <tr>
    <td width="150">Kode No</td><td>
        <?php 
echo inputan('text', 'kode', 'col-sm-3', 'Kode Nomor ..', 0, '', '');
?>
    </td>
    </tr>
    <tr>
         <td></td><td colspan="2"> 
            <input type="submit" name="submit" value="simpan" class="btn btn-danger  btn-sm">
            <?php 
echo anchor($this->uri->segment(1), 'kembali', array('class' => 'btn btn-danger btn-sm'));
?>
        </td></tr>
    
</table>
  </div></div>
</form>
开发者ID:rayxaxnerx,项目名称:siakademik,代码行数:31,代码来源:post.php

示例12: combodumy

echo combodumy('konsentrasi', 'konsentrasi2');
?>
</td></tr>
                            </table>
                        </div>
                        <div class="modal-footer">
                            <button class="btn btn-danger" data-dismiss="modal">Tutup</button>
                            <button class="btn btn-danger">Mulai Proses Autosetup</button>
                        </div>
                    </div>
                    <!-- END Modal Content -->
                </div>
                <!-- END Modal Dialog -->
            </div>
            <!-- END Modal itself -->
 </form>
 
 <!-- 
 <table class="table table-borderedb">
     <tr><th>Matakuliah</th><th>Jam Mulai</th><th>Jumlah Jam</th><th>Jam selesai</th></tr>
     <tr><td>Pemograman Web</td>
         <td><?php 
echo inputan('text', 'nama_ayah', 'col-sm-6', 'Nama Ayah ..', 0, '', '');
?>
</td>
         <td>4</td>
         <td><?php 
echo inputan('text', 'nama_ayah', 'col-sm-6', 'Nama Ayah ..', 0, '', '');
?>
</td></tr>
 </table>END Modal itself -->
开发者ID:ahmadisurahman05,项目名称:AKADEMIK,代码行数:31,代码来源:view.php

示例13: anchor

<div class="col-sm-2">
    <?php 
echo anchor($this->uri->segment(1) . '/post', 'Tambah Data', array('class' => 'btn btn-danger'));
?>
</div>
<div class="col-sm-9">
    <?php 
echo form_open('submenu');
echo inputan('text', 'key', 'col-sm-4', 'Kata Kunci Pencarian', 1, '', '');
?>
    <input type="submit" name="submit" value="Cari Data" class="btn btn-danger">
</form>
    
</div>
<hr>

<hr>
<div class="table-responsive">
    <?php 
echo $table;
?>
</div>
<?php 
echo $pagination;
开发者ID:rayxaxnerx,项目名称:siakademik,代码行数:24,代码来源:view.php

示例14: inputan

  <div class="panel-heading">
    <h3 class="panel-title">Edit Record</h3>
  </div>
  <div class="panel-body">
<table class="table table-bordered">
        <tr>
    <td width="150">Tahun Akademik</td><td>
        <?php 
echo inputan('text', 'tahun', 'col-sm-4', 'Tahun Akademik ..', 1, $r['keterangan'], '');
?>
    </td>
    </tr>
      <tr>
    <td width="150">Batas Registrasi</td><td>
        <?php 
echo inputan('text', 'batas', 'col-sm-4', 'Batas Registrasi ..', 1, $r['batas_registrasi'], array('id' => 'datepicker'));
?>
    </td>
    </tr>
    <tr>
    <tr><td>Status</td><td>
            <div class="col-sm-2">
                <?php 
$status = array('y' => 'Open', 'n' => 'Closed');
echo form_dropdown('status', $status, $r['status'], "class='form-control'");
?>
            </div>
        </td></tr>
    <tr>
         <td></td><td colspan="2"> 
            <input type="submit" name="submit" value="simpan" class="btn btn-danger  btn-sm">
开发者ID:rayxaxnerx,项目名称:siakademik,代码行数:31,代码来源:edit.php

示例15: buatcombo

            <?php 
echo buatcombo('jenis', 'keuangan_jenis_bayar', 'col-sm-6', 'keterangan', 'jenis_bayar_id', '', array('id' => 'jenis_pembayaran'));
?>
                <div class="col-md-6">
                    <select name="semester" id="semester" class="form-control">
                        <?php 
for ($sms = 1; $sms <= 8; $sms++) {
    echo "<option VALUE='{$sms}'>SEMESTER {$sms}</option>";
}
?>
                    </select>
                </div>
            </td></tr>
       
        <tr><td>Jumlah Bayar</td><td><?php 
echo inputan('text', 'jumlah', 'col-sm-8', 'Jumlah ..', 1, '', '');
?>
 <input type="submit" name="submit2" value="Simpan" class="btn btn-danger"></td></tr>
    </table>
</div>
</form>
<?php 
if ($statuss != "kosong") {
    ?>
<table class="table table-bordered">
    <tr class="success"><th colspan="7">Riwayat Transaksi</th></tr>
    <tr><th width="10">No</th>
        <th width="240">Jenis Pembayaran</th>
        <th width="180">Harus Dibayar</th>
        <th width="180">Sudah Dibayar</th>
        <th width="80">Sisa</th>
开发者ID:ahmadisurahman05,项目名称:AKADEMIK,代码行数:31,代码来源:view.php


注:本文中的inputan函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。