<?php ob_start(); @session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/templateCliente.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>E-TIcons, Empresa de tecnologia</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link rel="stylesheet" href="jquery/skin.css" media="screen" />
<link rel="stylesheet" href="css/cssCliente.css" media="screen"/>
<script type="text/javascript" src="jquery/jquery-1.8.2.js"></script>
<script type="text/javascript" src="jquery/jquery-ui-1.9.1.custom.min.js"></script>
<script type="text/javascript" src="jquery/jquery-themeswitchertool.js"></script>
<script type="text/javascript" src="jquery/jquery-clientes.js"></script>
</head>
<body>
<?php
$usuarioLogado = $_SESSION['usuarioCliente'];
if($usuarioLogado == NULL || $usuarioLogado == ""){ 
	header('location: login.php');
} else {
	$nivel = $_SESSION['nivel'];
	$display = ($nivel == '2' ? '' : 'none');
?>
<div class="tudo">
  <div class="topoAdmin">
    <div class="topo_int"> <img src="imagens/bg_topo_esq_preto.png" align="left"/>
      <div class="opcoes_topo"> 
        <form action="./Servico.php" method="post" name="formSair">
          <input type="hidden" name="metodo" value="GerenciadorUsuario.sair" />
          <ul id="menuTopo">
            <li class="usuario" id="usuario"><?php echo @utf8_encode($usuarioLogado); ?></li>
            <li><span class="ui-icon ui-icon-close"></span><a onclick="javascript:formSair.submit();">Sair</a></li>
            <li><span class="ui-icon ui-icon-home"></span><a href="inicio.php" title="Inicio">Home</a></li>
            <li><span class="ui-icon ui-icon-help"></span><a href="ajuda.php" title="Ajuda/Help-Desk">Ajuda</a></li>
            <li><span class="ui-icon ui-icon-contact"></span><a href="contato.php" title="Contato">Contato</a></li>
          </ul>
        </form>
      </div>
      <!-- opcoes_topo -->
      <div class="logomarca"><img src="imagens/areacliente.png"/></div>
      <img src="imagens/bg_topo_dir_preto.png" align="right"/> </div>
    <!-- topo_int --> 
  </div>
  <!-- topo -->
  <div class="menu_sup">
    <div class="titulo_pagina"><!-- InstanceBeginEditable name="titulo" -->
    <div class="ui-widget ui-corner-top"><span class="ui-icon ui-icon-mail-closed"></span><span class="titulo">Envio de E-mails</span></div>
	<!-- InstanceEndEditable --></div>
    <ul id="menu_sup" class="ui-menu-horizontal">
      <li><a href="downloads.php"><span class="ui-icon ui-icon-arrowthickstop-1-s"></span>Downloads</a></li>
      <li><a><span class="ui-icon ui-icon-comment"></span>Sugestões</a>
        <ul><li style="display:<?php echo $display; ?>"><a href="sugestoes.php"><span class="ui-icon ui-icon-search"></span>Consultar</a></li><li><a href="cadastroSugestao.php"><span class="ui-icon ui-icon-plus"></span>Novo</a></li></ul>
      </li>
      <li style="display:<?php echo $display; ?>"><a><span class="ui-icon ui-icon-person"></span>Usuários</a>
      	<ul><li><a href="usuarios.php"><span class="ui-icon ui-icon-search"></span>Consultar</a></li><li><a href="usuario.php"><span class="ui-icon ui-icon-plus"></span>Novo</a></li><li><a href="solicitantes.php"><span class="ui-icon ui-icon-contact"></span>Solicitações</a></li>
        	<li style="display:<?php echo $display; ?>"><a><span class="ui-icon ui-icon-contact"></span>Interessados</a><ul><li><a href="interessados.php"><span class="ui-icon ui-icon-search"></span>Consultar</a></li></ul></li>
        </ul>
      </li>
      <li style="display:<?php echo $display; ?>"><a><span class="ui-icon ui-icon-newwin"></span>Sistemas</a>
      	<ul><li><a href="sistemas.php"><span class="ui-icon ui-icon-gear"></span>Gerenciar</a></li><li><a href="cadastroSistema.php"><span class="ui-icon ui-icon-plus"></span>Novo</a></li><li><a href="downloads.php"><span class="ui-icon ui-icon-search"></span>Consultar</a></li></ul>
      </li>
      <li style="display:<?php echo $display; ?>"><a><span class="ui-icon ui-icon-signal-diag"></span>Notícias</a>
      	<ul><li><a href="noticias.php"><span class="ui-icon ui-icon-search"></span>Consultar</a></li><li><a href="cadastroNoticia.php"><span class="ui-icon ui-icon-plus"></span>Novo</a></li></ul>
      </li>
      <li><a><span class="ui-icon ui-icon-wrench"></span>Ferramentas</a>
      	<ul><li style="display:<?php echo $display; ?>"><a href="clientes.php"><span class="ui-icon ui-icon-suitcase"></span>Gerenciar Clientes</a></li><li style="display:<?php echo $display; ?>;"><a href="email.php"><span class="ui-icon ui-icon-mail-closed"></span>Enviar E-mail</a></li><li><a href="ajuda.php"><span class="ui-icon ui-icon-help"></span>Ajuda</a></li><li><a href="configuracoes.php"><span class="ui-icon ui-icon-gear"></span>Configurações</a></li><li><a href="inicio.php"><span class="ui-icon ui-icon-home"></span>Início</a></li><li><a onclick="javascript:formSair.submit();"><span class="ui-icon ui-icon-close"></span>Sair</a></li></ul>
      </li>
    </ul>
  </div>
  <!-- menu_sup -->
  <div class="conteudo"> <!-- InstanceBeginEditable name="conteudo" -->
   <?php if($nivel != "2"){ header("location: inicio.php"); } ?>
   <script type="text/javascript" src="jquery/editor/jquery.wysiwyg.js"></script>
   <link rel="stylesheet" type="text/css" href="jquery/editor/jquery.wysiwyg.css" />
   <?php
    $email = (!empty($_GET['email']) ? $_GET['email'] : "");
   ?>
    <div class="formulario">
      <form action="Servico.php" method="post" id="formEmail" class="forms" onsubmit="return verificarCampos('email','assunto','mensagem');">
        <input type="hidden" name="metodo" value="GerenciadorUsuario.enviaEmail"/>
        <label class="label">Destinatário</label>
     	<input type="text" name="email" id="email" size="55" class="ui-widget ui-widget-content ui-corner-all campo" value="<?php echo $email; ?>"/>
        <label class="label">Assunto</label>
     	<input type="text" name="assunto" id="assunto" maxlength="85" size="85" class="ui-widget ui-widget-content ui-corner-all campo" />
        <label class="label">Mensagem</label>
     	<textarea name="mensagem" id="mensagem" class="ui-widget ui-widget-content ui-corner-all" style="width:700px; height:150px"></textarea>
        <br />
        <div class="ui-widget ui-widget-content ui-corner-all texto-conteudo menu" align="center">
            <button type="button" class="button" onclick="javascript: window.history.back();"><span class="ui-icon ui-icon-cancel"></span>Cancelar</button>
            <button type="reset" class="button"><span class="ui-icon ui-icon-document"></span>Limpar</button>
            <button type="submit" class="button"><span class="ui-icon ui-icon-mail-open"></span>Enviar</button>
        </div>
     </form>
     <?php include 'beans/GerenciadorUsuario.class.php'; $service = ServiceMessages::getInstancia(); $service->printMessage(); ?>
    </div>
    
<script type="text/javascript">
(function($){
  $('#mensagem').wysiwyg({
    controls: {
      strikeThrough : { visible : true },
      underline     : { visible : true },
      separator00   : { visible : true },
      justifyLeft   : { visible : true },
      justifyCenter : { visible : true },
      justifyRight  : { visible : true },
      justifyFull   : { visible : true },
      separator01 : { visible : true },
      indent  : { visible : true },
      outdent : { visible : true },
      separator02 : { visible : true },
      subscript   : { visible : true },
      superscript : { visible : true },
      separator03 : { visible : true },
      undo : { visible : true },
      redo : { visible : true },
      separator04 : { visible : true },
      insertOrderedList    : { visible : true },
      insertUnorderedList  : { visible : true },
      insertHorizontalRule : { visible : true },
      h4mozilla : { visible : true && $.browser.mozilla, className : 'h4', command : 'heading', arguments : ['h4'], tags : ['h4'], tooltip : "Header 4" },
      h5mozilla : { visible : true && $.browser.mozilla, className : 'h5', command : 'heading', arguments : ['h5'], tags : ['h5'], tooltip : "Header 5" },
      h6mozilla : { visible : true && $.browser.mozilla, className : 'h6', command : 'heading', arguments : ['h6'], tags : ['h6'], tooltip : "Header 6" },
      
      h4 : { visible : true && !( $.browser.mozilla ), className : 'h4', command : 'formatBlock', arguments : ['<H4>'], tags : ['h4'], tooltip : "Header 4" },
      h5 : { visible : true && !( $.browser.mozilla ), className : 'h5', command : 'formatBlock', arguments : ['<H5>'], tags : ['h5'], tooltip : "Header 5" },
      h6 : { visible : true && !( $.browser.mozilla ), className : 'h6', command : 'formatBlock', arguments : ['<H6>'], tags : ['h6'], tooltip : "Header 6" },
      separator07 : { visible : true },
      cut   : { visible : true },
      copy  : { visible : true },
      paste : { visible : true }
    }
  });
})(jQuery);
</script> 
  <!-- InstanceEndEditable --> </div>
  <!-- conteudo -->
  <div class="rodape" id="rodape">&copy; 2008 E-Ticons, Todos os direitos reservados
    <div align="center">- www.e-ticons.com.br, fone/fax: (83) 3241-9973 -</div>
  </div>
  <span id="log" class="ajaxStatus"><img src="imagens/ajaxload.gif"/></span></div>
<!-- tudo --> 
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-27091929-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<?php } ?>
</body>
<!-- InstanceEnd --></html>
