-
Notifications
You must be signed in to change notification settings - Fork 2
/
form.php
127 lines (108 loc) · 4.61 KB
/
form.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
include("connection.php");
include("logic.php");
?>
<?php
$tblvisitor = "visitors";
$counterRed = '';
$counterRed = todayCount($tblvisitor);
$msg = "Login must to access.";
session_start();
if (isset($_SESSION['eventuser'])) {
$sesname = $_SESSION['eventuser'];
} else {
alertbox($msg);
echo "<script>setTimeout(\"location.href = './home.php';\",20);</script>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Visitor Registration</title>
<link rel="stylesheet" type="text/css" href="./css/style.css">
<script type="text/javascript" src="./jquery/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="./printlib/print.min.js"></script>
<script type="text/javascript" src="./js/index.js"></script>
<script type="text/javascript" src="./barcode/JsBarcode.all.min.js"></script>
</head>
<body>
<div class="headerpage">
<?php include("option.php"); ?>
<?php include("log_sign.php"); ?>
</div>
<div id="div_frm" class="container" onload="timeUpdate();">
<div class="title">
Registration Form of Visitor
</div>
<div>
<h6>Badge Print Fileds:</h6>
<input type="checkbox" id="chkName" checked onchange="ckNamePrint()" /><label>Name</label>
<input type="checkbox" id="chkDes" checked onchange="ckDesPrint()" /><label>Designation</label>
<input type="checkbox" id="chkComp" checked onchange="ckCompPrint()" /><label>Company</label>
<input type="checkbox" id="chkBar" checked onchange="ckBarcodePrint()" /><label>Barcode</label>
</div>
<div id="frmCounter" class="output_field">
<h4>Counter :<?php echo (isset($counterRed)) ? $counterRed : "0"; ?></h4>
</div>
<div class="input_field">
<label class="non-printable">System Name</label>
<input type="checkbox" id="chksys" onchange="checkSysEdit();" /> <label>Edit</label>
<input type="text" class="input" readonly name="sysname" id="sysname" placeholder="system name" readonly />
</div>
<div class="input_field" id="date_time">
<label class="non-printable">Event Date</label>
<input type="datetime-local" class="input" id="today_date" name="today_date" value="<?php date_default_timezone_set("Asia/Kolkata");
echo date('Y-m-d\TH:i'); ?>" />
</div>
<div class="input_field">
<label class="non-printable" for="visitor_type">Choose a type</label>
<div class="selectbox">
<select id="visitor_type" name="visitor_type" required=" true">
<option value="">Select Type</option>
<option value="Visitor">Visitor</option>
<option value="Delegate">Delegate</option>
<option value="Exhibitor">Exhibitor</option>
<option value="Invitee">Invitee</option>
<option value="Organiser">Organiser</option>
</select>
</div>
</div>
<div id="refreshfrm">
<div class="input_field" id="divName">
<label>Name</label>
<input type="text" id="name" name="name" class="input" placeholder="write the name" required="true">
</div>
<div class="input_field" id="divDes">
<label>Designation</label>
<input type="text" id="desg" name="desg" class="input" placeholder="write the designation">
</div>
<div class="input_field" id="divComp">
<label>Company Name</label>
<input type="text" id="cname" name="cname" class="input" placeholder="write the company name">
</div>
</div>
<input type="hidden" name="hidbar" />
<div class="input_field" id="div_btn_frm">
<input type="button" class="btn" name="form_save" onclick="saveprint()" id="form_save" value="Save_Print">
<input type="button" class="btn" name="form_reset" onclick="frmReset()" value="Reset">
</div>
</div>
</body>
<div id="frmprint" class="frmprint">
<div id="divImg" class="divImg">
<p><img id="prtbarcode" class="imgBCode"></p>
</div>
<div id="prtname" class="name">
<p>name</p>
</div>
<div id="prtdes" class="des">
<p>des</p>
</div>
<div id="prtcomp" class="comp">
<p>comp</p>
</div>
</div>
<?php include("footer.php"); ?>
</html>