-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_subsubcategory.php
201 lines (159 loc) · 7.85 KB
/
add_subsubcategory.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<?php
include("include/connection.php");
include("function/dbMySql.php");
$con = new DB_con();
date_default_timezone_set('Asia/Kolkata');
// data insert code starts here.
if(isset($_POST['submit']))
{
$cat_id=$_POST['cat_id'];
$subcat_name=$_POST['subcat_id'];
$subsubcat_name=$_POST['subsubcat_name'];
$subsubcat_details=$_POST['subsubcat_details'];
$subsubcat_date = date('d-m-Y');
$subsubcat_time = date('h:i:s');
$con->insertsubsub($cat_id,$subcat_name, $subsubcat_name,$subsubcat_details,$subsubcat_date,$subsubcat_time);
?>
<script type="application/javascript">
window.location="subsubcategory.php";
</script>
<?php
//header("Location: category.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Job Protal</title>
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- favicon -->
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<!-- bootstrap framework -->
<link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<!-- icon sets -->
<!-- elegant icons -->
<link href="assets/icons/elegant/style.css" rel="stylesheet" media="screen">
<!-- elusive icons -->
<link href="assets/icons/elusive/css/elusive-webfont.css" rel="stylesheet" media="screen">
<!-- flags -->
<link rel="stylesheet" href="assets/icons/flags/flags.css">
<!-- scrollbar -->
<link rel="stylesheet" href="assets/lib/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css">
<!-- google webfonts -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<!-- main stylesheet -->
<link href="assets/css/main.min.css" rel="stylesheet" media="screen" id="mainCss">
<!-- moment.js (date library) -->
<script src="assets/js/moment-with-langs.min.js"></script>
<!--Editor-->
<script src="ckeditor/ckeditor.js"></script>
</head>
<body class="side_menu_active side_menu_expanded">
<div id="page_wrapper">
<!-- header -->
<?php include("include/header.php");?>
<!-- breadcrumbs -->
<nav id="breadcrumbs">
<ul>
<li><a href="dashboard.php">Subsubcategory</a></li>
<li><span>Add Subsubcategory</span></li>
</ul>
</nav>
<!-- main content -->
<div id="main_wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<form class="form-horizontal" role="form" action="" method="post">
<h3 class="heading_a"><span class="heading_text">Add Subsubcategory Information</span></h3>
<div class="form-group">
<label for="profile_username" class="col-sm-2 control-label">Category Name</label>
<div class="col-sm-10">
<select name="cat_id" class="form-control">
<?php
$sql="SELECT * FROM category";
$result=mysql_query($sql);
while($row= mysql_fetch_array($result))
{
?>
<option value="<?php echo $row['category_name'];?>"><?php echo $row['category_name'];?></option>
<?php
}
?>
</select>
</div>
</div>
<div class="form-group">
<label for="profile_username" class="col-sm-2 control-label">Subcategory Name</label>
<div class="col-sm-10">
<select name="subcat_id" class="form-control">
<?php
$sql1="SELECT * FROM subcategory";
$result1=mysql_query($sql1);
while($row= mysql_fetch_array($result1))
{
?>
<option value="<?php echo $row['subcat_name'];?>"><?php echo $row['subcat_name'];?></option>
<?php
}
?>
</select>
</div>
</div>
<div class="form-group">
<label for="profile_username" class="col-sm-2 control-label">Subsubcategory Name</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="subsubcat_name" value="" placeholder="Subsubcategory Name">
</div>
</div>
<div class="form-group">
<label for="profile_name" class="col-sm-2 control-label">Subsubcategory Details</label>
<div class="col-sm-10">
<textarea cols="80" name="subsubcat_details" rows="10"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-10 col-sm-offset-2">
<input type="submit" name="submit" value="Submit" class="btn-primary btn">
</div>
</div>
</form>
</div>
</div> </div>
</div>
<!-- main menu -->
<?php include("include/left_menu.php");?>
</div>
<script>
// This call can be placed at any point after the
// <textarea>, or inside a <head><script> in a
// window.onload event handler.
// Replace the <textarea id="editor"> with an CKEditor
// instance, using default configurations.
CKEDITOR.replace( 'subsubcat_details' );
</script>
<!-- jQuery -->
<script src="assets/js/jquery.min.js"></script>
<!-- jQuery Cookie -->
<script src="assets/js/jqueryCookie.min.js"></script>
<!-- Bootstrap Framework -->
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<!-- retina images -->
<script src="assets/js/retina.min.js"></script>
<!-- switchery -->
<script src="assets/lib/switchery/dist/switchery.min.js"></script>
<!-- typeahead -->
<script src="assets/lib/typeahead/typeahead.bundle.min.js"></script>
<!-- fastclick -->
<script src="assets/js/fastclick.min.js"></script>
<!-- match height -->
<script src="assets/lib/jquery-match-height/jquery.matchHeight-min.js"></script>
<!-- scrollbar -->
<script src="assets/lib/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js"></script>
<!-- Yukon Admin functions -->
<script src="assets/js/yukon_all.js"></script>
<!-- style switcher -->
</body>
</html>