Example #1
0
<p><?php 
echo $tLang->lang('pi_trashcan');
?>
</p>
<?php 
echo $tVars['pagemenu'];
$headers = array(array($tLang->lang('th_pm_options&1'), 'options&1', 'DESC'), array($tLang->lang('th_pm_date'), 'pm_date', 'DESC'), array($tLang->lang('th_pm_from'), 'T_B.user_name', 'ASC'), array($tLang->lang('th_pm_to'), 'T_A.user_name', 'ASC'), array($tLang->lang('th_pm_title'), 'pm_title', 'ASC'), array());
$data = array();
$uid = GWF_Session::getUserID();
echo sprintf('<form id="gwf_pm_form" method="post" action="%s">', $tVars['form_action']);
//echo sprintf('<table>');
foreach ($tVars['pms'] as $pm) {
    $pm instanceof GWF_PM;
    //	$is_read = $pm->isOptionEnabled(GWF_PM::READ);
    //	$is_sender = $pm->getSender()->getID() === $uid;
    //	$is_deleted = $pm->getReceiver()->
    //	$class =  $is_sender ? ($is_read ? 'gwf_pm_read' : 'gwf_pm_unread') : ($is_read ? 'gwf_pm_new' : 'gwf_pm_old');
    $data[] = array(sprintf('<span class="%s" />', $pm->getHTMLClass()), sprintf('%s', GWF_Time::displayDate($pm->getVar('pm_date'))), sprintf('%s', $pm->getSender()->display('user_name')), sprintf('%s', $pm->getReceiver()->display('user_name')), sprintf('%s', GWF_HTML::anchor($pm->getDisplayHREF(), $pm->getVar('pm_title'))), sprintf('<input type="checkbox" name="pm[%s]" />', $pm->getID()));
}
$headers = GWF_Table::getHeaders2($headers, $tVars['sort_url']);
$btns = '<input type="submit" name="restore" value="' . $tLang->lang('btn_restore') . '" />';
$raw_body = '<tr><td colspan="4"></td><td class="ri">' . $btns . '</td><td>' . '<input type="checkbox" onclick="gwfPMToggleAll(this.checked);"/>' . '</td></tr>';
echo GWF_Table::display2($headers, $data, $tVars['sort_url'], '', $raw_body);
//echo sprintf('</table>');
echo sprintf('</form>');
echo $tVars['form_empty'];
Example #2
0
<?php 
echo $tVars['pagemenu_boards'];
?>
</div>

<div class="cl"></div>

<hr/>


<!-- Threads -->
<?php 
if (count($tVars['threads']) > 0) {
    $t_headers = array(array($tLang->lang('th_title'), 'thread_title'), array(''), array($tLang->lang('th_firstposter'), 'thread_firstposter'), array($tLang->lang('th_postcount'), 'thread_postcount'), array($tLang->lang('th_lastposter'), 'thread_lastposter'), array($tLang->lang('th_lastdate'), 'thread_lastdate'), array($tLang->lang('th_thanks'), 'thread_thanks'), array($tLang->lang('th_votes_up'), 'thread_votes_up'), array($tLang->lang('th_thread_viewcount'), 'thread_viewcount'));
    $t_headers = GWF_Table::getHeaders2($t_headers, $tVars['thread_sort_url'], 'tby', 'tdir');
    ?>

<?php 
    echo $tVars['pagemenu_threads'];
    ?>
<table class="ri">
	<?php 
    echo GWF_Table::displayHeaders($t_headers);
    foreach ($tVars['threads'] as $t) {
        $t instanceof GWF_ForumThread;
        $edit = $t->hasEditPermission() ? GWF_Button::edit($t->getEditHREF(), $tLang->lang('btn_edit')) : '';
        $unread = $t->hasRead($user) ? '' : GWF_Button::bell($tVars['href_unread']);
        echo GWF_Table::rowStart();
        $href_lp = $t->getLastPageHREF();
        ?>
Example #3
0
<?php

$headers = array(array($tLang->lang('th_module_name')), array($tLang->lang('th_version_installed')), array($tLang->lang('th_version_on_disk')), array($tLang->lang('th_version_on_server')));
$headers = GWF_Table::getHeaders2($headers);
echo GWF_Table::start();
echo GWF_Table::displayHeaders($headers);
foreach ($tVars['data'] as $data) {
    echo GWF_Table::rowStart();
    echo GWF_Table::column($data[0]);
    echo GWF_Table::column($data[1]);
    echo GWF_Table::column($data[2]);
    echo GWF_Table::column($data[3]);
    echo GWF_Table::rowEnd();
}
echo GWF_Table::end();