url.'mod/waramu/waramu.js">'; $c .= <<< EOT '; $c .= ''; /*translation:Continue*/ $savebutton = elgg_view('input/namedsubmit', array('internalname' => 'savebutton', 'value' => elgg_echo('koolielu:waramu_button_continue'))); $linkvalue = "http://"; if ($_SESSION['resourceurl']) $linkvalue = $_SESSION['resourceurl']; $llink = elgg_view('input/url', array('internalname' => 'resourceurl', 'value' => $linkvalue)); $new_link_templ = '"; $ffile = elgg_view('input/file', array('internalname' => 'wfile', 'value' => '')); /*translation:Upload*/ $uploadbutton = elgg_view('input/submit', array('internalname' => 'uploadbutton', 'value' => elgg_echo('koolielu:button_upload'))); $upfiles = ""; $new_files_templ = '
'; /*translation:Uploaded files*/ $new_files_templ .= '

'.elgg_echo("koolielu:uploaded_files").'

'; $new_files_templ .= $upfiles; /*translation:upload files...*/ $new_files_templ .= elgg_echo('koolielu:upload_files'); $files_help = '?'; $files_help .= '
'; $files_help .= '
'; $files_help .= '
'; /*translation:Help*/ $files_help .= '
'.elgg_echo('koolielu:Help').'
'; $files_help .= '
'; /*translation:File*/ $files_help .= '
'.elgg_echo('koolielu:File').'
'; /*translation:File helptext*/ $files_help .= elgg_echo('koolielu:file_helptext'); $files_help .= '
'; $files_help .= '
'; $new_files_templ .= $files_help; $new_files_templ .= '
'; $new_files_templ .= $ffile; $new_files_templ .= '
'; $new_files_templ .= $uploadbutton.$savebutton; $new_files_templ .= '
'; global $CONFIG; $c .= elgg_view('input/form', array( 'action' => "{$CONFIG->wwwroot}action/waramu/new_with_link", 'body' => $new_link_templ )); $c .= elgg_view('input/form', array( 'action' => "{$CONFIG->wwwroot}action/waramu/new_with_files", 'body' => $new_files_templ, 'enctype' => 'multipart/form-data' )); $body = elgg_view_layout('two_column_left_sidebar', "", $c); page_draw($title, $body); ?>