-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
56 lines (37 loc) · 1.52 KB
/
index.php
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
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE HTML>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title>Crachá - Flex Virtual Airlines </title>
<meta property="og:title" content="Cartão Identificação Flex Virtual Airlines" />
</head>
<body>
<div>
<?php
$nome = "2";
$prefixo = "JDDLLLL";
$endereco = 'cards/' . $prefixo . '.png';
$validador = file_exists($endereco);
?>
<form action="cartao.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="nome" value="<?php echo $nome ?>"> <p />
<input type="hidden" name="exp" placeholder="01/2016"> <p />
<input type="hidden" name="natural" size=15 maxlength=15 placeholder="Brasiliense" > <p />
<input type="hidden" name="cargo" size=3 maxlength=3 style="text-transform:uppercase" placeholder="CEO" > <p />
<input type="hidden" name="prefixo" size=7 maxlength=7 style="text-transform:uppercase" value="<?php echo $prefixo ?>"> <p />
<label>Foto 3x4 <b>(Deve possuir tamanho próximo de [4.62cm X 4.8cm] ou [131px X 136px]) <b>:</label>
<input type="file" name="fileUpload" accept="image/*">
<input type="submit" value="<?php if ($validador == TRUE){echo "Renovar";} else {echo "Criar";} ?>">
</form>
<?php
if ($validador == TRUE){
echo "<img src='$endereco'/>";
} else {
$endereco = 'cards/padrao.png';
echo "<img src='$endereco'/>";
echo "Voce ainda nao possui cartao criado! Selecione criar para que o cartao seja gerado!";
}
?>
</div>
</body>
</html>