<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<?php
#
# Projeto :  Lucato 
# Data : 10/02/2004
# 
# ROBO Editar
#
    //*******************************************************************	
	// INCLUDES nao alterar a ordem dos includes
    //*******************************************************************	
	include "includes/library.php";
	include "includes/session.php";

	//recuperando variaveis da tela
	//-----------------------------------
        
	$mod = request("mod");
	include $mod .  "/consistencia.php";

	include("includes/top_comum.php");

    //Adicionando java script de validação
	//------------------------------------------
?>
	<div class="row">
					<div class="col-xs-12 col-sm-7 col-md-7 col-lg-7">
						<h1 class="page-title txt-color-blueDark"><i class="fa-fw fa fa-desktop"></i> <?php echo show($modules[$mod]["insert_titulo"]) ?> </h1>
					</div>
    </div>
	
	<?include("includes/mensagem_erro.php");?>
	<form name="formfields" action="robo_inserir.php" method="post" onsubmit="return consiste(this)" class="form-horizontal" role="form">
	<?php echo $sid_post?>
	<input type="hidden" name="mod" value="<?php echo request("mod")?>">
	<input type="hidden" name="key" value="<?php echo request("key")?>">
	<input type="hidden" name="action" value="insert">

	
	<?php
			//aqui é onde irá o form de acordo com o design personalizado
			$mode = "insert";
			include $mod . "/form.php"; 
	?>

<div align="center">
	<?php if ( is_allowed( request_session("USER_NIVEL"), request("mod"), "insert") ){?>
			<input type="submit" value="salvar registro" class="btn btn-primary btn-lg" onclick="javascript:this.disabled = 'disabled';this.form.submit();">
	<?php } ?>        
	        <input type="button" value="cancelar" onclick="javascript:this.disabled = 'disabled';document.location='area_usuario.php?<?php echo $sid_get?>';" class="btn btn-lg">
</div>	
	</form>
<br/>

<? 	include("includes/bottom_comum.php"); ?>
