<?php
// echo $this->db->last_query();
?>
<?php
$this->load->helper('form');
$config = array('id' => 'nuevo','role' => 'form');
echo form_open('temas/nuevo',$config);
$val_errors = validation_errors();
if ($val_errors!='') {
	echo "<div class='alert alert-danger'>";
	echo validation_errors();
	echo "</div>";
}
?>
	                <!-- CONTENIDO -->
                    <div class="row">
                        <div class="col-lg-9">
                            <div class="panel panel-primary">
                                <div class="panel-heading">
                                    <div class="row">
                                        <div class="col-md-6">
										<i class="fa fa-edit"></i> <?=$this->lang->line('eap_pag_'.$this->uri->segment(1).'_'.$this->uri->segment(2));?>
                                        </div>
                                    </div>

                                </div>
                                <!-- /.panel-heading -->

                                <div class="panel-body">
								<fieldset>
	                                <div class="form-group">
                                	<label class="control-label"><?=$this->lang->line('eap_temas_nombre')?>:</label>
									<input class="form-control" type="text" name="nombre" value="<?php echo set_value('nombre'); ?>" size="20" autofocus />
                                    </div>
	                                <div class="form-group">
                                	<label class="control-label"><?=$this->lang->line('eap_temas_graficos_nombre')?>:</label>
									<input class="form-control" type="text" name="graficos_nombre" value="<?php echo set_value('graficos_nombre'); ?>" size="20" />
                                    </div>
	                                <div class="form-group">
                                	<label class="control-label"><?=$this->lang->line('eap_temas_graficos_nombre_pt')?>:</label>
									<input class="form-control" type="text" name="graficos_nombre_pt" value="<?php echo set_value('graficos_nombre_pt'); ?>" size="20" />
                                    </div>
																		<div class="form-group">
	                                	<label class="control-label"><?=$this->lang->line('eap_temas_graficos_nombre_en')?>:</label>
										<input class="form-control" type="text" name="graficos_nombre_en" value="<?php echo set_value('graficos_nombre_en'); ?>" size="20" />
	                                    </div>

									<button name="guardar" type="submit" class="btn btn-primary" id="guardar"><i class="fa fa-save"></i> <?=$this->lang->line('eap_grl_guardar')?> </button>
                                    <button name="cancelar" type="submit" class="btn btn-default"  id="cancelar"><i class="fa fa-times"></i> <?=$this->lang->line('eap_grl_cancelar')?> </button>

                                </fieldset>
                                </div>
                                <!-- /.panel-body -->
                            </div>
                            <!-- /.panel -->
                        </div>
                        <!-- /.col-lg-9 -->
                    </div>
	                <!-- /.CONTENIDO -->

<? echo form_close(); ?>
