-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsearch-id-1.php
168 lines (158 loc) · 5.22 KB
/
search-id-1.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
<?php include_once("includes/basic_includes.php");?>
<?php include_once("functions.php"); ?>
<?php
if(isloggedin()){
} else{
header("location:login.php");
}
?>
<?php
$id=$_SESSION['id'];
$result=search();
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Find Your Perfect Partner - Makemylove
| Search-id :: Make My Love
</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href="css/bootstrap-3.1.1.min.css" rel='stylesheet' type='text/css' />
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- Custom Theme files -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href='//fonts.googleapis.com/css?family=Oswald:300,400,700' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'>
<!----font-Awesome----->
<link href="css/font-awesome.css" rel="stylesheet">
<!----font-Awesome----->
<script>
$(document).ready(function(){
$(".dropdown").hover(
function() {
$('.dropdown-menu', this).stop( true, true ).slideDown("fast");
$(this).toggleClass('open');
},
function() {
$('.dropdown-menu', this).stop( true, true ).slideUp("fast");
$(this).toggleClass('open');
}
);
});
</script>
</head>
<body>
<!-- ============================ Navigation Start =========================== -->
<?php include_once("includes/navigation.php");?>
<!-- ============================ Navigation End ============================ -->
<div class="grid_3">
<div class="container">
<div class="breadcrumb1">
<ul>
<a href="index.php"><i class="fa fa-home home_1"></i></a>
<span class="divider"> | </span>
<li class="current-page">Search By Profile ID</li>
</ul>
</div>
<div class="col-md-9 profile_left">
<form>
<div class="form_but1">
<label class="col-sm-5 control-lable1" for="Prof id">Profile ID : </label>
<div class="col-sm-7 form_radios">
<div class="input-group1">
<input type="text" value="" id="profid" name="profid" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = '';}">
<input type="button" onclick="viewprofile();" value="search">
<script type="text/javascript">
function viewprofile(){
var profid=document.getElementById("profid").value;
window.location.href="view_profile.php?id="+profid;
}
</script>
</div>
</div>
<div class="clearfix"> </div>
</div>
</form>
<div class="paid_people">
<h1>Profiles</h1>
<div class="row_1">
<?php
//only start display profiles if and only if search is triggered
// if(isset($_POST['search'])){
// //code to print matching profiles
// // couloumn count
// $c_count = '1';
// while ($row = mysqli_fetch_assoc($result))
// {
// //getting photo for display
// $profid=$row['id'];
// $sql="SELECT * FROM photos WHERE cust_id=$profid";
// $result2=mysqlexec($sql);
// $photo=mysqli_fetch_assoc($result2);
// $pic=$photo['pic1'];
// // printing left side profile
// if ($c_count == '1')
// {
// echo "<div class=\"row_1\">"; //starting row
// echo "<div class=\"col-sm-6 paid_people-left\">"; //left statrted
// echo "<ul class=\"profile_item\">";
// echo "<a href=\"view_profile.php?id=$profid\">";
// echo "<li class=\"profile_item-img\"><img src=\"profile/". $profid."/".$pic ."\"" . "class=\"img-responsive\"" ;
// echo "alt=\"\"/></li>";
// echo "<li class=\"profile_item-desc\">";
// echo "<h4>" . $row['firstname'] . " " . $row['lastname'] . "</h4>";
// echo "<p>" . $row['age']. "Yrs," . $row['religion'] . "</p>";
// echo "<h5>" . "View Full Profile" . "</h5>";
// echo "</li>";
// echo "</a>";
// echo "</ul>";
// echo "</div>"; //left end
// $c_count++;
// }
// else
// {
// echo "<div class=\"col-sm-6\">"; //right statrted
// echo "</div>"; //right end
// // end of right side
// $c_count = '1';
// }
// } //loop end
// echo "</div>"; //row end
// }//end of if
?>
<div class="col-sm-6">
</div>
<div class="clearfix"> </div>
</div>
</div>
</div>
<div class="col-md-3 match_right">
<?php include_once("matchright.php");?>
</div>
<div class="clearfix"> </div>
</div>
</div>
<?php include_once("footer.php");?>
<!-- FlexSlider -->
<link href="css/flexslider.css" rel='stylesheet' type='text/css' />
<script defer src="js/jquery.flexslider.js"></script>
<script type="text/javascript">
$(function(){
SyntaxHighlighter.all();
});
$(window).load(function(){
$('.flexslider').flexslider({
animation: "slide",
start: function(slider){
$('body').removeClass('loading');
}
});
});
</script>
<!-- FlexSlider -->
</body>
</html>