<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>jQuery adapter - CKEditor Sample</title>
	<meta content="text/html; charset=utf-8" http-equiv="content-type" />
	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
	<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
	<script type="text/javascript" src="ckeditor/adapters/jquery.js"></script>
	<script src="ckeditor/samples/sample.js" type="text/javascript"></script>
	<link href="ckeditor/samples/sample.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">
	//<![CDATA[

$(function()
{
	var config = {
		toolbar:
		[

['Save','-','Bold', 'Italic', 'Underline', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink', '-', 'Image'],

['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],

['Styles','Format','Font','FontSize'],

['TextColor','BGColor'],

			['UIColor']
		]
	};

	// Initialize the editor.
	// Callback function can be passed and executed after full instance creation.
	$('.jquery_ckeditor').ckeditor(config);
});

	//]]>
	</script>
</head>
<body>




  <form method="post" action="

<?php
echo'index.php?usr='.$usr.'&tit='.$tit.'&mod=CONTEUDO&md=MATERIAS&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">

';
?>


    <div>

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



      </textarea>





      <textarea cols="80" rows="10" class="jquery_ckeditor" id="editor2"  name="cont2"> 



      </textarea>



<?php

echo'
<p>

<div id="mat_info">
T&iacute;tulo:<br/>
<INPUT type="text" name="nome" value="'.$valor["nome"].'" size="60">
</div>

<div id="mat_info">
ON/OFF:<br/>
<SELECT name="titulo_onoff">
<OPTION selected value="'.$valor["titulo_onoff"].'">
'.$valor["titulo_onoff"].'
</OPTION>
<OPTION value="ON">ON</OPTION>
<OPTION value="OFF">OFF</OPTION>
</SELECT>
</div>

<div id="mat_info">
Ordem:<br/>
<input type="text" name="id" value="'.$valor["id"].'" size="2">
</div>

<div id="mat_info">
P&aacute;gina:<br/>
<SELECT name="pagina">
<OPTION value="'.$valor["pagina"].'" selected>
'.$valor["pagina"].'
</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">
Mat&eacute;ria:<br/>
<SELECT  name="titulo">
<OPTION value="Selecionar T&iacute;tulo" selected>
Selecionar T&iacute;tulo
</OPTION>';

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

        }
     }
echo '
</SELECT>

</div>

<div id="mat_info">
Se&ccedil;&atilde;o:<br/>
<SELECT size="1" name="secao">
<OPTION value="Selecionar Se&ccedil;&atilde;o" selected>
Selecionar Se&ccedil;&atilde;o
</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 id="mat_info">
Upload:
<br/>
<a href="javascript:setor1()">
<img border="0" src="images/botao_arquivos.gif" width="28" height="28">
</a>
</div>



<div style="float: right; margin-right: 20px;">
&nbsp;<br/>
<input type="submit" value="SALVAR"/>
</div>

</p>';


?>

      
    </div>
  </form>




</body>
</html>






















