Add tracking icon and popup in Listview
Tracking_orders.php:::::::::::::::: <?php $track=$_REQUEST['trackcode']; if($track) { $track=preg_replace('/\s+/', '', $track); if(startsWith($track, "JC")==true) { $link = "<script>window.open('https://www.roylmail.com/track-your-item?trackNumber=".$track."', 'width=710,height=555,left=160,top=170')</script>"; } else { $link = "<script>window.open('http://www.parceforce.com/track-trace?trackNumber=".$track."', 'width=710,height=555,left=160,top=170')</script>"; } echo $link; echo "<script type=\"text/javascript\" charset=\"utf-8\">window.self.close()</script>"; } else { echo "Invalid Tracking Code"; } function startsWith($haystack, $needle) { // search backwards starting from haystack length characters from the end…
Read more
Recent Comments