Location: PHPKode > projects > OpenBizMap > obm2007.1/mydata/script/tmp_dashboard.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.
*/

// Calendar config ---------------------------------------------

$title=get('title');
if(!$title)
  $title=$mm2;
if(!$title)
  $title=$mm1;
if(!$title)
  $title='Dashboard';

echo '<h2>';
myecho($title);
echo '</h2>';

$tmp_result_array=search('sysGroupBy=dashboard Active MyBag=dashboard');
$tmp_sorted_result_array=array();
reset($tmp_result_array);
foreach($tmp_result_array as $tmp_line)
  if(read($tmp_line,'User Group')=='' or strtoupper(read($tmp_line,'User Group'))==strtoupper(USERGROUP))
    $tmp_sorted_result_array[$tmp_line]=read($tmp_line,'Dashboard Order');

asort($tmp_sorted_result_array);

reset($tmp_sorted_result_array);
foreach($tmp_sorted_result_array as $tmp_line => $tmp)
{

  //------------------------------------------------------------------------------------------------------------

   echo '<div align=center  style="border:#555 1px solid;width:25em; height:33em; margin:0px; margin-left:10px;float:left; background-color:#fff; padding:10px;">'; 
      echo '<h3>';
        //myecho($metric_name); 
        myecho(read($tmp_line,'Dashboard Name'));
      echo '</h3>';
      echo('<img class="fld_" width=274px title="map" src="'.cfg_images_path.'/mapa3.png" alt="Map" />');
      
      echo '<p style="text-align:left; height:100%;vertical-align:bottom;">';
        echo 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ';
      echo '</p>';
    echo '</div>';
    

}
echo '<div id="clearmenu" style="clear: left"></div><br />';

?>
Return current item: OpenBizMap