Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F13790179
contact.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Authored By
Unknown
Size
8 KB
Referenced Files
None
Subscribers
None
contact.php
View Options
<?php
global
$global
,
$config
;
if
(
!
isset
(
$global
[
'systemRootPath'
]
)
)
{
require_once
'../videos/configuration.php'
;
}
require_once
$global
[
'systemRootPath'
]
.
'objects/user.php'
;
$email
=
''
;
$name
=
''
;
if
(
User
::
isLogged
(
)
)
{
$name
=
User
::
getNameIdentification
(
)
;
$email
=
User
::
getEmail_
(
)
;
}
$metaDescription
=
" Contact Form"
;
?>
<
!DOCTYPE html>
<
html lang="
<?php
echo
$_SESSION
[
'language'
]
;
?>
">
<
head>
<
title>
<?php
echo
__
(
"Contact"
)
.
$config
->
getPageTitleSeparator
(
)
.
$config
->
getWebSiteTitle
(
)
;
?>
<
/title>
<?php
include
$global
[
'systemRootPath'
]
.
'view/include/head.php'
;
?>
<
/head>
<
body class="
<?php
echo
$global
[
'bodyClass'
]
;
?>
">
<?php
include
$global
[
'systemRootPath'
]
.
'view/include/navbar.php'
;
?>
<
div class="container-fluid">
<
div class="panel panel-default">
<
div class="panel-body">
<
div style="display: none;" id="messageSuccess">
<
div class="alert alert-success clear clearfix">
<
div class="col-md-3">
<
i class="fa fa-5x fa-check-circle-o">
<
/i>
<
/div>
<
div class="col-md-9">
<
h1>
<?php
echo
__
(
"Congratulations!"
)
;
?>
<
/h1>
<
h2>
<?php
echo
__
(
"Your message has been sent!"
)
;
?>
<
/h2>
<
/div>
<
/div>
<
a class="btn btn-success btn-block" href="
<?php
echo
$global
[
'webSiteRootURL'
]
;
?>
">
<?php
echo
__
(
"Go back to the main page"
)
;
?>
<
/a>
<
/div>
<
form class="well form-horizontal" action=" " method="post" id="contact_form">
<
input type="hidden" name="contactForm" value="1"/>
<
fieldset>
<
!-- Form Name -->
<
legend>
<?php
echo
__
(
"Contact Us Today!"
)
;
?>
<
/legend>
<
!-- Text input-->
<
div class="form-group">
<
label class="col-md-4 control-label">
<?php
echo
__
(
"Name"
)
;
?>
<
/label>
<
div class="col-md-4 inputGroupContainer">
<
div class="input-group">
<
span class="input-group-addon">
<
i class="glyphicon glyphicon-user">
<
/i>
<
/span>
<
input name="first_name" placeholder="
<?php
echo
__
(
"Name"
)
;
?>
" class="form-control" value="
<?php
echo
$name
;
?>
" type="text" required="true">
<
/div>
<
/div>
<
/div>
<
!-- Text input-->
<
div class="form-group">
<
label class="col-md-4 control-label">
<?php
echo
__
(
"E-mail"
)
;
?>
<
/label>
<
div class="col-md-4 inputGroupContainer">
<
div class="input-group">
<
span class="input-group-addon">
<
i class="glyphicon glyphicon-envelope">
<
/i>
<
/span>
<
input name="email" placeholder="
<?php
echo
__
(
"E-mail Address"
)
;
?>
" class="form-control" value="
<?php
echo
$email
;
?>
" type="email" required="true">
<
/div>
<
/div>
<
/div>
<
!-- Text input-->
<
div class="form-group
<?php
echo
empty
(
$advancedCustom
->
doNotShowWebsiteOnContactForm
)
?
""
:
"hidden"
?>
">
<
label class="col-md-4 control-label">
<?php
echo
__
(
"Website"
)
;
?>
<
/label>
<
div class="col-md-4 inputGroupContainer">
<
div class="input-group">
<
span class="input-group-addon">
<
i class="glyphicon glyphicon-globe">
<
/i>
<
/span>
<
input name="website" placeholder="
<?php
echo
__
(
"Website"
)
;
?>
" class="form-control" type="text">
<
/div>
<
/div>
<
/div>
<
!-- Text area -->
<
div class="form-group">
<
label class="col-md-4 control-label">
<?php
echo
__
(
"Message"
)
;
?>
<
/label>
<
div class="col-md-4 inputGroupContainer">
<
div class="input-group">
<
span class="input-group-addon">
<
i class="glyphicon glyphicon-pencil">
<
/i>
<
/span>
<
textarea class="form-control" name="comment" placeholder="
<?php
echo
__
(
"Message"
)
;
?>
">
<
/textarea>
<
/div>
<
/div>
<
/div>
<
div class="form-group">
<
label class="col-md-4 control-label">
<?php
echo
__
(
"Type the code"
)
;
?>
<
/label>
<
div class="col-md-4 inputGroupContainer">
<
div class="input-group">
<
span class="input-group-addon">
<
img src="
<?php
echo
$global
[
'webSiteRootURL'
]
;
?>
captcha?
<?php
echo
time
(
)
;
?>
" id="captcha">
<
/span>
<
span class="input-group-addon">
<
span class="btn btn-xs btn-success" id="btnReloadCapcha">
<
span class="glyphicon glyphicon-refresh">
<
/span>
<
/span>
<
/span>
<
input name="captcha" placeholder="
<?php
echo
__
(
"Type the code"
)
;
?>
" class="form-control" type="text" style="height: 60px;" maxlength="5" id="captchaText">
<
/div>
<
/div>
<
/div>
<
!-- Button -->
<
div class="form-group">
<
label class="col-md-4 control-label">
<
/label>
<
div class="col-md-4">
<
button type="submit" class="btn btn-primary" >
<?php
echo
__
(
"Send"
)
;
?>
<
span class="glyphicon glyphicon-send">
<
/span>
<
/button>
<
/div>
<
/div>
<
/fieldset>
<
/form>
<
/div>
<
/div>
<
/div>
<
/div>
<
!--/.container-->
<?php
include
$global
[
'systemRootPath'
]
.
'view/include/footer.php'
;
?>
<
script>
$(document).ready(function () {
$('#btnReloadCapcha').click(function () {
$('#captcha').attr('src', '
<?php
echo
$global
[
'webSiteRootURL'
]
;
?>
captcha?' + Math.random());
$('#captchaText').val('');
});
$('#contact_form').submit(function (evt) {
evt.preventDefault();
modal.showPleaseWait();
$.ajax({
url: '
<?php
echo
$global
[
'webSiteRootURL'
]
;
?>
sendEmail',
data: $('#contact_form').serializeArray(),
type: 'post',
success: function (response) {
modal.hidePleaseWait();
if (!response.error) {
avideoAlert("
<?php
echo
__
(
"Congratulations!"
)
;
?>
", "
<?php
echo
__
(
"Your message has been sent!"
)
;
?>
", "success");
$("#contact_form").hide();
$("#messageSuccess").fadeIn();
} else {
avideoAlert("
<?php
echo
__
(
"Your message could not be sent!"
)
;
?>
", response.error, "error");
}
$('#btnReloadCapcha').trigger('click');
}
});
return false;
});
});
<
/script>
<
/body>
<
/html>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Aug 27, 14:51 (20 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2082403
Default Alt Text
contact.php (8 KB)
Attached To
Mode
R58 TurboFlop
Attached
Detach File
Event Timeline