|
|
|
@ -302,13 +302,18 @@
|
|
|
|
|
echo '<form action="' . $_SERVER['PHP_SELF'] . '">';
|
|
|
|
|
echo '<ul class="unstyled-list">';
|
|
|
|
|
$priority = -1;
|
|
|
|
|
$i = 1;
|
|
|
|
|
while($row = pg_fetch_array($res)) {
|
|
|
|
|
if($priority != $row['priority'] && $priority != -1)
|
|
|
|
|
echo '<hr>';
|
|
|
|
|
$priority = $row['priority'];
|
|
|
|
|
if($i <= 10) {
|
|
|
|
|
$accesskey = ' accesskey="' . ($i % 10) . '"';
|
|
|
|
|
$i++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo '<li class="d-flex">';
|
|
|
|
|
echo '<button type="submit" formmethod="get" name="stop" value="' . $row['stop'] . '" class="flex-fill">' . $row['stop'] . ' – ' . $row['description'] . '</button>';
|
|
|
|
|
echo '<button type="submit" formmethod="get" name="stop" value="' . $row['stop'] . '" class="flex-fill"' . $accesskey . '>' . $row['stop'] . ' – ' . $row['description'] . '</button>';
|
|
|
|
|
echo '<button type="submit" formmethod="post" name="fav-up" value="' . $row['fav_id'] . '" title="' . $row['stop'] . 'の優先を上げる" aria-label="' . $row['stop'] . 'の優先を上げる">↑</button>';
|
|
|
|
|
echo '<button type="submit" formmethod="post" name="fav-down" value="' . $row['fav_id'] . '" title="' . $row['stop'] . 'の優先を下げる" aria-label="' . $row['stop'] . 'の優先を下げる">↓</button>';
|
|
|
|
|
echo '<button type="submit" formmethod="post" name="fav-remove" value="' . $row['fav_id'] . '" title="' . $row['stop'] . 'を削除" aria-label="' . $row['stop'] . 'を削除"class="btn danger">×</button>';
|
|
|
|
|