예제 #1
0
 private function templateTermine()
 {
     $termine = GDO::table('Konzert_Termin');
     $where = '';
     $by = Common::getGetString('by', self::DEFAULT_BY);
     $dir = Common::getGetString('dir', self::DEFAULT_DIR);
     $orderby = $termine->getMultiOrderby($by, $dir);
     $nItems = $termine->countRows($where);
     $nPages = GWF_PageMenu::getPagecount(self::IPP, $nItems);
     $page = Common::clamp(Common::getGetInt('page'), 1, $nPages);
     $from = GWF_PageMenu::getFrom($page, self::IPP);
     $tVars = array('add_button' => GWF_Button::add($this->module->lang('btn_add'), $this->module->getMethodURL('AddTermin')), 'termine' => $termine->selectObjects('*', $where, $orderby, self::IPP, $from), 'pagemenu' => GWF_PageMenu::display($page, $nPages, GWF_WEB_ROOT . 'index.php?mo=Konzert&me=AdminTermine&by=' . urlencode($by) . '&dir=' . urlencode($dir) . '&page=%PAGE%'), 'sort_url' => GWF_WEB_ROOT . 'index.php?mo=Konzert&me=AdminTermine&by=%BY%&dir=%DIR%&page=1');
     return $this->module->template('a_termine.tpl', $tVars);
 }
예제 #2
0
파일: forum.old.php 프로젝트: sinfocol/gwf3
	</tr>
<?php 
        echo GWF_Table::rowEnd();
    }
    ?>
</table>
<?php 
}
?>
<hr/>


<!-- Board Actions -->
<?php 
if ($tVars['new_thread_allowed']) {
    echo GWF_Button::add($tLang->lang('btn_add_thread'), $b->getAddThreadHREF());
}
?>
<hr/>


<!-- Latest Threads -->
<?php 
if ($b->isRoot() && count($tVars['latest_threads']) > 0) {
    ?>
<table class="ri">
	<tr>
		<th colspan="9"><a href="<?php 
    echo GWF_WEB_ROOT;
    ?>
forum/history"><?php 
예제 #3
0
파일: overview.php 프로젝트: sinfocol/gwf3
<h1><?php 
echo $tVars['tag_title'] . GWF_Button::search($tVars['href_search'], $tLang->lang('btn_search'));
?>
</h1>
<?php 
if ($tVars['new_link_count'] > 0) {
    echo '<div class="gwf_buttons_outer">' . PHP_EOL;
    echo '<div class="gwf_buttons">' . PHP_EOL;
    if (GWF_Session::isLoggedIn()) {
        echo GWF_Button::checkmark(true, $tLang->lang('btn_mark_read'), $tVars['href_mark_read']);
    }
    echo GWF_Button::bell($tVars['href_new_links'], $tLang->lang('btn_new_links'));
    echo $tLang->lang('info_newlinks', array($tVars['new_link_count']));
    echo '</div></div>' . PHP_EOL;
}
echo $tVars['cloud'];
echo $tVars['page_menu'];
echo $tVars['links'];
echo $tVars['search'];
echo $tVars['page_menu'];
if ($tVars['may_add_link']) {
    echo GWF_Button::wrapStart();
    echo GWF_Button::add($tLang->lang('btn_add'), $tVars['href_add']);
    echo GWF_Button::wrapEnd();
} else {
    echo GWF_Box::box($tVars['text_add']);
}
예제 #4
0
파일: show_old.php 프로젝트: sinfocol/gwf3
        ?>
</div>
<?php 
    }
    ?>
		<div class="gwf_newsbox_message"><?php 
    echo $news->displayMessage();
    ?>
</div>
	</div>
</div>
<?php 
}
?>
	
</div>

<?php 
echo $tVars['page_menu'];
?>

<?php 
if ($tVars['may_add']) {
    echo '<div class="gwf_buttons_outer"><div class="gwf_buttons">' . GWF_Button::add($tLang->lang('btn_add'), $tVars['href_add']) . '</div></div>';
}
?>

<?php 
if ($tVars['can_sign']) {
    echo '<div class="gwf_buttons_outer"><div class="gwf_buttons">' . GWF_Button::generic($tLang->lang('btn_sign'), $tVars['href_sign_news']) . '</div></div>';
}
예제 #5
0
파일: WC_HTML.php 프로젝트: sinfocol/gwf3
 public static function displaySidebar2()
 {
     $wc = Module_WeChall::instance();
     if (self::wantRightPanel()) {
         return $wc->getMethod('Sidebar2')->display($wc);
     }
     return '<aside id="wc_sidebar"><div class="wc_side_box"><div class="wc_side_title"><div class="gwf_buttons_outer"><div class="gwf_buttons">' . GWF_Button::add($wc->lang('btn_sidebar_off'), $wc->getMethodURL('Sidebar2', '&rightpanel=1')) . '</div></div></div></div></aside>';
 }
