= button("new", $translation->get("new"), $formname, "loadCard('new_collection', true)"); ?> = button("edit", $translation->get("edit"), $formname, "loadCard('edit_collection')"); ?>
= button("up", $translation->get("go_up"), $formname, "sendRequest('moveup_line_collection')", "", FALSE); ?> = button("down", $translation->get("go_down"), $formname, "sendRequest('movedown_line_collection')", "", FALSE); ?> = button("delete", $translation->get("delete"), $formname, "sendRequest('delete_collection', false, '{$translation->get('delete_collection_confirm')}')", "", FALSE); ?>
-
:
>
>
>
$where = ""; if ($collection_setup_id != NULL) { $where = " and main_collection_setup_id = " . $collection_setup_id; } switch($filter) { case 'past': $where .= " AND (validity_to IS NOT NULL AND validity_to < '" . date("Y-m-d") . "') "; break; case 'future': $where .= " AND (validity_from IS NOT NULL AND validity_from > '" . date("Y-m-d") . "') "; break; case 'all': // muss nicht nach datum gefiltert werden break; default: $where .= " AND (validity_from IS NULL OR validity_from <= '" . date("Y-m-d") . "') "; $where .= " AND (validity_to IS NULL OR validity_to >= '" . date("Y-m-d") . "') "; break; } $query = "SELECT main_collection.id, main_collection_setup.description AS '" . $translation->get("type") . "', main_collection.description AS '" . $translation->get("description") . "', from_unixtime(main_collection.modified_date, '%d.%m.%Y %H:%i:%s') AS '" . $translation->get("changed_on") . "', main_admin_user.name AS '" . $translation->get("changed_by") . "' from main_collection left join main_admin_user ON main_collection.modified_user = main_admin_user.id inner join main_collection_setup ON main_collection.main_collection_setup_id = main_collection_setup.id where (main_collection_setup.main_language_id = " . (int)$GLOBALS["language"]['id'] . " OR main_collection_setup.all_languages = 1) $where ORDER BY main_collection_setup_id asc, sorting asc"; $format = array('option', 'text', 'text', 'text', 'text'); if ($result = @mysqli_query($GLOBALS['mysql_con'], $query)) { linklist($result, $formname, $format, "input_collection_id", "edit_collection", TRUE, "update_sortorder_collection"); } ?>