$order = $form->paint(); // Build the selection checkbox. $select = '<input type="checkbox" name="sel[' . $val['id'] . ']" value="' . $val['id'] . '"/>' . "\n"; // Keep track of the original order values so we can // compare against the artist’s entries. If they’re // different we know they want to rearrange comic pages. $form->input_hidden('orig_sort_order[' . $val['id'] . ']'); $form->value(intval($val['sort_order'])); $form->name('orig_sort_order[' . $val['id'] . ']'); $orig_output .= $form->paint(); // Got a marker? Oh boy. if ($val['marker_id'] && $val['marker_id'] > 0) { // Add the marker-removal link. $marker_link->query("delete_marker_id={$val['marker_id']}"); $marker->setID($val['marker_id']); $marker->getMarkerInfo(); // Emphasize top-tier markers with a <strong> element. if ($marker->markerInfo['marker_type_id'] == 1) { $marker_type = '<strong>' . $marker_type_list[1]['title'] . '</strong>'; } else { $marker_type = $marker_type_list[$marker->markerInfo['marker_type_id']]['title']; } $link->url('marker.view.php?marker_id=' . $val['marker_id']); $link->title('Check out this marker'); $link->tap($marker->markerInfo['title']); $this_marker = $marker_link->icon_link('remove') . $marker_type . ': ' . $link->paint(); } elseif ($marker_type_list) { $link->url('book.view.php?new_marker_on=' . $val['id']); $link->title('Mark a new section on page ' . number_format($val['sort_order']) . ' that continues to the next marker.'); // $link-> tap('<span style="color:#bbb">add marker</span>'); $link->icon_link('new');