-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage_vehicle.php
73 lines (61 loc) · 3.05 KB
/
page_vehicle.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php include 'htmldoc_start.php'; ?>
<?php
//hope you just to need to change this
$fileName = "vehicle";
$pathSufix = $fileName."/";
$topic = "Veículo";
?>
<div class="pc_topbar pc_yellow"></div>
<!--main content-->
<div id="pc_forms_holder" class="pc_forms_holder">
<?php include $pathSufix.'view_'.$fileName.'.php'; ?>
<?php include $pathSufix.'view_'.$fileName.'_info_category.php'; ?>
<?php include $pathSufix.'view_'.$fileName.'_info.php'; ?>
</div>
<div class="pc_forms_holder">
<div class="pc_forms pc_margin">
<h4>Adicionar <?php echo($topic); ?></h4>
<form action="<?php echo($pathSufix);?>insert_<?php echo($fileName);?>.php" method="post">
Nome: <input type="text" name="name" style="width:98%;"><br>
<button type="submit" value="add" name="add" style="width:100%;">Adicionar</button>
</form>
</div>
<div class="pc_forms pc_margin">
<h4>Alterar Estado de <?php echo($topic); ?></h4>
<form action="<?php echo($pathSufix); ?>state_<?php echo($fileName);?>.php" method="post">
ID da <?php echo($topic); ?>: <input type="text" name="id" style="width:98%;"><br>
<button type="submit" value="state" name="state" style="width:100%;">Modificar</button>
</form>
</div>
<div class="pc_forms pc_margin">
<h4>Adicionar Categoria em <?php echo($topic); ?></h4>
<form action="<?php echo($pathSufix); ?>insert_<?php echo($fileName);?>_info_category.php" method="post">
Nome da Categoria: <input type="text" name="info_category" style="width:98%;"><br>
<button type="submit" value="addCategory" name="addCategory" style="width:100%;">Adicionar</button>
</form>
</div>
<div class="pc_forms pc_margin">
<h4>Adicionar Informação ao <?php echo($topic); ?></h4>
<form action="<?php echo($pathSufix); ?>insert_<?php echo($fileName);?>_info.php" method="post">
ID do <?php echo($topic); ?>: <input type="text" name="id" style="width:98%;"><br>
ID da Categoria: <input type="text" name="info_id" style="width:98%;"><br>
Informação: <input type="text" name="info" style="width:98%;"><br>
<button type="submit" value="addInfo" name="addInfo" style="width:100%;">Adicionar</button>
</form>
</div>
<div class="pc_forms pc_margin">
<h4>Modificar Informação do <?php echo($topic); ?></h4>
<form action="<?php echo($pathSufix); ?>modify_<?php echo($fileName);?>_info.php" method="post">
ID da Informação do <?php echo($topic); ?>: <input type="text" name="id" style="width:98%;"><br>
Info do <?php echo($topic); ?>: <input type="text" name="info" style="width:98%;"><br>
<button type="submit" value="modifyInfo" name="modifyInfo" style="width:100%;">Apagar</button>
</form>
</div>
<div class="pc_forms pc_margin">
<h4>Apagar Informação do <?php echo($topic); ?></h4>
<form action="<?php echo($pathSufix); ?>delete_<?php echo($fileName);?>_info.php" method="post">
ID da Informação do <?php echo($topic); ?>: <input type="text" name="id" style="width:98%;"><br>
<button type="submit" value="removeInfo" name="removeInfo" style="width:100%;">Apagar</button>
</form>
</div>
<?php include 'htmldoc_end.php'; ?>