$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');
    $heading_list[] = array('value' => 'Theme/tone', 'class' => 'nudge');
    $list->row_class('theme');
    $list->headings($heading_list);
    $list_output = $list->format_headings();
}
for ($i = 1; $i < 13; $i++) {
    $i < 10 ? $i = '0' . $i : null;
    $month_list[$i] = array('title' => date("F", mktime(0, 0, 0, $i, 1, 2015)), 'id' => $i);
}
for ($i = date('Y') - 10; $i < date('Y') + 2; $i++) {
    $year_list[$i] = array('title' => $i, 'id' => $i);
}
// Build select elements for each date part.
$sl->setName('pub_year');
$sl->setCurrent(date('Y'));
$sl->setList($year_list);
$sl->setValueID('id');
$sl->setValueTitle('title');
$sl->setStyle('width:4rem');
$year_select_output = $sl->buildSelect();
$sl->setName('pub_month');
$sl->setCurrent(date('m'));
$sl->setList($month_list);
$sl->setValueID('id');
$sl->setValueTitle('title');
$sl->setStyle('width:8rem');
$month_select_output = $sl->buildSelect();
$sl->setName('pub_day');
$sl->setCurrent(date('d'));
$sl->setList($day_list);
$sl->setValueID('id');
$sl->setValueTitle('title');
$sl->setStyle('width:3rem');
$day_select_output = $sl->buildSelect();
if (!is_writable('../' . DIR_COMICS_IMG)) {
예제 #3
0
}
// Build the list from which artists choose
if ($marker_type_list) {
    $sl->setName('edit_marker_type');
    // <select name="spike">
    $sl->setList($marker_type_list);
    // List for <option>s
    $sl->setCurrent($marker->markerInfo['marker_type_id']);
    // selected="selected"
    $sl->setValueID('id');
    // <select id="jet">
    $sl->setValueTitle('title');
    // <label for="jet">Faye</label>
    $sl->setStyle('width:12rem');
    // <select style="Ed">
    $select_options = $sl->buildSelect() . '<br/>' . "\n";
    // Assemble the select element.
}
// ! Build the edit form
$edit_form_output .= '<form accept-charset="UTF-8" action="marker.edit.php" method="post">' . "\n";
$edit_form_output .= '	<p><label for="new_title">Title</label>' . "\n";
$edit_form_output .= '	<input type="text" id="new_title" name="new_title" size="12" style="width:12rem" value="' . $marker->markerInfo['title'] . '"/></p>' . "\n";
$edit_form_output .= '	<label for="edit_marker_type">Type</label>' . "\n";
$edit_form_output .= $select_options . "\n";
$edit_form_output .= '	<button class="btn primary save" name="submit" type="submit" value="save"><i></i>Save</button>' . "\n";
$edit_form_output .= '	<input type="hidden" name="marker_id" value="' . $marker_id . '"/>' . "\n";
$edit_form_output .= '</form>' . "\n";
// ! Build the overall view
$view->page_title('Marker: ' . $marker->markerInfo['title']);
$view->tooltype('chap');
$view->headline('Marker <span>' . $marker->markerInfo['title'] . '</span>');
예제 #4
0
$cols = array('sm.id', 'sm.title', 'description', 'label', 'value', 'sm.sort_order');
$result = $db->orderBy('sm.sort_order', 'ASC')->orderBy('label', 'ASC')->where('sort_order', 1, '>=')->get('milieu sm', NULL, $cols);
if ($result) {
    foreach ($result as $key => $val) {
        if ($val['label'] == 'timezone') {
            $current_timezone = $val['value'];
        }
    }
}
if ($timezone_master_list) {
    $sl->setName('input[timezone]');
    $sl->setList($timezone_master_list);
    $sl->setCurrent($current_timezone);
    $sl->setValueID('id');
    $sl->setValueTitle('title');
    $select_options = $sl->buildSelect();
}
if ($db->count > 0) {
    foreach ($result as $item) {
        if ($item['description']) {
            $tooltip = '<span data-tooltip aria-haspopup="true" class="info has-tip" title="' . $item['description'] . '"><i></i></span>';
        } else {
            $tooltip = null;
        }
        if ($item['label'] == 'date_format' && $date_list) {
            $sl->setName('input[' . $item['label'] . ']');
            $sl->setList($date_list);
            $sl->setCurrent($item['value']);
            $sl->setValueID('id');
            $sl->setValueTitle('title');
            $date_options = $sl->buildSelect();
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>';
    	}
    	$select_options .= '</select>';
    */
}
$new_title_field .= '<label for="new_name">New marker title</label>' . "\n";
$new_title_field .= '<input autofocus style="width:20rem" size="20" type="text" id="new_name" name="new_name" maxlength="64" placeholder="Title" value="">' . "\n";
$new_upload_field = '<input name="file[]" id="file" type="file" multiple /><br/>';
$new_upload_field .= 'Max size per image: ' . number_format($fileops->up_get_max_size()) . ' bytes. But recommend nothing larger than 100,000.<br/>';
//$new_upload_field .= 'Uploading more than '.$fileops-> up_get_max_file_uploads().' images? Try the <a href="book.import.php">bulk importer</a>.';
$result = $db->get('book_page', 1, 'MAX(sort_order) AS endpage');
if ($result) {
<div>' . "\n" . $pattern_select_output;
//.'</div></div>';
$layout_options[] = array('id' => 'list', 'title' => 'List');
$layout_options[] = array('id' => 'grid', 'title' => 'Grid');
$sl->setName('layout_id');
$sl->setCurrent($page_layout);
$sl->setList($layout_options);
$sl->setStyle('width:6rem');
$sl->setValueID('id');
$sl->setValueTitle('title');
$layout_select_output = '
<div class="' . $form->row_class . '">
	<div>
		<label>Overall page layout</label>
	</div>
	<div>' . $sl->buildSelect() . '</div></div>';
if ($static->info['title']) {
    $page_title = $static->info['title'];
} else {
    $page_title = 'Untitled';
    $static->info['title'] = 'Untitled';
}
$link->url('site.nav.php');
$link->tap($static->info['url']);
$path_link = $link->paint();
$path_link_output = <<<EOL
<div class="row form widelabel">
\t<div>
\t\t<label>URL</label>
\t</div>
\t<div class="plaintext">{$path_link}</div></div>