function browse($path, $visible, $offset = 0, $limit = 10) { global $intl, $loader; $loader->import('saf.Database.Pager'); $output = ''; $res = $this->doc->query($path); if (!is_array($res)) { $this->error = $this->doc->error; return 0; } $pager = new Pager(); printf('<p>%s</p>', $pager->link($this->browseLink, $limit, $offset, count($res))); // create table header $output .= "<table border='1' cellpadding='5'>\n"; $output .= "\t<tr>\n"; $output .= "\t\t<th><input type='submit' name='action' value='" . $intl->get('Delete') . "' /></th>\n"; $output .= "\t\t<th><input type='submit' value='" . $intl->get('Select All') . "' /></th>\n"; foreach ($visible as $node) { $output .= "\t\t<th>" . ucwords(str_replace('_', ' ', $node)) . "</th>\n"; } $output .= "\t</tr>\n"; for ($i = $offset; $i < $offset + $limit; $i++) { if (!is_object($res[$i])) { break; } $row = $res[$i]->makeObj(); $path = urlencode($res[$i]->path()); $output .= "\t<tr>\n"; $output .= "\t\t<td align='center'>"; $output .= "<input type='checkbox' name='del_items[]' value='" . $path . "' />"; // $output .= $intl->get ('Delete'); $output .= "</td>\n"; $output .= "\t\t<td>"; $output .= "<a href='" . $this->editLink . $path . "'>"; $output .= $intl->get('Edit'); $output .= '</a>'; $output .= ' | '; $output .= "<a href='" . $this->downloadLink . $path . "'>"; $output .= $intl->get('Download'); $output .= '</a>'; $output .= "</td>\n"; foreach ($visible as $node) { $output .= "\t\t<td>" . $row->{$node} . "</td>\n"; } $output .= "\t</tr>\n"; } // create table footer $output .= "</table>\n"; return $output; }
$sql_query .= " and (recycle='0' or recycle='-1')"; $total_count = $db->counter($table, $sql_query, "*"); require_once 'include/pager.class.php'; $page = (int) $page; if ($page_input) { $page = $page_input; } $list_num = 5; $rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $img_list = $db->get_all("select * from {$table} {$sql_query} and (recycle='0' or recycle='-1') order by top_ok desc,no_order desc,updatetime desc,id desc LIMIT {$from_record}, {$list_num}"); $page = $page == 0 ? 1 : $page; if ($page * $list_num > $total_count) { $list_num = $total_count - ($page - 1) * $list_num; } $page_list = $rowset->link("fileup.php?anyid={$anyid}&class1={$class1}&class2={$class2}&class3={$class3}&action=do&lang={$lang}&page="); $numtotal = $total_count; $numcsv = $total_count; if (!$img_list) { $listnots = $lang_listno; } } $listid = ''; foreach ($img_list as $key => $val) { $listid .= $val['id'] . ','; } $from_record_1 = $from_record + 1; $from_record_2 = $from_record + $list_num; } require_once 'index.php'; $listclass = '';
$list['access'] = $menber_array[$list['access']]; } $list[new_ok1] = $list[new_ok] ? $lang_yes : $lang_no; $list[com_ok1] = $list[com_ok] ? $lang_yes : $lang_no; $list[displaytype1] = $list[displaytype] ? $lang_yes : $lang_no; $list[top_ok1] = $list[top_ok] ? $lang_yes : $lang_no; $list[wap_ok1] = $list[wap_ok] ? $lang_yes : $lang_no; $list[updatetime] = date('Y-m-d', strtotime($list[updatetime])); $num = 38; if (preg_match("/[-ÿ]/", $list['title'])) { $num = 20; } $list['titles'] = utf8substr($list['title'], 0, $num); $img_list[] = $list; } $page_list = $rowset->link("index.php?anyid={$anyid}&lang={$lang}&class1={$class1}&class2={$class2}&class3={$class3}&search={$search}&title={$title}&page="); switch ($new) { case '1': $new1 = "selected='selected'"; break; case '0': $new2 = "selected='selected'"; break; default: $new0 = "selected='selected'"; break; } switch ($recommend) { case '1': $recommend1 = "selected='selected'"; break;
$query = "SELECT * FROM {$met_message} {$serch_sql} {$order_sql} LIMIT {$from_record}, {$list_num}"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { if ($met_member_use) { if (intval($list[access]) > 0) { $list[info] = "<script language='javascript' src='access.php?metaccess=" . $list[access] . "&lang=" . $lang . "&listinfo=info&id=" . $list[id] . "'></script>"; $list[useinfo] = "<script language='javascript' src='access.php?metaccess=" . $list[access] . "&lang=" . $lang . "&listinfo=useinfo&id=" . $list[id] . "'></script>"; } } $message_list[] = $list; } if ($met_webhtm == 2) { $met_pagelist = $met_htmlistname ? "message_list_" : "index_list_"; $met_pagelist = $message_column['filename'] != '' ? $message_column['filename'] . '_' : $met_pagelist; $met_ahtmtype = $message_column['filename'] != '' ? $met_chtmtype : $met_htmtype; $page_list = $rowset->link($met_pagelist, $met_ahtmtype); } else { if ($met_pseudo) { $page_list = $rowset->link('list-' . $class1 . '-', '-' . $lang . '.html'); } else { $page_list = $rowset->link("index.php?lang=" . $lang . "&page="); } } $class2 = $class_list[$class1][releclass] ? $class1 : $class2; $class1 = $class_list[$class1][releclass] ? $class_list[$class1][releclass] : $class1; $class_info = $class2 ? $class2_info : $class1_info; if ($class2 != "") { $class_info[name] = $class2_info[name] . "-" . $class1_info[name]; } $show[description] = $class_info[description] ? $class_info[description] : $met_description; $show[keywords] = $class_info[keywords] ? $class_info[keywords] : $met_keywords;
/** * Close sql tag handler. * * @access private * @param associative array $node * @return string * */ function _sql_end($node) { global $db; $sql = array_shift($this->sql); $out = ''; if ($sql['pager']) { if (empty($sql['totalquery'])) { $sql['totalquery'] = preg_replace('/^select .+ from /i', 'select count(*) as total from ', $sql['query']); // $sql['totalquery'] = preg_replace ('/ limit .+$/i', '', $sql['totalquery']); } $sql['totalquery'] = $this->exp->evaluate($sql['totalquery'], $this->exp->register['object'], 'string', true); $tot = $db->fetch($sql['totalquery'], $sql['bind']); if (!$tot) { $total = 0; } elseif (is_array($tot)) { $total = $tot[0]->total; } else { $total = $tot->total; } $limit = $sql['limit']; if (!is_numeric($limit)) { $limit = 20; } $offset = $this->exp->evaluate('cgi/' . $sql['offsetvar'] . ' | php: 0', $node, 'path', true); if (!is_numeric($offset)) { $offset = 0; } $sql['query'] .= ' limit ' . $offset . ', ' . $limit; global $loader, $cgi, $_SERVER; $loader->import('saf.Database.Pager'); $cgi->{$sql['offsetvar']} = $offset; $pager = new Pager(); $out .= '<p>' . $pager->link($_SERVER['SCRIPT_NAME'] . $cgi->makeQuery($sql['offsetvar']) . '&', $limit, $offset, $total) . '</p>'; } $sql['query'] = $this->exp->evaluate($sql['query'], $this->exp->register['object'], 'string', true); $res = $db->fetch($sql['query'], $sql['bind']); if (!$res) { //$this->error = $db->error; $this->exp->setObject($db, 'result'); return $this->fill($this->wrap($sql['else']), $this->exp->register['object'], true); $this->exp->setObject(false, 'result'); } elseif (is_object($res)) { $res = array($res); } foreach ($res as $row) { $this->exp->setObject($row, 'result'); $out .= $this->fill($this->wrap($sql['sub']), $this->exp->register['object'], true); } $this->exp->setObject(false, 'result'); $this->rows = $db->rows; return $out; }
$cname = ','; for ($i = 0; $i < count($lmod); $i++) { if ($lmod[$i] != '') { if ($lmod[$i] == 10001) { $cname .= $lang_htmHome . ','; } else { $columnids = $db->get_one("select * from {$met_column} where id='{$lmod[$i]}' and lang='{$lang}'"); $cname .= $columnids[name] . ','; } } } $list['modulename'] = $cname; } $flashrec[] = $list; } $page_list = $rowset->link("flash.php?lang={$lang}&cs={$cs}&page="); $query1 = "select * from {$met_column} where if_in='0' and lang='{$lang}' order by no_order"; $result1 = $db->query($query1); $mod1[0] = $mod[10001] = array(id => 10001, name => "{$lang_flashHome}", bigclass => 0); $i = 1; while ($list = $db->fetch_array($result1)) { if ($list[classtype] == 1) { $mod1[$i] = $list; $i++; } if ($list[classtype] == 2) { $mod2[$list[bigclass]][] = $list; } if ($list[classtype] == 3) { $mod3[$list[bigclass]][] = $list; }
if ($key == $class1 || $key == $class2 || $key == $class3) { $md_class1[$key] = $val; } } } else { if ($classnow == $class1) { $md_class1 = $md_class; } } } $md_class = $md_class1; $md_list[] = $list; } if ($search == 'search' && $mdmendy) { $pagemor = $mdname . ".php?lang={$lang}&class1={$class1}&class2={$class2}&class3={$class3}" . $serchpage . '&search=search&page='; $page_list = $rowset->link($pagemor); } else { if ($met_pseudo) { $pagemor = ($metadmin['pagename'] and $class_list[$classnow]['filename'] != "") ? 'list-' . $class_list[$classnow]['filename'] . '-' : 'list-' . $classnow . '-'; $hz = '-' . $lang . '.html'; $page_list = $rowset->link($pagemor, $hz); } else { if ($met_webhtm == 2) { if ($class3 != 0) { $htmclass = $met_listhtmltype ? '_' . $class3 . '_' : '_' . $class1 . '_' . $class2 . '_' . $class3 . '_'; $met_pagelist = (($metadmin['pagename'] and $class_list[$class3]['filename'] != "") ? $class_list[$class3]['filename'] : ($met_htmlistname ? $class_list[$class3]['foldername'] : $modulename[$class_list[$class3]['module']][0])) . $htmclass; $met_pagelist = $class_list[$class3]['filename'] != '' ? $class_list[$class3]['filename'] . '_' : $met_pagelist; $met_ahtmtype = $class_list[$class3]['filename'] != '' ? $met_chtmtype : $met_htmtype; } elseif ($class2 != 0) { $htmclass = $met_listhtmltype ? '_' . $class2 . '_' : '_' . $class1 . '_' . $class2 . '_'; $met_pagelist = (($metadmin['pagename'] and $class_list[$class2]['filename'] != "") ? $class_list[$class2]['filename'] : ($met_htmlistname ? $class_list[$class2]['foldername'] : $modulename[$class_list[$class2]['module']][0])) . $htmclass;
if ($search == "detail_search") { if ($useinfo) { $serch_sql .= " and useinfo like '%{$useinfo}%' "; } $total_count = $db->counter($met_feedback, "{$serch_sql}", "*"); } else { $total_count = $db->counter($met_feedback, "{$serch_sql}", "*"); } require_once 'include/pager.class.php'; $page = (int) $page; if ($page_input) { $page = $page_input; } $list_num = 20; $rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $query = "SELECT * FROM {$met_feedback} {$serch_sql} {$order_sql} LIMIT {$from_record}, {$list_num}"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $list['customerid'] = $list['customerid'] == '0' ? $lang_feedbackAccess0 : $list['customerid']; $list[readok] = $list[readok] ? $lang_yes : $lang_no; $feedback_list[] = $list; } $page_list = $rowset->link("index.php?anyid={$anyid}&lang={$lang}&class1={$class1}&search={$search}&readok={$readok}&useinfo={$useinfo}&met_fd_classname={$met_fd_classname}&customerid={$customerid}&page="); $cs = 3; $listclass = ''; $listclass[$cs] = 'class="now"'; $css_url = $depth . "../templates/css"; $img_url = $depth . "../templates/images"; include template('content/feedback/feedback'); footer();
if ($search == "detail_search") { if ($webname) { $serch_sql .= " and webname like '%{$webname}%' "; } $total_count = $db->counter($met_link, "{$serch_sql}", "*"); } else { $total_count = $db->counter($met_link, "{$serch_sql}", "*"); } require_once 'include/pager.class.php'; $page = (int) $page; if ($page_input) { $page = $page_input; } $list_num = 20; $rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $query = "SELECT * FROM {$met_link} {$serch_sql} {$order_sql} LIMIT {$from_record}, {$list_num}"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $list[show_ok] = $list[show_ok] ? $lang_yes : $lang_no; $list[com_ok] = $list[com_ok] ? $lang_yes : $lang_no; $list[link_type] = $list[link_type] ? $lang_linkType5 : $lang_linkType4; $link_list[] = $list; } $met_weburl = substr($met_weburl, 0, -1); $page_list = $rowset->link("index.php?lang={$lang}&anyid={$anyid}&link_type={$link_type}&com_ok={$com_ok}&show_ok={$show_ok}&link_lang={$link_lang}&search={$search}&webname={$webname}&page="); $css_url = $depth . "../templates/css"; $img_url = $depth . "../templates/images"; include template('seo/link/link'); footer(); }
while ($list = $db->fetch_array($result)) { $selectlist[] = $list; } $serch_sql = " where customerid='{$metinfo_member_name}' and lang='{$lang}' "; if ($met_fd_classname != "") { $serch_sql .= " and exists(select info from {$met_flist} where listid='{$met_feedback}.id' and paraid='{$met_fd_class}' and info='{$met_fd_classname}')"; } $order_sql = " order by id desc "; $total_count = $db->counter($met_feedback, "{$serch_sql}", "*"); require_once '../include/pager.class.php'; $page = (int) $page; if ($page_input) { $page = $page_input; } $list_num = 20; $rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $page = $page ? $page : 1; $query = "SELECT * FROM {$met_feedback} {$serch_sql} {$order_sql} LIMIT {$from_record}, {$list_num}"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $list[readok] = $list[readok] ? $lang_Yes : $lang_No; $feedback_list[] = $list; } $page_list = $rowset->link("feedback.php?search={$search}&lang={$lang}&page="); $mfname = 'feedback'; $pageall = $rowset->pages; include template('member'); footermember(); # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
} $visit = $langlist; break; } /*分页*/ $total_count = count($visit); $list_num = 15; require_once $depth . '../include/pager.class.php'; $page = (int) $page; if ($page_input) { $page = $page_input; } $rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $i = 0; foreach ($visit as $key => $val) { $i++; $maxl = $from_record + $list_num; if ($i > $from_record and $i <= $maxl) { $val['order'] = $i; $newvisit[$key] = $val; } } if ($total_count > $list_num) { $page_list = $rowset->link("accept.php?lang={$lang}&anyid={$anyid}&st={$st}&et={$et}&cs={$cs}&field={$field}&visitlan={$visitlan}&labtype={$labtype}&page="); } $visit = $newvisit; include template('app/stat/accept'); footer(); # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
<?php # MetInfo Enterprise Content Management System # Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. require_once 'login_check.php'; require_once ROOTPATH . 'member/index_member.php'; $serch_sql = " where customerid='{$metinfo_member_name}' and lang='{$lang}' "; $order_sql = " order by id desc "; $total_count = $db->counter($met_message, "{$serch_sql}", "*"); require_once '../include/pager.class.php'; $page = (int) $page; if ($page_input) { $page = $page_input; } $list_num = 20; $rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $page = $page ? $page : 1; $query = "SELECT * FROM {$met_message} {$serch_sql} {$order_sql} LIMIT {$from_record}, {$list_num}"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $list[readok] = $list[readok] == 1 ? $lang_YES : $lang_NO; $message_list[] = $list; } $page_list = $rowset->link("message.php?search={$search}&lang={$lang}&page="); $pageall = $rowset->pages; $mfname = 'message'; include template('member'); footermember(); # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
$page = (int) $page; if ($page_input) { $page = $page_input; } $list_num = 1; $rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $page = $page ? $page : 1; $query = "SELECT * FROM {$met_job} where lang='{$lang}'"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $job_list[$list[id]] = $list[position]; } $query = "SELECT id,jobid,addtime,customerid,readok FROM {$met_cv} {$serch_sql} order by addtime desc LIMIT {$from_record}, {$list_num}"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $list['customerid'] = $list['customerid'] == '0' ? $lang_cvID : $list['customerid']; if (isset($job_list[$list[jobid]])) { $list[position] = $job_list[$list[jobid]]; } else { $list[position] = "<font color=red>{$lang_cvTip4}</font>"; } $cv_list[] = $list; } $page_list = $rowset->link("cv.php?search={$search}&page="); $pageall = $rowset->pages; $mfname = 'cv'; include template('member'); footermember(); # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
$total_count = $db->counter($met_admin_table, "{$serch_sql}", "*"); } else { $total_count = $db->counter($met_admin_table, "{$serch_sql}", "*"); } require_once 'include/pager.class.php'; $page = (int) $page; if ($page_input) { $page = $page_input; } $list_num = 16; $rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $query = "SELECT * FROM {$met_admin_table} {$serch_sql} ORDER BY admin_modify_date DESC LIMIT {$from_record}, {$list_num}"; $result = $db->query($query); $admin_list = array(); while ($list = $db->fetch_array($result)) { $list['usertype'] = $menber_array[$list['usertype']]; $list['checked'] = $list['checkid'] == 1 ? $lang_memberChecked : $lang_memberUnChecked; $admin_list[] = $list; } $page_list = $rowset->link("index.php?admin_id={$admin_id}&admin_name={$admin_name}&search={$search}&searchall={$searchall}&lang={$lang}&anyid={$anyid}&page="); $lev = 1; $menbermanage = 1; $list_access['access'] = $usertype; require '../content/access.php'; $css_url = "../templates/" . $met_skin . "/css"; $img_url = "../templates/" . $met_skin . "/images"; include template('member/member'); footer(); # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
$modlistnow[] = $list; } } foreach ($modlistnow as $key => $val) { $val['url'] = 'index.php?lang=' . $lang . '&id=' . $val['id'] . '&module=' . $module; if ($module == 6) { $val['url'] = 'index.php?lang=' . $lang . '&id=' . $val['id'] . '&module=' . $module . '&class1=' . $class1; } if ($metwaphtm == 'metwaphtm') { $val['url'] = $fname[$module][1] . $lang . $val['id'] . '.html'; } $wap_list[] = $val; } if ($metwaphtm == 'metwaphtm') { $pagemor = $fname[$module][0] . $lang . $classwap . '_'; $page_list = $rowset->link($pagemor, '.html'); } else { $pagemor = 'index.php?' . $lang . '&module=' . $module . "&class1={$class1}&class2={$class2}&class3={$class3}&page="; $page_list = $rowset->link($pagemor, ''); } $modulename = $db->get_one("select * from {$met_column} where lang='{$lang}' and id = '{$classwap}'"); $waptitle = $modulename['name'] . '-' . $wap_title; } else { $show = $db->get_one("select * from {$dbname} where lang='{$lang}' and id = '{$id}'"); $show['content'] = wap_replace($show['content'], 'img', 'object|script', 'span|strong|table|tr|b|p'); //$show['content'] = preg_replace("/<(.*?)>/","",$show['content']); $classnow = $show['class3'] ? $show['class3'] : ($show['class2'] ? $show['class2'] : $show['class1']); if ($module == 1) { $classnow = $id; } if ($module == 6) {
foreach ($job_listo as $key => $list) { if ($met_member_use) { $list['access'] = $menber_array[$list['access']]; } $list[top_ok1] = $list[top_ok] ? $lang_yes : $lang_no; $list[wap_ok1] = $list[wap_ok] ? $lang_yes : $lang_no; $list[displaytype1] = $list[displaytype] ? $lang_yes : $lang_no; if ($list[count] == 0) { $list[count] = $lang_josAlways; } if ($list[useful_life] == 0) { $list[useful_life] = $lang_josAlways; } $job_list[] = $list; } $page_list = $rowset->link("index.php?anyid={$anyid}&lang={$lang}&class1={$class1}&search={$search}&position={$position}&page="); switch ($top) { case '1': $top1 = "selected='selected'"; break; case '0': $top2 = "selected='selected'"; break; default: $top0 = "selected='selected'"; break; } switch ($displaytype) { case '1': $displaytype1 = "selected='selected'"; break;
$htmname = "job" . $list[id]; break; } $htmname = ($list[filename] != "" and $metadmin[pagename]) ? $list[filename] : $htmname; } $phpname = "showjob.php?" . $langmark . "&id=" . $list[id]; $panyid = $list['filename'] != '' ? $list['filename'] : $list['id']; $list[url] = $met_pseudo ? $panyid . '-' . $lang . '.html' : ($met_webhtm ? $htmname . $met_htmtype : $phpname); $list[cv] = $met_pseudo ? 'jobcv-' . $panyid . '-' . $lang . '.html' : $cv['url'] . $list['id']; $job_list[] = $list; } if ($met_webhtm == 2) { $met_pagelist = (($metadmin[pagename] and $class_list[$class1][filename] != "") ? $class_list[$class1][filename] : "job") . "_" . $class1 . "_"; $met_pagelist = $class_list[$class1]['filename'] != '' ? $class_list[$class1]['filename'] . '_' : $met_pagelist; $met_ahtmtype = $class_list[$class1]['filename'] != '' ? $met_chtmtype : $met_htmtype; $page_list = $rowset->link($met_pagelist, $met_ahtmtype); } else { $pagemor = ($metadmin['pagename'] and $class_list[$class1]['filename'] != "") ? 'list-' . $class_list[$class1]['filename'] . '-' : 'list-' . $class1 . '-'; $hz = '-' . $lang . '.html'; $page_list = $met_pseudo ? $rowset->link($pagemor, $hz) : $rowset->link("job.php?lang={$lang}&page="); } $class2 = $class_list[$class1][releclass] ? $class1 : $class2; $class1 = $class_list[$class1][releclass] ? $class_list[$class1][releclass] : $class1; $class_info = $class2 ? $class2_info : $class1_info; if ($class2 != "") { $class_info[name] = $class2_info[name] . "-" . $class1_info[name]; } $show[description] = $class_info[description] ? $class_info[description] : $met_description; $show[keywords] = $class_info[keywords] ? $class_info[keywords] : $met_keywords; $met_title = $met_title ? $class_info['name'] . '-' . $met_title : $class_info['name']; if ($class_info['ctitle'] != '') {
$rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $query = "SELECT * FROM {$met_job} where lang='{$lang}'"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $job_list[$list[id]] = $list[position]; } $query = "SELECT id,jobid,addtime,customerid,readok FROM {$met_cv} {$serch_sql} order by addtime desc LIMIT {$from_record}, {$list_num}"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $list['customerid'] = $list['customerid'] == '0' ? $lang_anonymity : $list['customerid']; $list[position] = isset($job_list[$list[jobid]]) ? $job_list[$list[jobid]] : "<font color=red>{$lang_cvTip4}</font>"; $list[readok] = $list[readok] ? $lang_yes : $lang_no; $cv_list[] = $list; } $page_list = $rowset->link("cv.php?lang={$lang}&search={$search}&readok={$readok}&position={$position}&jobid={$jobid}&customerid={$customerid}&page="); switch ($readok) { case '1': $readok1 = "selected='selected'"; break; case '0': $readok2 = "selected='selected'"; break; default: $readok0 = "selected='selected'"; break; } $m_list = $db->get_one("SELECT * FROM {$met_column} WHERE module='6' and lang='{$lang}'"); $class1 = $m_list['id']; $listclass = ''; $listclass[2] = 'class="now"';
$from_record = $rowset->_offset(); $query = "SELECT * FROM {$met_skin_table} where devices='0' order BY id LIMIT {$from_record}, {$list_num}"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $cssfile = "../../templates/" . $list[skin_file] . "/images/css/css.inc.php"; if (file_exists($cssfile)) { require_once $cssfile; $list[cssname] = $cssnum; } else { $list[cssname][0] = array($lang_setskinDefault, 'metinfo.css'); } $skin_list[] = $list; $cssnumnow[$list['id']] = $list['cssname']; unset($cssnum); } $page_list = $rowset->link("skin_manager.php?anyid=" . $anyid . "&lang=" . $lang . "&page="); $scriptcss = "<script language = 'JavaScript'>\n"; $scriptcss .= "var onecount;\n"; $scriptcss .= "subcat = new Array();\n"; $i = 0; foreach ($skin_list as $key => $val) { for ($j = 0; $j < count($val[cssname]); $j++) { $scriptcss .= "subcat[" . $i . "] = new Array('" . $val[skin_file] . "','" . $val[cssname][$j][0] . "','" . $val[cssname][$j][1] . "');\n"; $i++; } } $skin_list_temp = $skin_list; $skin_list = ''; foreach ($skin_list_temp as $key => $val) { if ($met_skin_user == $val[skin_file]) { $skin_list[] = $val;
break; default: $list['access'] = $lang_access0; break; } } $list[readok] = $list[readok] ? $lang_yes : $lang_no; $message_list[] = $list; } $messagesName1 = $db->get_one("select * from {$met_config} where name='met_message_fd_class' and lang='{$lang}'"); $messagesName2 = $db->get_one("select * from {$met_config} where name='met_message_fd_sms' and lang='{$lang}'"); $messagesName3 = $db->get_one("select * from {$met_config} where name='met_message_fd_email' and lang='{$lang}'"); $query = "SELECT * FROM {$met_message} {$serch_sql} {$order_sql} LIMIT {$from_record}, {$list_num}"; $result1 = $db->query($query); while ($list1 = $db->fetch_array($result1)) { for ($i = 1; $i < 4; $i++) { $messagesName = 'messagesName' . $i; $messagesName = ${$messagesName}; $query = "select * from {$met_mlist} where paraid={$messagesName['value']} and listid='{$list1['id']}' and lang='{$lang}' order by listid desc"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $messagesNames[$i][] = $list; } } } $page_list = $rowset->link("index.php?anyid={$anyid}&search={$search}&readok={$readok}&useinfo={$useinfo}&lang={$lang}&class1={$class1}&page="); $listclass[1] = 'class="now"'; $css_url = $depth . "../templates/css"; $img_url = $depth . "../templates/images"; include template('content/message/message'); footer();
$query .= " UNION SELECT id,title,class1,class2,class3,updatetime,recycle FROM {$met_img} {$serch_sql} and recycle=5"; $query .= " ORDER BY updatetime DESC LIMIT {$from_record}, {$list_num}"; } else { $table = moduledb($module); $total_count = $db->counter($table, "{$serch_sql} and recycle={$module}", "*"); require_once 'include/pager.class.php'; $page = (int) $page; if ($page_input) { $page = $page_input; } $list_num = 16; $rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $query = "SELECT id,title,class1,class2,class3,updatetime,recycle FROM {$table} {$serch_sql} and recycle={$module} ORDER BY updatetime DESC LIMIT {$from_record}, {$list_num}"; } $result = $db->query($query); while ($list = $db->fetch_array($result)) { $recycle_list[] = $list; } $query = "select * from {$met_column} where module>=2 and module<=5 and lang='{$lang}'"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $c_list[$list['id']] = $list; } $page_list = $rowset->link("index.php?anyid={$anyid}&title_search={$title_search}&module={$module}&search={$search}&lang={$lang}&page="); $css_url = $depth . "../templates/" . $met_skin . "/css"; $img_url = $depth . "../templates/" . $met_skin . "/images"; include template('content/recycle/recycle'); footer(); # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
} require_once 'include/pager.class.php'; $page = (int) $page; if ($page_input) { $page = $page_input; } $list_num = 16; $rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $query = "SELECT * FROM {$met_admin_array} {$serch_sql} ORDER BY user_webpower DESC LIMIT {$from_record}, {$list_num}"; $result = $db->query($query); $admin_list = array(); while ($list = $db->fetch_array($result)) { $admin_list[] = $list; } $page_list = $rowset->link("array.php?array_name={$array_name}&search={$search}&lang={$lang}&anyid={$anyid}&page="); switch ($usertype) { case '1': $user1 = "selected='selected'"; break; case '2': $user2 = "selected='selected'"; break; default: $user0 = "selected='selected'"; break; } $css_url = "../templates/" . $met_skin . "/css"; $img_url = "../templates/" . $met_skin . "/images"; include template('member/member_array'); footer();
$cname = ','; for ($i = 0; $i < count($lmod); $i++) { if ($lmod[$i] != '') { if ($lmod[$i] == 10001) { $cname .= $lang_htmHome . ','; } else { $columnids = $db->get_one("select * from {$met_column} where id='{$lmod[$i]}' and lang='{$lang}'"); $cname .= $columnids[name] . ','; } } } $list['modulename'] = $cname; } $flashrec[] = $list; } $page_list = $rowset->link("flash.php?lang={$lang}&kuaijieskin={$kuaijieskin}&page="); $query1 = "select * from {$met_column} where if_in='0' and lang='{$lang}' order by no_order"; $result1 = $db->query($query1); $mod1[0] = $mod[10001] = array(id => 10001, name => "{$lang_flashHome}", bigclass => 0); $i = 1; while ($list = $db->fetch_array($result1)) { if ($list[classtype] == 1) { $mod1[$i] = $list; $i++; } if ($list[classtype] == 2) { $mod2[$list[bigclass]][] = $list; } if ($list[classtype] == 3) { $mod3[$list[bigclass]][] = $list; }
if ($page_input) { $page = $page_input; } $list_num = $met_search_list; $rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $page = $page ? $page : 1; $query = "SELECT * FROM {$table_name} {$serch_sql} {$order_sql} LIMIT {$from_record}, {$list_num}"; $result = $db->query($query); $pagename = $modulename[$module_name][0]; while ($list = $db->fetch_array($result)) { $filename = $navurl . $class_list[$list[class1]][foldername]; $filenamenow = $met_htmpagename == 2 ? $class_list[$list[class1]][foldername] : ($met_htmpagename ? date('Ymd', strtotime($list[addtime])) : $modulename[$module_name][1]); require 'searchlist.php'; } $page_list = $rowset->link("../search/search.php?lang={$lang}&class1={$class1}&class2={$class2}&class3={$class3}&searchword={$searchword}&searchtype={$searchtype}&page="); $class1_info = $class1 ? $class_list[$class1] : ""; $class2_info = $class2 ? $class_list[$class2] : ""; $class3_info = $class3 ? $class_list[$class3] : ""; $class_info = intval($module) ? $class_list[$search_column[id]] : ($class3 ? $class3_info : ($class2 ? $class2_info : $class1_info)); foreach ($search_list as $key => $value) { if ($value[name]) { $value[title] = $value[name]; } $value['content'] = html_entity_decode(strip_tags($value['content']), ENT_QUOTES, 'UTF-8'); $value[title] = get_keyword_str($value[title], $searchword, 50, $searchtype, 1); $value[content] = get_keyword_str($value[content], $searchword, 75, $searchtype); $top_ok[$key] = $value['top_ok']; $com_ok[$key] = $value['com_ok']; $updatetime[$key] = $value['updatetime']; $search_list_1[] = $value;
case 'qq': $metinfo = $lang_statbrowser3; break; case 'tt': $metinfo = $lang_statbrowser4; break; case 'theworld': $metinfo = $lang_statbrowser5; break; case 'chrome': $metinfo = $lang_statbrowser6; break; default: $metinfo = $browser; break; } return $metinfo; } function ipdizhi($ip) { global $met_file; $met_file = '/ipku.php'; $post = array('ip' => $ip); $metinfo = curl_post($post, 30); return $metinfo; } $page_list = $rowset->link("details.php?lang={$lang}&anyid={$anyid}&st={$st}&et={$et}&cs={$cs}&setip={$setip}&page="); include template('app/stat/details'); footer(); # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
} else { $total_count = $db->counter($met_sms, "{$serch_sql}", "*"); } require_once 'include/pager.class.php'; $page = (int) $page; if ($page_input) { $page = $page_input; } $list_num = 20; $rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $query = "SELECT * FROM {$met_sms} {$serch_sql} order by time desc LIMIT {$from_record}, {$list_num}"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $list['text'] = utf8substr($list['content'], 0, 15); $total_tels = explode(',', $list['tel']); $telsnum = count($total_tels); $list['telnum'] = $telsnum; $list['teltext'] = utf8substr($list['tel'], 0, 11); $list['type'] = sedsmstype($list['type']); $list['time'] = date('Y-m-d H:i:s', $list['time']); $list['remark'] = sedsmserrtype($list['remark'], 1); $record_list[] = $list; } $page_list = $rowset->link("smsnotes.php?anyid={$anyid}&lang={$lang}¬es_type={$notes_type}&page="); $css_url = $depth . "../templates/" . $met_skin . "/css"; $img_url = $depth . "../templates/" . $met_skin . "/images"; include template('app/sms/smsnotes'); footer(); # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
$metdir = new myDIR(); $metdir->setMASK("*.gif,*.txt,*.jpg*,*.rar*,*.jpeg*,*.doc*,*.pdf*,*.bmp*,*.png*,*.tif*,*.psd*,*.swf*,*.swf*"); $metdir->setFIND("files"); $metdir->setROOT('../../' . $metnowdir); $metfile = $metdir->getRESULT(); $total_count = count($metfile); foreach ($metfile as $key => $val) { if (!preg_match('/((\\.gif)|(\\.txt)|(\\.jpg)|(\\.rar)|(\\.jpeg)|(\\.doc)|(\\.pdf)|(\\.bmp)|(\\.png)|(\\.tif)|(\\.psd)|(\\.swf))$/', $val['file'])) { unset($metfile[$key]); } } require_once 'include/pager.class.php'; $page = (int) $page; if ($page_input) { $page = $page_input; } $list_num = 11; $rowset = new Pager($total_count, $list_num, $page); $page = $page ? $page : 1; $startnum = ($page - 1) * $list_num; $endnum = $page * $list_num; $page_list = $rowset->link("uploadfile.php?anyid={$anyid}&lang={$lang}&fileurl={$fileurl2}&file_classnow={$file_classnow}&cs={$cs}&page="); $cs = isset($cs) ? $cs : 1; $listclass[$cs] = 'class="now"'; $css_url = "../templates/" . $met_skin . "/css"; $img_url = "../templates/" . $met_skin . "/images"; include template('system/uploadfile'); footer(); } # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
foreach ($domain as $key => $val) { $yqnum .= $key . '$' . $val['pv'] . '|'; } $visit = $domain; break; } /*分页*/ $total_count = count($visit); $list_num = 15; require_once $depth . '../include/pager.class.php'; $page = (int) $page; if ($page_input) { $page = $page_input; } $rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $i = 0; foreach ($visit as $key => $val) { $i++; $maxl = $from_record + $list_num; if ($i > $from_record and $i <= $maxl) { $val['order'] = $i; $newvisit[$key] = $val; } } if ($total_count > $list_num) { $page_list = $rowset->link("source.php?lang={$lang}&anyid={$anyid}&st={$st}&et={$et}&cs={$cs}&field={$field}&labtype={$labtype}&page="); } $visit = $newvisit; include template('app/stat/source'); footer();
if (!$skin_m) { okinfox('strcontent.php?lang=' . $lang, $lang_dataerror); } $query = "delete from {$met_label} where id='{$id}'"; $db->query($query); file_unlink("../../cache/str_{$lang}.inc.php"); metsave('../seo/strcontent.php?lang=' . $lang . '&anyid=' . $anyid); } } else { $total_count = $db->counter($met_label, " where lang='{$lang}'", "*"); require_once 'include/pager.class.php'; $page = (int) $page; if ($page_input) { $page = $page_input; } $list_num = 16; $rowset = new Pager($total_count, $list_num, $page); $from_record = $rowset->_offset(); $query = "SELECT * FROM {$met_label} where lang='{$lang}' order BY id LIMIT {$from_record}, {$list_num}"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $skin_list[] = $list; } $page_list = $rowset->link("strcontent.php?anyid={$anyid}&lang={$lang}&page="); $css_url = "../templates/" . $met_skin . "/css"; $img_url = "../templates/" . $met_skin . "/images"; include template('seo/label'); footer(); } # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.