-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExibirModeloEntreData.php
More file actions
42 lines (33 loc) · 1.34 KB
/
Copy pathExibirModeloEntreData.php
File metadata and controls
42 lines (33 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
include("conexao.php");
include_once("functions.php");
if(ProtegePag() == true){
global $banco;
if( ($_SESSION['acesso'] == 1) || ($_SESSION['acesso'] == 2)){
$DataAtual = date('d/m/Y',time());
$id = (isset($_POST['id'])) ? $_POST['id'] : '';
if($id == "S"){
echo "
<div class=\"form-group\">
<label class=\"col-md-3 control-label\">Data</label>
<div class=\"col-md-9\">
<div class=\"input-group\">
<input type=\"text\" class=\"form-control EntreDatasPicker\" id=\"DataInicio\" name=\"DataInicio\" value=\"".$DataAtual."\"/>
<span class=\"input-group-addon add-on\"> - </span>
<input type=\"text\" class=\"form-control EntreDatasPicker\" id=\"DataFinal\" name=\"DataFinal\" value=\"".$DataAtual."\"/>
</div>
</div>
</div>
";
}
?>
<script type="text/javascript" src="js/plugins/bootstrap/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="js/plugins/bootstrap/locales/bootstrap-datepicker-br.js"></script>
<?php
}else{
echo Redirecionar('index.php');
}
}else{
echo Redirecionar('login.php');
}
?>