$group_list[] = array($row_select, $row_page, $row_theme); } } $sl->setCurrent(0); $tone_select = $sl->buildSelect(); $list->content($group_list); $list_output .= $list->format_content() . '<br/>'; } $form->send_to($_SERVER['SCRIPT_NAME']); $assign_output = $form->open_form(); $assign_output .= $list_output; $assign_output .= '<div class="row form widelabel">'; $assign_output .= '<div><label>' . $label_output . '</label></div>'; $assign_output .= '<div>' . $tone_select . '</div>'; $assign_output .= '</div>'; $assign_output .= $form->form_buttons(); $assign_output .= $form->close_form(); // List of installed themes if ($theme->outputList) { $all_themes_output = '<ul id="themes" class="small-block-grid-1 medium-block-grid-2 large-block-grid-3">'; foreach ($theme->outputList as $id => $info) { if ($info['preview']) { $preview = '<img src="' . $info['preview'] . '" />'; } if ($info['action']) { $box_css = ' off'; $action = '<a class="' . $info['action'] . '" href="?' . $info['action'] . '=' . $info['directory'] . '">' . ucfirst($info['action']) . ' theme</a>'; } else { $box_css = ''; $action = null; $new = 0;
} /* ! Display * * * * * * * */ $view->page_title('Archives'); $view->tooltype('arcv'); $view->headline('Comic archive editor'); $form->input_hidden('book_id'); $form->value($book_id); $book_info = $form->paint(); $view->group_css('arcv'); $view->group_h2('Behavior'); $view->group_instruction('Select how you want readers to navigate through your archives.'); $view->group_contents($behavior_output); $content_output .= $view->format_group() . '<hr/>'; $view->group_h2('Layout'); $view->group_instruction('Select how you want to arrange information.'); $view->group_contents($layout_output); $content_output .= $view->format_group() . '<hr/>'; $view->group_h2('Metadata'); $view->group_instruction('Select the types of information to display.'); $view->group_contents($meta_output); $content_output .= $view->format_group() . '<hr/>'; $content_output .= $form->form_buttons(); $output = $view->open_view(); $output .= $view->view_header(); $output .= $alert_output; $output .= $form->open_form(); $output .= $book_info; $output .= $content_output; $output .= $form->close_form(); $output .= $view->close_view(); print $output;
$view->group_h3('Palette'); $view->group_css('tone colors'); $palette_output = '<ul class="option-list">'; foreach ($palette_list as $label => $val) { unset($this_option); $this_label = ucfirst($val['title']); $this_option = '<input type="text" id="color-' . $label . '" name="input[' . $label . ']" value="' . $val['value'] . '" />'; $palette_output .= '<li><h5><span>' . $this_option . '</span>' . $this_label . '</h5></li>'; $js_call .= "\$('#" . $label . "').css('background-color', '" . $val['value'] . "')\n"; } $palette_output .= '</ul></div>'; $l = new GrlxLayout(); $l->filler = ' '; $layout_output = '<div class="palette">' . $l->decode($theme_info['palette']); $view->group_contents($palette_output . $layout_output); $palette_output = $view->format_group() . $form->form_buttons() . '<hr class="sub"/>'; } if ($options_list) { $view->group_h3('Styles'); $view->group_css('tone'); $styles_output = '<ul class="option-list">'; $x = 1; foreach ($options_list as $type => $set) { foreach ($set as $label => $val) { unset($this_option); $this_label = ucfirst($val['title']); if ($val['type'] == 'border-style') { $this_option = build_select_val_as_key("input[{$label}]", array('none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge'), $val['value']); } if ($val['type'] == 'border-width') { $this_option = '<input type="text" name="input[' . $label . ']" value="' . $val['value'] . '" />';
} else { $form_output .= <<<EOL <div class="row form config"><div><label for="item-6">Timezone</label></div><div>{$select_options}</div></div> EOL; } } if ($ga_info) { $tooltip = '<span data-tooltip aria-haspopup="true" class="info has-tip" title="' . $ga_info['description'] . '"><i></i></span>'; $form->input_text($ga_info['label'] . '[' . $ga_info['id'] . ']' . '[user_info]'); $form->label($ga_info['title'] . '<br/>' . $ga_info['info_title'] . $tooltip); $form->required(false); $form->value($ga_info['user_info']); $form->maxlength(32); $form_output .= $form->paint(); } $form_output .= $form->form_buttons(); } else { $message = new GrlxAlert(); $result_1 = $db->get('milieu', null, 'id'); if ($db->count == 0) { $link->url('mailto:grawlixcomix@gmail.com'); $link->tap('Contact support'); $alert_output .= $message->alert_dialog('Site milieu table is empty. That’s bad. ' . $link->paint() . '.'); } $result_2 = $db->get('milieu_group', null, 'id'); if ($db->count == 0) { $link->url('mailto:grawlixcomix@gmail.com'); $link->tap('Contact support'); $alert_output .= $message->alert_dialog('Site milieu <em>group</em> table is empty. That’s really bad. ' . $link->paint() . '.'); } }
$db->where('serial', $_SESSION['admin']); $user_list = $db->get('user', null, 'username,email,id'); if ($user_list) { foreach ($user_list as $key => $val) { $form->input_text("username[{$val['id']}]"); $form->label('Username'); $form->required(true); $form->value($val['username']); $form->maxlength(16); $form->size(16); $details_output .= $form->paint(); $form->input_email("email[{$val['id']}]"); $form->size(16); $form->value($val['email']); $details_output .= $form->paint(); $details_output .= $form->form_buttons(); $password_output = $form->new_password("password[{$val['id']}]"); $password_output .= $form->form_buttons(); } } $view->page_title('User info'); $view->tooltype('user'); $view->headline('User info'); $form->send_to($_SERVER['SCRIPT_NAME']); $view->group_css('user'); $view->group_h2('Details'); $view->group_contents($details_output); $content_output = $view->format_group() . '<hr />'; $view->group_h2('Password'); $view->group_css('user'); $view->group_contents($password_output);
if ($static->info['title'] == 'Home') { $form->readonly(true); } $form->value($static->info['title']); $settings_form = $form->paint(); $form->input_description('new_description'); $form->value($static->info['description']); $settings_form .= $form->paint(); $settings_form .= $path_link_output; $layout_form = $layout_select_output; $layout_form .= $pattern_select_output; $view->group_css('sttc'); $view->group_h2('Settings'); $view->group_instruction('General information for this static page.'); $view->group_contents($settings_form); $settings_output = $view->format_group() . $form->form_buttons() . '<hr />'; if ($mode != 'plaintext') { $view->group_css('sttc'); $view->group_h2('Layout'); $view->group_instruction('How items on this static page are arranged.'); $view->group_contents($layout_form); $settings_output .= $view->format_group() . $form->form_buttons() . '<hr />'; } if ($mode == 'plaintext') { $form_output .= '<p>Freeform content:</p>'; $form_output .= '<textarea name="raw_content" rows="10" style="height:12rem">' . $static->info['options'] . '</textarea>'; // $form_output .= '<p><a href="#to-do" target="_blank">Get sample XML</a></p>'; } $form_output .= $form->form_buttons(); $view->group_h2('Items'); $view->group_contents($form_output);