Identify(); $q = ''; $q .= ' <_owner>'.get_loggedin_user()->username.'@'.$idef['identity'][0]['suffix'][0][0].''; $q .= ' <_schema>http://trac.htk.tlu.ee/waramu/Collection'; $q .= ''; $rids = $w->listIdentifiers(buildAppUser(get_loggedin_user()), $q); $wid = get_input('resourceid'); $collections_list = getAllUserCollections($wid); $listing = elgg_view('input/checkboxes', array('internalname' => 'collection', 'options' => $collections_list['all_collections'], 'value' => $collections_list['resource_collections'])); $listing .= elgg_view('input/text', array('internalname' => 'collection_name')); $form_body = $listing; $form_body .= elgg_view('input/hidden', array('internalname' => 'resourceid', 'value' => $wid)); /*translation:Add*/ $form_body .= elgg_view('input/submit', array('internalname' => 'add_button', 'value' => elgg_echo('koolielu:Add'))); $form = elgg_view('input/form', array('action' => $CONFIG->wwwroot.'action/waramu/add_to_collection', 'body' => $form_body)); $body = elgg_view_layout('three_columns', '', $form, ''); page_draw(NULL, $body); ?>