<div id='selectReps<?php print $vn_item_id; ?> '><span id='selectRepsCount<?php print $vn_item_id; ?> '><?php print ($va_item['representation_count'] == 1 ? _t("%1/%2 page selected", $vn_num_reps_selected, $va_item['representation_count']) : _t("%1/%2 pages selected", $vn_num_reps_selected, $va_item['representation_count'])) . "</span>"; print " (<a href='#' onclick='caMediaPanel.showPanel(\"" . caNavUrl($this->request, '', 'Sets', 'SelectRepresentations', array('object_id' => $va_item['row_id'], 'item_id' => $va_item['item_id'])) . "\", function() { jQuery(\"#selectRepsCount{$vn_item_id}\").load(\"" . caNavUrl($this->request, '', 'Sets', 'GetSelectedRepresentationCount', array('item_id' => $vn_item_id)) . "\"); }); return false;' >" . _t("change") . "</a>)" . "</div>"; # --- output special halep text if there are any audio or video reps associated with this object $t_order_objects->load($va_item['row_id']); if ($t_order_objects->numberOfRepresentationsOfClass("audio") || $t_order_objects->numberOfRepresentationsOfClass("video")) { print "<p>This record contains audio and/or video materials. If this is what you are interested in purchasing please add your inquiry in the messaging system on the right of the screen.</p>"; } print "<div class='setItemServicesForm'><form action='#' id='setItemServices<?php print {$vn_item_id}; ?>'>"; $va_service_list = $t_order_item->getFieldInfo('service', 'BOUNDS_CHOICE_LIST'); foreach ($t_order_item->getServiceGroups() as $vs_group_code => $va_group_info) { print "<br style='clear: both;'/><div style='margin-top: 10px;'><strong>" . $va_group_info['label'] . "</strong> " . (mb_strtolower($va_group_info['label']) == "usage" ? " <a href='" . caNavUrl($this->request, "", "About", "faq") . "#usage'>" . _t("Why do I need usage?") . "</a>" : "") . "</div>\n"; foreach ($va_group_info['services'] as $vs_service_code => $va_service_info) { $va_opts = array('value' => $vn_item_id . '|' . $vs_service_code); if (in_array($vs_service_code, $va_item['selected_services'])) { $va_opts['checked'] = 1; } print "<div class='serviceItem'><div style='float: left;'>" . caHTMLCheckboxInput('setItemServices_' . $vn_item_id, $va_opts) . "</div><div>" . $va_service_info['label'] . "</div></div>"; } } print "</form></div>"; ?> </div><!-- end setItemInfo --> </div> <div style="clear:both; height:1px;"><!-- empty --></div>