$delete_link->id("id-{$item['id']}");
        $action_output = $delete_link->icon_link();
        $edit_link->query("edit_id={$item['id']}");
        $action_output .= $edit_link->icon_link();
        $list_items[$item['id']] = array($icon . ' ' . $item['title'], $item['url'], $action_output);
    }
}
$alert_output .= $fileops->check_or_make_dir('..' . $image_path);
$view->page_title('Link list');
$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]');
예제 #2
0
             $row_css = ' unset';
             $username = '******';
             $edit_link->query("service_id={$val['service_id']}&match_id={$val['match_id']}");
             $action_output = $edit_link->icon_link();
         } else {
             $row_css = $val['active'];
             $username = strfunc_check_empty($val['value']);
             $edit_link->query("service_id={$val['service_id']}");
             $form->id("id-{$val['match_id']}");
             $vis_output = $form->checkbox_switch($val['active']);
             $action_output = $vis_output . $edit_link->icon_link();
         }
         $follow_list[$val['service_id'] . '||' . $row_css] = array($val['title'], $username, $action_output);
     }
     $list->content($follow_list);
     $follow_output .= $list->format_content();
     $view->group_contents($follow_output);
     $content_output = $view->format_group() . '<hr />';
     unset($heading_list);
 }
 // ! Share
 //
 if ($function_id == 2) {
     $form->title('Show/hide a share link for this service next to your comic.');
     $heading_list[] = array('value' => 'Service', 'class' => 'nudge');
     $heading_list[] = array('value' => 'Actions', 'class' => null);
     $list->row_class('share');
     $list->headings($heading_list);
     $share_output = $list->format_headings();
     foreach ($section_group['items'] as $key => $val) {
         $row_css = $val['active'];
예제 #3
0
            // We’re done with the marker data for this item in the list. Whew.
            // Simple edit-this-page link.
            $link->url('book.page-edit.php?page_id=' . $val['id']);
            $link->title('Edit page ' . number_format($val['sort_order']) . '.');
            $link->tap($title);
            // Assemble the list item.
            $list_items[$val['id']] = array('select' => $select, 'title' => $link->paint(), 'sort_order' => $order, 'marker' => $this_marker, 'action' => $action_output);
            // Track how many items appear on the page.
            // We need this to know whether or not the artist needs a “sort” option.
            $total_shown++;
        }
    }
    // Mix it all together.
    $list->content($list_items);
    $content_output = $list->format_headings();
    $content_output .= $list->format_content();
}
/*
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().'<br/>'."\n";

}
*/
$link->url('book.view.php');
    }
    // Static pages
    $static = new GrlxStaticPage();
    $page_list = $static->getPageList();
    if ($page_list) {
        foreach ($page_list as $id => $info) {
            $row_select = '<input type="checkbox" name="sel[static_page-' . $id . ']" />';
            $row_page = 'Static page <span class="title">' . $info['title'] . '</span>';
            $row_theme = $theme->toneSelectList[$info['tone_id']]['title'];
            $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']) {
예제 #5
0
$link->url('?update_wonderful&amp;current_group=panel-wonderful');
$link->tap('Get the latest data');
$link->title('Download ad information from your PW account to Grawix. Do this any time you finish making changes at Project Wonderful.');
$wonderful_refresh_output = '<br/><h3>Refresh ad data</h3>' . "\n";
$wonderful_refresh_output .= '<p>Have you changed your bids at Project Wonderful? ' . $link->paint() . '.</p>' . "\n";
$link->tap('Project Wonderful');
$link->url('https://www.projectwonderful.com');
$link->title('Visit this advertising service’s website.');
$wonderful_info_output .= '<br/><form accept-charset="UTF-8" action="ad.list.php" method="post">' . "\n";
$wonderful_info_output .= '<p><label for="wonderful_id" class="instructions">Enter your ' . $link->paint() . ' account ID, or leave blank if you’re not a member.</label>' . "\n";
$wonderful_info_output .= '<input type="text" name="wonderful_id" id="wonderful_id" size="4" style="width:5rem;" value="' . $wonderful_third_data['user_info'] . '"/>' . "\n";
$wonderful_info_output .= '<button class="btn primary save" name="submit" type="submit" value="save"><i></i>Save</button></p><br/>&nbsp;' . "\n";
$wonderful_info_output .= '</form>' . "\n";
$list->content($wonderful_ad_list_content);
$wonderful_ad_list_output .= $list->format_headings();
$wonderful_ad_list_output .= $list->format_content();
///////// Build the Google Adsense panel.
if ($ad_list) {
    $link->url('ad.adsense-edit.php');
    $edit_link->url('ad.adsense-edit.php');
    $edit_link->title('Edit this ad.');
    $edit_link->action('edit');
    $delete_link->url('ad.list.php');
    $delete_link->title('Permanently delete this ad.');
    $delete_link->action('delete');
    foreach ($ad_list as $key => $val) {
        if ($val['source_id'] == 3) {
            $link->query('ad_id=' . $key);
            $link->tap('ID ' . $key);
            $delete_link->query('delete_ad_id=' . $key);
            $edit_link->query('ad_id=' . $key);
예제 #6
0
}
if ($permissions_error_found === true) {
    $alert_output .= $message->alert_dialog('I may not be able to work with these files. Try temporarily setting them to 777 in FTP.');
}
/*****
 * Display
 */
if ($list && $list_items && count($list_items) > 0) {
    $heading_list = array('&nbsp;', 'Title', 'Images', 'Warnings');
    $list->headings($heading_list);
    $list->draggable(false);
    $list->row_class('chapter');
    $list->headings($heading_list);
    $list->content($list_items);
    $folder_output = $list->format_headings();
    $folder_output .= $list->format_content();
}
// Group
if ($folder_output) {
    $link->url('http://www.getgrawlix.com/docs/' . DOCS_VERSION . '/ftp');
    $link->tap('via FTP');
    $link1->url('http://www.getgrawlix.com/docs/' . DOCS_VERSION . '/importing');
    $link1->tap('Learn more.');
    $view->group_h2('Folders');
    $view->group_instruction('This tool lets you copy images from the “/import” folder (' . $link->external_link() . ') into ' . $marker_type_list[1]['title'] . 's. ' . $link1->external_link());
    $view->group_contents($folder_output . $submit_output);
    $content_output .= $view->format_group() . "\n";
}
$view->page_title('Create pages from FTP');
$view->tooltype('Chapter');
$view->headline('Create pages from FTP');
예제 #7
0
$action_output = $link->text_link('static');
$link->url('site.nav-edit.ajax.php');
$link->reveal(true);
$link->query('edit_id=new');
$link->title = 'External links go to other websites — like those you enjoy reading soooo much you just have to share it with your readers.';
$link->tap('New external link');
$action_output .= $link->button_secondary('new');
$view->action($action_output);
$heading_list[] = array('value' => 'Title', 'class' => null);
$heading_list[] = array('value' => 'URL', 'class' => null);
$heading_list[] = array('value' => 'In menu', 'class' => null);
$heading_list[] = array('value' => 'Actions', 'class' => null);
$list->headings($heading_list);
$list->content($list_items);
$display_output = $list->format_headings();
$display_output .= $list->format_content();
/*****
 * Display
 */
$output = $view->open_view();
$output .= $view->view_header();
$output .= $alert_output;
$output .= $modal->modal_container();
$output .= $current_alert_output;
$output .= $dupe_alert_output;
$output .= '<p>Drag to reorder the items in your main site menu.</p>';
$output .= '<form>' . $display_output . '</form>';
print $output;
$js_call = <<<EOL
\t\$( '[id^="delete-"]' ).click( // delete an item
\t\tfunction() { // update the db