<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-2x">&times;</i>
            </button>
            <h4 class="modal-title" id="myModalLabel"><?php echo lang('add_type'); ?></h4>
        </div>
        <?php $attrib = array('data-toggle' => 'validator', 'role' => 'form');
        echo admin_form_open_multipart("transaction/add_type", $attrib); ?>
        <div class="modal-body">
            <!--<p><?= lang('enter_info'); ?></p>--><?php 
//print_r($account_category);die();
?>
			<div class="form-group">
                        <?= lang("account_category", "account_category") ?> <b>*</b>
                      <?php
						
                        $typ[''] = "";
                        foreach ($account_category as $types) {
                            $typ[$types->id] = $types->name ;
                        }
                        echo form_dropdown('account_category', $typ, (isset($_POST['account_category']) ? $_POST['account_category'] :""), 'class="form-control select"  placeholder="' . lang("select") . " " . lang("account_category") . '" style="width:100%" required="required"')
                        ?>
						
					</div>
			<div class="form-group">
                <?= lang('name', 'name'); ?>
                <?= form_input('name', '', 'class="form-control" id="name" required="required"'); ?>
            </div>
			</div>
        <div class="modal-footer">
            <?php echo form_submit('add_type', lang('add_type'), 'class="btn btn-primary"'); ?>
        </div>
    </div>
    <?php echo form_close(); ?>
</div>
<script type="text/javascript" src="<?= $assets ?>js/custom.js"></script>
<?= $modal_js ?>
