1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 13:21:54 +02:00

Contact form template upgraded to use Bootstrap markup.

This commit is contained in:
Cameron
2015-08-17 15:42:31 -07:00
parent c06a3ff5c3
commit e5a51fa99e
5 changed files with 42 additions and 34 deletions

View File

@@ -110,11 +110,14 @@ if(isset($_POST['send-contactus']))
// No errors - so proceed to email the admin and the user (if selected).
if(empty($error))
{
$body .= "\n\nIP:\t".e107::getIPHandler()->getIP(TRUE)."\n";
$body .= "<br /><br />
<table class='table'>
<tr>
<td>IP:</td><td>".e107::getIPHandler()->getIP(TRUE)."</td></tr>";
if (USER)
{
$body .= "User:\t#".USERID." ".USERNAME."\n";
$body .= "<tr><td>User:</td><td>#".USERID." ".USERNAME."</td></tr>";
}
if(empty($_POST['contact_person']) && !empty($pref['sitecontacts'])) // only 1 person, so contact_person not posted.
@@ -160,10 +163,12 @@ if(isset($_POST['send-contactus']))
{
foreach($_POST as $k=>$v)
{
$body .= $k.":\t".$tp->toEmail($v, true,'RAWTEXT')."\n";
$body .= "<tr><td>".$k.":</td><td>".$tp->toEmail($v, true,'RAWTEXT')."</td></tr>";
}
}
$body .= "</table>";
if(!empty($CONTACT_EMAIL['subject']))
{
$vars = array('CONTACT_SUBJECT'=>$subject,'CONTACT_PERSON'=>$send_to_name);