-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanageBackers.php
More file actions
161 lines (136 loc) · 5.36 KB
/
manageBackers.php
File metadata and controls
161 lines (136 loc) · 5.36 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
<!DOCTYPE html>
<?php
session_start ();
?>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<title>Home</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
<!-- Jquery core CSS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="js/manageBackers_functions.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- Navbar -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<script src="js/navbar.js"></script>
<script src="js/modal.js"></script>
<link href="css/navbar.css" rel="stylesheet">
<script>
var userName;
var user_id;
var userType;
var app = angular.module('myApp', []);
app.controller('searchCtrl', function($scope, $http) {
$http.get("php/getProjects.php").success(function(response) {
$scope.names = response;
$scope.getURL = function(id) {
return "project.php?id=" + id;
}
});
});
$(document).ready(function() {
userType = <?php echo isset($_SESSION['is_auth']) ? $_SESSION['is_auth'] : -1; ?>;
userName = <?php echo isset($_SESSION['name']) ? "'".$_SESSION['name']."'" : "''" ?>;
user_id= <?php echo isset($_SESSION['user_id']) ? $_SESSION['user_id'] : 0; ?>;
var link = "index.php";
if(userType == 3) {
onLogIn(userName, link);
showBackersTable();
}
else {
$('#body').html("");
var title = "<h3><b><center>Kickstarter Warning</center></b></h3>";
var body = "<p>You are not authorize</p>";
setButton_onClick('window.location.replace("index.php")');
showModal(title, body);
}
});
</script>
<!-- Custom styles for this template
<link href="jumbotron.css" rel="stylesheet">-->
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]
<script src="../../assets/js/ie-emulation-modes-warning.js"></script>-->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<!-- Navbar Header -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php">Home</a>
</div>
<!-- Navbar Search Area -->
<div class="nav navbar-nav navbar-form">
<div ng-app="myApp" ng-controller="searchCtrl">
<div class="form-group col-md-12">
<div class="searchBoxDropdown input-group col-md-12" style="padding-left: 20px; padding-right: 20px; width:150%;">
<input type="text" ng-model="test" placeholder="Find what interests you most..." id="searchbox" class="form-control dropdown-toggle" data-toggle="dropdown" />
<span class="input-group-btn">
<button class="btn btn-info searchBT" style="border-radius: 4px; margin-left: 0px; cursor: default;">
<i class="glyphicon glyphicon-search"></i>
</button>
</span>
<ul class="dropdown-menu col-md-9" style="padding: 2px; margin-left: 20px;">
<li ng-repeat="x in names | filter:test" style="padding-bottom: 2px;">
<a class="well searchDiv" href={{getURL(x.id)}} style="padding: 5px; margin: 0px;">
<img width="50px" src={{x.picture}} /> {{x.name}}
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Navbar Right -->
<div id="navbar" class="navbar-collapse collapse">
<form class="navbar-form navbar-right"></form>
</div>
</div>
</nav>
<div class="jumbotron">
<div class="container" style="margin-bottom: -20px;">
<h1>Manage All Backers</h1>
<p>Backers Table</p>
</div>
</div>
<div class="container">
<!-- Backers Table -->
<Center><div class="backersContainer row" onload="showBackersTable()"></div></Center>
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog"></div>
<hr>
<footer>
<p>© Yakir Giladi & Nir Ostrovski</p>
</footer>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="../../dist/js/bootstrap.min.js"></script> -->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
-->
</body>
</html>