Viewing file: boletins_cad.php (12.13 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
#############################################################################
# Nome: boletins_cad.php #
# System: Irpen #
# Criado por: João Paulo Marques dos Santos #
# Empresa: Netnigro #
# E-mail: ti@netnigro.com.br #
# Descrição: Envio de boletins eletronicos #
# Histórico: #
# . 31/03/2011 - João Paulo Marques dos Santos #
# Criação da Página #
#############################################################################
// Includes
include("../../config/config.php");
include(INCLUDES . "conexaoBD.php");
include(INCLUDES . "funcoes_uteis.php");
include(INCLUDES . "sentencas_sql.php");
//include(INCLUDES . "valida_usuario.inc.php");
$hddAcao = "I";
$data_envio = date("d/m/Y");
$hora_envio = date("H:i:s");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="<?= HOST;?>css/irpen.css" type="text/css" />
<link rel="stylesheet" media="all" type="text/css" href="<?= HOST;?>css/menu_dropline.css" />
<!--[if IE]>
<link rel="stylesheet" media="all" type="text/css" href="<?= HOST;?>css/menu_dropline_ie.css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" media="all" type="text/css" href="<?= HOST;?>css/menu_dropline_ie6.css" />
<![endif]-->
<title></title>
<!-- <script src="scripts/delay.js" language="JavaScript"></script> -->
<script type="text/javascript" src="<?= HOST;?>includes/jquery-1.2.6.js"></script>
<script type="text/javascript" src="<?= HOST;?>includes/jquery.form.js"></script>
<script type="text/javascript" src="<?= HOST;?>includes/jquery.maskedinput-1.1.3.js"></script>
<script type="text/javascript" src="<?= HOST;?>includes/jquery-ui.js"></script>
<link rel="stylesheet" href="http://dev.jquery.com/view/trunk/themes/flora/flora.datepicker.css" type="text/css" media="screen" title="Flora (Default)">
<script type="text/javascript" src="<?= HOST;?>includes/ui.datepicker-pt-BR.js"></script>
<script type="text/javascript" src="boletins_cad.js"></script>
<!-- TinyMCE -->
<script type="text/javascript" src="<?= HOST;?>lib/tinymce/tiny_mce.js"></script>
<script type="text/javascript"src="<?= HOST;?>lib/tinymce/plugins/tinybrowser/tb_tinymce.js.php"></script>
<script type="text/javascript">
tinyMCE.init({
//Opções gerais
mode : "textareas",
theme : "advanced",
language : 'pt',
plugins :'style,table,advhr,advimage,iespell,searchreplace,contextmenu,paste,noneditable,preview',
file_browser_callback : "tinyBrowser",
button_tile_map : true,
convert_urls : false,
relative_urls : false,
fix_list_elements: true,
apply_source_formatting : true,
extended_valid_elements: "fieldset[class|id],legend[class|id],br[class],div[align|class|id]",
//Css
content_css: "../../css/tinymce.css",
//theme_advanced_styles: "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1",
//Opções do tema
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_buttons1_add : "fontselect,fontsizeselect,separator,forecolor,backcolor",
theme_advanced_buttons2_add_before: "cut,copy,paste,pasteword,separator,search,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "iespell,advhr",
theme_advanced_disable : "styleselect,strikethrough"
});
</script>
<!-- /TinyMCE -->
</head>
<body>
<div id="wrap">
<?php include "../topo_gestao.php";?>
<div id="header-photo">
</div>
<!-- content-wrap starts -->
<div id="content-wrap">
<table width="100%" border="0">
<tr><!--
<td align="left" valign="top" width="20%">
<?php
//Menu do site
//include(DIR_ADMIN . "menu_gestao.php");
?>
</td>
<td align="left" valign="top" bgcolor="#cccccc">
</td>-->
<td align="left" valign="top" bgcolor="#FFFFFF" width="1%">
</td>
<td align="left" valign="top">
<table width="100%" border="0" >
<tr>
<td align="left" valign="top">
<h2>ENVIO DE BOLETINS ELETRONICOS</h2>
<div id="linha_h2" >
</div>
<form action="boletins_grava.php" method="post" enctype="application/x-www-form-urlencoded" name="frmEnvioBoletins" id="frmEnvioBoletins">
<input type="hidden" name="hddAcao" id="hddAcao" value="<?= $hddAcao;?>">
<table width="98%" border="0">
<tr>
<td align="left" valign="top">
</td>
</tr>
<?php
if((isset($_GET["msg"])) && (!empty($_GET["msg"])))
{
if((isset($_GET["erro"])) && ($_GET["erro"] == "S"))
{
$class_msg = "msg_erro";
}
else
{
$class_msg = "msg_ok";
}
?>
<tr>
<td align="left" colspan="2">
<p class="<?= $class_msg;?>"><?= $_GET["msg"];?></p>
<br />
</td>
</tr>
<?php
}
?>
<tr>
<td align="left" valign="top" colspan="2">
<p class="aviso">
<strong><span class="obrigatorio">*</span> Campos Obrigatórios</strong>
</p>
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<fieldset>
<legend>Destinatário(s) <span class="obrigatorio">*</span></legend>
<input type="radio" name="rdgTipoDestinatario" id="rdgTipoDestinatarioT" value="T" checked/> Todos os cadastrados
<input type="radio" name="rdgTipoDestinatario" id="rdgTipoDestinatarioTS" value="TS" />Teste
</fieldset>
</td>
</tr>
<tr>
<td width="15%" align="left" valign="top">
<label for="txtAssunto">
Assunto <span class="obrigatorio">*</span>:
</label>
</td>
<td width="85%" align="left" valign="top">
<input type="text" name="txtAssunto" id="txtAssunto" size="80" />
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<fieldset>
<legend>Data de Envio <span class="obrigatorio">*</span></legend>
Data: <input type="text" name="txtDataEnvio" id="txtDataEnvio" size="12" value="<?= $data_envio;?>" />
Hora: <input type="text" name="txtHoraEnvio" id="txtHoraEnvio" size="10" value="<?= $hora_envio;?>" />
</fieldset>
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<fieldset>
<legend>Conteúdo <span class="obrigatorio">*</span></legend>
<textarea name="txtConteudo" rows="20" style="width:100%"></textarea>
</fieldset>
</td>
</tr>
<br />
<tr>
<td align="center" colspan="2">
<input name="btnEnviar" type="submit" value="Enviar" />
<input name="btnLimpar" type="reset" value="Limpar" />
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<br />
</td>
</tr>
</table>
</div>
<div align="center">
<strong><br />
Rua Mal. Deodoro, 51 - Galeria Ritz - 18º Andar | Fone: (41) 3232-9811 | CEP 80.020-905 - Curitiba - Paraná</strong>
<!-- content-wrap ends-->
</div>
<!-- footer starts -->
<div id="footer-wrap">
</div>
<div id="rodape">
</div>
</div>
</body>
</html>
|