예제 #6
0
파일: admin.php 프로젝트: sinfocol/gwf3
echo $tVars['module']->templatePHP('_admin_nav.php', $tVars);
$headers = array(array($tLang->lang('th_date'), 'news_date', 'ASC'), array($tLang->lang('th_userid'), 'user_name', 'ASC'), array($tLang->lang('th_catid'), 'news_catid', 'ASC'), array($tLang->lang('th_langid')), array($tLang->lang('th_title')), array($tLang->lang('th_hidden'), 'news_options&' . GWF_News::HIDDEN, 'DESC'));
echo $tVars['page_menu'];
echo GWF_Table::start();
echo GWF_Table::displayHeaders1($headers, $tVars['sort_url']);
foreach ($tVars['news'] as $item) {
    $item instanceof GWF_News;
    $newsid = $item->getID();
    $trans = $item->getTranslations();
    $date = $item->displayDate();
    $author = $item->displayAuthor();
    $cat = $item->displayCategory();
    $lang_visible = $tLang->lang('th_visible');
    $lang_hidden = $tLang->lang('th_hidden');
    foreach ($trans as $langid => $t) {
        var_dump($langid, $t);
        if ($item->isHidden()) {
            $icon = GWF_Button::add($lang_hidden, $item->hrefEnable());
        } else {
            $icon = GWF_Button::sub($lang_visible, $item->hrefDisable());
        }
        echo GWF_Table::rowStart();
        $title = $t['newst_title'];
        $data[] = array($date, $author, $cat, GWF_Language::getByID($langid)->display('lang_nativename'), sprintf('<a href="%snews/edit/%d-%s/langid-%d">%s</a>', GWF_WEB_ROOT, $newsid, Common::urlencodeSEO($title), $langid, $title), $item->isHidden() ? $icon_hidden : $icon_visible);
        echo GWF_Table::rowEnd();
    }
}
echo GWF_Table::end();
echo $tVars['page_menu'];
echo GWF_Button::wrap(GWF_Button::add($tLang->lang('btn_add'), GWF_WEB_ROOT . 'news/add'));
예제 #7
0
<?php

echo GWF_Button::wrapStart();
echo GWF_Button::generic($tLang->lang('menu_sites'), $tVars['href_site']);
echo GWF_Button::generic($tLang->lang('btn_edit_site_descr'), $tVars['href_descr']);
echo GWF_Button::wrapEnd();
echo GWF_Table::start();
$headers = array(array('EDIT'), array('ID'), array('NAME'), array('HOST'), array('IP'), array('STATUS'));
echo GWF_Table::displayHeaders1($headers);
foreach ($tVars['boxes'] as $box) {
    $box instanceof WC_Warbox;
    echo GWF_Table::rowStart();
    echo GWF_Table::column(GWF_Button::edit($box->hrefEdit()));
    echo GWF_Table::column($box->getID());
    echo GWF_Table::column($box->display('wb_name'));
    echo GWF_Table::column($box->displayLink());
    echo GWF_Table::column($box->getVar('wb_ip'));
    echo GWF_Table::column(WC_HTML::lang('wb_' . $box->getVar('wb_status')));
    echo GWF_Table::rowEnd();
}
echo GWF_Table::end();
echo GWF_Button::wrapStart();
echo GWF_Button::add('Add a new warbox', $tVars['href_add']);
echo GWF_Button::wrapEnd();
예제 #8
0
파일: admin.php 프로젝트: sinfocol/gwf3
$lang_hidden = $tLang->lang('th_hidden');
echo GWF_Table::start();
foreach ($tVars['news'] as $item) {
    $item instanceof GWF_News;
    $newsid = $item->getID();
    $trans = $item->getTranslations();
    $author = $item->displayAuthor();
    $cat = $item->displayCategory();
    $date = $item->displayDate();
    foreach ($trans as $langid => $t) {
        if ($item->isHidden()) {
            $icon = GWF_Button::sub($lang_hidden, $item->hrefEnable());
        } else {
            $icon = GWF_Button::add($lang_visible, $item->hrefDisable());
        }
        echo GWF_Table::rowStart();
        echo GWF_Table::column($date, 'gwf_date');
        echo GWF_Table::column($author);
        echo GWF_Table::column($cat);
        echo GWF_Table::column(GWF_Language::getByID($langid)->display('lang_nativename'));
        $title = $t['newst_title'];
        $href = GWF_WEB_ROOT . sprintf('news/edit/%d-%s/langid-%d', $newsid, Common::urlencodeSEO($title), $langid);
        echo GWF_Table::column(sprintf('<a href="%s">%s</a>', $href, htmlspecialchars($title)));
        echo GWF_Table::column($icon);
        echo GWF_Table::rowEnd();
    }
}
echo GWF_Table::end();
echo $tVars['page_menu'];
$buttons = GWF_Button::add($tLang->lang('btn_add'), GWF_WEB_ROOT . 'news/add');
echo GWF_Button::wrap($buttons);
예제 #9
0
파일: _order.php 프로젝트: sinfocol/gwf3
<?php

