$view->tooltype('link'); $view->headline('Link list'); if ($list_items) { $list->headings(array('Title', 'URL', 'Actions')); $list->content($list_items); $links_output = $list->format_headings(); $links_output .= $list->format_content(); } if (!$links_output) { $links_output = '<b>You have no links to other sites.</b>'; } $view->group_css('link'); $view->group_h2('Your links'); $view->group_contents($links_output); $content_output = $view->format_group() . '<hr />'; $form->multipart(true); $form->send_to($_SERVER['SCRIPT_NAME']); $form->input_title('input[title]'); $form->size('20'); $form->value('Site name'); $form_output = $form->paint(); $form->input_url('input[url]'); $form->value('http://'); $form_output .= $form->paint(); $form->input_file('icon_file'); $form->label('Icon'); $form_output .= $form->paint(); $form->contents($form_output); $form_output = $form->build_form(); $view->group_h2('Add new'); $view->group_contents($form_output);
$db->where('id', $first_page_id); $success = $db->update('book_page', $data); } if ($new_marker_id && $_POST['return-or-not'] == '1') { header('location:marker.view.php?marker_id=' . $new_marker_id); die; } /***** * Display */ if (!is_writable('../' . DIR_COMICS_IMG)) { $alert_output .= $message->alert_dialog('I can’t write to the ' . DIR_COMICS_IMG . ' directory. Looks like a permissions problem.'); } // Reset $marker = new GrlxMarker(); $form->multipart(); $marker_type_list = $db->get('marker_type', null, 'id,title'); $marker_type_list = rekey_array($marker_type_list, 'id'); if ($marker_type_list) { $sl->setName('add-marker-type'); $sl->setList($marker_type_list); // $sl-> setCurrent(); $sl->setValueID('id'); $sl->setValueTitle('title'); $sl->setStyle('width:12rem'); $select_options = $sl->buildSelect(); /* $select_options .= '<select name="add-marker-type" style="width:12rem">'; foreach ( $marker_type_list as $key => $val ) { $select_options .= '<option value="'.$key.'">'.$val['title'].'</option>'; }