<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<?php echo form_open(current_url(),'class="form-horizontal"');?>
  <div class="form-group">
    <label  class="col-sm-2 control-label">
      Kepada
    </label>
    <div class="col-sm-10">
      <div class="input-group">
        <span class="input-group-addon"><i class="fa fa-user"></i></span>
        <input type="text" class="form-control" value="<?php echo $user->us_username;?>" readonly="readonly"/>
      </div>
    </div>
  </div>
  <div class="form-group">
    <label  class="col-sm-2 control-label">
      Pesan
    </label>
    <div class="col-sm-10">
      <textarea class="form-control" name="pesan" id="pesan" required="required" rows="8"><?php echo set_value('pesan', $this->input->get('pesan'));?></textarea>
    </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-paper-plane"></i> Kirim</button>
      &nbsp;
      <a href="<?php echo site_url('admin/users/profil/' . $user->us_id);?>" class="btn btn-default" data-dismiss="modal"><i class="fa fa-remove"></i> Batal</a>
    </div>
  </div>
<?php echo form_close();?>