%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/rrsos.com.br/
Upload File :
Create Path :
Current File : /var/www/projetos/rrsos.com.br/index.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php
include_once('inc/config.php');

$pais = isset($_GET['pais']) ? $_GET['pais'] : 33;
$msg_status = isset($_GET['msg']) ? $_GET['msg'] : '';

$paises = json_decode(file_get_contents($url_ongrace_mais.'index.php/service/todospaises/'));
$estados = json_decode(file_get_contents($url_ongrace_mais.'index.php/service/todosestados/pais/'.$pais));
$mensagem = json_decode(file_get_contents($url_ongrace_mais.'index.php/service/mensagensmissionario/'));
?>
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="pt" lang="pt">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Mensagens</title>

        <link rel="stylesheet" type="text/css" href="css/main_index.css" />
        <link rel="stylesheet" type="text/css" href="js/jquery.sexy-combo-2.1.3/css/sexy-combo.css" />
        <link rel="stylesheet" type="text/css" href="js/jquery.sexy-combo-2.1.3/css/custom/custom.css" />
        <link rel="stylesheet" type="text/css" href="js/jquery.sexy-combo-2.1.3/css/rrsos/rrsos.css" />
        <link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
        <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">

        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
        <script type="text/javascript" src="js/jquery.maskedinput-1.3.min.js"></script>
        <script type="text/javascript" src="js/jquery.validate.min.js"></script>
        <script type="text/javascript" src="js/jquery.textPlaceholder.js"></script>
        <script type="text/javascript" src="js/jquery.sparkbox-select.js"></script>
        <script type="text/javascript" src="js/jquery.sexy-combo-2.1.3/jquery.sexy-combo.min.js"></script>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-116681118-8"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-116681118-8');
</script>

    </head>
    <body>
        <div class="principal">
            <div class="botao-oracao">
                <a href="javascript: togglePedido();"><img src="img/bt-pedido-oracao-home.png" /></a>
            </div>
            <div class="col-esquerda">
                <div class="rodape-esquerdo">
                    <img src="img/logos_left_border.gif"/>
                    <div class="logos">
                        <a href="https://www.ongrace.com/"><img class="left-logo" src="img/logo_iigd.gif"/></a>
                        &nbsp;
                        <a href="https://www.ongrace.com/"><img class="right-logo" src="img/logo_ongrace.gif"/></a>
                    </div>
                    <img src="img/logos_right_border.gif"/>
                </div>
            </div>
            <div class="col-direita">
                <div class="titulo"></div>
                <div class="conteudo">
                    <div class="topo">
                        <p class="linha1"><span>Receba</span> em seu e-mail <span>mensagens</span></p>
                        <p class="linha2">do <span>Missionário</span> <span class="white">R. R. Soares</span></p>
<?php /*
                        <p class="linha1"><span>Cadastre-se</span></p>
                        <p class="linha2">e <span>receba</span></p>
                        <p class="linha3">em seu e-mail</p>
                        <p class="linha4"><span>mensagens</span></p>
                        <p class="linha5">do</p>
                        <p class="linha6"><span>Missionário</span> R. R. Soares</p>
 */ ?>
                    </div>
                    <div class="corpo">
                        <div class="formulario">
                            <img class="left-border" src="img/bg_left_home_form.png" />
