diff --git a/miner.php b/miner.php index 06407b4d..ecabbdb1 100644 --- a/miner.php +++ b/miner.php @@ -1207,7 +1207,7 @@ function process($cmds, $rig) } } # -function rigbutton($rig, $rigname, $when, $row) +function rigname($rig, $rigname) { global $rigs; @@ -1218,12 +1218,21 @@ function rigbutton($rig, $rigname, $when, $row) $rigname = $parts[2]; } - list($value, $class) = fmt('BUTTON', 'Rig', '', $when, $row); + return $rigname; +} +# +function riginput($rig, $rigname) +{ + $rigname = rigname($rig, $rigname); - $button = "
'; + if ($prev !== null) + echo riginput($prev, 'Prev').' '; echo " "; + if ($next !== null) + echo riginput($next, 'Next').' '; + echo ' '; if (count($rigs) > 1) echo " "; |