Footer-MyShipment Panel (footer-myshipment.php)
Overview
The footer-myshipment.php panel renders the footer specifically for the “My Shipments” pages in the Tech Transport logistics portal. It combines static HTML, dynamic PHP (for dates and path constants), and interactive JavaScript to deliver links, company info, contact details, and external integrations. This panel is conditionally included in the site template for shipment-related views .
HTML Structure
- Root Container:
<div id="mw-footer" class="mw-footer-one"> - Top Section:
<div class="mw-footer-top">houses the feature widgets. - Features Grid:
<div class="mw-footer-features">organizes three columns. - Bottom Section:
<div class="mw-footer-bottom">contains back-to-top, branding, and social icons.
<div id="mw-footer" class="mw-footer-one">
<div class="mw-footer-top">
<div class="container-fluid">
<div class="mw-footer-features">
<!-- Important Links, About Us, Freight Services -->
</div>
</div>
</div>
<div class="mw-footer-bottom">
<div class="container">
<!-- Back to Top, Powered by, Social Icons, Copyright -->
</div>
</div>
</div>
🔗 Important Links
Quick access to key static pages:
- DMCA Policy:
notification_of_infringement_dmca_policy.php - Terms & Conditions:
terms_and_conditions.php - Privacy Policy:
privacy_policy.php - Contact Us:
contact_us.php
<div class="footer-widgt">
<h3>Important Links</h3>
<ul>
<li><a href="notification_of_infringement_dmca_policy.php">DMCA Policy</a></li>
<li><a href="terms_and_conditions.php">Terms and Conditions</a></li>
<li><a href="privacy_policy.php">Privacy Policy</a></li>
<li><a href="contact_us.php">Contact Us</a></li>
</ul>
</div>
ℹ️ About Us
A brief company description plus a PayPal “Buy Now” button for donations or payments:
- Description: Tech Transport’s freight management features.
- PayPal Integration:
- Hidden inputs:
cmd,hosted_button_id - Image button: PayPal hosted graphic
- 1×1 tracking pixel
- Hidden inputs:
<div class="footer-widgt">
<h3>About Us</h3>
<p>Tech Transport is your freight management solution, loaded with the features you need to simplify all of your shipping functions.</p>
<div class="pull-left">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="2LS5JFKM2UKAU">
<input class="pointer" type="image"
src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif"
name="submit" alt="PayPal – The safer, easier way to pay online!">
<img src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif"
width="1" height="1" alt="">
</form>
</div>
</div>
📞 Freight Services
Contact details with Font Awesome icons:
| Service | Icon | Detail |
|---|---|---|
| Phone | <em class="fa fa-phone"></em> |
800-641-5300 |
<em class="fa fa-envelope"></em> |
<a href="https://www.techtransport.com/">[email protected]</a> |
|
| Address | <em class="fa fa-map-marker"></em> |
300 Elm Street Unit 1, Milford, NH 03055 |
<div class="footer-widgt">
<h3>Freight Services</h3>
<ul>
<li><em class="fa fa-phone"></em><span>800-641-5300</span></li>
<li><em class="fa fa-envelope"></em><a href="https://www.techtransport.com/">[email protected]</a></li>
<li><em class="fa fa-map-marker"></em><span>300 Elm Street Unit 1, Milford, NH 03055</span></li>
</ul>
</div>
Footer Bottom Section
- Back to Top:
<a class="btn-backTop"><em class="fa fa-angle-up"></em></a> - Branding: “Powered by: Freightanywhere.com”
- Social Icons: Facebook, Twitter, LinkedIn (Font Awesome classes)
- Dynamic Year:
<?php echo date('Y'); ?>
<div class="mw-footer-bottom">
<div class="container">
<a href="#" class="btn-backTop"><em class="fa fa-angle-up"></em></a>
<div class="row">
<div class="col-md-4">
<p>Powered by: Freightanywhere.com</p>
</div>
<div class="col-md-4 mw-social-icon">
<ul>
<li><a href="https://www.facebook.com/techtransport/" class="fa fa-facebook"></a></li>
<li><a href="https://twitter.com/tech_transport" class="fa fa-twitter"></a></li>
<li><a href="https://www.linkedin.com/company/615045/" class="fa fa-linkedin"></a></li>
</ul>
</div>
<div class="col-md-4">
<p>© 2008 – <?php echo date('Y'); ?> Tech Transport All Rights Reserved</p>
</div>
</div>
</div>
</div>
JavaScript Behavior
-
Canadian Popup Modal
- Hides
#canadian_popupon jQuery ready. - On click of
.startquoteclass, sets title, injects an<iframe>pointing tocanadian_customer_popup.php?type=…usingSITE_PATH, then opens a jQuery UI dialog (600×300).
- Hides
-
Login Form Validation & AJAX
- Uses jQuery Validate on
#lgnfrm: requires a valid email and non-empty password. - Custom error placement in
#email-errorand#password-error. - On valid submit, serializes the form, posts to
index.php, expects JSON with{ ok: true|false, msg: string }, then either redirects towelcome.phpor displays error.
- Uses jQuery Validate on
-
Visitor Intelligence & DNB Integration
- Loads
//paapi307.d41.co/sync/and D&B core tag. - Calls
dnbvid.getData("paapi307","json","T",{},callback)for company insights (DUNS, NAICS, etc.).
- Loads
$(document).ready(function() {
$("#canadian_popup").hide();
$(".startquoteclass").live("click", function() {
// setup and open dialog…
});
});
$("#lgnfrm").validate({
rules: {
usr_email: { required: true, email: true },
pwd: "required"
},
// …
submitHandler: function(form) {
$.ajax({
type: "POST",
url: "index.php",
data: $("#lgnfrm").serialize(),
dataType: "json",
success: function(json) {
if (json.ok) {
setTimeout(function() { window.location.href = "welcome.php"; }, 1000);
} else {
$("#loginError").text(json.msg).show();
}
}
});
}
});
⚙️ Dependencies & Integration
- PHP:
date('Y'),SITE_PATHfor constructing iframe URLs. - jQuery & jQuery UI: DOM ready,
.live(),.dialog(). - jQuery Validate: Form validation plugin.
- Font Awesome: Icons for phone, envelope, map-marker, angle-up.
- PayPal: Hosted button form.
- External Scripts: Visitor Intelligence (
paapi307.d41.co) and DNB core tag.
🚀 Inclusion Logic
In site_template.php, shipment pages (my_shipments_v3, my_shipments_v4, my_shipments_v5) include this panel instead of the generic footer :
if (in_array($current_template_name, [
'my_shipments_v3/my_shipments_v3',
'my_shipments_v4/my_shipments_v4',
'my_shipments_v5/my_shipments_v5'
])) {
include_once("inc/panels/footer-myshipment.php");
} else {
include_once("inc/panels/footer-home.php");
}
Usage
- Customize Links or Text: Edit the lists under
.mw-footer-features. - Adjust PayPal: Update form fields for new hosted IDs.
- Extend JS: Add additional behaviors in the script blocks.
- Ensure Dependencies: Load jQuery, jQuery UI, Validate plugin, and Font Awesome before this panel.
This documentation outlines the structure, functionality, and integration points of the footer-myshipment.php panel within the Tech Transport logistics application.