?xml version="1.0"?> select ld.name, le.element_id from layout_includelets ld, layout_elements le, layout_pages lp where lp.pageset_id = :pageset_id and le.page_id = lp.page_id and ld.includelet_id = le.includelet_id delete from acs_permissions where object_id = :pageset_id select * from layout_pagesets where pageset_id = :pageset_id select pageset_id from layout_pagesets where owner_id = :owner_id and package_id = :package_id select first_names || ' ' || last_name as user_name from persons where person_id = :owner_id update layout_pagesets set name = :name, theme = :theme, template_id = :template_id where pageset_id = :pageset_id select layout_pagesets.name, layout_pagesets.pageset_id, layout_pagesets.theme, layout_pages.page_id from layout_pagesets, layout_pages where layout_pagesets.pageset_id = :pageset_id and layout_pages.sort_key = :page_num and layout_pages.pageset_id = :pageset_id select layout_pagesets.name, layout_pagesets.pageset_id, layout_pageset_layouts.template, layout_pages.name as page_name, layout_pages.layout_id as layout_id from layout_pagesets, layout_page_templates, layout_pages where layout_pages.pageset_id = :pageset_id and layout_pages.page_id = :page_id and layout_pages.pageset_id = layout_pagesets.pageset_id and layout_pages.layout_id = pageset_layouts.layout_id update layout_elements set state = 'hidden' where element_id = :element_id select max(page_id) from layout_pages where pageset_id = :pageset_id select min(page_id) from layout_pages where pageset_id = :pageset_id select element_id from layout_elements where page_id = :max_page_id select name, layout_id, sort_key from layout_pages where page_id = :source_page_id select page_id from layout_pages where pageset_id = :pageset_id and sort_key = :sort_key update layout_pages set name = :name, layout_id = :layout_id where page_id = :target_page_id select layout_elements.page_column, layout_elements.sort_key, layout_elements.state, layout_includelets.includelet_id, layout_includelets.name, layout_elements.name as pretty_name from layout_elements, layout_includelets where layout_elements.page_id = :source_page_id and layout_elements.includelet_id = layout_includelets.includelet_id select layout_pages.element_id from layout_elements, layout_pages where layout_pages.pageset_id = :pageset_id and layout_elements.page_id = layout_pages.page_id and layout_elements.includelet_id = :includelet_id and layout_elements.name = :name update layout_elements set page_column = :page_column, sort_key = :sort_key, state = :state, page_id = :target_page_id where element_id = :target_element_id select pageset_id as master_template_id from layout_pagesets where package_id = :package_id and owner_id = 0 select count(*) from layout_pages where pageset_id = :pageset_id select page_id from layout_pages where pageset_id = :pageset_id order by sort_key select name, sort_key as page_num from layout_pages where pageset_id = :pageset_id order by sort_key select theme from layout_pagesets where pageset_id = :pageset_id