Index: trunk/extensions/SemanticResultFormats/Ploticus/SRF_Ploticus.php |
— | — | @@ -269,17 +269,17 @@ |
270 | 270 | // PLOT ROW - colspan 3 |
271 | 271 | // TODO: use CSS, create stylesheet |
272 | 272 | // TODO: generate CSS unique id for each SRF-Ploticus occurence |
273 | | - $rtnstr = '<table class="srfptable" cols="3"' . |
| 273 | + $rtnstr = '<table class="srfptable" id="srfptblid' . $smwgIQRunningNumber . '" cols="3"' . |
274 | 274 | (empty($this->m_tblwidth) ? ' ' : ' width="'. $this->m_tblwidth . '" ') . |
275 | 275 | (empty($this->m_tblheight) ? ' ' : ' height="'. $this->m_tblheight . '" ') . |
276 | 276 | '><tr>'; |
277 | 277 | if (!empty($errorData) && !$this->m_debug) { |
278 | 278 | // there was an error. We do the not debug check since ploticus by default sends the debug trace to stderr too |
279 | 279 | // so when debug is on, having a non-empty errorData does not necessarily indicate an error. |
280 | | - $rtnstr .= '<th colspan="3"><strong>Error processing ploticus data:</strong></th></tr><tr><td colspan="3" align="center">' . |
| 280 | + $rtnstr .= '<td class="srfperror" colspan="3"><strong>Error processing ploticus data:</strong></td></tr><tr><td colspan="3" align="center">' . |
281 | 281 | $errorData . '</td></tr>'; |
282 | 282 | } else { |
283 | | - $rtnstr .= '<td colspan="3" align="center">'; |
| 283 | + $rtnstr .= '<td class="srfpplot" colspan="3" align="center">'; |
284 | 284 | switch ($this->m_imageformat) { |
285 | 285 | case 'svg': |
286 | 286 | case 'svgz': |
— | — | @@ -329,7 +329,7 @@ |
330 | 330 | $rtnstr .= '</td></tr>'; |
331 | 331 | } |
332 | 332 | // INFOROW - colspan 3 |
333 | | - $rtnstr .= '<tr><td width="33%" colspan="1">'; |
| 333 | + $rtnstr .= '<tr><td class="srfpaction" width="33%" colspan="1">'; |
334 | 334 | |
335 | 335 | // INFOROW - ACTIONS - col 1 |
336 | 336 | // if showcsv or debug is on, add link to data file (CSV) |
— | — | @@ -359,7 +359,7 @@ |
360 | 360 | |
361 | 361 | // INFOROW - TIMESTAMP - col 3 |
362 | 362 | // if showtimestamp is on, add plot generation timestamp |
363 | | - $rtnstr .= '</td><td width="33%" colspan="1" align="right">'; |
| 363 | + $rtnstr .= '</td><td class="srfptimestamp" width="33%" colspan="1" align="right">'; |
364 | 364 | if ($this->m_showtimestamp) { |
365 | 365 | $rtnstr .= '<small> Generated: ' . date('Y-m-d h:i:s A', $graphLastGenerated) . '</small>'; |
366 | 366 | } |
— | — | @@ -369,13 +369,13 @@ |
370 | 370 | // DEBUGROW - colspan 3, only display when debug is on |
371 | 371 | // add link to script or display ploticus cmdline/script |
372 | 372 | if ($this->m_debug) { |
| 373 | + $rtnstr .= '<tr><td class="srfpdebug" align="center" colspan="3"><strong>DEBUG: '; |
373 | 374 | if ($this->m_ploticusmode == 'script') { |
374 | | - $rtnstr .= '<tr><td align="center" colspan="3"><strong>DEBUG: <a href="' . |
375 | | - $scriptURL . '" target="_blank">SCRIPT</a> (<a href="'. |
| 375 | + $rtnstr .= '<a href="' . $scriptURL . '" target="_blank">SCRIPT</a> (<a href="'. |
376 | 376 | $errorURL . '" target="_blank">Ploticus Trace</a>)</strong></td></tr>'; |
377 | 377 | } else { |
378 | | - $rtnstr .= '<tr><td align="center" colspan="3"><strong>DEBUG: PREFAB (<a href="' . |
379 | | - $errorURL .'" target="_blank">Ploticus Trace</a>)</strong></td></tr><tr><td colspan="3">' . |
| 378 | + $rtnstr .= 'PREFAB (<a href="' . $errorURL . |
| 379 | + '" target="_blank">Ploticus Trace</a>)</strong></td></tr><tr><td colspan="3">' . |
380 | 380 | $commandline . '</td></tr>'; |
381 | 381 | } |
382 | 382 | } |