86 lines
3.5 KiB
PHP
86 lines
3.5 KiB
PHP
<!-- Main content -->
|
|
<div class="content-wrapper">
|
|
|
|
<?php include('common/userstrip.php'); ?>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="panel panel-flat">
|
|
<div class="panel-heading">
|
|
|
|
<form class="form-horizontal" action="/member/support" method='POST'>
|
|
<script language="javascript">
|
|
<!--
|
|
function validateForm() {
|
|
var si = document.contact - box.D3.selectedIndex;
|
|
var em = document.contact - box.email.value;
|
|
var ms = document.contact - box.msg.value;
|
|
if (em == null || em == '' || em.length > 50) {
|
|
alert('Enter your Email');
|
|
return false;
|
|
}
|
|
if (si == null || isNaN(si) || si < 1) {
|
|
alert('Please select subject');
|
|
return false;
|
|
}
|
|
if (ms == null || ms == '' || ms.length > 250) {
|
|
alert('Please enter your message');
|
|
return false;
|
|
}
|
|
if (typeof yourFunctionName == 'function' && !emailCheck(em)) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function textCounter(field, countfield, maxlimit) {
|
|
if (field.value.length > maxlimit) // if too long...trim it!
|
|
field.value = field.value.substring(0, maxlimit);
|
|
// otherwise, update 'characters left' counter
|
|
else
|
|
countfield.value = maxlimit - field.value.length;
|
|
}
|
|
// -->
|
|
</script>
|
|
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<div class="col-md-10 col-md-offset-1">
|
|
<?= $message ?>
|
|
<div class="form-group">
|
|
<label class="col-lg-3 control-label">My Email:</label>
|
|
<div class="col-lg-9">
|
|
<input type="text" class="form-control" name='email' placeholder="Email" value="<?= $email ?>" readonly>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-lg-3 control-label">Your message<br>[max 500]:</label>
|
|
|
|
<div class="col-lg-9">
|
|
<textarea rows="5" cols="5" class="form-control" name="msg" placeholder="Enter your message here" onkeydown="textCounter(this.form.msg, this.form.remLen, 500);" onkeyup="textCounter(this.form.msg, this.form.remLen, 500);"><?= $msg ?></textarea>
|
|
<input type="text" class="form-control" name="remLen" value="<?= (500 - strlen($msg)) ?>" placeholder="0" style='width: 50px;' readonly>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="text-right">
|
|
<button type="submit" class="btn btn-primary">Send Message <i class="icon-arrow-right14 position-right"></i></button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
<!-- /main content -->
|