function domanage() { $mid = $_GET['mid']; $model = model::data($mid); $table = $model['tbn']; $forum = new forum(); $fid = (int) $_GET['fid']; $type = $_GET['type']; $sql = " where "; switch ($type) { //postype: [0:用户][1:管理员] status:[0:草稿][1:正常][2:回收] case 'draft': //草稿 $sql .= "`status` ='0' AND `postype`='1'"; $_ptxt = array(0 => '发布', 1 => '转成草稿'); $position = UI::lang("menu_article_draft"); break; case 'trash': //回收站 $sql .= "`status` ='2'"; $_ptxt = array(0 => '还原', 1 => '放入回收站'); $position = UI::lang("menu_article_trash"); break; case 'user': //用户 if ($_GET['act'] == "draft") { $sql .= "`status` ='0'"; //用户审核 $position = UI::lang("menu_article_user_draft"); } elseif ($_GET['act'] == "trash") { $sql .= "`status` ='2'"; //用户回收站 $position = UI::lang("menu_article_user_trash"); } else { $sql .= "`status` ='1'"; $position = UI::lang("menu_article_user_manage"); } $sql .= " AND `postype`='0'"; $_ptxt = array(0 => '通过审核', 1 => '取消审核'); break; default: $sql .= " `status` ='1' AND `postype`='1'"; $position = ''; $fid && ($position = $forum->forum[$fid]['name']); } $position && ($position = " » " . $position); if ($_GET['keywords']) { if ($_GET['st'] == "title") { $sql .= " AND `title` REGEXP '{$_GET['keywords']}'"; } else { if ($_GET['st'] == "top") { $sql .= " AND `top`='{$_GET['keywords']}'"; } else { if ($_GET['st'] == "id") { $sql .= " AND `id` REGEXP '{$_GET['keywords']}'"; } } } } $_GET['title'] && ($sql .= " AND `title` like '%{$_GET['title']}%'"); $_GET['tag'] && ($sql .= " AND `tags` REGEXP '[[:<:]]" . preg_quote(rawurldecode($_GET['tag']), '/') . "[[:>:]]'"); isset($_GET['at']) && $_GET['at'] != '-1' && ($sql .= " AND `type` ='" . $_GET['at'] . "'"); isset($_GET['userid']) && ($sql .= " AND `userid`='" . (int) $_GET['userid'] . "'"); $fid = member::CP($fid) ? $fid : "0"; if ($fid) { $fidIN = $forum->fid($fid) . $fid; if (isset($_GET['sub']) && strstr($fidIN, ',')) { $sql .= " AND fid IN(" . $fidIN . ")"; } else { $sql .= " AND fid ='{$fid}'"; } //$sql.=" OR `vlink` REGEXP '[[:<:]]".preg_quote($fid, '/')."[[:>:]]')"; } else { member::$cpower && ($sql .= " AND fid IN(" . implode(',', (array) member::$cpower) . ")"); } $_GET['starttime'] && ($sql .= " and `pubdate`>='" . strtotime($_GET['starttime']) . "'"); $_GET['endtime'] && ($sql .= " and `pubdate`<='" . strtotime($_GET['endtime']) . "'"); $act == 'user' && ($uri .= '&act=user'); $_GET['type'] == 'draft' && ($uri .= '&type=draft'); isset($_GET['userid']) && ($uri .= '&userid=' . (int) $_GET['userid']); isset($_GET['keyword']) && ($uri .= '&keyword=' . $_GET['keyword']); isset($_GET['tag']) && ($uri .= '&tag=' . $_GET['tag']); $orderby = $_GET['orderby'] ? $_GET['orderby'] : "id DESC"; $maxperpage = (int) $_GET['perpage'] > 0 ? $_GET['perpage'] : 20; $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__{$table}` {$sql}") : (int) $_GET['rowNum']; page($total, $maxperpage, "条记录"); $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__{$table}` {$sql} order by {$orderby} LIMIT {$this->firstcount} , {$maxperpage}"); $_count = count($rs); include admincp::tpl(); }
function doManage() { $mtime = microtime(); $mtime = explode(' ', $mtime); $time_start = $mtime[1] + $mtime[0]; Admin::MP(array("menu_article_manage", "menu_article_draft", "menu_article_user_manage", "menu_article_user_draft")); $forum = new forum(); $fid = (int) $_GET['fid']; $type = $_GET['type']; $sql = " where "; switch ($type) { //postype: [0:用户][1:管理员][2:回收] status:[0:隐藏][1:正常] case 'draft': //草稿 $sql .= "`status` ='0' AND `postype`='1'"; $_ptxt = array(0 => '发布', 1 => '转成草稿'); $position = UI::lang("menu_article_draft"); break; case 'trash': //回收站 $sql .= "`status` ='0' AND `postype`='2'"; $_ptxt = array(0 => '还原', 1 => '放入回收站'); $position = UI::lang("menu_article_trash"); break; case 'user': //用户 if ($_GET['act'] == "draft") { $sql .= "`status` ='0'"; //用户审核 $position = UI::lang("menu_article_user_draft"); } else { $sql .= "`status` ='1'"; $position = UI::lang("menu_article_user_manage"); } $sql .= " AND `postype`='0'"; $_ptxt = array(0 => '通过审核', 1 => '取消审核'); break; default: $sql .= " `status` ='1' AND `postype`='1'"; $position = ''; $fid && ($position = $forum->forum[$fid]['name']); } $position && ($position = " » " . $position); if ($_GET['keywords']) { if ($_GET['st'] == "title") { $sql .= " AND `title` REGEXP '{$_GET['keywords']}'"; } else { if ($_GET['st'] == "top") { $sql .= " AND `top`='{$_GET['keywords']}'"; } else { if ($_GET['st'] == "id") { $sql .= " AND `id` REGEXP '{$_GET['keywords']}'"; } else { if ($_GET['st'] == "tkd") { $sql .= " AND CONCAT(title,keywords,description) REGEXP '{$_GET['keywords']}'"; } } } } } $_GET['title'] && ($sql .= " AND `title` like '%{$_GET['title']}%'"); $_GET['tag'] && ($sql .= " AND `tags` REGEXP '[[:<:]]" . preg_quote(rawurldecode($_GET['tag']), '/') . "[[:>:]]'"); isset($_GET['at']) && $_GET['at'] != '-1' && ($sql .= " AND `type` ='" . $_GET['at'] . "'"); isset($_GET['userid']) && ($sql .= " AND `userid`='" . (int) $_GET['userid'] . "'"); $fid = Admin::CP($fid) ? $fid : "0"; if ($fid) { $fidIN = $forum->fid($fid) . $fid; if (isset($_GET['sub']) && strstr($fidIN, ',')) { $sql .= " AND fid IN(" . $fidIN . ")"; } else { $sql .= " AND fid ='{$fid}'"; } //$sql.=" OR `vlink` REGEXP '[[:<:]]".preg_quote($fid, '/')."[[:>:]]')"; } else { Admin::$cpower && ($sql .= " AND fid IN(" . implode(',', (array) Admin::$cpower) . ")"); } isset($_GET['nopic']) && ($sql .= " AND `isPic` ='0'"); $_GET['starttime'] && ($sql .= " and `pubdate`>='" . strtotime($_GET['starttime']) . "'"); $_GET['endtime'] && ($sql .= " and `pubdate`<='" . strtotime($_GET['endtime']) . "'"); $act == 'user' && ($uri .= '&act=user'); $_GET['type'] == 'draft' && ($uri .= '&type=draft'); isset($_GET['userid']) && ($uri .= '&userid=' . (int) $_GET['userid']); isset($_GET['keyword']) && ($uri .= '&keyword=' . $_GET['keyword']); isset($_GET['tag']) && ($uri .= '&tag=' . $_GET['tag']); $orderby = $_GET['orderby'] ? $_GET['orderby'] : "id DESC"; $maxperpage = (int) $_GET['perpage'] > 0 ? $_GET['perpage'] : 20; $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__article` {$sql}") : (int) $_GET['rowNum']; page($total, $maxperpage, "篇文章"); $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__article` {$sql} order by {$orderby} LIMIT {$this->firstcount} , {$maxperpage}"); //echo iCMS_DB::$last_query; //iCMS_DB::last_query='explain '.iCMS_DB::$last_query; //$explain=iCMS_DB::getRow(iCMS_DB::last_query); //var_dump($explain); $_count = count($rs); include admincp::tpl("article.manage"); // $mtime = microtime(); // $mtime = explode(' ', $mtime); // $time_end = $mtime[1] + $mtime[0]; // echo "<h1>".($time_end - $time_start); }
function dolist() { $id = (int) $_GET['id']; $fid = (int) $_GET['fid']; $tagName = iCMS_DB::getValue("SELECT name FROM #iCMS@__tags WHERE id='{$id}'"); $forum = new forum(); $sql = '#iCMS@__article.id = `indexId`'; $_GET['keywords'] && ($sql .= " AND `title` REGEXP '{$_GET['keywords']}'"); isset($_GET['nopic']) && ($sql .= " AND `isPic` ='0'"); $_GET['starttime'] && ($sql .= " and `pubdate`>='" . strtotime($_GET['starttime']) . "'"); $_GET['endtime'] && ($sql .= " and `pubdate`<='" . strtotime($_GET['endtime']) . "'"); isset($_GET['at']) && $_GET['at'] != '-1' && ($sql .= " AND `type` ='" . $_GET['at'] . "'"); isset($_GET['keyword']) && ($uri .= '&keyword=' . $_GET['keyword']); $fid = Admin::CP($fid) ? $fid : "0"; if ($fid) { $cidIN = $forum->fid($fid) . $fid; if (isset($_GET['sub']) && strstr($cidIN, ',')) { $sql .= " AND fid IN(" . $cidIN . ")"; } else { $sql .= " AND fid ='{$fid}'"; } } else { Admin::$cpower && ($sql .= " AND fid IN(" . implode(',', (array) Admin::$cpower) . ")"); } $maxperpage = (int) $_GET['perpage'] > 0 ? $_GET['perpage'] : 20; $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(#iCMS@__article.id) FROM `#iCMS@__article`,`#iCMS@__taglist` WHERE `tid`='" . $id . "' AND {$sql}") : (int) $_GET['rowNum']; page($total, $maxperpage, "篇文章"); $rs = iCMS_DB::getArray("SELECT #iCMS@__article.* FROM `#iCMS@__article`,`#iCMS@__taglist` WHERE `tid`='" . $id . "' AND {$sql} ORDER BY #iCMS@__taglist.indexId DESC LIMIT {$this->firstcount} , {$maxperpage}"); $_count = count($rs); include admincp::tpl('tag.list'); }
function doarticle() { $forum = new forum(); $callback = $_GET['callback']; $fid = (int) $_GET['fid']; $sql = " where "; $sql .= $_GET['type'] == 'draft' ? "`status` ='0'" : "`status` ='1'"; $sql .= $act == 'user' ? " AND `postype`='0'" : " AND `postype`='1'"; $_GET['keywords'] && ($sql .= " AND CONCAT(title,keywords,description) REGEXP '{$_GET['keywords']}'"); $fid = member::CP($fid) ? $fid : "0"; if ($fid) { if (isset($_GET['sub'])) { $sql .= " AND ( fid IN(" . $forum->fid($fid) . $fid . ")"; } else { $sql .= " AND ( fid ='{$fid}'"; } $sql .= " OR `vlink` REGEXP '[[:<:]]" . preg_quote($fid, '/') . "[[:>:]]')"; } else { member::$cpower && ($sql .= " AND fid IN(" . implode(',', member::$cpower) . ")"); } isset($_GET['keyword']) && ($uri .= '&keyword=' . $_GET['keyword']); $maxperpage = 8; $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__article` {$sql}") : (int) $_GET['rowNum']; page($total, $maxperpage, "篇文章"); $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__article`{$sql} order by id DESC LIMIT {$this->firstcount} , {$maxperpage}"); $_count = count($rs); include admincp::tpl(); }
function doCreateTag() { $speed = 25; //生成速度 $sids = $this->PG('sortid'); $startid = (int) $this->PG('startid'); $endid = (int) $this->PG('endid'); $starttime = $this->PG('starttime'); $endtime = $this->PG('endtime'); $cpageNum = 0; //$_GET['cpn']; $totle = isset($_GET['totle']) ? $_GET['totle'] : 0; $loop = isset($_GET['loop']) ? $_GET['loop'] : 1; $i = isset($_GET['i']) ? $_GET['i'] : 0; $isA = $this->isAll(); if ($sids) { empty($sids) && javascript::alert("请选择分类"); is_array($sids) && ($sids = implode(",", $sids)); if (strstr($sids, 'all')) { $forum = new forum(); $sids = substr($forum->fid(), 0, -1); _header(__SELF__ . '?mo=html&do=CreateTag&time=' . $this->cTime . '&cpn=' . $cpageNum . '&sortid=' . $sids . $isA); } else { $sArray = explode(',', $sids); $sCount = count($sArray); $cpage = isset($_GET['cpage']) ? $_GET['cpage'] : 1; $k = isset($_GET['k']) ? $_GET['k'] : 0; $rs = iCMS_DB::getArray("SELECT `id`,`name` FROM #iCMS@__tags WHERE `sortid` in ({$sids}) and `status`='1' order by id DESC"); empty($totle) && ($totle = count($rs)); $tloop = ceil($totle / $speed); if ($loop <= $tloop) { $max = $i + $speed > $totle ? $totle : $i + $speed; for ($j = $i; $j < $max; $j++) { $c = iHtml::Tag($rs[$j]['name'], $cpage, $loop, $cpageNum); $msg .= "标签: [" . $c['name'] . "] 生成…<span style='color:green;'>√</span><br />"; } javascript::dialog($msg, 'src:' . __SELF__ . '?mo=html&do=CreateTag&sortid=' . $sids . '&totle=' . $totle . '&loop=' . ($loop + 1) . '&i=' . $j . $isA, 'ok', 0); } else { $isA && javascript::dialog("标签更新完毕!<br />开始生成首页", 'url:' . __SELF__ . '?mo=html&do=index&all=true'); javascript::dialog("标签更新完毕"); } } // }elseif($startid && $endid){ // ($startid>$endid &&!isset($_GET['g'])) && javascript::alert("开始ID不能大于结束ID"); // empty($totle)&&$totle=($endid-$startid)+1; // empty($i)&&$i=$startid; // $tloop=ceil($totle/$speed); // if($loop<=$tloop){ // $max=$i+$speed>$endid?$endid:$i+$speed; // for($j=$i;$j<=$max;$j++){ // iHtml::Tag($j); // $msg.="标签ID:{$j}生成…<span style='color:green;'>√</span><br />"; // } // javascript::dialog($msg,'src:'.__SELF__.'?mo=html&do=CreateTag&startid='.$startid.'&endid='.$endid.'&g&loop='.($loop+1).'&i='.$j.$isA,'ok',0); // }else{ // javascript::dialog("标签更新完毕"); // } } elseif ($starttime) { $s = strtotime($starttime); $e = empty($endtime) ? time() + 86400 : strtotime($endtime); $rs = iCMS_DB::getArray("SELECT id,name FROM #iCMS@__tags WHERE `updatetime`>='{$s}' and `updatetime`<='{$e}' and `status`='1' order by id DESC"); empty($totle) && ($totle = count($rs)); $tloop = ceil($totle / $speed); if ($loop <= $tloop) { $max = $i + $speed > $totle ? $totle : $i + $speed; for ($j = $i; $j < $max; $j++) { iHtml::Tag($rs[$j]['name']); $msg .= "标签:[" . $rs[$j]['name'] . "]生成…<span style='color:green;'>√</span><br />"; } javascript::dialog($msg, 'src:' . __SELF__ . '?mo=html&do=CreateTag&starttime=' . $starttime . '&endtime=' . $endtime . '&totle=' . $totle . '&loop=' . ($loop + 1) . '&i=' . $j, 'ok', 0); } else { javascript::dialog("标签更新完毕"); } } else { javascript::alert("请选择方式"); } }
function domanage() { $forum = new forum(); $fid = (int) $_GET['fid']; $sql = " where `userid`='" . (int) member::$uId . "' AND `postype`='0'"; //postype: [0:用户][1:管理员] status:[0:草稿][1:正常][2:回收] $_GET['keyword'] && ($sql .= " AND CONCAT(title,keywords,description) REGEXP '{$_GET['keyword']}'"); $_GET['status'] != "" && ($sql .= " AND `status`='" . $_GET['status'] . "'"); // $_GET['title'] && $sql.=" AND `title` like '%{$_GET['title']}%'"; // $_GET['tag'] && $sql.=" AND `tags` REGEXP '[[:<:]]".preg_quote(rawurldecode($_GET['tag']),'/')."[[:>:]]'"; if ($fid) { $fidIN = $forum->fid($fid) . $fid; if (isset($_GET['sub']) && strstr($fidIN, ',')) { $sql .= " AND fid IN(" . $fidIN . ")"; } else { $sql .= " AND fid ='{$fid}'"; } } // isset($_GET['nopic']) && $sql.=" AND `isPic` ='0'"; // $_GET['starttime'] && $sql.=" and `pubdate`>='".strtotime($_GET['starttime'])."'"; // $_GET['endtime'] && $sql.=" and `pubdate`<='".strtotime($_GET['endtime'])."'"; // $type=='draft' && $uri.='&type=draft'; isset($_GET['keyword']) && ($uri .= '&keyword=' . $_GET['keyword']); // isset($_GET['tag']) && $uri.='&tag='.$_GET['tag']; $orderby = $_GET['orderby'] ? $_GET['orderby'] : "id DESC"; $maxperpage = (int) $_GET['perpage'] > 0 ? $_GET['perpage'] : 10; $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__article` {$sql}") : (int) $_GET['rowNum']; page($total, $maxperpage, "篇文章"); $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__article` {$sql} order by {$orderby} LIMIT {$this->firstcount} , {$maxperpage}"); //echo iCMS_DB::$last_query; //iCMS_DB::$last_query='explain '.iCMS_DB::$last_query; //$explain=iCMS_DB::getRow(iCMS_DB::$last_query); //print_r($explain); $_count = count($rs); include $this->tpl(); }
function domanage() { $mid = $_GET['mid']; $model = model::data($mid); $table = $model['tbn']; $forum = new forum(); $fid = (int) $_GET['fid']; $sql = " where `userid`='" . (int) member::$uId . "' AND `postype`='0'"; //postype: [0:用户][1:管理员] status:[0:草稿][1:正常][2:回收] $_GET['keyword'] && ($sql .= " AND CONCAT(title,tags) REGEXP '{$_GET['keyword']}'"); $_GET['status'] != "" && ($sql .= " AND `status`='" . $_GET['status'] . "'"); if ($fid) { $fidIN = $forum->fid($fid) . $fid; if (isset($_GET['sub']) && strstr($fidIN, ',')) { $sql .= " AND fid IN(" . $fidIN . ")"; } else { $sql .= " AND fid ='{$fid}'"; } //$sql.=" OR `vlink` REGEXP '[[:<:]]".preg_quote($fid, '/')."[[:>:]]')"; } // $_GET['starttime'] && $sql.=" and `pubdate`>='".strtotime($_GET['starttime'])."'"; // $_GET['endtime'] && $sql.=" and `pubdate`<='".strtotime($_GET['endtime'])."'"; isset($_GET['keyword']) && ($uri .= '&keyword=' . $_GET['keyword']); $orderby = $_GET['orderby'] ? $_GET['orderby'] : "id DESC"; $maxperpage = (int) $_GET['perpage'] > 0 ? $_GET['perpage'] : 20; $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__{$table}` {$sql}") : (int) $_GET['rowNum']; page($total, $maxperpage, "条记录"); $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__{$table}` {$sql} order by {$orderby} LIMIT {$this->firstcount} , {$maxperpage}"); $_count = count($rs); include $this->tpl(); }
function doextractpic() { Admin::MP("menu_extract_pic"); include iPATH . 'include/forum.class.php'; set_time_limit(0); $speed = 100; //提取速度 $action = $this->PG('action'); $fids = $this->PG('fid'); $startid = (int) $this->PG('startid'); $endid = (int) $this->PG('endid'); $starttime = $this->PG('starttime'); $endtime = $this->PG('endtime'); $totle = isset($_GET['totle']) ? $_GET['totle'] : 0; $loop = isset($_GET['loop']) ? $_GET['loop'] : 1; $i = isset($_GET['i']) ? $_GET['i'] : 0; empty($action) && javascript::alert("请选择操作项"); if ($fids) { empty($fids) && javascript::alert("请选择版块"); is_array($fids) && ($fids = implode(",", $fids)); if (strstr($fids, 'all')) { $forum = new forum(); $fids = substr($forum->fid(), 0, -1); if (empty($fids)) { javascript::dialog("提取完毕", 'url:' . __SELF__ . '?mo=files&do=extract'); } else { _header(__SELF__ . '?mo=files&do=extractpic&fid=' . $fids . '&action=' . $action); } } else { $cArray = explode(',', $fids); $_Ccount = count($cArray); $k = isset($_GET['k']) ? $_GET['k'] : 0; $rs = iCMS_DB::getArray("SELECT id FROM #iCMS@__article WHERE fid in ({$fids}) and `status`='1'"); empty($totle) && ($totle = count($rs)); $tloop = ceil($totle / $speed); if ($loop <= $tloop) { $max = $i + $speed > $totle ? $totle : $i + $speed; for ($j = $i; $j < $max; $j++) { if ($action == "thumb") { if ($this->extractThumb($rs[$j]['id'])) { $msg .= "文章ID:" . $rs[$j]['id'] . "提取…<span style='color:green;'>√</span><br />"; } } elseif ($action == "into") { $intoMsg = $this->into($rs[$j]['id']); if ($intoMsg) { $msg .= $intoMsg . "文章ID:" . $rs[$j]['id'] . "提取…<span style='color:green;'>√</span><br />"; } } } javascript::dialog($msg ? $msg : "暂无提取信息!", 'src:' . __SELF__ . '?mo=files&do=extractpic&fid=' . $fids . '&totle=' . $totle . '&loop=' . ($loop + 1) . '&i=' . $j . '&action=' . $action); } else { javascript::dialog("提取完毕", 'url:' . __SELF__ . '?mo=files&do=extract'); } } } elseif ($startid && $endid) { $startid > $endid && !isset($_GET['g']) && javascript::alert("开始ID不能大于结束ID"); empty($totle) && ($totle = $endid - $startid + 1); empty($i) && ($i = $startid); $tloop = ceil($totle / $speed); if ($loop <= $tloop) { $max = $i + $speed > $endid ? $endid : $i + $speed; for ($j = $i; $j <= $max; $j++) { if ($action == "thumb") { if ($this->extractThumb($j)) { $msg .= "文章ID:" . $j . "提取…<span style='color:green;'>√</span><br />"; } } elseif ($action == "into") { $intoMsg = $this->into($j); if ($intoMsg) { $msg .= $intoMsg . "文章ID:" . $j . "提取…<span style='color:green;'>√</span><br />"; } } } javascript::dialog($msg ? $msg : "暂无提取信息!", 'src:' . __SELF__ . '?mo=files&do=extractpic&startid=' . $startid . '&endid=' . $endid . '&g&loop=' . ($loop + 1) . '&i=' . $j . '&action=' . $action); } else { javascript::dialog("提取完毕", 'url:' . __SELF__ . '?mo=files&do=extract'); } } elseif ($starttime) { $s = strtotime($starttime); $e = empty($endtime) ? time() + 86400 : strtotime($endtime); $rs = iCMS_DB::getArray("SELECT id FROM #iCMS@__article WHERE `pubdate`>='{$s}' and `pubdate`<='{$e}' and `status`='1'"); empty($totle) && ($totle = count($rs)); $tloop = ceil($totle / $speed); if ($loop <= $tloop) { $max = $i + $speed > $totle ? $totle : $i + $speed; for ($j = $i; $j < $max; $j++) { if ($action == "thumb") { if ($this->extractThumb($rs[$j]['id'])) { $msg .= "文章ID:" . $rs[$j]['id'] . "提取…<span style='color:green;'>√</span><br />"; } } elseif ($action == "into") { $intoMsg = $this->into($rs[$j]['id']); if ($intoMsg) { $msg .= $intoMsg . "文章ID:" . $rs[$j]['id'] . "提取…<span style='color:green;'>√</span><br />"; } } } javascript::dialog($msg ? $msg : "暂无提取信息!", 'src:' . __SELF__ . '?mo=files&do=extractpic&starttime=' . $starttime . '&endtime=' . $endtime . '&totle=' . $totle . '&loop=' . ($loop + 1) . '&i=' . $j . '&action=' . $action); } else { javascript::dialog("提取完毕", 'url:' . __SELF__ . '?mo=files&do=extract'); } } else { javascript::alert("请选择方式"); } }