|
Server IP : 2a02:4780:3:2287:0:3736:a38e:8 / Your IP : 216.73.217.73 Web Server : LiteSpeed System : Linux sg-nme-web2187.main-hosting.eu 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64 User : u926327694 ( 926327694) PHP Version : 7.4.33 Disable Function : system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u926327694/domains/smsoft.in/public_html/demo/src/../../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
require_once __DIR__ . '/config.php';
$page_meta_desc = "Contact E Vision Infotech for school management software demos and inquiries.";
$current_page = 'contact';
function sanitize($input) {
return htmlspecialchars(strip_tags(trim($input)));
}
$success_message = '';
$error_message = '';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$first_name = sanitize($_POST['first_name'] ?? '');
$last_name = sanitize($_POST['last_name'] ?? '');
$email = sanitize($_POST['email'] ?? '');
$phone = sanitize($_POST['phone'] ?? '');
$institution = sanitize($_POST['institution'] ?? '');
$interested_in = sanitize($_POST['interested_in'] ?? '');
$message = sanitize($_POST['message'] ?? '');
if (empty($first_name) || empty($email) || empty($message)) {
$error_message = 'Please fill all required fields.';
} elseif (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
$error_message = 'Please enter a valid email address.';
} else {
$to = EMAIL;
$subject = "New Enquiry from $first_name $last_name - $interested_in";
$email_body = "
<html>
<head><title>New Enquiry</title></head>
<body style='font-family: Arial, sans-serif;'>
<h2 style='color: #2563eb;'>New Enquiry from Website</h2>
<table style='border-collapse: collapse; width: 100%; max-width: 600px;'>
<tr style='background: #f8f9fa;'>
<th style='text-align: left; padding: 10px; border: 1px solid #ddd;'>Field</th>
<th style='text-align: left; padding: 10px; border: 1px solid #ddd;'>Details</th>
</tr>
<tr>
<td style='padding: 10px; border: 1px solid #ddd;'><strong>Name:</strong></td>
<td style='padding: 10px; border: 1px solid #ddd;'>$first_name $last_name</td>
</tr>
<tr style='background: #f8f9fa;'>
<td style='padding: 10px; border: 1px solid #ddd;'><strong>Email:</strong></td>
<td style='padding: 10px; border: 1px solid #ddd;'>$email</td>
</tr>
<tr>
<td style='padding: 10px; border: 1px solid #ddd;'><strong>Phone:</strong></td>
<td style='padding: 10px; border: 1px solid #ddd;'>$phone</td>
</tr>
<tr style='background: #f8f9fa;'>
<td style='padding: 10px; border: 1px solid #ddd;'><strong>Institution:</strong></td>
<td style='padding: 10px; border: 1px solid #ddd;'>$institution</td>
</tr>
<tr>
<td style='padding: 10px; border: 1px solid #ddd;'><strong>Interested In:</strong></td>
<td style='padding: 10px; border: 1px solid #ddd;'>$interested_in</td>
</tr>
<tr style='background: #f8f9fa;'>
<td style='padding: 10px; border: 1px solid #ddd;'><strong>Message:</strong></td>
<td style='padding: 10px; border: 1px solid #ddd;'>$message</td>
</tr>
</table>
</body>
</html>
";
// Include email sending function
require_once __DIR__ . '/assets/php/mailer.php';
if (sendEmail($to, $subject, $email_body)) {
$success_message = 'Thank you for your message! We will get back to you soon.';
// Also send confirmation to user
$user_subject = "Thank you for contacting E Vision Infotech";
$user_body = "
<html><body>
<h2 style='color: #2563eb;'>Thank You!</h2>
<p>Dear $first_name,</p>
<p>We have received your enquiry and will get back to you within 24 hours.</p>
<p>Our team is here to help you transform your institution with our Smart Campus Management ERP.</p>
<p>Best regards,<br>The E Vision Infotech Team</p>
</body></html>
";
sendEmail($email, $user_subject, $user_body);
} else {
$error_message = 'Failed to send message. Please try again or contact us directly.';
}
}
}
?>
<?php include __DIR__ . '/includes/header.php'; ?>
<!-- Page Header -->
<section class="section-reveal" style="background: linear-gradient(135deg, #1e3a8a, #3b82f6, #06b6d4); padding: 100px 0 80px;">
<div class="container">
<div class="text-center text-white">
<h1 class="animate-on-scroll fade-in-up" style="font-size: 2.5rem; font-weight: 700; margin-bottom: 15px;">Contact Us</h1>
<p class="animate-on-scroll fade-in-up" data-delay="1" style="font-size: 1.2rem; opacity: 0.9;">We'd love to hear from you</p>
</div>
</div>
</section>
<!-- Contact Section -->
<section class="section-reveal" style="padding: 60px 0;">
<div class="container">
<div class="row">
<!-- Contact Form -->
<div class="col-lg-7 mb-5 animate-on-scroll fade-in-left">
<div class="card p-5" style="border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border: none;">
<h3 style="font-weight: 700; font-size: 1.5rem; color: #1f2937; margin-bottom: 25px;">Send us a Message</h3>
<?php if (!empty($success_message)): ?>
<div class="alert alert-success" style="background: #dcfce7; border: 1px solid #16a34a; color: #16a34a; padding: 15px; border-radius: 8px; margin-bottom: 20px;">
<i class="fas fa-check-circle mr-2"></i> <?php echo $success_message; ?>
</div>
<?php endif; ?>
<?php if (!empty($error_message)): ?>
<div class="alert alert-danger" style="background: #fee2e2; border: 1px solid #dc2626; color: #dc2626; padding: 15px; border-radius: 8px; margin-bottom: 20px;">
<i class="fas fa-exclamation-circle mr-2"></i> <?php echo $error_message; ?>
</div>
<?php endif; ?>
<form method="POST" action="">
<div class="row">
<div class="col-md-6 mb-3">
<label style="font-weight: 500; color: #374151; margin-bottom: 5px; display: block;">First Name *</label>
<input type="text" name="first_name" class="form-control" value="<?php echo $_POST['first_name'] ?? ''; ?>" placeholder="John" style="padding: 12px; border-radius: 8px; border: 1px solid #d1d5db;">
</div>
<div class="col-md-6 mb-3">
<label style="font-weight: 500; color: #374151; margin-bottom: 5px; display: block;">Last Name *</label>
<input type="text" name="last_name" class="form-control" value="<?php echo $_POST['last_name'] ?? ''; ?>" placeholder="Doe" style="padding: 12px; border-radius: 8px; border: 1px solid #d1d5db;">
</div>
</div>
<div class="mb-3">
<label style="font-weight: 500; color: #374151; margin-bottom: 5px; display: block;">Email Address *</label>
<input type="email" name="email" class="form-control" value="<?php echo $_POST['email'] ?? ''; ?>" placeholder="john@example.com" style="padding: 12px; border-radius: 8px; border: 1px solid #d1d5db;">
</div>
<div class="mb-3">
<label style="font-weight: 500; color: #374151; margin-bottom: 5px; display: block;">Phone Number</label>
<input type="tel" name="phone" class="form-control" value="<?php echo $_POST['phone'] ?? ''; ?>" placeholder="+91 98765 43210" style="padding: 12px; border-radius: 8px; border: 1px solid #d1d5db;">
</div>
<div class="mb-3">
<label style="font-weight: 500; color: #374151; margin-bottom: 5px; display: block;">Institution Name</label>
<input type="text" name="institution" class="form-control" value="<?php echo $_POST['institution'] ?? ''; ?>" placeholder="Your School/College Name" style="padding: 12px; border-radius: 8px; border: 1px solid #d1d5db;">
</div>
<div class="mb-3">
<label style="font-weight: 500; color: #374151; margin-bottom: 5px; display: block;">Interested In</label>
<select name="interested_in" class="form-control" style="padding: 6px; border-radius: 8px; border: 1px solid #d1d5db;">
<option value="">Select a service</option>
<option value="School/College management ERP" <?php echo ($_POST['interested_in'] ?? '') == 'School/College management ERP' ? 'selected' : ''; ?>>School/College management ERP</option>
<option value="Web Development" <?php echo ($_POST['interested_in'] ?? '') == 'Web Development' ? 'selected' : ''; ?>>Web Development</option>
<option value="Hosting Services" <?php echo ($_POST['interested_in'] ?? '') == 'Hosting Services' ? 'selected' : ''; ?>>Hosting Services</option>
<option value="Mobile App Development" <?php echo ($_POST['interested_in'] ?? '') == 'Mobile App Development' ? 'selected' : ''; ?>>Mobile App Development</option>
<option value="Request a Demo" <?php echo ($_POST['interested_in'] ?? '') == 'Request a Demo' ? 'selected' : ''; ?>>Request a Demo</option>
<option value="Technical Support" <?php echo ($_POST['interested_in'] ?? '') == 'Technical Support' ? 'selected' : ''; ?>>Technical Support</option>
<option value="Become Marketing Partner" <?php echo ($_POST['interested_in'] ?? '') == 'Become Marketing Partner' ? 'selected' : ''; ?>>Become Marketing Partner</option>
<option value="Become Service Partner" <?php echo ($_POST['interested_in'] ?? '') == 'Become Service Partner' ? 'selected' : ''; ?>>Become Service Partner</option>
</select>
</div>
<div class="mb-3">
<label style="font-weight: 500; color: #374151; margin-bottom: 5px; display: block;">Message *</label>
<textarea name="message" class="form-control" rows="4" placeholder="Tell us about your requirements..." style="padding: 12px; border-radius: 8px; border: 1px solid #d1d5db;"><?php echo $_POST['message'] ?? ''; ?></textarea>
</div>
<button type="submit" class="btn btn-primary btn-lg" style="padding: 12px 30px; border-radius: 8px; font-weight: 600;">
<i class="fas fa-paper-plane mr-2"></i> Send Message
</button>
</form>
</div>
</div>
<!-- Contact Info -->
<div class="col-lg-5 animate-on-scroll fade-in-right">
<div class="card p-4 mb-4 hover-lift" style="border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border: none;">
<div class="d-flex align-items-center mb-4">
<div style="width: 50px; height: 50px; background: #dbeafe; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 15px; flex-shrink: 0;">
<i class="fas fa-map-marker-alt" style="color: #2563eb; font-size: 1.25rem;"></i>
</div>
<div>
<h6 style="font-weight: 600; color: #1f2937; margin-bottom: 2px;">Our Location</h6>
<p style="color: #6b7280; font-size: 0.875rem; margin: 0;"><?php echo ADDRESS; ?></p>
</div>
</div>
<div class="d-flex align-items-center mb-4">
<div style="width: 50px; height: 50px; background: #dcfce7; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 15px; flex-shrink: 0;">
<i class="fas fa-phone" style="color: #16a34a; font-size: 1.25rem;"></i>
</div>
<div>
<h6 style="font-weight: 600; color: #1f2937; margin-bottom: 2px;">Phone</h6>
<p style="color: #6b7280; font-size: 0.875rem; margin: 0;">
<a href="tel:<?php echo PHONE; ?>" style="color: #6b7280; text-decoration: none;"><?php echo PHONE; ?></a>
</p>
</div>
</div>
<div class="d-flex align-items-center mb-4">
<div style="width: 50px; height: 50px; background: #f3e8ff; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 15px; flex-shrink: 0;">
<i class="fas fa-envelope" style="color: #9333ea; font-size: 1.25rem;"></i>
</div>
<div>
<h6 style="font-weight: 600; color: #1f2937; margin-bottom: 2px;">Email</h6>
<p style="color: #6b7280; font-size: 0.875rem; margin: 0;">
<a href="mailto:<?php echo EMAIL; ?>" style="color: #6b7280; text-decoration: none;"><?php echo EMAIL; ?></a>
</p>
</div>
</div>
<div class="d-flex align-items-center">
<div style="width: 50px; height: 50px; background: #ffedd5; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 15px; flex-shrink: 0;">
<i class="fas fa-globe" style="color: #ea580c; font-size: 1.25rem;"></i>
</div>
<div>
<h6 style="font-weight: 600; color: #1f2937; margin-bottom: 2px;">Website</h6>
<p style="color: #6b7280; font-size: 0.875rem; margin: 0;">
<a href="https://www.smsoft.in" target="_blank" style="color: #6b7280; text-decoration: none;">www.smsoft.in</a>
</p>
</div>
</div>
</div>
<!-- Quick Links -->
<div class="card p-4" style="border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border: none;">
<h5 style="font-weight: 600; color: #1f2937; margin-bottom: 15px;">Quick Links</h5>
<a href="https://smart.smsoft.in/" target="_blank" class="d-flex align-items-center mb-3" style="color: #2563eb; text-decoration: none;">
<i class="fas fa-external-link-alt mr-2"></i> Live Demo Login
</a>
<a href="assets/images/brouchers.pdf" target="_blank" class="d-flex align-items-center mb-3" style="color: #2563eb; text-decoration: none;">
<i class="fas fa-file-download mr-2"></i> Download Brochure
</a>
<a href="https://www.youtube.com/watch?v=PUaHr7FJ5Cc&t=0s" target="_blank" class="d-flex align-items-center" style="color: #2563eb; text-decoration: none;">
<i class="fas fa-video mr-2"></i> Watch Demo Video
</a>
</div>
</div>
</div>
</div>
</section>
<!-- FAQ -->
<section style="padding: 60px 0; background: #f8f9fa;">
<div class="container">
<div class="text-center mb-5">
<h2 style="font-size: 2rem; font-weight: 700; color: #1f2937; margin-bottom: 10px;">Frequently Asked Questions</h2>
</div>
<div class="row">
<div class="col-md-6 mb-4">
<div class="card p-4" style="border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: none;">
<h6 style="font-weight: 600; color: #1f2937; margin-bottom: 10px;">How do I request a demo?</h6>
<p style="color: #6b7280; font-size: 0.875rem; margin: 0;">Simply fill out the contact form above or call us directly. Our team will schedule a personalized demo.</p>
</div>
</div>
<div class="col-md-6 mb-4">
<div class="card p-4" style="border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: none;">
<h6 style="font-weight: 600; color: #1f2937; margin-bottom: 10px;">What is the pricing structure?</h6>
<p style="color: #6b7280; font-size: 0.875rem; margin: 0;">Our pricing is per student, per year. Check our pricing page for details.</p>
</div>
</div>
<div class="col-md-6 mb-4">
<div class="card p-4" style="border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: none;">
<h6 style="font-weight: 600; color: #1f2937; margin-bottom: 10px;">Is there a free trial?</h6>
<p style="color: #6b7280; font-size: 0.875rem; margin: 0;">Yes, we offer a free demo and trial period so you can experience our software.</p>
</div>
</div>
<div class="col-md-6 mb-4">
<div class="card p-4" style="border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: none;">
<h6 style="font-weight: 600; color: #1f2937; margin-bottom: 10px;">What support do you offer?</h6>
<p style="color: #6b7280; font-size: 0.875rem; margin: 0;">We provide 24/7 technical support, training sessions, and regular updates.</p>
</div>
</div>
</div>
</div>
</section>
<?php include __DIR__ . '/includes/footer.php'; ?>