diff --git a/index.php b/index.php index efb8687..becb3a0 100644 --- a/index.php +++ b/index.php @@ -674,17 +674,21 @@ $aplicacion_pie=" } elseif($v[0] =='m') { $set =$v[1]; - /// s= SET DE DATOS + $form =$v[1]; + + $empresa = remplacetas('form_id','id',$form,'id_empresa',"") ; + $razon_social_portal = remplacetas('empresa','id',"1",'razon_social','') ; + $id_empresa = $empresa[0]; $embebido = "1"; if(isset($_REQUEST['print'])) { $print = "window.print()";} $onload = "".checklist("$set",@$_REQUEST['registros'],@$_REQUEST['campo'],@$_REQUEST['valor'],'')." "; } elseif($v[0] =='n') { - /// g=FORMULARIO EMBEBIDO + $embebido = "1"; $no_mostrar ="display:none; "; - $form =$v[1]; + $publico = remplacetas('form_id','id',$form,'publico','') ; $empresa_seguridad = remplacetas('form_id','id',$form,'id_empresa','') ; if($publico[0] != "1" and ( $_SESSION['id_empresa'] != $empresa_seguridad[0] ) ) {