-
Notifications
You must be signed in to change notification settings - Fork 0
/
page_character_vehicle.php
53 lines (44 loc) · 2.14 KB
/
page_character_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
<?php include 'htmldoc_start.php'; ?>
<?php
//hope you just to need to change this
$fileName = "character_vehicle";
$pathSufix = $fileName."/";
$topic_one = "Personagem";
$topic_two = "Veículo";
$topic = $topic_two." de ".$topic_one;
$helperTableOne = "character";
$helperTableTwo = "vehicle";
?>
<div class="pc_topbar pc_yellow_red"></div>
<!--main content-->
<div id="pc_forms_holder" class="pc_forms_holder">
<?php include $pathSufix.'view_'.$fileName.'.php'; ?>
<?php include $helperTableOne.'/view_'.$helperTableOne.'.php'; ?>
<?php include $helperTableTwo.'/view_'.$helperTableTwo.'.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">
ID <?php echo($topic_one); ?>: <input type="text" name="id_one" style="width:98%;"><br>
ID <?php echo($topic_two); ?>: <input type="text" name="id_two" 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>Modificar Informação do <?php echo($topic); ?></h4>
<form action="<?php echo($pathSufix); ?>modify_<?php echo($fileName);?>.php" method="post">
ID do <?php echo($topic_one); ?> do <?php echo($topic_two); ?>: <input type="text" name="id" style="width:98%;"><br>
ID <?php echo($topic_one); ?>: <input type="text" name="id_one" style="width:98%;"><br>
ID <?php echo($topic_two); ?>: <input type="text" name="id_two" 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);?>.php" method="post">
ID do <?php echo($topic_one); ?> do <?php echo($topic_two); ?>: <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'; ?>