[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qsos-commits] qsos/apps/phpviewer show.php
From: |
Raphaël Semeteys |
Subject: |
[Qsos-commits] qsos/apps/phpviewer show.php |
Date: |
Tue, 14 Nov 2006 14:36:52 +0000 |
CVSROOT: /sources/qsos
Module name: qsos
Changes by: Raphaël Semeteys <rsemeteys> 06/11/14 14:36:52
Modified files:
apps/phpviewer : show.php
Log message:
svg flag added
merged with show_single.php
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qsos/apps/phpviewer/show.php?cvsroot=qsos&r1=1.3&r2=1.4
Patches:
Index: show.php
===================================================================
RCS file: /sources/qsos/qsos/apps/phpviewer/show.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- show.php 8 Nov 2006 15:08:18 -0000 1.3
+++ show.php 14 Nov 2006 14:36:51 -0000 1.4
@@ -97,7 +97,8 @@
<?php
include("QSOSDocument.php");
-$files = $_GET['files'];
+$files = $_GET['f'];
+$svg = $_GET['svg'];
$num = count($files);
$myDoc = array();
@@ -125,7 +126,7 @@
foreach($files as $file) {
$f .= "f[]=$file&";
}
-echo " <a href='radar.php?".$f."'><img src='graph.png' border=''/></a></td>";
+echo " <a href='radar.php?".$f."svg=$svg'><img src='graph.png'
border=''/></a></td>";
for($i=0; $i<$num; $i++) {
echo "<td>$app[$i]</td><td id='comment'>Comments</td>";
@@ -136,16 +137,13 @@
echo "</table>\n";
function showtree($myDoc, $trees, $depth, $idP) {
+ global $svg;
$new_depth = $depth + 1;
$offset = $new_depth*10;
$idF = 0;
$tree = $trees[0];
for($k=0; $k<count($tree); $k++) {
- //foreach($trees[0] as $element) {
- //$name = $element->name;
- //$title = $element->title;
- //$subtree = $element->children;
$name = $tree[$k]->name;
$title = $tree[$k]->title;
$subtree = $tree[$k]->children;
@@ -162,12 +160,12 @@
if ($subtree) {
echo "<td><span style='position:relative; left:$offset'
onclick=\"collapse(this);\" class='expanded'>$title";
if ($myDoc[0]->hassubelements($name) > 2) {
- $files = $_GET['files'];
+ $files = $_GET['f'];
$f = "";
foreach($files as $file) {
$f .= "f[]=$file&";
}
- echo " <a href='radar.php?".$f."c=$name'><img
src='graph.png' border=''/></a>";
+ echo " <a
href='radar.php?".$f."c=$name&svg=$svg'><img src='graph.png' border=''/></a>";
}
echo "</span></td>\n";
} else {
- [Qsos-commits] qsos/apps/phpviewer show.php,
Raphaël Semeteys <=