-
Notifications
You must be signed in to change notification settings - Fork 0
/
contactus.php
219 lines (212 loc) · 9.46 KB
/
contactus.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
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
<?php
session_start();
include_once 'utils.php';
$db_conn = real_db_connect($_db_server, $_db_username, $_db_password, $_db_name);
real_update_valid_session($db_conn, $_SESSION['UID'], session_id(), $_SERVER['REMOTE_ADDR']);
$_POST['page-title'] = "Research Profiles - Feedback Form";
$_POST['page-link1'] = "<link rel='stylesheet' type='text/css' href='styles/index.css' />";
$_POST['page-link2'] = "<link href='styles/style1.css' rel='stylesheet' type='text/css' />";
$_POST['page-link3'] = "<link href='styles/list.css' rel='stylesheet' type='text/css' />";
$_POST['page-include-page-top2'] = "true";
include_once 'includes/page-top.php';
include_once 'includes/page-top2.php';
?>
<script type="text/javascript">
<!--
function getCheckedValue(radioObj) {
if(!radioObj)
return "";
var radioLength = radioObj.length;
if(radioLength == undefined)
if(radioObj.checked)
return radioObj.value;
else
return "";
for(var i = 0; i < radioLength; i++) {
if(radioObj[i].checked) {
return radioObj[i].value;
}
}
return "";
}
// set
function xmlhttpPost(strURL)
{
var xmlHttpReq = false;
var self = this;
// Mozilla/Safari
if (window.XMLHttpRequest)
{
self.xmlHttpReq = new XMLHttpRequest();
}
// IE
else
if (window.ActiveXObject)
{
self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
}
var word = document.getElementById('comments').value;
word = '?message='+word;
var role = getCheckedValue(document.forms['frmFeedback'].elements['role']);
word = word+'&role='+role;
var name = document.getElementById('fullname').value;
word = word+'&name='+name;
var email = document.getElementById('email').value;
word = word+'&email='+email;
strURL = strURL+word;
self.xmlHttpReq.open('POST', strURL, true);
self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
self.xmlHttpReq.onreadystatechange = function()
{
if (self.xmlHttpReq.readyState == 4)
{
updatepage(self.xmlHttpReq.responseText);
}
}
self.xmlHttpReq.send(null);
// Add temporary feedback that the request has been sent
// var loadingImg = document.createElement('img');
// loadingImg.src = 'images/working.gif';
// loadingImg.class = 'replace';
// document.getElementsByTagName('feedback')[0].appendChild(loadingImg);
}
function updatepage(str){
/*
var loadingImg = frmFeedback.getElementsByTagName('img');
alert(loadingImg);
var feedbackText = str;
alert(str);
var feedbackSpan = document.createElement('span');
feedbackSpan.className = 'form_elements_section_subheader';
feedbackSpan.appendChild(document.createTextNode(feedbackText));
loadingImg.parentNode.replaceChild(feedbackSpan, loadingImg);
*/
document.getElementById("comments").value=null;
document.getElementById("result").innerHTML = str;
}
//-->
</script>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="form_elements_row_action" id="basic_layout">
<tr>
<td colspan="2">
<!-- InstanceBeginEditable name="content" -->
<div align="center">
<div class="font_topic">
<div align="left">
<blockquote>
<blockquote>
<blockquote>
Website Feedback
</blockquote>
</blockquote>
</blockquote>
</div>
</div>
<form name="frmFeedback">
<table width="70%" border="0" cellpadding="2" cellspacing="0" class="table_content">
<tr>
<td><div id="result" class="font_orange"></div></td>
</tr>
<tr>
<td class="form_elements_text"><div align="left" class="form_elements_section_subheader">Your Comments </div></td>
</tr>
<tr>
<td>
<div align="left">
<textarea name="comments" cols="80" rows="10" class="form_elements" id="comments"></textarea>
</div> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><div align="left" class="form_elements_section_subheader">Your Role in using reSearch Profiles today </div></td>
</tr>
<tr>
<td>
<div align="left" class="form_elements">
<input name="role" id="role" type="radio" value="student" />
Student </div> </td>
</tr>
<tr>
<td>
<div align="left" class="form_elements">
<input name="role" id="role" type="radio" value="faculty" />
Faculty </div> </td>
</tr>
<tr>
<td>
<div align="left" class="form_elements">
<input name="role" id="role" type="radio" value="staff" />
Staff </div> </td>
</tr>
<tr>
<td>
<div align="left" class="form_elements">
<input name="role" id="role" type="radio" value="visitor" checked="checked" />
Visitor </div> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><div align="left" class="form_elements_section_subheader">Your Name (optional) </div></td>
</tr>
<tr>
<td><div align="left">
<input name="fullname" type="text" class="form_elements" id="fullname" size="40" />
</div></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><div align="left" class="form_elements_section_subheader">Your email (optional) </div></td>
</tr>
<tr>
<td>
<div align="left">
<input name="email" type="text" class="form_elements" id="email" size="40" />
</div> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<div align="center">
<input name="Submit" type="button" value="Submit Feedback" onclick='JavaScript:xmlhttpPost("sendfeedback.php")'/>
</div> </td>
</tr>
</table>
</form>
</div>
<!-- InstanceEndEditable -->
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="table_background">
<!-- Partnership text in this section with the hyperlink should remain visible on the template page and should not deleted -->
<div align="right"><a href="http://www.txstate.edu/research/" target="_blank"><span class="font_on_dark_blue"><strong>powering - The Partnership</strong></span></a></div>
<!-- End of Partnership text -->
</td>
</tr>
<!-- footer content goes here -->
<tr>
<td bgcolor="#D7CFCD"><div align="center"><font size="2" class="form_elements_row_action">© 2010 Texas State University - San Marcos| <a href="http://www.txstate.edu/research">Electronic Research Administration</a>, 601 University Drive, San Marcos, Texas 78666 Voice: 512.245.211 |<a href="feedback.php">Site Feedback</a> | <a href="http://www.txstate.edu/research/oera.html">Contact Electronic Research Administration - Web Team</a><br />
</font></div>
<!-- Start of StatCounter Code
This spot can be used to enter tracking coutner code. Recommended: http://www.statcounter.com
End of StatCounter Code -->
</td>
<!--end of footer -->
</tr>
<tr>
<td bgcolor="#D7CFCD" class="form_elements_row_action"> <div align="center"><span class="error_message">Important Disclaimer: </span><strong>The responsibility for the accuracy of the information contained on these pages lies with the authors and user providing such information. </strong></div></td>
</tr>
</table>
</body>
<!-- InstanceEnd -->
</html>