$client = $tVars['client'];
$client instanceof GWF_Client;
$icon_new = GWF_Button::add($tLang->lang('new'));
$icon_old = $tLang->lang('old');
# -- Module Table
$headers = array(array($tLang->Lang('th_module_name')), array($tLang->Lang('th_module_version')), array($tLang->Lang('th_module_price')), array($tLang->Lang('th_new_or_old')));
echo GWF_Table::start();
echo GWF_Table::displayHeaders2($headers);
foreach ($tVars['modules'] as $module) {
    $module instanceof GWF_Module;
    $owns = $client->ownsModule($module->getVar('module_name'));
    $icon = $owns ? $icon_old : $icon_new;
    echo GWF_Table::rowStart();
    echo sprintf('<td>%s</td>', $module->display('module_name'));
    echo sprintf('<td>%s</td>', $module->getVersion());
    echo sprintf('<td>%s</td>', Module_Payment::displayPrice($module->getPrice()));
    echo sprintf('<td>%s</td>', $icon);
    echo GWF_Table::rowEnd();
}
echo GWF_Table::end();
# -- Design Table
$headers = array(array($tLang->Lang('th_design_name')), array($tLang->Lang('th_design_price')), array($tLang->Lang('th_new_or_old')));
echo GWF_Table::start();
echo GWF_Table::displayHeaders2($headers);
foreach ($tVars['designs'] as $design => $price) {
    $owns = $client->ownsDesign($design);
    $icon = $owns ? $icon_old : $icon_new;
    echo GWF_Table::rowStart();
    echo sprintf('<td>%s</td>', $design);
예제 #10
0
파일: sites.php 프로젝트: sinfocol/gwf3
echo GWF_Table::displayHeaders1($headers, $tVars['sortURL']);
foreach ($tVars['sites'] as $site) {
    $site instanceof WC_Site;
    echo GWF_Table::rowStart();
    printf('<td>%s</td>', $site->getEditButton($tVars['module'], $user));
    printf('<td class="gwf_num">%s</td>', $site->getVar('site_id'));
    printf('<td>%s</td>', $site->displayLanguage());
    printf('<td class="gwf_nobiga nowrap">%s', $site->displayCountry());
    printf('%s</td>', $site->displayLogo(20, $tLang->lang('logo_hover', array($site->displayName()))));
    printf('<td class="gwf_nobiga nowrap">%s</td>', $site->displayLink());
    if ($site->isScored()) {
        //		printf('<td class="gwf_num">%s</td>', $site->displayScore());
        printf('<td class="gwf_num">%s</td>', $site->getVar('site_usercount'));
        printf('<td class="gwf_num">%s</td>', $site->getVar('site_challcount'));
        printf('<td class="gwf_num">%s</td>', $site->displayAvg());
    } else {
        echo str_repeat('<td></td>', 3);
    }
    printf('<td class="gwf_num">%s</td>', $site->displayDif());
    printf('<td class="gwf_num">%s</td>', $site->displayFun());
    $desc = Common::stripMessage($tVars['descrs'][$site->getID()], 120);
    printf('<td><a href="%s">%s</a></td>', $site->hrefDetail(), $desc);
    echo GWF_Table::rowEnd();
}
echo GWF_Table::end();
echo GWF_Box::box($tLang->lang('sites_join_b', array(GWF_WEB_ROOT . 'join_us')), $tLang->lang('sites_join_t'));
if (GWF_User::isAdminS()) {
    echo GWF_Button::wrapStart();
    echo GWF_Button::add($tLang->lang('btn_add_site'), GWF_WEB_ROOT . 'site/add');
    echo GWF_Button::wrapEnd();
}
예제 #11
0
 /**
  * Get toggle moderation button / toggle visibility button.
  * @param $module
  * @return unknown_type
  */
 public function getToggleModButton(Module_Guestbook $module)
 {
     if ($this->isInModeration()) {
         return GWF_Button::add($module->lang('btn_moderate_no'), $this->getModHref(false));
     } else {
         return GWF_Button::sub($module->lang('btn_moderate_yes'), $this->getModHref(true));
     }
 }
예제 #12
0
파일: Sidebar2.php 프로젝트: sinfocol/gwf3
 public function displayShowButton()
 {
     return GWF_Button::add();
 }