<!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:
		[

			
['UIColor'],

['Source','-','NewPage','Preview','-','Templates','-','Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],

['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellChecker','Scayt'],

['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat','-','Bold','Italic','Underline','Strike','-','Subscript','Superscript','-','NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],

['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','BidiLtr','BidiRtl','Link','Unlink','Anchor'],

'/',

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

['Maximize','ShowBlocks','-','About']








		]
	};

	// 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'adm_materias.php?lg='.$lg.'&sec='.$sec.'&form=editor&opcao=altera&flag=gravar">


<INPUT TYPE="hidden" name="cod" value="'.$valor["cod_materia"].'">

<INPUT TYPE="hidden" name="id" value="'.$valor["id"].'">
<INPUT TYPE="hidden" name="nome" value="'.$valor["nome"].'">
<INPUT TYPE="hidden" name="titulo_onoff" value="'.$valor["titulo_onoff"].'">
<INPUT TYPE="hidden" name="pagina" value="'.$valor["pagina"].'">
<INPUT TYPE="hidden" name="secao" value="'.$valor["secao"].'">
<INPUT TYPE="hidden" name="titulo" value="'.$valor["titulo"].'">



<INPUT type="hidden" name="estagio" value="'.$valor["estagio"].'">
<INPUT type="hidden" name="pchave" value="'.$valor["pchave"].'">

<INPUT type="hidden" name="link_retorno" value="'.$valor["link_auto"].'">
<INPUT type="hidden" name="link_alter" value="'.$valor["link_alter"].'">
<INPUT type="hidden" name="url_alter" value="'.$valor["url_alter"].'">

';
?>



<div id="mat_info">
<h2 style="margin-bottom: 0px;">
Editor de Texto e HTML &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;


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

<INPUT type=button value=" VOLTAR " onClick="parent.history.back(); return false;">

<INPUT type=button value=" UPLOAD DE ARQUIVOS " onClick="javascript:setor1()">



    <div>



<textarea cols="50" rows="2" class="jquery_ckeditor" name="cont1">

<?php echo''.$valor["cont1"].''; ?>

</textarea>



<textarea cols="50" rows="2" class="jquery_ckeditor" name="cont2">

<?php echo''.$valor["cont2"].''; ?>

</textarea>



    
</div>
</form>

</body>
</html>

