//	$alert_output .= $message->info_dialog($theme->toInstallOutput);
}
// Assignment section
$button->url($_SERVER['SCRIPT_NAME']);
$button->query('toggle-multi=true');
$sl->setName('new_tone_id');
$sl->setList($theme->toneSelectList);
$sl->setValueID('id');
$sl->setValueTitle('title');
if ($theme->multiTone < 1) {
    $button->title('With this you can set a different theme or tone for nearly every page of your site.');
    $button->tap('Turn on multi-theme');
    $action_output = $button->button_secondary('power');
    $instruction = 'By default, your site uses one theme &amp; tone. Choose it here.';
    $label_output = 'Site theme &amp; tone';
    $form->input_hidden('sel');
    $form->value('milieu-' . $theme->milieuID['tone']);
    $list_output = $form->paint();
    $sl->setCurrent($theme->defaultToneID);
    $tone_select = $sl->buildSelect();
} else {
    $button->title('Serve one theme/tone to your entire site.');
    $button->tap('Turn off multi-theme');
    $action_output = $button->button_tertiary('power');
    $instruction = 'Multi-theme allows you to choose a unique setting for every group of pages listed here.';
    $label_output = 'Apply to selection';
    // Get book sections
    $list = new GrlxList();
    $list->draggable(false);
    $heading_list[] = array('value' => 'Select', 'class' => null);
    $heading_list[] = array('value' => 'Group', 'class' => 'nudge');
예제 #2
0
     $field_size = 6;
 } else {
     $field_size = 7;
 }
 // Build the sort_order field.
 $form->input_number('sort_order[' . $val['id'] . ']');
 $form->value(intval($val['sort_order']));
 $form->name('sort_order[' . $val['id'] . ']');
 $form->size($field_size);
 $order = $form->paint();
 // Build the selection checkbox.
 $select = '<input type="checkbox" name="sel[' . $val['id'] . ']" value="' . $val['id'] . '"/>' . "\n";
 // Keep track of the original order values so we can
 // compare against the artist’s entries. If they’re
 // different we know they want to rearrange comic pages.
 $form->input_hidden('orig_sort_order[' . $val['id'] . ']');
 $form->value(intval($val['sort_order']));
 $form->name('orig_sort_order[' . $val['id'] . ']');
 $orig_output .= $form->paint();
 // Got a marker? Oh boy.
 if ($val['marker_id'] && $val['marker_id'] > 0) {
     // Add the marker-removal link.
     $marker_link->query("delete_marker_id={$val['marker_id']}");
     $marker->setID($val['marker_id']);
     $marker->getMarkerInfo();
     // Emphasize top-tier markers with a <strong> element.
     if ($marker->markerInfo['marker_type_id'] == 1) {
         $marker_type = '<strong>' . $marker_type_list[1]['title'] . '</strong>';
     } else {
         $marker_type = $marker_type_list[$marker->markerInfo['marker_type_id']]['title'];
     }
예제 #3
0
    $meta_output .= '</div>';
    $meta_output = $form->row_wrap($meta_output);
}
if ($xml->saveResult == 'success') {
    $message = new GrlxAlert();
    $alert_output = $message->success_dialog('Changes saved.');
}
if ($xml->saveResult == 'error') {
    $message = new GrlxAlert();
    $alert_output = $message->alert_dialog('Changes failed to save.');
}
/* ! 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/>';
            $slot_output .= '<span class="no-image">no image</span>';
        }
        $slot_output .= '</div>';
    }
    $view->group_contents($slot_output);
    $slot_output = $view->format_group() . $form->form_buttons();
}
if ($options_list) {
    $view->tooltype('tone');
    $view->headline($tone_title_output);
    $view->action($tone_action_output);
    $form->multipart(true);
    $form->send_to($_SERVER['SCRIPT_NAME']);
    $form_output = $view->view_header();
    $form_output .= $form->open_form();
    $form->input_hidden('theme_id');
    $form->value($theme_id);
    $form_output .= $form->paint();
    $form->input_hidden('tone_id');
    $form->value($tone_id);
    $form_output .= $form->paint();
    $form_output .= $palette_output;
    $form_output .= $styles_output;
    $form_output .= $slot_output;
    $form_output .= $form->close_form();
} else {
    $form_output = <<<EOL
\t<div class="panel">
\t\t<h3>No tone options</h3>
\t\t<p>This theme does not contain panel-editable options. You’ll have to edit the CSS directly.</p>
\t</div>
        $db->where('serial', $s);
        $db->update('user', $data);
        $success = true;
    } else {
        $view->alert_msg('Password reset failed.');
    }
}
/*****
 * Display logic
 */
if ($success) {
    $form_output = '<p>Your password has been reset.</p>';
    $view->action('<div><a class="btn primary login" href="panl.login.php"><i></i>Login</a></div>');
    $form_output .= $view->format_actions();
} else {
    $form_output = $form->open_form();
    $form->input_hidden('s');
    $form->value($s);
    $form_output .= $form->paint();
    $form_output .= $form->new_password('new_password');
    $view->action('<div><button class="btn primary save" name="submit" type="submit" value="Update"><i></i>Update</button></div>');
    $form_output .= $view->format_actions();
    $form_output .= $form->close_form();
}
/*****
 * Display
 */
$output = $view->open_view();
$output .= $form_output;
$output .= $view->close_view();
print $output;
예제 #6
0
        } else {
            $view->alert_msg('Login failed.');
        }
    }
    if ($username && $extra && !$result || $count == 0) {
        $view->alert_msg('Login failed.');
    }
}
/* ! Build * * * * * * * */
$form = new GrlxForm();
$form->error_check(false);
$form->no_div_wrap();
$form->hide_error();
$form->send_to($_SERVER['SCRIPT_NAME']);
$form_output = $form->open_form();
$form->input_hidden('ref');
$form->value($ref);
$form_output .= $form->paint();
$form->input_text('username');
$form->placeholder('username');
$form->autofocus(true);
$form_output .= $form->paint();
$form->input_password('extra');
$form->placeholder('password');
$form_output .= $form->paint();
$view->action('<div><a class="lnk" href="panl.password-forgot.php">Forgot password?</a></div>');
$view->action('<div><button class="btn primary login" name="submit" type="submit" value="Login"><i></i>Login</button></div>');
$form_output .= $view->format_actions();
$form_output .= $form->close_form();
/* ! Display * * * * * * * */
$output = $view->open_view();
\t</div>
\t<div class="plaintext">{$path_link}</div></div>
EOL;
$view->page_title('Edit static page: ' . $page_title);
$view->tooltype('sttc');
$view->headline('Static page <span>' . $page_title . '</span>');
$link->url('sttc.page-list.php');
$link->tap('Back to list');
$action_output = $link->text_link('back');
$link->url('..' . $static->info['url']);
$link->tap('View live page');
$action_output .= $link->button_secondary('view');
$view->action($action_output);
$form->multipart(true);
$form->send_to('sttc.xml-edit.php');
$form->input_hidden('page_id');
$form->value($page_id);
$hidden_fields = $form->paint();
$form->input_hidden('function');
$form->value($function);
$hidden_fields .= $form->paint();
$form->input_hidden('xml_format');
$form->value($xml_format);
$hidden_fields .= $form->paint();
$form->input_title('new_title');
$form->size('10');
if ($static->info['title'] == 'Home') {
    $form->readonly(true);
}
$form->value($static->info['title']);
$settings_form = $form->paint();