-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddedit.php
More file actions
690 lines (686 loc) · 48.9 KB
/
addedit.php
File metadata and controls
690 lines (686 loc) · 48.9 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
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
<!DOCTYPE html>
<?php
include './config.php';
$Title = "Add New Entry";
$id = 0;
$row;
if (isset($_REQUEST["id"])) {
$Title = "Update Selected Entry";
$id = $_REQUEST["id"];
$sqli = "SELECT * FROM `cloud` WHERE id =" . $id;
$result = mysqli_query($con, $sqli);
if ($result) {
$row = mysqli_fetch_array($result);
}
}
?>
<html>
<head>
<meta charset="UTF-8">
<title><?php echo $Title; ?></title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
</head>
<body>
<div id="nav_id">
<nav class="navbar" style="background-color: #094A60; height: 148px; border-radius: 0px; margin-bottom: 0px;">
<div class="container-fluid">
<div class="navbar-header">
<div class="col-sm-12" style="color: white; margin-top: 25px; font: bold; font-family: sans-serif;">
<h1>marcopolo</h1><h4> Data about Clouds</h4>
</div>
</div>
<div class="collapse navbar-collapse navbar-right">
<ul class="nav navbar-nav" style="color: white; text-decoration: none;">
<li class="active"><a href="#" style="color: white; text-decoration: none;"> <h2>Cloud Map</h2> </a></li>
<li><a href="#" style="color: white; text-decoration: none;"> <h2>Feature2</h2> </a></li>
<li><a href="#" style="color: white; text-decoration: none;"> <h2>Feature2</h2> </a></li>
<li><a href="#" style="color: white; text-decoration: none;"> <h2>Blog</h2> </a></li>
<li><a href="#" style="color: white; text-decoration: none;"> <h2><span class="glyphicon glyphicon-user" aria-hidden="true"></span></h2> </a></li>
</ul>
</div>
</div>
</nav>
<nav class="navbar" style="background-color: #177E89; height: 52px; border-radius: 0px; margin-bottom: 0px;">
<div class="container-fluid">
<div class="col-lg-12" style="padding-top: 7px;">
<div class="col-sm-12">
<div class="input-group">
<label style="font-size: 24px; color: white;"><?php echo $Title; ?></label>
</div>
</div>
</div>
</div>
</nav>
</div>
<div id="body_id" style="overflow-y: scroll">
<div class="container-fluid">
<br/>
<form class="form-horizontal" method="post" action="">
<div class="form-group">
<label class="control-label col-sm-2" for="Company">Company:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Company" name="Company" placeholder="Enter Company Name">
<?php } else { ?>
<input type="text" class="form-control" id="Company" name="Company" value="<?php echo $row["Company"]; ?>" placeholder="Enter Company Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Region">Region:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Region" name="Region" placeholder="Enter Region Name">
<?php } else { ?>
<input type="text" class="form-control" id="Region" name="Region" value="<?php echo $row["Region"]; ?>" placeholder="Enter Region Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Location">Location:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Location" name="Location" placeholder="Enter Location Name">
<?php } else { ?>
<input type="text" class="form-control" id="Location" name="Location" value="<?php echo $row["Location"]; ?>" placeholder="Enter Location Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Lat">Latitude:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Lat" name="Lat" placeholder="Enter Latitude">
<?php } else { ?>
<input type="text" class="form-control" id="Lat" name="Lat" value="<?php echo $row["Lon"]; ?>" placeholder="Enter Latitude">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Longitude">Longitude:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Lon" name="Lon" placeholder="Enter Longitude">
<?php } else { ?>
<input type="text" class="form-control" id="Lon" name="Lon" value="<?php echo $row["Lat"]; ?>" placeholder="Enter Longitude">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Website">Website:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Website" name="Website" placeholder="Enter Website Name">
<?php } else { ?>
<input type="text" class="form-control" id="Website" name="Website" value="<?php echo $row["Website"]; ?>" placeholder="Enter Website Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Compute">Compute:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Compute" name="Compute" placeholder="Enter Compute">
<?php } else { ?>
<input type="text" class="form-control" id="Compute" name="Compute" value="<?php echo $row["Compute"]; ?>" placeholder="Enter Compute">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Compute_Technology">Compute Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Compute_Technology" name="Compute_Technology" placeholder="Enter Compute Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="Compute_Technology" name="Compute_Technology" value="<?php echo $row["Compute_Technology"]; ?>" placeholder="Enter Compute Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Compute_Version">Compute Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Compute_Version" name="Compute_Version" placeholder="Enter Compute Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="Compute_Version" name="Compute_Version" value="<?php echo $row["Compute_Version"]; ?>" placeholder="Enter Compute Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Container_Service">Container Service:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Container_Service" name="Container_Service" placeholder="Enter Container Service Name">
<?php } else { ?>
<input type="text" class="form-control" id="Container_Service" name="Container_Service" value="<?php echo $row["Container_Service"]; ?>" placeholder="Enter Container Service Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Container_Service_Technology">Container Service Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Container_Service_Technology" name="Continer_Service_Technology" placeholder="Enter Container Service Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="Container_Service_Technology" name="Continer_Service_Technology" value="<?php echo $row["Continer_Service_Technology"]; ?>" placeholder="Enter Container Service Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Container_Service_Version">Container Service Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Container_Service_Version" name="Container_Service_Version" placeholder="Enter Container Service Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="Container_Service_Version" name="Container_Service_Version" value="<?php echo $row["Container_Service_Version"]; ?>" placeholder="Enter Container Service Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Orchestration_Service">Orchestration Service:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Orchestration_Service" name="Orchestration_Service" placeholder="Enter Orchestration Service Name">
<?php } else { ?>
<input type="text" class="form-control" id="Orchestration_Service" name="Orchestration_Service" value="<?php echo $row["Orchestration_Service"]; ?>" placeholder="Enter Orchestration Service Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Orchestration_Technology">Orchestration Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Orchestration_Technology" name="Orchestration_Technology" placeholder="Enter Orchestration Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="Orchestration_Technology" name="Orchestration_Technology" value="<?php echo $row["Orchestration_Technology"]; ?>" placeholder="Enter Orchestration Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Orchestration_Version">Orchestration Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Orchestration_Version" name="Orchestration_Version" placeholder="Enter Orchestration Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="Orchestration_Version" name="Orchestration_Version" value="<?php echo $row["Orchestration_Version"]; ?>" placeholder="Enter Orchestration Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Bare_Metal_Service">Bare Metal Service:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Bare_Metal_Service" name="Bare_Metal_Service" placeholder="Enter Bare Metal Service Name">
<?php } else { ?>
<input type="text" class="form-control" id="Bare_Metal_Service" name="Bare_Metal_Service" value="<?php echo $row["Bare_Metal_Service"]; ?>" placeholder="Enter Bare Metal Service Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Bare_Metal_Technology">Bare Metal Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Bare_Metal_Technology" name="Bare_Metal_Technology" placeholder="Enter Bare Metal Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="Bare_Metal_Technology" name="Bare_Metal_Technology" value="<?php echo $row["Bare_Metal_Technology"]; ?>" placeholder="Enter Bare Metal Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Bare_Metal_Version">Bare Metal Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Bare_Metal_Version" name="Bare_Metal_Version" placeholder="Enter Bare Metal Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="Bare_Metal_Version" name="Bare_Metal_Version" value="<?php echo $row["Bare_Metal_Version"]; ?>" placeholder="Enter Bare Metal Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="DNS_Service">DNS Service:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="DNS_Service" name="DNS_Service" placeholder="Enter DNS Service Name">
<?php } else { ?>
<input type="text" class="form-control" id="DNS_Service" name="DNS_Service" value="<?php echo $row["DNS_Service"]; ?>" placeholder="Enter DNS Service Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="DNS_Technology">DNS Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="DNS_Technology" name="DNS_Technology" placeholder="Enter DNS Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="DNS_Technology" name="DNS_Technology" value="<?php echo $row["DNS_Technology"]; ?>" placeholder="Enter DNS Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="DNS_Version">DNS Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="DNS_Version" name="DNS_Version" placeholder="Enter DNS Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="DNS_Version" name="DNS_Version" value="<?php echo $row["DNS_Version"]; ?>" placeholder="Enter DNS Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Object_Storage">Object Storage:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Object_Storage" name="Object_Storage" placeholder="Enter Object Storage Name">
<?php } else { ?>
<input type="text" class="form-control" id="Object_Storage" name="Object_Storage" value="<?php echo $row["Object_Storage"]; ?>" placeholder="Enter Object Storage Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Object_Storage_Technology">Object Storage Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Object_Storage_Technology" name="Object_Storage_Technology" placeholder="Enter Object Storage Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="Object_Storage_Technology" name="Object_Storage_Technology" value="<?php echo $row["Object_Storage_Technology"]; ?>" placeholder="Enter Object Storage Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Object_Storage_Version">Object Storage Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Object_Storage_Version" name="Object_Storage_Version" placeholder="Enter Object Storage Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="Object_Storage_Version" name="Object_Storage_Version" value="<?php echo $row["Object_Storage_Version"]; ?>" placeholder="Enter Object Storage Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Block_Storage">Block Storage:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Block_Storage" name="Block_Storage" placeholder="Enter Block Storage Name">
<?php } else { ?>
<input type="text" class="form-control" id="Block_Storage" name="Block_Storage" value="<?php echo $row["Block_Storage"]; ?>" placeholder="Enter Block Storage Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Block_Storage_Technology">Block Storage Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Block_Storage_Technology" name="Block_Storage_Technology" placeholder="Enter Block Storage Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="Block_Storage_Technology" name="Block_Storage_Technology" value="<?php echo $row["Block_Storage_Technology"]; ?>" placeholder="Enter Block Storage Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Block_Storage_Version">Block Storage Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Block_Storage_Version" name="Block_Storage_Version" placeholder="Enter Block Storage Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="Block_Storage_Version" name="Block_Storage_Version" value="<?php echo $row["Block_Storage_Version"]; ?>" placeholder="Enter Block Storage Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="File_System_Storage">File System Storage:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="File_System_Storage" name="File_System_Storage" placeholder="Enter File System Storage Name">
<?php } else { ?>
<input type="text" class="form-control" id="File_System_Storage" name="File_System_Storage" value="<?php echo $row["File_System_Storage"]; ?>" placeholder="Enter File System Storage Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="File_System_Storage_Technology">File System Storage Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="File_System_Storage_Technology" name="File_System_Storage_Technology" placeholder="Enter File System Storage Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="File_System_Storage_Technology" name="File_System_Storage_Technology" value="<?php echo $row["File_System_Storage_Technology"]; ?>" placeholder="Enter File System Storage Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="File_System_Storage_Version">File System Storage Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="File_System_Storage_Version" name="File_System_Storage_Version" placeholder="Enter File System Storage Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="File_System_Storage_Version" name="File_System_Storage_Version" value="<?php echo $row["File_System_Storage_Version"]; ?>" placeholder="Enter File System Storage Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="CDN">CDN:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="CDN" name="CDN" placeholder="Enter CDN Name">
<?php } else { ?>
<input type="text" class="form-control" id="CDN" name="CDN" value="<?php echo $row["CDN"]; ?>" placeholder="Enter CDN Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="CDN_Technology">CDN Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="CDN_Technology" name="CDN_Technology" placeholder="Enter CDN Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="CDN_Technology" name="CDN_Technology" value="<?php echo $row["CDN_Technology"]; ?>" placeholder="Enter CDN Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="CDN_Technology_Versio">CDN Technology Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="CDN_Technology_Versio" name="CDN_Technology_Versio" placeholder="Enter CDN Technology Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="CDN_Technology_Versio" name="CDN_Technology_Versio" value="<?php echo $row["CDN_Technology_Versio"]; ?>" placeholder="Enter CDN Technology Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="VPC">VPC:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="VPC" name="VPC" placeholder="Enter VPC Name">
<?php } else { ?>
<input type="text" class="form-control" id="VPC" name="VPC" value="<?php echo $row["VPC"]; ?>" placeholder="Enter VPC Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="VPC_Technology">VPC Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="VPC_Technology" name="VPC_Technology" placeholder="Enter VPC Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="VPC_Technology" name="VPC_Technology" value="<?php echo $row["VPC_Technology"]; ?>" placeholder="Enter VPC Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="VPC_Version">VPC Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="VPC_Version" name="VPC_Version" placeholder="Enter VPC Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="VPC_Version" name="VPC_Version" value="<?php echo $row["VPC_Version"]; ?>" placeholder="Enter VPC Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Serverless_compute">Serverless Compute:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Serverless_compute" name="Serverless_compute" placeholder="Enter Serverless Compute Name">
<?php } else { ?>
<input type="text" class="form-control" id="Serverless_compute" name="Serverless_compute" value="<?php echo $row["Serverless_compute"]; ?>" placeholder="Enter Serverless Compute Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Serverless_Compute_Technology">Serverless Compute Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Serverless_Compute_Technology" name="Serverless_Compute_Technology" placeholder="Enter Serverless Compute Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="Serverless_Compute_Technology" name="Serverless_Compute_Technology" value="<?php echo $row["Serverless_Compute_Technology"]; ?>" placeholder="Enter Serverless Compute Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Serverless_Compute_Version">Serverless Compute Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Serverless_Compute_Version" name="Serverless_Compute_Version" placeholder="Enter Serverless Compute Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="Serverless_Compute_Version" name="Serverless_Compute_Version" value="<?php echo $row["Serverless_Compute_Version"]; ?>" placeholder="Enter Serverless Compute Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Relational_Database_Service">Relational Database Service:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Relational_Database_Service" name="Relational_Database_Service" placeholder="Enter Relational Database Service Name">
<?php } else { ?>
<input type="text" class="form-control" id="Relational_Database_Service" name="Relational_Database_Service" value="<?php echo $row["Relational_Database_Service"]; ?>" placeholder="Enter Relational Database Service Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Relational_Database_Technology">Relational Database Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Relational_Database_Technology" name="Relational_Database_Technology" placeholder="Enter Relational Database Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="Relational_Database_Technology" name="Relational_Database_Technology" value="<?php echo $row["Relational_Database_Technology"]; ?>" placeholder="Enter Relational Database Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Relational_Database_Version">Relational Database Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Relational_Database_Version" name="Relational_Database_Version" placeholder="Enter Relational Database Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="Relational_Database_Version" name="Relational_Database_Version" value="<?php echo $row["Relational_Database_Version"]; ?>" placeholder="Enter Relational Database Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="NoSQL_Service">NoSQL Service:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="NoSQL_Service" name="NoSQL_Service" placeholder="Enter NoSQL Service Name">
<?php } else { ?>
<input type="text" class="form-control" id="NoSQL_Service" name="NoSQL_Service" value="<?php echo $row["NoSQL_Service"]; ?>" placeholder="Enter NoSQL Service Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="NoSQL_Service_Technology">NoSQL Service Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="NoSQL_Service_Technology" name="NoSQL_Service_Technology" placeholder="Enter NoSQL Service Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="NoSQL_Service_Technology" name="NoSQL_Service_Technology" value="<?php echo $row["NoSQL_Service_Technology"]; ?>" placeholder="Enter NoSQL Service Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="NoSQL_Service_Version">NoSQL Service Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="NoSQL_Service_Version" name="NoSQL_Service_Version" placeholder="Enter NoSQL Service Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="NoSQL_Service_Version" name="NoSQL_Service_Version" value="<?php echo $row["NoSQL_Service_Version"]; ?>" placeholder="Enter NoSQL Service Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Auto_Scaling">Auto Scaling:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="NoSQL_Service_Version" name="NoSQL_Service_Version" placeholder="Enter NoSQL Service Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="NoSQL_Service_Version" name="NoSQL_Service_Version" value="<?php echo $row["NoSQL_Service_Version"]; ?>" placeholder="Enter NoSQL Service Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Auto_Scaling_Technology">Auto Scaling Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Auto_Scaling_Technology" name="Auto_Scaling_Technology" placeholder="Enter Auto Scaling Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="Auto_Scaling_Technology" name="Auto_Scaling_Technology" value="<?php echo $row["Auto_Scaling_Technology"]; ?>" placeholder="Enter Auto Scaling Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Auto_Scaling_Version">Auto Scaling Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Auto_Scaling_Version" name="Auto_Scaling_Version" placeholder="Enter Auto Scaling Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="Auto_Scaling_Version" name="Auto_Scaling_Version" value="<?php echo $row["Auto_Scaling_Version"]; ?>" placeholder="Enter Auto Scaling Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Load_Balancing">Load Balancing:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Load_Balancing" name="Load_Balancing" placeholder="Enter Load Balancing Name">
<?php } else { ?>
<input type="text" class="form-control" id="Load_Balancing" name="Load_Balancing" value="<?php echo $row["Load_Balancing"]; ?>" placeholder="Enter Load Balancing Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Load_Balancing_Technology">Load Balancing Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Load_Balancing_Technology" name="Load_Balancing_Technology" placeholder="Enter Load Balancing Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="Load_Balancing_Technology" name="Load_Balancing_Technology" value="<?php echo $row["Load_Balancing_Technology"]; ?>" placeholder="Enter Load Balancing Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Load_Balancing_Version">Load Balancing Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Load_Balancing_Version" name="Load_Balancing_Version" placeholder="Enter Load Balancing Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="Load_Balancing_Version" name="Load_Balancing_Version" value="<?php echo $row["Load_Balancing_Version"]; ?>" placeholder="Enter Load Balancing Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Archive_Storage">Archive Storage:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Archive_Storage" name="Archive_Storage" placeholder="Enter Archive Storage Name">
<?php } else { ?>
<input type="text" class="form-control" id="Archive_Storage" name="Archive_Storage" value="<?php echo $row["Archive_Storage"]; ?>" placeholder="Enter Archive Storage Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Archive_Storage_Technology">Archive Storage Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Archive_Storage_Technology" name="Archive_Storage_Technology" placeholder="Enter Archive Storage Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="Archive_Storage_Technology" name="Archive_Storage_Technology" value="<?php echo $row["Archive_Storage_Technology"]; ?>" placeholder="Enter Archive Storage Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Archive_Storage_Version">Archive Storage Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Archive_Storage_Version" name="Archive_Storage_Version" placeholder="Enter Archive Storage Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="Archive_Storage_Version" name="Archive_Storage_Version" value="<?php echo $row["Archive_Storage_Version"]; ?>" placeholder="Enter Archive Storage Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Direct_Connect">Direct Connect:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Direct_Connect" name="Direct_Connect" placeholder="Enter Direct Connect Name">
<?php } else { ?>
<input type="text" class="form-control" id="Direct_Connect" name="Direct_Connect" value="<?php echo $row["Direct_Connect"]; ?>" placeholder="Enter Direct Connect Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Direct_Connect_Technology">Direct Connect Technology:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Direct_Connect_Technology" name="Direct_Connect_Technology" placeholder="Enter Direct Connect Technology Name">
<?php } else { ?>
<input type="text" class="form-control" id="Direct_Connect_Technology" name="Direct_Connect_Technology" value="<?php echo $row["Direct_Connect_Technology"]; ?>" placeholder="Enter Direct Connect Technology Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="Direct_Connect_Version">Direct Connect Version:</label>
<div class="col-sm-8">
<?php if (!$id) { ?>
<input type="text" class="form-control" id="Direct_Connect_Version" name="Direct_Connect_Version" placeholder="Enter Direct Connect Version Name">
<?php } else { ?>
<input type="text" class="form-control" id="Direct_Connect_Version" name="Direct_Connect_Version" value="<?php echo $row["Direct_Connect_Version"]; ?>" placeholder="Enter Direct Connect Version Name">
<?php } ?>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<?php if ($id == 0) { ?>
<button id="Enter" name="submit" type="submit" value="NewEntry" class="btn btn-default">Submit</button>
<?php } else { ?>
<button id="update" name="submit" value="Update" type="submit" class="btn btn-default">Update</button>
<?php } ?>
</div>
</div>
</form>
</div>
</div>
<?php
//form submits here
if (isset($_REQUEST["submit"])) {
$str = "";
$val = $_REQUEST["submit"];
if ($val == "NewEntry") {
$keys = "";
$vals = "";
$chk = 1;
foreach ($_REQUEST as $key => $val) {
if ($key != "id" && $key != "submit") {
if ($chk == 1) {
$keys .= "$key";
$vals .= "'" . $val . "'";
$chk = 2;
} else {
$keys .= ", $key";
$vals .= ", '" . $val . "'";
}
}
$str = "INSERT INTO `cloud`(" . $keys . ") VALUES(" . $vals . ");";
}
} elseif ($val == "Update") {
$str = "UPDATE `cloud` SET ";
$chk = 1;
foreach ($_REQUEST as $key => $val) {
if ($key != "id" && $key != "submit") {
if ($chk == 1) {
$str .= "$key='" . $val . "'";
$chk = 2;
} else {
$str .= " ,$key='" . $val . "'";
}
}
}
$str .= " WHERE `id` = " . $id;
}
mysqli_query($con, $str);
}
mysqli_close($con);
?>
</body>
</html>