Created
September 1, 2020 06:51
-
-
Save DeaVenditama/012bf4fb85f23d32a75fc040e844fc28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$csv = [ | |
'name'=>'csv', | |
'id' =>'csv' | |
]; | |
$nama = [ | |
'name' => 'nama', | |
'id' => 'nama', | |
'class' => 'form-control', | |
'value' => null, | |
]; | |
$submit = [ | |
'name' =>'submit', | |
'id' => 'submit', | |
'value' => 'Submit', | |
'class' => 'btn btn-primary', | |
'type' => 'submit' | |
]; | |
?> | |
<?= $this->extend('layout')?> | |
<?= $this->section('content') ?> | |
<div class="row"> | |
<div class="col-md-12"> | |
<div class="card"> | |
<div class="card-header card-header-primary"> | |
<h4 class="card-title">Tambah Data</h4> | |
<p class="card-category">Menu Tambah Data</p> | |
</div> | |
<div class="card-body"> | |
<?= form_open_multipart('Data/import') ?> | |
<div class="form-group"> | |
<?= form_label("Nama", "nama") ?> | |
<?= form_input($nama) ?> | |
</div> | |
<?= form_upload($csv) ?> | |
<?= form_submit($submit) ?> | |
<?= form_close() ?> | |
</div> | |
</div> | |
</div> | |
</div> | |
<?= $this->endSection() ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment