<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
  <head>
    <title>Admin &gt; Blog &gt; Pengaturan</title>
    <?php include_once(VIEWPATH. 'includes/head.php'); ?>
  </head>
  <body>
    <?php include_once(VIEWPATH. 'admin/_navbar.php'); ?>
    <div class="container">
      <ul class="breadcrumb">
        <li><a href="<?php echo site_url();?>"><i class="fa fa-home"></i></a></li>
        <li><a href="<?php echo site_url('admin');?>">Admin Panel</a></li>
        <li><a href="<?php echo site_url('admin/modules/blog');?>">Blog</a></li>
        <li class="active"><span>Pengaturan</span></li>
      </ul>
      <div class="row">
        <div class="col-sm-4 col-md-3">
          <?php include(dirname(__FILE__).'/_sidebar.php');?>
        </div>
        <div class="col-sm-8 col-md-9">
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3><i class="fa fa-cogs"></i> Pengaturan</h3>
            </div>
            <div class="panel-body">
              <?php echo form_open();?>
                <div class="form-group">
                  <label>Siapa yang boleh mengirimkan komentar?</label>
                  <div>
                    <div class="radio-inline">
                      <label style="font-weight: normal"><input type="radio" name="allow_comment" value="1" <?php echo $set['allow_comment'] == 1 ? 'checked="checked"' : '';?>/> Semua orang</label>
                    </div>
                    <div class="radio-inline">
                      <label style="font-weight: normal"><input type="radio" name="allow_comment" value="2" <?php echo $set['allow_comment'] == 2 ? 'checked="checked"' : '';?>/> Hanya member</label>
                    </div>
                    <div class="radio-inline">
                      <label style="font-weight: normal"><input type="radio" name="allow_comment" value="0" <?php echo $set['allow_comment'] == 0 ? 'checked="checked"' : '';?>/> Tidak semua</label>
                    </div>
                  </div>
                </div>
                <div class="form-group">
                  <label>Gunakan captcha di form komentar?</label>
                  <div>
                    <div class="radio-inline">
                      <label style="font-weight: normal"><input type="radio" name="comment_captcha" value="1" <?php echo $set['comment_captcha'] == 1 ? 'checked="checked"' : '';?>/> Ya</label>
                    </div>
                    <div class="radio-inline">
                      <label style="font-weight: normal"><input type="radio" name="comment_captcha" value="0" <?php echo $set['comment_captcha'] == 0 ? 'checked="checked"' : '';?>/> Tidak</label>
                    </div>
                  </div>
                  <p class="help-block">Captcha untuk non user akan selalu diaktifkan</p>
                </div>
                <div class="form-group">
                  <label>Moderasi komentar?</label>
                  <div>
                    <div class="radio-inline">
                      <label style="font-weight: normal"><input type="radio" name="comment_mod" value="1" <?php echo $set['comment_mod'] == 1 ? 'checked="checked"' : '';?>/> Ya</label>
                    </div>
                    <div class="radio-inline">
                      <label style="font-weight: normal"><input type="radio" name="comment_mod" value="0" <?php echo $set['comment_mod'] == 0 ? 'checked="checked"' : '';?>/> Tidak</label>
                    </div>
                  </div>
                  <p class="help-block">Moderasi komentar untuk non user akan selalu diaktifkan</p>
                </div>
                <div>
                  <button class="btn btn-primary" id="submit" name="submit" value="simpan" type="submit">Simpan</button>
                </div>
              <?php echo form_close();?>
            </div>
          </div>
        </div>
      </div>
    </div>
    <?php include_once(VIEWPATH.'includes/foot.php'); ?>
  </body>
</html>