<?php defined('BASEPATH') or exit('No direct script access allowed');?>
<div class="row" style="margin-bottom: 15px;">
  <div class="col-sm-offset-2 col-sm-10">
    <div class="text-info">* Silakan masukan URL gambar dan URL link dengan benar.<br/>* Untuk menonaktifkan banner silakan kosongkan semua kolom isian.</div>
  </div>
</div>
<?php echo form_open(current_url(), 'class="form-horizontal"');?>
  <div class="form-group">
    <label class="col-sm-2 control-label">Banner1</label>
    <div class="col-sm-10">
      <div class="input-group" style="margin-bottom: 10px;">
        <span class="input-group-addon" title="URL Gambar"><i class="fa fa-image" style="width: 15px;"></i></span>
        <input placeholder="<?php echo site_url('url_gambar1.png');?>" type="url" class="form-control" name="banners[0][image]" value="<?php echo set_value('banners[0][image]', isset($banners[0]) ? $banners[0]['image'] : '');?>" maxlength="255"/>
      </div>
      <div class="input-group">
        <span class="input-group-addon" title="URL Link"><i class="fa fa-link" style="width: 15px;"></i></span>
        <input placeholder="<?php echo site_url('url_link1');?>" type="url" class="form-control" name="banners[0][url]" value="<?php echo set_value('banners[0][url]', isset($banners[0]) ? $banners[0]['url'] : '');?>" maxlength="255"/>
      </div>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Banner2</label>
    <div class="col-sm-10">
      <div class="input-group" style="margin-bottom: 10px;">
        <span class="input-group-addon" title="URL Gambar"><i class="fa fa-image" style="width: 15px;"></i></span>
        <input placeholder="<?php echo site_url('url_gambar2.png');?>" type="url" class="form-control" name="banners[1][image]" value="<?php echo set_value('banners[1][image]', isset($banners[1]) ? $banners[1]['image'] : '');?>" maxlength="255"/>
      </div>
      <div class="input-group">
        <span class="input-group-addon" title="URL Link"><i class="fa fa-link" style="width: 15px;"></i></span>
        <input placeholder="<?php echo site_url('url_link2');?>" type="url" class="form-control" name="banners[1][url]" value="<?php echo set_value('banners[1][url]', isset($banners[1]) ? $banners[1]['url'] : '');?>" maxlength="255"/>
      </div>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Banner3</label>
    <div class="col-sm-10">
      <div class="input-group" style="margin-bottom: 10px;">
        <span class="input-group-addon" title="URL Gambar"><i class="fa fa-image" style="width: 15px;"></i></span>
        <input placeholder="<?php echo site_url('url_gambar3.png');?>" type="url" class="form-control" name="banners[2][image]" value="<?php echo set_value('banners[2][image]', isset($banners[2]) ? $banners[2]['image'] : '');?>" maxlength="255"/>
      </div>
      <div class="input-group">
        <span class="input-group-addon" title="URL Link"><i class="fa fa-link" style="width: 15px;"></i></span>
        <input placeholder="<?php echo site_url('url_link3');?>" type="url" class="form-control" name="banners[2][url]" value="<?php echo set_value('banners[2][url]', isset($banners[2]) ? $banners[2]['url'] : '');?>" maxlength="255"/>
      </div>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Banner4</label>
    <div class="col-sm-10">
      <div class="input-group" style="margin-bottom: 10px;">
        <span class="input-group-addon" title="URL Gambar"><i class="fa fa-image" style="width: 15px;"></i></span>
        <input placeholder="<?php echo site_url('url_gambar4.png');?>" type="url" class="form-control" name="banners[3][image]" value="<?php echo set_value('banners[3][image]', isset($banners[3]) ? $banners[3]['image'] : '');?>" maxlength="255"/>
      </div>
      <div class="input-group">
        <span class="input-group-addon" title="URL Link"><i class="fa fa-link" style="width: 15px;"></i></span>
        <input placeholder="<?php echo site_url('url_link4');?>" type="url" class="form-control" name="banners[3][url]" value="<?php echo set_value('banners[3][url]', isset($banners[3]) ? $banners[3]['url'] : '');?>" maxlength="255"/>
      </div>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">Banner5</label>
    <div class="col-sm-10">
      <div class="input-group" style="margin-bottom: 10px;">
        <span class="input-group-addon" title="URL Gambar"><i class="fa fa-image" style="width: 15px;"></i></span>
        <input placeholder="<?php echo site_url('url_gambar5.png');?>" type="url" class="form-control" name="banners[4][image]" value="<?php echo set_value('banners[4][image]', isset($banners[4]) ? $banners[4]['image'] : '');?>" maxlength="255"/>
      </div>
      <div class="input-group">
        <span class="input-group-addon" title="URL Link"><i class="fa fa-link" style="width: 15px;"></i></span>
        <input placeholder="<?php echo site_url('url_link5');?>" type="url" class="form-control" name="banners[4][url]" value="<?php echo set_value('banners[4][url]', isset($banners[4]) ? $banners[4]['url'] : '');?>" maxlength="255"/>
      </div>
    </div>
  </div>
  <div class="form-group" style="margin-bottom:0">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-primary"><i class="fa fa-check"></i> Simpan</button>
      &nbsp;
      <a href="<?php echo site_url('admin/modules/aplikasi-android/main-page');?>" class="btn btn-default" data-dismiss="modal"><i class="fa fa-remove"></i> Batal</a>
    </div>
  </div>
<?php echo form_close();?>
