<?php
 
 ###########################################################################
 #   OsCommerce WAP 1.1                                                    #
 #   This file is part of the wap tweak for OsCommerce (c) copyright 2004  #
 #   by Tom Nitzschner (tom@toms-home.com)                                 #
 #   http://www.toms-home.com                                              #
 #                                                                         #
 #   As always, make a backup before messing with anything. All code       #
 #   release by me is considered sample code only. It may be fully         #
 #   functual, but you use it at your own risk, if you break it,           #
 #   you get to fix it too. No waranty is given or implied.                #
 #                                                                         #
 #   All my work is released under the GNU GENERAL PUBLIC LICENSE.         #
 #   Please see the README for more information.                           #
 ###########################################################################

# User changable item below
# Please set some text that tells your customers where you are below, but 
# don't make it too long, as some wap devices have text lenght limitations

$where_are_we = "C/ Corazón de Maria 58, Madrid - Horario de comercial: Lunes a Viernes: 8:30 a 20:30, Sábado: 8:30 - 15:00
  	Tel: +34 91 416 51 42 administrador@carnicerialalo.com - www.carnicerialalo.com ";

# End user changable settings. 
# Do NOT change anything below unless you really know what you are doing. 

header( 'content-Type: text/vnd.wap.wml');

// Print the file text header
echo  '<?xml version="1.0" ?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">';
?>

<wml>
<template>
<do type="prev" label="Back"><prev/></do>
<do type="accept" label="Main"><go href="wapindex.php"/></do>
</template>

<card id="help" title="Help and Hints">

<?php
require("includes/wap_top.php");
#
# Nothing selected at the top, show the meno, otherwise go to whatever section was selected.
#
if ($help_id == "") {
	echo ("<p><a href=\"waphelp.php?help_id=1\">Where are we</a></p>\n");
	echo ("<p><a href=\"waphelp.php?help_id=2\">Limitations of WAP Browsing</a></p>\n");
	echo ("<p><a href=\"waphelp.php?help_id=3\">Where can I order?</a></p>\n");
	echo ("<p><a href=\"waphelp.php?help_id=4\">Why do I see [...] in descriptions?</a></p>\n");
} elseif ($help_id == "1") {
	echo ("<p>Where are we?</p><p>".$where_are_we."</p>\n");
} elseif ($help_id == "2") {
	echo ("<p>Limitations of WAP Browsing</p><p>To protect your phone from potential damage, all regular html links pointing to files (sound, images) have been removed. You may still find referenced to these thinks in descriptions, but the links themselves have been disabled.</p>\n");
} elseif ($help_id == "3") {
	echo ("<p>Where can I order?</p><p>If you wish to place an order, please visit our website using a browser. We do not, at this time, take orders via WAP - this is done to protect our customers details.</p>\n");
} elseif ($help_id == "4") {
	echo ("<p>Why do I see [...] in descriptions?</p><p>Unlike a regular web browser, there are limitations on text lenght in WAP. We trim our product descriptions to ensure compatibility. Please visit our website for the full descriptions.</p>\n");
}
?>
</card>
</wml>
