function simplepage($num, $perpage, $curpage, $mpurl) { return helper_page::simplepage($num, $perpage, $curpage, $mpurl); }
} else { if ($_GET['act'] == 'delete') { if ($_GET['formhash'] == formhash()) { if ($_GET['aid']) { C::t('#aljwsq#aljwsq_autoreply')->delete($_GET['aid']); } cpmsg(lang('plugin/aljwsq', 'autoreply20'), 'action=plugins&operation=config&do=' . $_GET['do'] . '&identifier=aljwsq&pmod=autoreply', 'succeed'); } } else { $page = intval($_GET['page']); $currpage = $page ? $page : 1; $perpage = 11; $start = ($currpage - 1) * $perpage; $num = C::t('#aljwsq#aljwsq_autoreply')->count_by_status('', $_GET['msgtype']); $replys = C::t('#aljwsq#aljwsq_autoreply')->fetch_all_by_status('', $_GET['msgtype'], $start, $perpage); $paging = helper_page::multi($num, $perpage, $currpage, 'admin.php?action=plugins&operation=config&do=' . $_GET['do'] . '&identifier=aljwsq&pmod=autoreply', 0, 11, false, false); include template('aljwsq:autoreply'); } } } function img2thumb($src_img, $dst_img, $width = 75, $height = 75, $cut = 0, $proportion = 0) { if (!is_file($src_img)) { return false; } $ot = fileext($dst_img); $otfunc = 'image' . ($ot == 'jpg' ? 'jpeg' : $ot); $srcinfo = getimagesize($src_img); $src_w = $srcinfo[0]; $src_h = $srcinfo[1]; $type = strtolower(substr(image_type_to_extension($srcinfo[2]), 1));
$currpage = $_GET['page'] ? $_GET['page'] : 1; $perpage = 15; $start = ($currpage - 1) * $perpage; $num = C::t('#aljwsq#aljwsq_keywordlog')->count(); $recordlist = C::t('#aljwsq#aljwsq_keywordlog')->range($start, $perpage, 'desc'); $paging = helper_page::multi($num, $perpage, $currpage, 'admin.php?action=plugins&operation=config&do=' . $_GET['do'] . '&identifier=aljwsq&pmod=advanced&wid=keywordlog&act=keywordlog', 0, 11, false, false); include template('aljwsq:advanced/keywordlog'); } else { if ($_GET['act'] == 'keywordlogcount') { $currpage = $_GET['page'] ? $_GET['page'] : 1; $perpage = 15; $start = ($currpage - 1) * $perpage; $num = DB::fetch_all('select count(*) num from %t group by keyword', array('aljwsq_keywordlog')); $num = count($num); $recordlist = DB::fetch_all('select keyword,count(*) num from %t group by keyword limit %d,%d', array('aljwsq_keywordlog', $start, $perpage)); $paging = helper_page::multi($num, $perpage, $currpage, 'admin.php?action=plugins&operation=config&do=' . $_GET['do'] . '&identifier=aljwsq&pmod=advanced&wid=keywordlogcount&act=keywordlogcount', 0, 11, false, false); include template('aljwsq:advanced/keywordlogcount'); } else { $_GET['gettype'] = 'form'; if (file_exists('source/plugin/aljwsq/com/' . $_GET['gettype'] . '.php')) { include 'source/plugin/aljwsq/com/' . $_GET['gettype'] . '.php'; } else { include template('aljwsq:adminadvancednav'); include template('aljwsq:com'); } } } } } } }
$gg = $config['gg']; $tips = $config['tips']; $banquan = $config['banquan']; $timestamp = $_G['timestamp']; $jljifen = $config['jljifen']; $zhouqi = $config['zhouqi']; $beishu = $config['beishu']; $mytime = $timestamp; $mytime = date('Y-m-d', $mytime); $currpage = $_GET['page'] ? $_GET['page'] : 1; $perpage = 25; $curnum = ($currpage - 1) * $perpage; $num = C::t('#ljdaka#plugin_daka_user')->count(); $query = C::t('#ljdaka#plugin_daka_user')->fetch_all_by_allday($curnum, $perpage); $query_br = C::t('#ljdaka#plugin_daka_user')->fetch_all_by_allday(); $ranklist_br = array(); $i = 1; foreach ($query_br as $k => $rank_br) { $ranklist_br[$rank_br[uid]]['rank_br'] = $i; $ranklist_br[$rank_br[uid]]['alldays'] = $rank_br['allday']; $ranklist_br[$rank_br[uid]]['jljifen1'] = $rank_br['money']; $creditname = $_G['setting']['extcredits'][$config['leixing']]['title']; $ranklist_br[$rank_br[uid]]['jljifen2'] = $rank_br['fen']; $ranklist_br[$rank_br[uid]]['money'] = $rank_br['money']; $ranklist_br[$rank_br[uid]]['day'] = $rank_br['day']; $i++; } $paging = helper_page::multi($num, $perpage, $currpage, 'plugin.php?id=ljdaka:ranklist', 0, 10, false, false); //debug($ranklist); $leixing = 'extcredits' . $config['leixing']; include template('ljdaka:ranklist');
<div class="vm_pagetitle xw1"><?php echo $content['title'];?></div> <?php } ?> <?php echo $content['content'];?> </td></tr></table> <?php if(!empty($_G['setting']['pluginhooks']['view_article_content'])) echo $_G['setting']['pluginhooks']['view_article_content'];?> <?php if($multi) { ?><div class="ptw pbw cl"><?php echo $multi;?></div><?php } ?> <!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]--> <script src="<?php echo $_G['setting']['jspath'];?>home.js?<?php echo VERHASH;?>" type="text/javascript"></script> <div id="click_div"><?php include template('home/space_click'); ?></div> <?php if(!empty($contents)) { ?> <div id="inner_nav" class="ptn xs1"> <h3>本文导航</h3> <ul class="xl xl2 cl"><?php if(is_array($contents)) foreach($contents as $key => $value) { $curpage = $key+1;?><?php $inner_view_url = helper_page::mpurl($viewurl, '&page=', $curpage);?><li>• <a href="<?php echo $inner_view_url;?>"<?php if($key === $start) { ?> class="xi1"<?php } ?>>第 <?php echo $curpage;?> 页 <?php echo $value['title'];?></a></li> <?php } ?> </ul> </div> <?php } ?> <!--[diy=diycontentclickbottom]--><div id="diycontentclickbottom" class="area"></div><!--[/diy]--> </div> <?php if(!empty($aimgs[$content['pid']])) { ?> <script type="text/javascript" reload="1">aimgcount[<?php echo $content['pid'];?>] = [<?php echo implode(',', $aimgs[$content['pid']]);; ?>];attachimgshow(<?php echo $content['pid'];?>);</script> <?php } if(!empty($_G['setting']['pluginhooks']['view_share_method'])) { ?> <div class="tshare cl"> <strong>!viewthread_share_to!:</strong> <?php if(!empty($_G['setting']['pluginhooks']['view_share_method'])) echo $_G['setting']['pluginhooks']['view_share_method'];?> </div>
" type="text/javascript"></script> <div id="click_div"><?php include template('home/space_click'); ?> </div> <?php if (!empty($contents)) { ?> <div id="inner_nav" class="ptn xs1"> <h3>本文导航</h3> <ul class="xl xl2 cl"><?php if (is_array($contents)) { foreach ($contents as $key => $value) { $curpage = $key + 1; $inner_view_url = helper_page::mpurl($viewurl, '&page=', $curpage); ?> <li>• <a href="<?php echo $inner_view_url; ?> "<?php if ($key === $start) { ?> class="xi1"<?php } ?> >第 <?php echo $curpage; ?> 页 <?php echo $value['title'];