Repository navigation
Expand file tree
/
Copy pathendre-data.php
More file actions
87 lines (58 loc) · 1.55 KB
/
Copy pathendre-data.php
File metadata and controls
87 lines (58 loc) · 1.55 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html lang="no">
<head>
<title>Endre registrert data</title>
<meta charset="utf-8">
<!-- INKLUDERER HEADER -->
<?php include "./include/header.php"; ?>
</head>
<body>
<!-- VIS DATA REGISTRERT I TABELL -->
<?php include "./include/page-start.php"; ?>
<main class="container">
<div class="row">
<!-- INKLUDERER HOVEDMENY -->
<?php include "./include/meny.php"; ?>
<div class="col-md-4">
<?php
@session_start();
@$innloggetBruker=$_SESSION["tuxbrukernavn"];
if (!$innloggetBruker) {
print('Du må logge inn.');
}
else {
print('
<form class="form" role="form" method="post" action="" id="endre-data" name="endre-data" onSubmit="return bekreft()">
<fieldset>
<legend>Endre registrert data</legend>
<div class="form-group">
<label for="velgTabell">Velg tabell:</label>
<select class="form-control" name="velgTabell" id="velgTabell">');
include("./include/listeboks-tabell.php");
print('
<br>
</select>
</div>
<div class="form-group">
<input type="submit" class="btn btn-info" value="Fortsett" id="fortsett" name="fortsett"/>
<a href="./endre-data.php" class="btn btn-info">Tilbake</a>
</div>
</fieldset>
</form>
</div>
');
}
?>
<div class="col-md-5">
<!-- INKLUDERER PHP SKJEMA OG DB FEILMELDINGER -->
<?php include "./include/inc_endredata.php"; ?>
<!-- JAVASCRIPT MELDINGER -->
<div id="melding"></div>
<!-- SLUTT PÅ PHP -->
</div>
</div>
</main>
<!-- INKUDERER FOOTER -->
<?php include "./include/footer.php"; ?>
</body>
</html>