<?php //<form action='https://rrsos.activehosted.com/proc.php' method='post' id='_form_1012' accept-charset='utf-8' enctype='multipart/form-data'> ?>
<?php //<form action='https://rrsostest.activehosted.com/proc.php' method='post' id='_form_1012' accept-charset='utf-8' enctype='multipart/form-data'> ?>
<?php //<form action='enviar_cadastro.php' method='post' id='_form_1012' accept-charset='utf-8' enctype='multipart/form-data'> ?>
                            <form action='https://rrsos.activehosted.com/proc.php' method='post' id='_form_1012' accept-charset='utf-8' enctype='multipart/form-data'>
                                <input type='hidden' name='f' value='1012'>
                                <input type='hidden' name='s' value=''>
                                <input type='hidden' name='c' value='0'>
                                <input type='hidden' name='m' value='0'>
                                <input type='hidden' name='act' value='sub'>
                                <input type='hidden' name='nlbox[]' value='1'>

                                <div class="campos">
                                    <div class="campo-nome">
                                        <img class="left-border-input" src="img/bg_left_input.png" />
                                        <input class="input-text" type="text" id="nome" name="fullname" placeholder="Nome" />
                                        <img class="right-border-input" src="img/bg_right_input.png" />
                                    </div>
                                    <div class="campo-email">
                                        <img class="left-border-input" src="img/bg_left_input.png" />
                                        <input class="input-text email" type="text" id="email" name="email" placeholder="Email" />
                                        <img class="right-border-input" src="img/bg_right_input.png" />
                                    </div>
                                    <div class="campo-email-conf">
                                        <img class="left-border-input" src="img/bg_left_input.png" />
                                        <input class="input-text email" type="text" id="email_conf" name="field[5]" placeholder="Confirmação Email" />
                                        <img class="right-border-input" src="img/bg_right_input.png" />
                                    </div>
                                    <div class="campo-data-nasc">
                                        <img class="left-border-input" src="img/bg_left_input.png" />
                                        <input class="input-text" type="text" id="nascimento" name="nascimento" placeholder="Data de Nascimento" />
                                        <input type="hidden" id="field4" name="field[4]" />
                                        <img class="right-border-input" src="img/bg_right_input.png" />
                                    </div>
                                    <div id="campo-pais" class="campo-pais" style="z-index:999;">
                                        <img class="left-border-input" src="img/bg_left_input.png" />
                                        <select name="pais" id="paises"> 
                                            <option value="" selected="selected"></option> 
                                            <?php if(!empty($paises)): ?>
                                            <?php
                                                    $brasil = $paises[32];
                                                    $paises = array_merge(array_slice($paises, 0, 32), array_slice($paises, 33));
                                                    array_unshift($paises, $brasil);
                                            ?>
                                            <?php foreach($paises as $pais): ?>
                                                <option value="<?php echo $pais->iso3;?>"><?php echo $pais->nome;?></option>
                                            <?php endforeach; ?>
                                            <?php endif; ?>
                                        </select>
                                        <input type="hidden" id="field1" name="field[1]" />
                                        <img class="right-border-input" src="img/bg_right_input.png" />
                                    </div>
                                    <div id="campo-estado" class="campo-estado" style="z-index:999;">
                                        <img class="left-border-input" src="img/bg_left_input.png" />
                                        <select name="estado" id="estados">
                                            <option value=""></option>
                                            <?php if(!empty($estados)): ?>
                                            <?php foreach($estados as $estado): ?>
                                                <option value="<?php echo $estado->uf;?>"><?php echo $estado->nome;?></option>
                                            <?php endforeach; ?>
                                            <?php endif; ?>
                                        </select>
                                        <input type="hidden" id="field2" name="field[2]" />
                                        <img class="right-border-input" src="img/bg_right_input.png" />
                                    </div>
                                    <div id="campo-cidade" class="campo-cidade">
                                        <img class="left-border-input" src="img/bg_left_input.png" />
                                        <input class="input-text" type="text" id="field3" name="cidade" placeholder="Cidade" />
                                        <!--select name="Cidades" id="cidades">
                                            <option value=""></option>
                                        </select>
                                        <div class="conteudo-cidade" style="float: left; margin: 0;">
                                        </div-->
                                        <input type="hidden" name="field[3]" />
                                        <img class="right-border-input" src="img/bg_right_input.png" />
                                        <img class="right-border-input" src="img/bg_right_input.png" />
                                    </div>
                                </div>
                                <div class="botao-enviar">
                                    <img class="left-border-bt-enviar" src="img/bg_left_bt_enviar.png" />
                                    <input type="submit" value="ENVIAR" />
                                    <img class="right-border-bt-enviar" src="img/bg_right_bt_enviar.png" />
                                </div>
                                <div class="atualizar">
                                    <a target="_blank" href="https://rrsos.activehosted.com/update_request/1">Atualizar dados</a>
                                </div>
                            </form>
                            <img class="right-border" src="img/bg_right_home_form.png" />
                        </div>
                    </div>
                    <div class="rodape">
                        <div class="box-noticias">
                            <img class="left-border" src="img/bg_left_box_news.png" />
                            <?php
                                if( !empty($mensagem) && count($mensagem) == 1 ): 
                                    $data = (string)$mensagem[0]->data_publicacao;

                                    $orig_locale = setlocale(LC_TIME, 0);
                                    setlocale(LC_TIME, 'pt_BR');
                                    $mes_formatado = ucfirst(strftime('%B', strtotime($data)));
                                    setlocale(LC_TIME, $orig_locale);
                            ?>
                            <div class="data">
                                <p class="linha1"><?php echo date('d', strtotime($data)); ?></p>
                                <p class="linha2"><?php echo $mes_formatado; ?></p>
                                <p class="linha3"><?php echo date('Y', strtotime($data)); ?></p>
                            </div>
                                <div class="noticia">
                            
                                    <p class="linha1"><a href="./mensagens.php?<?php echo !empty($mensagem[0]->slug) ? 'mensagem='.$mensagem[0]->slug : 'data='.date('Y-m-d', strtotime($data)); ?>"><?php echo mb_strtoupper($mensagem[0]->titulo); ?></a></p>
                                    <p class="linha2"><a href="./mensagens.php?<?php echo !empty($mensagem[0]->slug) ? 'mensagem='.$mensagem[0]->slug : 'data='.date('Y-m-d', strtotime($data)); ?>"><?php echo mb_substr(html_entity_decode($mensagem[0]->mensagem, ENT_COMPAT, 'UTF-8'), 0, 57), '...'; ?></a></p>
                                    <p class="linha3"><a href="./mensagens.php?<?php echo !empty($mensagem[0]->slug) ? 'mensagem='.$mensagem[0]->slug : 'data='.date('Y-m-d', strtotime($data)); ?>">leia mais</a></p>
                            
                                </div>
                            <?php
                                endif;
                            ?>
                            <img class="right-border" src="img/bg_right_box_news.png" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="erros" style="color: red;" title="Erros no form">
        </div>
        <div class="direitos">
            <p>Todos os direitos reservados à Igreja Internacional da Graça de Deus Ongrace.com &middot; O site do povo de Deus.</p>
        </div>

        <div class="form-oracao">
            <form id="pedido-oracao" action="enviar_pedido.php" method="POST">
                <div class="botao-fechar2"><p>fechar</p><img src="img/close_icon.png" /></div>
                <img class="left-border" src="img/bg_left_msg_form.png" />
                <p>Pedido de Oração</p>
                <div class="campo-nome">
                    <img class="left-border-input" src="img/bg_left_input.png" />
                    <input class="input-text required notToggleContact" id="nome-oracao" type="text" name="nome" placeholder="Nome Completo" />
                    <img class="right-border-input" src="img/bg_right_input.png" />
                </div>
                <div class="campo-email">
                    <img class="left-border-input" src="img/bg_left_input.png" />
                    <input class="input-text email required" type="text" id="email-oracao" name="email" placeholder="Email" />
                    <img class="right-border-input" src="img/bg_right_input.png" />
                </div>
                <div class="campo-pedido">
