Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 146 lines (98 sloc) 3.811 kB
fba9163 @jdurno Adding files
authored
1 <?php
2 /* Problem reporting form */
3 /*
4 copyright 2011,2012 University of Victoria Libraries
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 */
20
21
22 include_once "../includes/contextobject.inc.php";
23 include_once "../includes/webtemplate.inc.php";
24
25
26 $template = new WebTemplate();
27 $template->title = "Article Linker Problem Report";
28 $template->headline = "Article Linker Problem Report";
29 $template->fancy = TRUE;
30 $template->printHeader();
31
32 $ctx_obj = new ContextObject();
33 $format = $ctx_obj->getFormat();
34
35
36 //determine the title of the Journal or Book
37 $msgTitle = $ctx_obj->getJournalTitle();
38 if (!$msgTitle) {
39 $msgTitle = $ctx_obj->getBookTitle();
40 }
41
42 if (!$msgTitle) {
43 $msgTitle = $ctx_obj->getSN();
44 }
45
46 if (!$msgTitle) {
47 $msgTitle = 'No title';
48 }
49
50
51
52 session_start();
53
54
55
56 if (isset($_SESSION['message'])) {
57
58 echo '<div class="msg-box">';
59 echo $_SESSION['message'];
60 echo '</div>';
61
62 unset($_SESSION['message']);
63
64 }
65
66
67 ?>
68
69 <!-- helpful message goes here -->
70
71 <p>Use this form to report a problem with this service.<br>
72 Please note that bibliographic details will be sent automatically. You do not need to supply them.<br />
73 Required fields are marked with an <font color=red> * </font> sign: </p>
74
75 <!-- end helpful message -->
76
77 <form method="get" action="send.php">
78 <input type="hidden" name="msgtitle" value="<?php echo $msgTitle; ?>" />
79 <table class="form">
80 <tr>
81 <td class="form-label"> <font color=red> * </font> Your Name </td>
82 <td class-"form-field"><input name="req_name" VALUE="" size="60"></td>
83 </tr>
84
85 <tr>
86 <td class="form-label"><font color=red> * </font> Your Email Address </td>
87 <td class-"form-field"><input name="req_sender" VALUE="" size="60"></td>
88 </tr>
89
90 <tr>
91 <td class="form-label"><font color=red> &nbsp; </font> Your Telephone </td>
92 <td class-"form-field"><input name="req_tele" VALUE="" size="60"></td>
93 </tr>
94
95
96 <tr>
97 <td class="form-label"> <font color=red> * </font> Connecting from:</td>
98
99 <td class-"form-field"><input type="radio" value="oncampus" name="location">On campus
100 <input type="radio" value="offcampus" name="location">Off campus</td>
101 </tr>
102
103 <td class="form-label"> <font color=red> &nbsp; </font>Your Patron Category</td>
104
105 <td class-"form-field">
106 <select name="ptype">
107 <option value="other">Undefined</option>
108 <option value="undergrad">Undergraduate</option>
109 <option value="grad">Grad Student</option>
110 <option value="faculty">Faculty/Researcher</option>
111 <option value="librarian">Librarian</option>
112 <option value="staff">Staff</option>
113 </select>
114 </td>
115 </tr>
116
117 <td class="form-label" colspan="2" style="text-align:left"> <font color=red> * </font>Please describe the problem:<br />
118 <textarea rows="10" cols="80" name="problem"></textarea>
119
120 </td>
121 <!--
122 <td class="form-label"> Is the article still required?</td>
123 <td class="form-field"><input type="radio" value="yes" name="required">Yes&nbsp;<input type="radio" value="no" name="required">No</td>
124 -->
125 </table>
126
127 <?php
128 echo '<input type="hidden" name="qstring" value="' . $_SERVER['QUERY_STRING'] .'" />';
129
130 ?>
131
132
133 <div align="center">
134
135 <INPUT TYPE="submit" NAME="submit" VALUE="Send Message">
136
137 </div>
138
139 </form>
140
141
142 <?php
143 $template->printFooter();
144
145 ?>
Something went wrong with that request. Please try again.