| 1 |
<!-- THIS IS FOR THE CREATION OF CHECKS & Xs ON THE /shows/status PAGE -->
|
| 2 |
|
| 3 |
<?php
|
| 4 |
// $Id: views-view-field.tpl.php,v 1.1 2008/05/16 22:22:32 merlinofchaos Exp $
|
| 5 |
/**
|
| 6 |
* This template is used to print a single field in a view. It is not
|
| 7 |
* actually used in default Views, as this is registered as a theme
|
| 8 |
* function which has better performance. For single overrides, the
|
| 9 |
* template is perfectly okay.
|
| 10 |
*
|
| 11 |
* Variables available:
|
| 12 |
* - $view: The view object
|
| 13 |
* - $field: The field handler object that can process the input
|
| 14 |
* - $row: The raw SQL result that can be used
|
| 15 |
* - $output: The processed output that will normally be used.
|
| 16 |
*
|
| 17 |
* When fetching output from the $row, this construct should be used:
|
| 18 |
* $data = $row->{$field->field_alias}
|
| 19 |
*
|
| 20 |
* The above will guarantee that you'll always get the correct data,
|
| 21 |
* regardless of any changes in the aliasing that might happen if
|
| 22 |
* the view is modified.
|
| 23 |
*/
|
| 24 |
?>
|
| 25 |
|
| 26 |
<?php if ($output): ?>
|
| 27 |
<img src='<?php print base_path().path_to_theme()."/img/check.png"; ?>' alt='' title='<?php print $output; ?>' />
|
| 28 |
<?php else: ?>
|
| 29 |
<img src="<?php print base_path().path_to_theme().'/img/x.png'; ?>" alt="" />
|
| 30 |
<?php endif; ?>
|