<?php //<img class="left-border-textarea" src="img/bg_left_textarea.png" /> ?>
                    <textarea class="notToggleContact required" name="pedido" placeholder="Pedido de Oração"></textarea>
<?php //<img class="right-border-textarea" src="img/bg_right_textarea.png" /> ?>
                </div>
                <div class="botao-enviar">
                    <img class="left-border-bt-enviar" src="img/bg_left_bt_enviar.png" />
                    <input class="notToggleContact" id="enviar-oracao" type="submit" value="ENVIAR" />
                    <img class="right-border-bt-enviar" src="img/bg_right_bt_enviar.png" />
                </div>
                <img class="right-border" src="img/bg_right_msg_form.png" />
            </form>
            <div style="margin: auto; color: white; text-align: center; position: relative; top: 25%; font-size: 9pt;">*todos os campos são obrigatórios</div>
            <div class="erros-lista"></div>
        </div>
        <script type="text/javascript">
            var url_ongrace_mais = '<?php echo $url_ongrace_mais; ?>';
            $('document').ready(function(){
                <?php if(!empty($msg_status)): ?>
                alert('<?php echo $msg_status; ?>');
                <?php endif;?>
            });
        </script>
        <script src="js/index.js" type="text/javascript"></script>
    </body>
</html>

Zerion Mini Shell 1.0