# TITLE SELECT $headers = array(array($tLang->lang('th_title'))); $data = array(); $iso = GWF_Language::getCurrentISO(); foreach ($tVars['titles'] as $d) { $newsid = $d[0]; $title = $d[1]; $catid = 0; $cat = 'FOO'; // $catid = (int) $d[1]; // $cat = $catid === 0 ? GWF_HTML::lang('no_category') : $d[2]; // $cat = Common::urlencodeSEO($cat); $url = sprintf(GWF_WEB_ROOT . 'news/%s/%d/%s/%s/%s#newsid%s', $iso, $catid, urlencode($cat), $newsid, Common::urlencodeSEO($title), $newsid); $data[] = array(sprintf('<a href="%s">%s</a>', $url, $title)); } echo GWF_Table::display($headers, '', $data, 'date', 'DESC'); ?> </div> <div class="gwf_newsbox"> <?php foreach ($tVars['news'] as $news) { ?> <div class="gwf_newsbox_item gwf_tr_<?php $id = 1 - $id; echo $id; ?> "> <div><a name="newsid<?php echo $news['news_id'];
<?php $headers = array(array($tLang->lang('th_username'), 'username', 'ASC'), array($tLang->lang('th_token'), 'token', 'ASC'), array($tLang->lang('th_email'), 'email', 'ASC'), array($tLang->lang('th_birthdate'), 'birthdate', 'ASC'), array($tLang->lang('th_countryid'), 'countryid', 'ASC'), array($tLang->lang('th_timestamp'), 'timestamp', 'ASC'), array($tLang->lang('th_ip'), 'ip', 'ASC')); $data = array(); foreach ($tVars['activations'] as $ua) { $ua instanceof GWF_UserActivation; $data[] = array($ua->display('username'), $ua->getVar('token'), $ua->display('email'), $ua->displayBirthdate(), $ua->displayCountry(), $ua->displayTimestamp(), $ua->displayIP()); } echo $tVars['pagemenu']; echo GWF_Table::display($headers, $tVars['sort_url'], $data, $tVars['by'], $tVars['dir']);