| Server IP : 23.111.136.34 / Your IP : 216.73.216.136 Web Server : Apache System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : meusitei ( 1072) PHP Version : 5.6.40 Disable Function : show_source, system, shell_exec, passthru, proc_open MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/meusitei/public_html/controle/cms/sistema/ |
Upload File : |
<?
/**
*@package SeuSiteImobiliario
* @author Seu Site Imobiliario.
* @copyright Seu Site Imobiliario.
* @internal Documenta função interna do código
* @since 2011
* Este arquivo edita caracteristicas privadas sistema, feito somente pelos usuarios premium
* sistema.php esse é arquivo do post do formulario de cadastro
*/
/**
* include que faz a o controle de acesso ao sistema, funciona, caso o usuario nao esteja logado no sistema ele nao terá permissão de acesso à pagina.
* <code>
* \@require_once ../verifica.php
* </code>
*/
require_once("../verifica.php");
/**
* include de conexao
* <code>
* \@include adm/conect.php
* </code>
*/
include("../conectdb.php");
if( $nivel_user != "3" ){
echo "ÁREA RESTRITA";
echo "<br />";
echo "Você não tem permissão de acesso a página consultada!";
echo "<br /><br />";
echo "<input name=\"button\" type=\"button\" onClick=\"window.location= '../contador/start.php';\" value=\"Voltar\">";
}
else{
function mysql_fetch_all($qry_result) {
$result = array();
while ($l = mysql_fetch_assoc($qry_result)) {
$result[] = $l;
}
return $result;
}
if (!empty($_POST)){
$sql_verifica_perm =mysql_query("SELECT * FROM configuracoes ORDER BY id_configuracoes DESC LIMIT 1");
$linha_verifica_perm = mysql_num_rows($sql_verifica_perm);
if ($linha_verifica_perm){
$linha_verifica_perm = mysql_fetch_array($sql_verifica_perm);
mysql_query("UPDATE configuracoes SET plano= '$_POST[plano]', periodo= '$_POST[periodo]', topo= '$_POST[topo]', mobile= '$_POST[mobile]' , quantidade= '$_POST[quantidade]', dominio= '$_POST[dominio]', pteste= '$_POST[pteste]', pteste_data= '$_POST[pteste_data]', parceria= '$_POST[parceria]', linkparceiro= '$_POST[linkparceiro]', ativar= '$_POST[ativar]', manutencao= '$_POST[manutencao]', comentarios= '$_POST[comentarios]', max_usuarios = '$_POST[qtdeemails]', sis_mensagem = '$_POST[mensagem]', agendaonline = '$_POST[agenda]', atendimento = '$_POST[atendimento]', newsletter = '$_POST[newsletter]', relat_user = '$_POST[relatorio]', transferencia = '$_POST[transferencia]', cod_atendimento = '$_POST[cod_atendimento]', webcasas= '$_POST[webcasas]', olx= '$_POST[olx]', fisgo= '$_POST[fisgo]', imobox= '$_POST[imobox]', trovit= '$_POST[trovit]', tatri= '$_POST[tatri]' WHERE id_configuracoes = '$linha_verifica_perm[id_configuracoes]' ") or die(mysql_error());
if ($_POST['topo']=='0'){
$sqlbanner = mysql_query("SELECT * FROM tbl_banners WHERE status != '1'");
$linha_verifica_banner = mysql_fetch_all($sqlbanner);
if($linha_verifica_banner) {
foreach ($linha_verifica_banner as $chv => $value) {
mysql_query("UPDATE tbl_banners SET condicao = '0' WHERE id_banner = '$value[id_banner]'") or die(mysql_error());
}
include('../topodinamico/geraXml.php');
}
}
log_usuario($_SERVER['REQUEST_URI'],$id_user,array('acao' => 'update'));
}
else
{
mysql_query ("INSERT INTO configuracoes (plano, periodo, topo, mobile ,quantidade, dominio, pteste, pteste_data, parceria, ativar, manutencao, comentarios, max_usuarios, sis_mensagem, agendaonline, atendimento, newsletter, relat_user, transferencia, cod_atendimento, webcasas, olx, fisgo, imobox, trovit, tatri, id_session)
VALUES ('$_POST[plano]', '$_POST[periodo]', '$_POST[topo]', '$_POST[mobile]','$_POST[quantidade]', '$_POST[dominio]', '$_POST[pteste]', '$_POST[pteste_data]', '$_POST[parceria]', '$_POST[linkparceiro]', '$_POST[ativar]', '$_POST[manutencao]', '$_POST[comentarios]', '$_POST[qtdeemails]', '$_POST[mensagem]', '$_POST[agenda]', '$_POST[atendimento]', '$_POST[newsletter]', '$_POST[relatorio]', '$_POST[transferencia]', '$_POST[cod_atendimento]', '$_POST[webcasas]', '$_POST[olx]', '$_POST[fisgo]', '$_POST[imobox]', '$_POST[trovit]', '$_POST[tatri]', '$id_user;')") or die(mysql_error());
log_usuario($_SERVER['REQUEST_URI'],$id_user,array('acao' => 'cadastrar'));
}
header("Location: sistema.php?atualizar=ok");
}
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Área Administrativa</title>
<link rel="shortcut icon" href="../favicon.ico" />
<link rel="icon" href="../favicon.png" type="image/png" />
<link href="../css/admin.css" rel="stylesheet" type="text/css" />
<!--Editor-->
<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
<!--Fim editor-->
<!--Box de notificação-->
<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../js/scripts.js"></script>
<!--Fim box de notificação-->
<!--Efeito lightbox-->
<link media="screen" rel="stylesheet" href="../colorbox.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="../colorbox/jquery.colorbox.js"></script>
<script src="../colorbox/custom.js"></script>
<script>
$(document).ready(function(){
//Examples of how to assign the ColorBox event to elements
$(".example6").colorbox({iframe:true, overlayClose:false, innerWidth:800, innerHeight:500});
//Example of preserving a JavaScript event for inline calls.
$("#click").click(function(){
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
return false;
});
});
</script>
<!--Fim efeito lightbox-->
<!--Tooltips-->
<script type="text/javascript" src="../js/tooltip.js"></script>
<!--Fim tooltips-->
<!--Box dialog-->
<link href="../css/jquery.ui.all.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../js/jquery-ui-1.8.7.custom.min.js"></script>
<script type="text/javascript" src="../js/jquery.validate.pack.js"></script>
<script type="text/javascript" src="../js/prettyCheckboxes.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#admin_form").validate({
meta: "validate"
});
$('#admin_form input[type=radio]').prettyCheckboxes({
'display': 'inline'
});
$("#dialog").dialog({
bgiframe: true, autoOpen: false, width:"auto", height:"auto", zindex:9998, modal: false
});
});
</script>
<!--Fim box dialog-->
<!--Css Calendario-->
<link href="../css/jquery.ui.all.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../js/jquery-ui-1.8.7.custom.min.js"></script>
<script type="text/javascript">
$(function(){
$("#datepicker").datepicker({
dateFormat: 'dd/mm/yy',
showOtherMonths: true,
selectOtherMonths: true,
dayNamesMin: ['DOM', 'SEG', 'TER', 'QUA', 'QUI', 'SEX', 'SAB'],
monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro']
});
})
</script>
<!--Fim calendario-->
</head>
<body>
<? //linha[algo] = variavel geral, unica para toda esta pagina
$sql = mysql_query("SELECT * FROM configuracoes ORDER BY id_configuracoes DESC LIMIT 1") or die(mysql_error());
$linha = mysql_fetch_array($sql);
?>
<!--TOPO-->
<div id="topo">
<!--BOX-->
<div id="box">
<!--VISITAR E SAIR-->
<? include ("../menurapido.php");?>
<!--FIM VISITAR E SAIR-->
<? include ("../menuuser.php");?>
</div>
<!--FIM BOX-->
<div id="logo"><img src="../files/marca_painel.png" width="300" height="92" alt="Painel Administrativo V 1.0" title="Painel Administrativo V 1.0" /></div>
<!--MENU TOPO-->
<? include ("../menusistema.php");?>
<!--FIM MENU TOPO-->
</div>
<!--FIM TOPO-->
<!--CORPO-->
<div id="corpo">
<!--MOLDURA-->
<div id="moldura">
<!--Coluna left-->
<div id="sidebar">
<? if($linhaconfgeral['parceria']){?>
<div id="externo"></div>
<? }else { ?>
<div id="externo"><? include ("../banner.php");?></div>
<? } ?>
</div>
<!--Fim coluna left-->
<div id="content">
<div id="titulos">
<h1>Sistema - Administrar</h1><div id="dica"><a href="javascript:void(0);" onclick="$('#dialog').dialog('open'); return false">DICA</a></div></div>
<div class="notificacao atencao canhide">
<p><strong>ATENÇÃO - </strong>Os campos abaixo são de uso administrativo e pode acarretar no mal funcionamento do sistema.</p></div>
<? if ($_GET['atualizar'] != "") {?>
<div class="notificacao sucesso canhide"><p><strong>SUCESSO - </strong>Sistema atualizado com sucesso! Clique aqui para fechar.</p></div>
<? } ?>
<div id="table">
<!--CORPO-->
<div id="espacamento">
<h2>ATIVAÇÃO DO SISTEMA</h2>
<form action="sistema.php" method="post" name="sistema">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="bordatabela">
<tr>
<td width="17%"><strong>Plano:</strong></td>
<td width="83%"><table width="580" border="0" cellspacing="0" cellpadding="0" class="bordatabelas">
<tr>
<td width="172"><label for="plano"></label>
<select name="plano" class="estado2" id="plano">
<option value="Imob PLUS" <? if($linha['plano'] == "Imob PLUS") echo "selected";?>>Imob PLUS</option>
<option value="Imob PRO" <? if($linha['plano'] == "Imob PRO") echo "selected";?>>Imob PRO</option>
<option value="Imob MASTER" <? if($linha['plano'] == "Imob MASTER") echo "selected";?>>Imob MASTER</option>
</select></td>
<td width="124" align="right"><strong>Período: </strong></td>
<td width="284"><label for="periodo"></label>
<select name="periodo" class="estado2" id="periodo">
<option value="Mensal" <? if($linha['periodo'] == "Mensal") echo "selected";?>>Mensal</option>
<option value="Trimestral" <? if($linha['periodo'] == "Trimestral") echo "selected";?>>Trimestral</option>
<option value="Semestral" <? if($linha['periodo'] == "Semestral") echo "selected";?>>Semestral</option>
<option value="Anual" <? if($linha['periodo'] == "Anual") echo "selected";?>>Anual</option>
</select></td>
</tr>
</table></td>
</tr>
<tr>
<td><strong>Nº de Imóveis:</strong></td>
<td><table width="580" border="0" cellspacing="0" cellpadding="0" class="bordatabelas">
<tr>
<td width="172"><label for="quantidade"></label>
<input name="quantidade" type="text" class="campo" id="quantidade" value="<? echo $linha['quantidade'];?>" /></td>
<td width="124" align="right"><strong>Domínio:</strong> </td>
<td width="284"><label for="dominio"></label>
<input name="dominio" type="text" class="campo" id="dominio" size="25" value="<? echo $linha['dominio'];?>" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><strong>Parceiro:</strong></td>
<td><table width="580" border="0" cellspacing="0" cellpadding="0" class="bordatabelas">
<tr>
<td width="172"><table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%"><input type="radio" name="parceria" id="parceria" value="1" <? if($linha['parceria'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="parceria" id="parceria" value="0" <? if($linha['parceria'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table></td>
<td width="124" align="right"><strong>Link parceiro:</strong> </td>
<td width="284"><input name="linkparceiro" type="text" class="campo" id="linkparceiro" size="25" value="<? echo $linha['linkparceiro'];?>" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><strong>Teste:</strong></td>
<td><table width="580" border="0" cellspacing="0" cellpadding="0" class="bordatabelas">
<tr>
<td width="172"><table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%"><input type="radio" name="pteste" id="pteste" value="1" <? if($linha['pteste'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="pteste" id="pteste" value="0" <? if($linha['pteste'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table></td>
<td width="124" align="right"><strong>Período:</strong> </td>
<td width="284">
<input name="pteste_data" type="text" class="campo" id="datepicker" size="10" maxlength="10" value="<? echo $linha['pteste_data']?>"/></td>
</tr>
</table></td>
</tr>
<tr>
<td><strong>Nº de usuários:</strong></td>
<td><table width="580" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="172"><label for="qtdeemails"></label>
<input name="qtdeemails" type="text" class="campo" id="qtdeemails" value="<? echo $linha['max_usuarios']?>"/></td>
<td width="124" align="right"><strong>Relatório user:</strong> </td>
<td width="284"><table width="100" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="15%"><input type="radio" name="relatorio" value="1" <? if($linha['relat_user'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="relatorio" value="0" <? if($linha['relat_user'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><strong>Mensagem:</strong></td>
<td><table width="580" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="172"><table width="100" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="15%"><input type="radio" name="mensagem" value="1" <? if($linha['sis_mensagem'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="mensagem" value="0" <? if($linha['sis_mensagem'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table></td>
<td width="124" align="right"><strong>Agenda Online: </strong></td>
<td width="284"><table width="100" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="15%"><input type="radio" name="agenda" value="1" <? if($linha['agendaonline'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="agenda" value="0" <? if($linha['agendaonline'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><strong>Atendimento:</strong></td>
<td><table width="580" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="172"><table width="100" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="15%"><input type="radio" name="atendimento" value="1" <? if($linha['atendimento'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="atendimento" value="0" <? if($linha['atendimento'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table></td>
<td width="124" align="right"><strong>Newsletter:</strong> </td>
<td width="284"><table width="100" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="15%"><input type="radio" name="newsletter" value="1" <? if($linha['newsletter'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="newsletter" value="0" <? if($linha['newsletter'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><strong>Transferência:</strong></td>
<td><table width="580" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="172"><table width="100" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="15%"><input type="radio" name="transferencia" value="1" <? if($linha['transferencia'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="transferencia" value="0" <? if($linha['transferencia'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table></td>
<td width="124" align="right"><strong>Versão mobile: </strong></td>
<td width="284"><table width="100" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="15%"><input type="radio" name="mobile" value="1" <? if($linha['mobile'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="mobile" value="0" <? if($linha['mobile'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><strong>Topo dinâmico:</strong></td>
<td><table width="580" border="0" cellspacing="0" cellpadding="0" class="bordatabelas">
<tr>
<td width="172">
<table width="100" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="15%"><input type="radio" name="topo" value="1" <? if($linha['topo'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="topo" value="0" <? if($linha['topo'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table>
</td>
<td width="124" align="right"><strong> </strong></td>
<td width="284"> </td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><strong>Código atendimento:</strong></td>
<td><label for="cod_atendimento"></label>
<textarea name="cod_atendimento" cols="45" rows="3" class="textareatres" id="cod_atendimento"><? echo $linha['cod_atendimento'];?></textarea></td>
</tr>
<tr>
<td valign="top"><strong>Ativar site:</strong></td>
<td><table width="580" border="0" cellspacing="0" cellpadding="0" class="bordatabelas">
<tr>
<td width="172"><table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%"><input type="radio" name="ativar" id="ativar" value="1" <? if($linha['ativar'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="ativar" id="ativar" value="0" <? if($linha['ativar'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table></td>
<td width="124" align="right">>><a href="molde.html" class="example6" title="Visualizar informações do imóvel">Modelo de página</a></td>
<td width="284"> </td>
</tr>
</table>
<br />
<strong>Texto:</strong><br />
<textarea name="manutencao" cols="45" class="ckeditor" id="editor_v2"><? echo $linha['manutencao'];?></textarea></td>
</tr>
</table>
<br />
<h2>INTEGRAÇÃO COM PORTAIS DE BUSCAS</h2>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="bordatabela">
<tr>
<td width="17%"><strong>WebCasas:</strong></td>
<td width="83%"><table width="580" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="415"><label for="webcasas"></label>
<input name="webcasas" type="text" class="campo" id="webcasas" size="52" value="<? echo $linha['dominio'];?>parceiros/webcasas.xml" />
<? $sql1 = mysql_query("SELECT * FROM imoveis WHERE webcasas= '1' $adendo") or die(mysql_error()); ?>(<? echo $numwebcasas = mysql_num_rows($sql1);?>)</td>
<td width="62" align="right"><strong>Enviado:</strong> </td>
<td width="103"><table width="100" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="15%"><input type="radio" name="webcasas" value="1" <? if($linha['webcasas'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="webcasas" value="0" <? if($linha['webcasas'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><strong>OLX:</strong></td>
<td><table width="580" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="415"><label for="olx"></label>
<input name="olx" type="text" class="campo" id="olx" size="52" value="<? echo $linha['dominio'];?>parceiros/olx_feed.xml" />
<? $sql2 = mysql_query("SELECT * FROM imoveis WHERE olx= '1' $adendo") or die(mysql_error()); ?>(<? echo $numolx = mysql_num_rows($sql2);?>)</td>
<td width="62" align="right"><strong>Enviado:</strong> </td>
<td width="103"><table width="100" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="15%"><input type="radio" name="olx" value="1" <? if($linha['olx'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="olx" value="0" <? if($linha['olx'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><strong>Fisgo:</strong></td>
<td><table width="580" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="415"><label for="fisgo"></label>
<input name="fisgo" type="text" class="campo" id="fisgo" size="52" value="<? echo $linha['dominio'];?>parceiros/fisgo.xml" />
<? $sql3 = mysql_query("SELECT * FROM imoveis WHERE fisgo= '1' $adendo") or die(mysql_error()); ?>(<? echo $numfisgo = mysql_num_rows($sql3);?>)</td>
<td width="62" align="right"><strong>Enviado:</strong> </td>
<td width="103"><table width="100" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="15%"><input type="radio" name="fisgo" value="1" <? if($linha['fisgo'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="fisgo" value="0" <? if($linha['fisgo'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><strong>Imobox:</strong></td>
<td><table width="580" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="415"><label for="imobox"></label>
<input name="imobox" type="text" class="campo" id="imobox" size="52" value="<? echo $linha['dominio'];?>parceiros/imobox.xml" />
<? $sql4 = mysql_query("SELECT * FROM imoveis WHERE imobox= '1' $adendo") or die(mysql_error()); ?>(<? echo $numimobox = mysql_num_rows($sql4);?>)</td>
<td width="62" align="right"><strong>Enviado:</strong> </td>
<td width="103"><table width="100" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="15%"><input type="radio" name="imobox" value="1" <? if($linha['imobox'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="imobox" value="0" <? if($linha['imobox'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><strong>Trovit:</strong></td>
<td><table width="580" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="415"><label for="trovit"></label>
<input name="trovit" type="text" class="campo" id="trovit" size="52" value="<? echo $linha['dominio'];?>parceiros/trovit_feed.xml" />
<? $sql5 = mysql_query("SELECT * FROM imoveis WHERE trovit= '1' $adendo") or die(mysql_error()); ?>(<? echo $numtrovit = mysql_num_rows($sql5);?>)</td>
<td width="62" align="right"><strong>Enviado:</strong> </td>
<td width="103"><table width="100" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="15%"><input type="radio" name="trovit" value="1" <? if($linha['trovit'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="trovit" value="0" <? if($linha['trovit'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><strong>TáTri:</strong></td>
<td><table width="580" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="415"><label for="tatri"></label>
<input name="tatri" type="text" class="campo" id="tatri" size="52" value="<? echo $linha['dominio'];?>parceiros/tatri.xml" />
<? $sql6 = mysql_query("SELECT * FROM imoveis WHERE tatri= '1' $adendo") or die(mysql_error()); ?>(<? echo $numtatri = mysql_num_rows($sql6);?>)</td>
<td width="62" align="right"><strong>Enviado:</strong> </td>
<td width="103"><table width="100" border="0" cellpadding="0" cellspacing="0" class="bordatabelas">
<tr>
<td width="15%"><input type="radio" name="tatri" value="1" <? if($linha['tatri'] == 1) echo "checked";?>></td>
<td width="25%">Sim</td>
<td width="15%"><input type="radio" name="tatri" value="0" <? if($linha['tatri'] == 0) echo "checked";?>></td>
<td width="45%">Não</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<br />
<h2>ANOTAÇÕES</h2>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="bordatabela">
<tr>
<td width="17%" valign="top"><strong>Observações:</strong></td>
<td width="83%"><label for="codigo_atendimento"></label>
<textarea name="comentarios" cols="45" rows="5" class="textarea" id="comentarios"><? echo $linha['comentarios'];?></textarea></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><br /><input type="submit" name="cadastrar" id="cadastrar" value="Atualizar" /></td>
</tr>
</table>
</form>
<script type="text/javascript">
//<![CDATA[
// This call can be placed at any point after the
// <textarea>, or inside a <head><script> in a
// window.onload event handler.
// Replace the <textarea id="editor"> with an CKEditor
// instance, using default configurations.
CKEDITOR.replace( 'editor_v2',
{
skin : 'v2',
filebrowserBrowseUrl : '<?= $urlBase.'arquivos/index.php' ?>',
filebrowserImageBrowseUrl : '<?= $urlBase.'arquivos/index.php' ?>',
toolbar :
/* Opção que irão aparecer no editor, aqui esta full, poderá ser personalizado*/
[
['Source','Format','FontSize','TextColor','Bold','Italic','Underline','SpecialChar',],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','Link','Unlink','Image','Preview',],
/*['Source','-','NewPage','Preview','-'],*/
/* ['Cut','Copy','Paste','PasteText','PasteFromWord','-'],*/
/* ['Undo','Redo','-','NumberedList','BulletedList','-',],*/
/* ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],*/
/* ['Link','Unlink'],*/
/* ['Image','Flash','Table','HorizontalRule'],*/
/* '/',*/
/* ['Format','Font','FontSize'],*/
/* ['TextColor','BGColor'],*/
],
});
//]]>
</script>
</div>
<!--FIM CORPO-->
<br />
</div>
<div class="clear"></div>
</div>
</div>
<!--FIM MOLDURA-->
</div>
<!--FIM CORPO-->
<!--RODAPE-->
<? include ("../rodape.php");?>
<!--FIM RODAPE-->
<!--BOX DICA-->
<div id="dialog" title="Dica - Manutenção do sistema">
<p><strong>ATENÇÃO</strong><br />
Essa página é destinada a manutenção e configuração do sistema! Cada plano possui uma configuração<br />
específica, consulte os planos através do site: www.meusiteimobiliario.com.br<br /><br />
<strong>CÓDIGO ATENDIMENTO</strong><br />
Após a implementação do atendimento online, gerar o código e inserir no campo "<strong>Código atendimento</strong>",<br />
clique no botão "<strong>Atualizar</strong>" no final da página.
<br /><br />
<strong>FUNÇÃO ATIVAR SITE</strong><br />
Através do link "<strong>Modelo de página</strong>" é possível selecionar o código da página de manutenção de acordo<br />
com o método de parceria<br /><br />
01 - Clique no link "<strong>Modelo de página</strong>" e selecione o código;<br />
02 - No editor clique na opção "<strong>Código fonte</strong>" e cole o código copiado;<br />
03 - Clique no botão "<strong>Atualizar</strong>" no final da página.<br /><br />
<strong>INTEGRAÇÃO COM PORTAIS DE BUSCAS</strong><br />
Através dessa opção é possível visualizar o nº de imóveis integrados aos portais parceiros, copie o link<br />
e envie através do e-mail para o responsável por cada portal.<br /><br />
<strong>NOTA</strong><br />
Após o envio para o parceiro marque a opção "<strong>Enviado</strong>" para fins de organização.
</div>
<!--FIM BOX DICA-->
</body>
</html>
<? } ?>