[prev in list] [next in list] [prev in thread] [next in thread] 

List:       os-sim-commits
Subject:    [Os-sim-commits] os-sim/www/risk_maps view.php,1.7,1.8
From:       Dominique Karg <dkarg () users ! sourceforge ! net>
Date:       2008-10-16 7:34:09
Message-ID: E1KqNN3-0004DY-4J () 23jxhf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Update of /cvsroot/os-sim/os-sim/www/risk_maps
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16185

Modified Files:
	view.php 
Log Message:
Add option to hide "other map" selector, for map inclusion into executive panels or \
jasperreports for example.


Index: view.php
===================================================================
RCS file: /cvsroot/os-sim/os-sim/www/risk_maps/view.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- view.php	15 Oct 2008 14:04:37 -0000	1.7
+++ view.php	16 Oct 2008 07:34:07 -0000	1.8
@@ -61,6 +61,7 @@
 $conn = $db->connect();
 
 $map = ($_GET["map"]!="") ? $_GET["map"] : 1;
+$hide_others = ($_GET["hide_others"]!="") ? $_GET["hide_others"] : 0;
 
 
 ossim_valid($map, OSS_DIGIT, 'illegal:'._("type"));
@@ -194,6 +195,10 @@
 	<img d="map_img" src="maps/map<? echo $map ?>.jpg" border=0>
 </td>
 <td valign=top class=ne1 style="padding-left:5px">
+<?php 
+if(!$hide_others){
+?>
+
  <h2><?= _("Maps") ?></h2>
  <?php
  if($can_edit){
@@ -244,6 +249,8 @@
                 $rs->MoveNext();
 	    }
         }
+
+} // if(!$hide_others)
 	
 	$conn->close();
 ?>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Os-sim-commits mailing list
Os-sim-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/os-sim-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic