<?php


echo'
<form method="post" action="adm_materias.php?lg='.$lg.'&sec='.$sec.'&form=basico&opcao=inserir">

<INPUT type="hidden" name="estagio">
<INPUT type="hidden" name="pchave">

<INPUT type="hidden" name="link_retorno">
<INPUT type="hidden" name="link_alter">
<INPUT type="hidden" name="url_alter">

<INPUT type="hidden" name="cont1">





<div>
<div id="mat_info">
<h2 style="margin-bottom: 0px;">
Informa&ccedil;&otilde;es B&aacute;sicas da Mat&eacute;ria

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;



<input type="submit" value="SALVAR"/>


</h2>
</div>';
?>

<div style="visibility: hidden; position: absolute; top: -1000px;">

      <textarea  cols="80" rows="10" id="cont1" name="cont1"> 


      </textarea>

</div>

      <script type="text/javascript">
        CKEDITOR.replace( 'cont1' );
      </script>


<?php
echo'
<div id="mat_info">
Identifica&ccedil;&atilde;o:<br/>
<INPUT type="text" name="nome" size="40">
</div>


<div id="mat_info">
Ordem:<br/>
<input type="text" name="id" size="2">
</div>


<div id="mat_info">
Status:<br/>
<SELECT name="titulo_onoff">
<OPTION selected value="">
Selecionar
</OPTION>
<OPTION value="ON">ONLINE</OPTION>
<OPTION value="OFF">OFFLINE</OPTION>
</SELECT>
</div>


<div id="mat_info">
Vincular &agrave;:<br/>
<SELECT  name="titulo">

<OPTION value="" selected>
Selecionar
</OPTION>';



$sql = "select * from materias order by id  ASC";
$result = mysql_query ($sql);
while ( $valor = mysql_fetch_array($result) )
     {
        if($result == TRUE)
        {
echo '
<OPTION value="'.$valor["cod_materia"].'">
'.$valor["nome"].'
</OPTION>';

        }
     }

echo '
</SELECT>
</div>


<div id="mat_info">
Layout:<br/>
<SELECT name="pagina">
<OPTION value="" selected>
Selecionar
</OPTION>
<OPTION value="INTRO1">
INTRO1
</OPTION>
<OPTION value="INTRO2">
INTRO2
</OPTION>
<OPTION value="HOME1">
HOME1
</OPTION>
<OPTION value="HOME2">
HOME2
</OPTION>
<OPTION value="INT1">
INT1
</OPTION>
<OPTION value="INT2">
INT2
</OPTION>
<OPTION value="INT3">
INT3
</OPTION>
</SELECT>
</div>


<div id="mat_info">
Se&ccedil;&atilde;o:<br/>
<SELECT size="1" name="secao">

<OPTION value="" selected>
Selecionar
</OPTION>';

$sql = "select * from secoes order by cod_secao  ASC";
$result = mysql_query ($sql);
while ( $valor = mysql_fetch_array($result) )
     {
        if($result == TRUE)
        {
echo '
<OPTION value="'.$valor["cod_secao"].'">'.$valor["nome_secao"].'</OPTION>';

        }
     }
echo '
</SELECT>
</div>';

?>
      
</div>
</form>







