<?php
/*
Description: Code for UserEventMan Overview Page
Copyright 2011 Malcolm Shergold
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
include BINGMAPS_INCLUDE_PATH.'bingmapslib_admin.php';
if (!class_exists('BingMapsOverviewAdminClass'))
{
class BingMapsOverviewAdminClass extends BingMapsLibAdminClass
{
function __construct($env)
{
$this->pageTitle = 'Overview';
// Call base constructor
parent::__construct($env);
$myDBaseObj = $this->myDBaseObj;
}
function ProcessActionButtons()
{
}
function Output_ShortcodeHelp()
{
// FUNCTIONALITY: Overview - Show Help for Shortcode(s))
?>
<br>
<h2><?php _e('Shortcodes', $this->myDomain); ?></h2>
<?php _e('BingMaps generates output to your Wordpress pages for the following shortcodes:', $this->myDomain); ?>
<table class="widefat" cellspacing="0">
<thead>
<tr>
<th><?php _e('Shortcode', $this->myDomain); ?></th>
<th><?php _e('Description', $this->myDomain); ?></th>
</tr>
</thead>
<tbody>
<tr>
<td>[<?php echo BINGMAPS_SHORTCODE_MAP; ?> x=nn.nnnnn y=nn.nnnn]</td>
<td><?php _e('Output a map', $this->myDomain); ?></td>
</tr>
<tr>
<td>Shortcode Parameters:</td>
<td>x (Required) = Latitude at centre of map</td>
</tr>
<tr>
<td> </td>
<td>y (Required) = Longditude at centre of map</td>
</tr>
<tr>
<td> </td>
<td>w (Optional) = Width of the output map (pixels)</td>
</tr>
<tr>
<td> </td>
<td>h (Optional) = Height of the output map (pixels)</td>
</tr>
<tr>
<td> </td>
<td>zoom (Optional) = Map scale - (1-19)</td>
</tr>
<tr>
<td> </td>
<td>type (Optional) = Map type - (road, aerial etc.)</td>
</tr>
</tbody>
</table>
<?php
}
function Output_MainPage($updateFailed = false)
{
$this->Output_ShortcodeHelp();
}
}
}
?>