-
Notifications
You must be signed in to change notification settings - Fork 0
/
suggestions.php
114 lines (96 loc) · 3.49 KB
/
suggestions.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
<?php
include('/home/postonme/hidden_scripts/definitions.php');
include('/home/postonme/hidden_scripts/session.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" xml:lang="en-US" lang="en-US" xmlns:og="http://ogp.me/ns#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>PostOnMe | University Campus Classifieds</title>
<?php include("./common/headers.php"); ?>
<script type='text/javascript'>
$(document).ready(function()
{
$('#messagetext').bind('focusin', function(){
if (this.value==this.defaultValue) this.style.color='#ADADAD';
setCaretPosition(this, 0);
this.selectionStart = 0;
this.selectionEnd = 0;
});
$('#messagetext').bind('click', function(){
if (this.value==this.defaultValue) {
setCaretPosition(this, 0);
this.selectionStart = 0;
this.selectionEnd = 0;
}
});
$('#messagetext').bind('focusout', function(){
if (this.value=='') this.value=this.defaultValue;
this.style.color='#C9C9C9;';
});
$('#messagetext').bind('keydown', function(){
if (this.value==this.defaultValue) this.value='';
this.style.color='black';
});
$('#messagetext').bind('keyup', function(){
if (this.value=='') {
this.value=this.defaultValue;
setCaretPosition(this, 0);
this.selectionStart = 0;
this.selectionEnd = 0;
this.style.color='#C9C9C9';
}
});
});
function submitSuggestion() {
var message = document.getElementById('messagetext').value;
var dataString = "message="+message;
$.ajax({
url: "../scripts/emailSuggestion.php",
type: "post",
data: dataString,
success: function(response, textStatus, jqXHR)
{
alert(response);
var e = document.getElementById('messagetext');
e.style.color='#C9C9C9';
e.value = 'Write your suggestion here..';
},
error: function (xhr, ajaxOptions, thrownError) {
alert("Something went wrong, please try again later.");
}
});
}
</script>
</head>
<body onload="initChat(); return false;">
<div id="fb-root"></div>
<script type='text/javascript'>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=451061051608923";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<?php include('common/nav_filler.php'); ?>
<p class="hidden open" id="alert"></p>
<div class="contentcontainer">
<h2>Suggestion Box</h2>
<p style="padding: 20px 0;">If you have a suggestion for improving PostOnMe, please send a message to us and we would be delighted to hear from you.
We will always read and evaluate the input that we receive from our users.</p>
<div style="text-align:center">
<textarea name='messagetext' id="messagetext" onfocus="if(this.value==this.defaultValue) this.value='';">Write your suggestion here..</textarea><br>
<input title="Submit this Suggestion" type='submit' value='Send Suggestion' class='submitbtn cursorhand themeborder themecolor' onclick="submitSuggestion(); return true;">
</div>
</div>
<?php
include("common/newsbox.php");
include("common/chatbox.php");
include("common/accountpanels.php");
include("common/navbar.php");
include("common/footer.php");
include("common/screenlock.php");
include("scripts/checkIfOnline.php");
?>
</body>
</html>