<?php
$pag_inicial = 'home';
$data_page = 'index';

if(@$_GET['pagina'] != ""){
	$pagina = @$_GET['pagina'];

	if($pagina != "" and $pagina != "index" and $pagina != "home"){
		$data_page = 'blog';
	}

}else{
	$pagina = $pag_inicial;	
}

require_once("cabecalho.php");

?>



<?php
require_once("paginas/".$pagina.".php");
?>   

<div class="popup popup-config">
	<div class="content-block" style="padding:5px !important">
		<h2 class="page_title">CONFIGURAÇÕES</h2>      
		<div class="page_single layout_fullwidth_padding">
			<div class="contactform">
				<form id="form_config" method="post">

					<div class="form_row">
						<label class="labels_form">Nome do Sistema</label>
						<input type="text" name="nome_sistema" value="" class="form_input" />
					</div>

					<div class="form_row">
						<label class="labels_form">Email do Sistema</label>
						<input type="text" name="email_sistema" value="" class="form_input" />
					</div>

					<div style="width:48%; float:left">
						<label class="labels_form">Telefone do Sistema</label>
						<input type="text" name="telefone_sistema" value="" class="form_input" style="height:25px;"/>
					</div>

					<div style="width:48%; float:right">
						<label class="labels_form">CNPJ do Sistema</label>
						<input type="text" name="cnpj_sistema" value="" class="form_input" style="height:25px;"/>
					</div>


					<div class="form_row">
						<label class="labels_form">Instagram</label>
						<input type="text" name="instagram_sistema" value="" class="form_input" />
					</div>


					<div style="width:48%; float:left">
						<label class="labels_form">Multa Atraso Conta</label>
						<input type="text" name="multa" value="" class="form_input" style="height:25px;"/>
					</div>

					<div style="width:48%; float:right">
						<label class="labels_form">Júros Atraso Dia</label>
						<input type="text" name="juros" value="" class="form_input" style="height:25px;"/>
					</div>


					<div style="width:48%; float:left">
						<label class="labels_form">Marca D'agua</label>
						<div class="selector_overlay">
							<select name="marca_dagua" class="" style="height:40px !important;">
								<option value="Sim">Sim</option>
								<option value="Não">Não</option>
								
							</select>
						</div>
					</div>

					<div style="width:48%; float:right">
						<label class="labels_form">Assinatura Recibo</label>
						<div class="selector_overlay">
							<select name="assinatura" class="" style="height:40px !important;">
								<option value="" disabled selected>Assinatura Recibo</option>
								<option value="Sim">Sim</option>
								<option value="Não">Não</option>
								
							</select>
						</div>
					</div>



					<div style="width:48%; float:left">
						<label class="labels_form">Impressão Automática</label>
						<div class="selector_overlay">
							<select name="impressao_automatica" class="" style="height:40px !important;">
								<option value="Sim">Sim</option>
								<option value="Não">Não</option>
								
							</select>
						</div>
					</div>


					<input type="submit" name="btn_salvar" class="form_submit botao_salvar" id="btn_salvar_config" value="SALVAR" />

				</form> 
			</div>    
		</div>          
	</div>
	<div class="close_popup_button">
		<a href="#" class="close-popup" data-popup=".popup-config"><img src="images/icons/black/menu_close.png" alt="" title="" /></a>
	</div>
</div>






<div class="popup popup-perfil">
	<div class="content-block" style="padding:5px !important">
		<h2 class="page_title">EDITAR DADOS</h2>      
		<div class="page_single layout_fullwidth_padding">
			<div class="contactform">
				<form id="form_perfil" method="post">

					<div class="form_row">
						<label class="labels_form">Nome</label>
						<input type="text" name="nome" value="" class="form_input" />
					</div>

					<div class="form_row">
						<label class="labels_form">Email</label>
						<input type="text" name="email" value="" class="form_input" />
					</div>

					<div class="form_row">
						<label class="labels_form">Telefone</label>
						<input type="text" name="telefone" value="" class="form_input" />
					</div>

					<div style="width:48%; float:left">
						<label class="labels_form">Senha</label>
						<input type="text" name="senha" value="" class="form_input" style="height:25px;"/>
					</div>

					<div style="width:48%; float:right">
						<label class="labels_form">Confirmar Senha</label>
						<input type="text" name="confirmar_senha" value="" class="form_input" style="height:25px;"/>
					</div>

					<div class="form_row">
						<label class="labels_form">Endereço</label>
						<input type="text" name="endereco" value="" class="form_input" />
					</div>


					<div class="form_row" align="center" onclick="imagem_perfil.click()">
						<img src="images/sem-foto-perfil.jpg" width="100px" id="target_perfil"><br>
						<img src="images/icone-arquivo.png" width="100px" style="margin-top: -12px">
					</div>

					<input type="file" name="imagem" id="imagem_perfil" style="display:none">

					<input type="submit" name="btn_salvar" class="form_submit botao_salvar" id="btn_salvar_perfil" value="SALVAR" />

				</form> 
			</div>    
		</div>          
	</div>
	<div class="close_popup_button">
		<a href="#" class="close-popup" data-popup=".popup-perfil"><img src="images/icons/black/menu_close.png" alt="" title="" /></a>
	</div>
</div>


<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/jquery.validate.min.js" ></script>
<script src="js/swiper.min.js"></script>
<script src="js/jquery.custom.js"></script>
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
</body>
</html>

<script type="text/javascript">
	$(document).ready(function() {
		$('.sel2').select2({
			dropdownParent: $('#popupForm')
		});

		$('.sel3').select2({
			
		});

	});
</script>

<style type="text/css">
		.select2-selection__rendered {
			line-height: 40px !important;
			font-size:16px !important;
			color:#666666 !important;
		}
		.select2-selection {
			height: 40px !important;
			font-size:16px !important;
			color:#666666 !important;
		}
</style> 