Skip to content

Commit 808577b

Browse files
committed
split contact page
Divided into 2 pages, so that help via forum is prioritised over form for ORMT
1 parent 659e2a4 commit 808577b

File tree

2 files changed

+68
-28
lines changed

2 files changed

+68
-28
lines changed

contact/form.php

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?php include "../shared/head.php" ?>
2+
</head>
3+
4+
<body>
5+
<div class="container"><!-- Centres content and sets fixed width to suit device -->
6+
<?php include "../shared/banners/choose_banner.php" ?>
7+
<?php include "../shared/banners/show_banner.php" ?>
8+
<?php include "../shared/menu.php" ?>
9+
<div class="row">
10+
<div class="col-md-4">
11+
<h1>Contact</h1>
12+
</div>
13+
</div>
14+
<div class="row">
15+
<div class="col-md-3">
16+
<p>
17+
For prompt help with a technical problem, please <a href="http://www.elvastower.com/forums/index.php?/forum/190-open-rails-simulator-project/">post on one of the Open Rails forums</a> at Elvas Tower.
18+
</p><p>
19+
To report issues with the product or feature requests, please use <a href="../contribute/reporting-bugs/">our Bug Tracker</a>.
20+
</p><p>
21+
To contact the Open Rails Management Team, use <a href="form.php">this form to send us a message</a>.
22+
</p>
23+
</div>
24+
<div class="col-md-6">
25+
<!-- send this to another host as uktrainsim doesn't support mail() -->
26+
<form role="form" action="http://ccgi.jakeman.plus.com/or/forward_message.php" method="get">
27+
<div class="form-group">
28+
<label for="emailAddress">Email address</label>
29+
<input type="email" class="form-control" id="emailAddress" name="from" placeholder="Enter your email address. (We do not share this.)" autofocus required>
30+
</div>
31+
<div class="form-group">
32+
<label for="emailSubject">Subject</label>
33+
<input type="text" class="form-control" id="emailSubject" name="subject" placeholder="Enter your subject">
34+
</div>
35+
<input type="hidden" name="send_to_name" value="or_website">
36+
<input type="hidden" name="send_to_domain" value="jakeman.plus.com">
37+
<input type="hidden" name="success_url" value="http://openrails.org/contact/success.php">
38+
<?php $ip = $_SERVER['REMOTE_ADDR']; echo "<input type='hidden' name='ip' value='$ip'>" ?>
39+
<?php $referer = $_SERVER['HTTP_REFERER']; echo "<input type='hidden' name='referer' value='$referer'>" ?>
40+
<div class="form-group">
41+
<label for="emailMessage">Message</label>
42+
<textarea class="form-control" rows="10" id="emailMessage" name="body" placeholder="Please follow the guidance to the left about getting help." required title="Please follow the guidance to the left about getting help."></textarea>
43+
</div>
44+
<button type="submit" class="btn btn-default">Send</button>
45+
</form>
46+
47+
</div>
48+
</div>
49+
<?php include "../shared/tail.php" ?>
50+
<?php include "../shared/banners/preload_next_banner.php" ?>
51+
</body>
52+
</html>

contact/index.php

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,27 @@
1212
</div>
1313
</div>
1414
<div class="row">
15-
<div class="col-md-3">
15+
<div class="col-md-2"></div>
16+
<div class="col-md-4">
17+
<p><br>
18+
<a style="text-decoration: none;" class="btn btn-warning" href="http://www.elvastower.com/forums/index.php?/forum/190-open-rails-simulator-project/">For help with a technical problem</a>
19+
</p>
20+
</div>
21+
<div class="col-md-4">
22+
<p>
23+
For prompt help with a technical problem, please use this button to post on one of the Open Rails forums</a> at Elvas Tower.
24+
</p>
25+
</div>
26+
</div>
27+
<div class="row">
28+
<div class="col-md-2"></div>
29+
<div class="col-md-8">
1630
<p>
17-
To contact the Open Rails Project Team, please <a href="http://www.elvastower.com/forums/index.php?/forum/190-open-rails-simulator-project/">post on one of the Open Rails forums</a> at Elvas Tower.
18-
</p><p>
1931
To report issues with the product or feature requests, please use <a href="../contribute/reporting-bugs/">our Bug Tracker</a>.
2032
</p><p>
21-
To contact the Open Rails Management Team, use this form to send us a message.
33+
To contact the Open Rails Management Team, use <a href="form.php">this form to send us a message</a>.
2234
</p>
2335
</div>
24-
<div class="col-md-6">
25-
<!-- send this to another host as uktrainsim doesn't support mail() -->
26-
<form role="form" action="http://ccgi.jakeman.plus.com/or/forward_message.php" method="get">
27-
<div class="form-group">
28-
<label for="emailAddress">Email address</label>
29-
<input type="email" class="form-control" id="emailAddress" name="from" placeholder="Enter your email address. (We do not share this.)" autofocus required>
30-
</div>
31-
<div class="form-group">
32-
<label for="emailSubject">Subject</label>
33-
<input type="text" class="form-control" id="emailSubject" name="subject" placeholder="Enter your subject">
34-
</div>
35-
<input type="hidden" name="send_to_name" value="or_website">
36-
<input type="hidden" name="send_to_domain" value="jakeman.plus.com">
37-
<input type="hidden" name="success_url" value="http://openrails.org/contact/success.php">
38-
<?php $ip = $_SERVER['REMOTE_ADDR']; echo "<input type='hidden' name='ip' value='$ip'>" ?>
39-
<?php $referer = $_SERVER['HTTP_REFERER']; echo "<input type='hidden' name='referer' value='$referer'>" ?>
40-
<div class="form-group">
41-
<label for="emailMessage">Message</label>
42-
<textarea class="form-control" rows="10" id="emailMessage" name="body" placeholder="Enter your message" required title="Please follow the guidance to the left about reporting problems."></textarea>
43-
</div>
44-
<button type="submit" class="btn btn-default">Send</button>
45-
</form>
46-
47-
</div>
4836
</div>
4937
<?php include "../shared/tail.php" ?>
5038
<?php include "../shared/banners/preload_next_banner.php" ?>

0 commit comments

Comments
 (0)