-
Notifications
You must be signed in to change notification settings - Fork 2
/
update_f.php
95 lines (71 loc) · 3.18 KB
/
update_f.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Apps4Pesima::Registration</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="layout.css" media="all">
</head>
<body>
<?php
include 'config.php';
$id = $_POST['nama'];
$p = $coll->findOne(array('_id'=> new MongoId($id)));
?>
<div id="wrapper">
<h2>MongoDB (<a href="create.php">C</a>)reate (<a href="read.php">R</a>)ead (<a href="update.php">U</a>)pdate (<a href="delete.php">D</a>)elete </h2>
<div class="form-container">
<h2>Kemaskini Kehadiran Mesyuarat Agung PESIMA</u></h2>
<form action="nosql_update.php" method="post">
<fieldset>
<legend>Kemaskini Kehadiran Mesyuarat Agung PESIMA </legend>
<div>
<label for="uname">Nama </label>
<input name="nama" type="text" class="error" id="nama" size="60" value="<?php echo $p["nama"]; ?>"/>
<input name="id" type="hidden" value="<?php echo $p["_id"]; ?>" />
<p class="note"><strong>Nama penuh tuan/puan .</strong></p>
</div>
<div>
<label for="email">Gred Jawatan </label> <input name="gred" type="text" id="gred" size="60" value="<?php echo $p["gred"]; ?>"/>
<p class="note"><strong>Gred Jawatan Sekarang </strong></p>
</div>
<div>
<label for="emel">Emel </label> <input name="emel" type="text" id="emel" size="60" value="<?php echo $p["emel"]; ?>" />
<p class="note"><strong>Emel peserta </strong></p>
</div>
<div>
<label for="fname">Jabatan / Agensi </label>
<input id="jabatan" type="text" name="jabatan" size="60" value="<?php echo $p["jabatan"]; ?>"/>
<p class="note"><strong>Jabatan/Agensi/Tempat tuan/puan bertugas sekarang</strong></p>
</div>
<div class="controlset">
<span class="label">Peranan</span>
<input name="peranan[]" type="checkbox" value="Teknikal dan Operasi" checked="checked" />
<label for="approved">Teknikal dan Operasi </label>
<input name="peranan[]" value="Pentadbir Pangkalan Data" type="checkbox" /> <label for="pending">Pentadbir Pangkalan Data </label>
<input name="peranan[]" value="Pengurusan ICT" type="checkbox" /> <label for="actives">Pengurusan ICT</label>
</div>
<div class="controlset">
<span class="label">Anda Merupakan </span>
<input name="ahli" type="radio" id="ahli" value="perjasa" />
<label for="radio1">Ahli PERJASA </label>
<input name="ahli" type="radio" id="ahli" value="pesima" checked="checked" />
<label for="radio2">Ahli PESIMA </label>
<input name="ahli" type="radio" id="ahli" value="lain2" />
<label for="radio3">Lain-Lain</label>
</div>
<div>
<label for="lname">Alahan/Pilihan Makanan </label>
<textarea id="alahan" name="alahan" cols="40" rows="4"><?php echo $p["alahan"]; ?></textarea>
</div>
</fieldset>
<div class="buttonrow">
<input type="submit" class="button" id="Submit" value="Kemaskini" />
<input name="Reset" type="reset" class="button" value="Batalkan" />
</div>
</form>
</div><!-- /form-container -->
</div>
<!-- /wrapper -->
</body>
</html>