Location: PHPKode > projects > OpenBizMap > obm2007.1/mydata/script/sys_map.txt
<?php
/*
OpenDataBag - Data Web Interface
Copyright (C) 2004 Nawara

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.
*/

echo '<div class="detail supergroup">';

echo '<h2>';
myecho('Show data on map');
echo '</h2>';

//map.php?odb_search='.str_replace('+','%20',urlencode($search)).'&amp;odb_title=

  echo '<form enctype="multipart/form-data" action="map.php" method="GET">';
    echo('<div class="supergroup">');

    echo '<input name="odb_run" type="hidden" value="map" />';

    myecho('Title');
    echo '<br /><input name="odb_title" value="'.get('title').'" /><br />';

    myecho('Data scope');
    echo '<br /><input name="odb_search" value="'.$search.'" /><br />';

    myecho('Icon field (Leave empty to hide icons)');
    echo '<br /><input name="odb_icon_field_name" value="Icon" /><br />';

    myecho('Choose background map');
    echo '<br /><select name="odb_map">';
    echo '<option></option>';
    echo '<option>generate</option>';
    $res=opendir(cfg_data_path.'/../maps/');
      while($fl = readdir($res))
      if(substr($fl,-4)=='.png')
      {
        echo '<option>'.substr($fl,0,-4).'</option>';
      }
    closedir($res);
    echo '</select><br />';


    myecho('Choose background map colorset');
    echo '<br /><select name="odb_colorset"><br />';
    echo '<option></option>';
    $res=opendir(cfg_data_path.'/../maps/');
      while($fl = readdir($res))
      if(substr($fl,0,4)=='col_' and substr($fl,-4)=='.php')
      {
        echo '<option>'.substr($fl,4,-4).'</option>';
      }
    closedir($res);
    echo '</select><br />';

    myecho('Value field');
    echo '<br /><input name="odb_value_field_name" value="" /><br />';

    myecho('Region field');
    echo '<br /><input name="odb_region_field_name" value="" /><br />';



    echo('<p class="bbutton"><input name="odb_submit" type="submit" value="Open map" /></p></div>');

  echo '</form>';

echo '</div>';

echo('<div class="clearer"></div>');

?>
Return current item: OpenBizMap