/** * @param $edit_page * @param $obsolete_flag */ function print_versions($edit_page, $obsolete_flag) { $specmanagement_database_api = new specmanagement_database_api(); $specmanagement_print_api = new specmanagement_print_api(); $obsolote = false; if ($obsolete_flag) { $obsolote = null; } if ($edit_page) { $versions = version_get_all_rows_with_subs(helper_get_current_project(), null, null); } else { $versions = version_get_all_rows_with_subs(helper_get_current_project(), null, $obsolote); } for ($version_index = 0; $version_index < count($versions); $version_index++) { $version = $versions[$version_index]; $current_type = $specmanagement_database_api->get_type_string($specmanagement_database_api->get_type_by_version($version['id'])); $specmanagement_print_api->printRow(); echo '<input type="hidden" name="version_ids[]" value="' . $version['id'] . '"/>'; print_name($edit_page, $version); print_released($edit_page, $version_index, $version); print_obsolete($edit_page, $version_index, $version); print_date($edit_page, $version); print_type($edit_page, $current_type, $version); print_description($edit_page, $version); print_action($edit_page, $version); echo '</tr>'; } }
function print_meta($meta_box) { if (empty($meta_box['default'])) { $meta_box['default'] = ''; } if (empty($meta_box['meta_body'])) { $meta_box['meta_body'] = ''; } switch ($meta_box['type']) { case "open": print_meta_open_div($meta_box); break; case "close": print_meta_close_div($meta_box); break; case "header": print_meta_header($meta_box); break; case "text": print_meta_text($meta_box); break; case "description": print_description($meta_box); break; case "inputtext": print_meta_input_text($meta_box); break; case "upload": print_meta_upload($meta_box); break; case "media-upload": print_meta_media_upload($meta_box); break; case "textarea": print_meta_input_textarea($meta_box); break; case "checkbox": print_meta_input_checkbox($meta_box); break; case "combobox": print_meta_input_combobox($meta_box); break; case "radioenabled": print_meta_input_radioenabled($meta_box); break; case "radioimage": print_meta_input_radioimage($meta_box); break; case "imagepicker": print_image_picker($meta_box); break; case "datepicker": print_date_picker($meta_box); break; } }
</div> </div> <div class="decription_section"> <h1 class="description_title"><?php if (function_exists('print_description_title')) { print_description_title($site_id, $page_type); } ?> </h1> <div class="descrption_text"> <?php if (function_exists('print_description')) { print_description($site_id, $page_type); } ?> </div> </div> <div class="footer"> <div class="footer_text"><?php if (function_exists('print_footer_text')) { print_footer_text($site_id, $page_type); } ?> </div>
// Falls die Suche nicht erfolgreich war, gebe entprechende Meldung aus. if (count($seriennr) == 0) { print_nomatch(); } else { if (count($seriennr) == 1) { print_seriennummer($record); } else { if (count($seriennr) > 1) { print_list($seriennr); } } } // Gebe Hilfetext aus (Format der Suche, // Hinweise zum Internet Explorer, Abspeichern der Dateien) } else { print_description(); } } } } } } // Funktion zum Ausgeben der Liste von Typen bzw. Seriennummern. function print_list($liste) { global $typ, $vertrieb, $string4, $string5, $string6, $string; // Falls $typ gesetzt ist, schreibe Standard-HTML Einleitungs-Tags // und verwende als Hintergrundbild "$typ.jpg" if ($typ != '') { print_htmlbegin(strtolower($typ)); echo "<table>\n";