include ("forixinc.php"); include ("mo_util.php"); include ("util.php"); $Cod_notes=70000; /* function MO_Edi() { extract($GLOBALS); $SQLQuery="SELECT mot.rmo, mm.rma, mm.nome as mo_model, mon.nome as mo_nome FROM (mot inner join mm on mot.rmm=mm.rmm) inner join mon on mon.rma=mm.rma where mot.rmo=".$rmo." and mon.lin=".$linx; if (($result = mysql_query($SQLQuery)) and ($RSList = mysql_fetch_array($result))) { fxhead("Forix: ".$RSList["mo_nome"]." ".$RSList["mo_model"]); tab_ini(); tab_bar(2); ?>
$txt=trim($HTTP_POST_VARS["txt"]);
$i1=1;
$i2=(strpos($i1,$txt,"||") ? strpos($i1,$txt,"||")+1 : 0);
$linha=substr($txt,$i1-1,$i2-$i1);
while(strlen($linha)>4)
{
$p1=(strpos(1,$linha,"|") ? strpos(1,$linha,"|")+1 : 0);
$cod=substr($linha,0,$p1-1);
$p2=(strpos($p1+1,$linha,"|") ? strpos($p1+1,$linha,"|")+1 : 0);
$nome=substr($linha,$p1+1-1,$p2-$p1-1);
$tex=substr($linha,strlen($linha)-(strlen($linha)-$p2));
if ($tex!="??")
{
// Insert new record
$SQLQuery="Insert into mos Values (".$rmo.",".$lin.",".$cod.",'".str_replace("'","''",$tex)."')";
$dbc->Execute $SQLQuery);
?> Record for echo $nome; ?> inserted.
}
$i1=$i2+3;
$i2=(strpos($i1,$txt,"||") ? strpos($i1,$txt,"||")+1 : 0);
if ($i2>0)
{
$linha=substr($txt,$i1-1,$i2-$i1);
}
else
{
$linha="";
}
}
?>
} else if ($niv==1) { ?> | ||||||
} else if ($niv==2) { ?> | ||||||
} if ($seq==0) { ?> echo $RSnom["nome"]; ?> } else { ?> echo $RSnom["nome"]; ?> } ?> | echo $RSList["val"]; ?> | |||||
} else if ($niv==1) { ?> | ||||||
} ?> echo $RSnom["nome"]; ?> |