<?php
defined('BASEPATH') OR exit('No direct script access allowed');

?>
            <div class="content-wrapper">
                <section class="content-header">
                    <?php echo $pagetitle; ?>
                    <?php echo $breadcrumb; ?>
                </section>
                <section class="content">
                    <div class="row">
                        <div class="col-md-12">
                             <div class="box">
                                <div class="box-header with-border">
                                    <h3 class="box-title"><?php echo lang('vistas_create'); ?></h3>
                                </div>
                                <div class="box-body">
                                    <?php echo $message;?>	

                                    <?php echo form_open(current_url(), array('class' => 'form-horizontal', 'id' => 'form-create_vista')); ?>
                                 <!--  <div class="form-group">
                                            <?php //echo lang('menus_id', 'id', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                <?php //echo form_input($id);?>
                                            </div>
                                        </div> -->

                                       
                                        <div class="tab-content table-responsive no-padding">
                                            <div class="col-xs-12">
                                                All nodes <a href="javascript:;" id="expandAllBtn">expand</a> | <a href="javascript:;" id="collapseAllBtn">
                                                collapse</a>
                                                  <ul id="treeDemo" class="ztree"></ul>
                                            </div>
                                        </div>
                                       


                                        <div class="form-group">
                                            <?php echo lang('menus_id_menupadre', 'id_menupadre', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                <?php  
                                                    $attribute = 'class="selectpicker show-tick form-control" title="Seleccione..."'; 
                                                    echo form_dropdown('id_menupadre', $id_menupadre,'',$attribute); ?>
                                            </div> 
                                        </div>

                                        <div class="form-group">
                                            <?php echo lang('menus_nombre_menu', 'nombre_menu', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                <?php echo form_input($nombre_menu);?>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <?php echo lang('menus_menupos', 'menupos', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                <?php //echo form_input($menupos);?>
                                              <input id="menupos" class="form-control" name="menupos" value="0" type="number">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <?php echo lang('menus_columna', 'columna', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                <?php echo form_input($columna);?>
                                            </div>
                                        </div>  

                                        <div class="form-group">
                                            <?php echo lang('menus_nivel', 'nivel', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                <?php echo form_input($nivel);?>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <?php echo lang('menus_habilitado', 'habilitado', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                <?php //echo form_input($habilitado);?>
                                                <select id="concepto_habilitado" name="concepto_habilitado" class="selectpicker form-control">
                                                <?php
                                                     foreach ($ddl_habilitado as $row) {
                                                       echo 
                                                        '<option value="'.$row->concepto.'">'.
                                                            $row->concepto. ' - ' .$row->nombre.
                                                        '</option>';
                                                    }
                                                ?>
                                                </select>
                                            </div>
                                        </div>    

                                     <!--   <div class="form-group">
                                            <?php// echo lang('menus_url_metodo', 'url_metodo', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                <?php //echo form_input($url_metodo);?>
                                                <select id="url_vistas" name="url_vistas" class="selectpicker form-control">
                                                <?php
                                                    /* foreach ($ddl_url as $row) {
                                                       echo 
                                                        '<option value="'.$row->url.'">'.
                                                            $row->url. //' - ' .$row->url.
                                                        '</option>';
                                                    }*/
                                                ?>
                                                </select>
                                            </div>
                                        </div> -->   
										

                                        <div class="form-group">
                                            <?php echo lang('menus_id_group', 'id_group', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                <?php //echo form_input($id_group);?>
                                                <select id="groups" name="groups" class="selectpicker form-control">
                                                <?php
                                                     foreach ($ddl_groups as $row) {
                                                       echo 
                                                        '<option value="'.$row->id.'">'.
                                                            $row->id. ' - ' .$row->name.
                                                        '</option>';
                                                    }
                                                ?>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <?php echo lang('menus_id_vista', 'id_vista', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                <?php //echo form_input($id_vista);?>
                                                <select id="vistas" name="vistas" class="selectpicker form-control">
                                                <?php
                                                     foreach ($ddl_vistas as $row) {
                                                       echo 
                                                        '<option value="'.$row->id.'">'.
                                                            $row->id. ' - ' .$row->nombre_vista.
                                                        '</option>';
                                                    }
                                                ?>
                                                </select>
                                            </div>
                                        </div>

                                        

                                    <!--    <div class="form-group">
                                            <?php// echo lang('menus_permisos', 'c_tipomenu', array('class' => 'col-sm-2 control-label')); ?>
                                                <div class="col-sm-6">
                                                    <input type="text" class="inputTags-field" id="inputTags_d3">
                                                </div>     
                                        </div>    -->

                                      
                                        <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <div class="btn-group">
                                                    <?php echo form_button(array('type' => 'submit', 'class' => 'btn btn-primary btn-flat', 'content' => lang('actions_submit'))); ?>
                                                    <?php echo form_button(array('type' => 'reset', 'class' => 'btn btn-warning btn-flat', 'content' => lang('actions_reset'))); ?>
                                                    <?php echo anchor('menus/menus', lang('actions_cancel'), array('class' => 'btn btn-default btn-flat')); ?>
                                                </div>
                                            </div>
                                        </div>
                                    <?php echo form_close();?>
                                </div>
                            </div>
                         </div>
                    </div>
                </section>
            </div>