-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview_panos.php
More file actions
131 lines (114 loc) · 4.89 KB
/
Copy pathview_panos.php
File metadata and controls
131 lines (114 loc) · 4.89 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
<?php session_start() ?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="admin/css/bootstrap.min.css" />
<link rel="stylesheet" href="../vendor/style.css">
<title>Home | VRGenerator</title>
<style>
html {
font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
font-size: 14px;
}
.card {
font-size: 1em;
overflow: hidden;
padding: 0;
border: none;
border-radius: .28571429rem;
box-shadow: 0 1px 3px 0 #d4d4d5, 0 0 0 1px #d4d4d5;
}
.card-block {
font-size: 1em;
position: relative;
margin: 0;
padding: 1em;
border: none;
border-top: 1px solid rgba(34, 36, 38, .1);
box-shadow: none;
}
.card-title {
font-size: 1.28571429em;
font-weight: 700;
line-height: 1.2857em;
}
.card-text {
clear: both;
margin-top: .5em;
color: rgba(0, 0, 0, .68);
}
</style>
</head>
<body>
<?php include("header.php"); ?>
<!-- Page Content -->
<div class="container" style="height:100px;margin-top:70px;">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="manage_properties.php">Manage Properties</a></li>
<li class="breadcrumb-item active" aria-current="page"><a href="manage_property.php?property_id=<?=$_GET["property_id"]?>">Manage Property</a></li>
<li class="breadcrumb-item active" aria-current="page">Manage Group</li>
</ol>
</nav>
</div>
<div class="col-xs-12 col-sm-12 col-md-2 col-lg-2 mb-4" >
<a href="http://localhost/vrgenerator/admin/home.php?source=panaroma_master&group_id=<?= $_GET["group_id"] ?>&property_id=<?= $_GET["property_id"] ?>">
<div class="btn btn-lg btn-info" style="width:100%;">
Manage
</div>
</a>
</div>
<div class="col-xs-12 col-sm-12 col-md-2 col-lg-2 mb-4" >
<a href="http://localhost/vrgenerator/select_panos.php?group_id=<?= $_GET["group_id"] ?>&property_id=<?= $_GET["property_id"] ?>">
<div class="btn btn-lg btn-info" style="width:100%;">
Add Panoramas
</div>
</a>
</div>
</div>
<div class="row">
<div class="container">
<?php
if(isset($_SESSION['login_user_level'])){
if($_SESSION['login_user_level'] != ""){
require_once("database_suppliment.php");
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {die("Connection failed: " . $conn->connect_error);}
$sql = "SELECT * FROM main_panaroma_master where id in(select panaroma_id from panaroma_master where group_id=".$_GET["group_id"].")";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
?>
<div class="panos" style="cursor:pointer;width:150px;height:150px;float:left;background:url(images/panos/<?=$row["panaroma_url"]?>.tiles/thumb.jpg) center no-repeat;background-size:conver;margin:15px 0px 0px 15px;border-radius:5px;">
<a href="delete_pano.php?group_id=<?=$_GET["group_id"]?>&panaroma_id=<?=$row["id"]?>&property_id=<?= $_GET["property_id"]?>"><div class="btn btn-lg btn-info" style="width:100%;background-color: rgba(255,255,255,0);border:none;font-weight:bold;">Delete</div></a>
</div>
<?php
}
} else { echo "0 results"; }
}else {
header("location:login.php");
}
}
else {
header("location:login.php");
}
$conn->close();
?>
</div>
</div>
</div>
</body>
<script src="admin/js/jquery-3.2.1.slim.min.js"></script>
<script src="admin/js/popper.min.js"></script>
<script src="admin/js/bootstrap.min.js"></script>
<script src="jq.js"></script>
</html>