query ( "select itemid from tz where tzid=" . $tzid ); while ( $row = $db->getarray ( $res ) ) { $itemid [] = $row ['itemid']; } $tzhtml = ''; foreach ( $itemid as $itid ) { $itrow = $db->getfirst ( "select icon_name from item where id=" . $itid ); $icon_name = $itrow ['icon_name']; $tzhtml .= '
'; } return $tzhtml; } $q_arr = array (1 => 'common', 2 => 'rare', 3 => 'legend', 4 => 'unique' ); if ($c) { $where = ' type_id=' . $c; } if (isset ( $where )) { if ($z) $where .= ' and quality="' . $q_arr [$z] . '"'; } else { if ($z) $where .= ' quality="' . $q_arr [$z] . '"'; } if (isset ( $where )) { if ($n) $where .= ' and tzname like "%' . $n . '%"'; } else { if ($n) $where .= ' tzname like "%' . $n . '%"'; } if (isset ( $where )) { if ($i != '') $where .= ' and level >= ' . $i . ''; } else { if ($i != '') $where .= ' level >= ' . $i . ''; } if (isset ( $where )) { if ($i2 != '') $where .= ' and level <= ' . $i2 . ''; } else { if ($i2 != '') $where .= ' level <= ' . $i2 . ''; } $perpage = 20; $page = intval ( postget ( 'page' ) ); ($page < 1) ? $page = 1 : ''; if ($page > 15) $page = 15; $start = ($page - 1) * $perpage; $url = "http://" . $_SERVER ['HTTP_HOST'] . $_SERVER ['REQUEST_URI']; $parse_url = parse_url ( $url ); $url_query = $parse_url ["query"]; if ($url_query) $curl = ereg_replace ( '[&?]z=[0-9]{1,2}', '', $url ); $curl = str_replace ( 'php&', 'php?', $curl ); $curl .= strpos ( $curl, '?' ) ? '&' : '?'; if ($url_query) $zurl = ereg_replace ( '[&?]c=[0-9]{1,2}', '', $url ); $zurl = str_replace ( 'php&', 'php?', $zurl ); $zurl .= strpos ( $zurl, '?' ) ? '&' : '?'; if ($where) { $where1 = ' where ' . $where; } else { $where1 = ''; } $count = $db->getcount ( "select distinct(tzid) from tz" . $where1 ); //取哪一些字段 $zd = array ('id', 'pid', 'count(distinct(tzname))', 'tzname', 'type_id', 'level', 'quality', 'tzid' ); //取表的数据 $plussql = ' group by tzname desc order by level desc LIMIT ' . $start . ',' . $perpage; $listarr = selecttable ( 'tz', $zd, $where, $plussql ); ?>
' . $z_arr [$z] . ''; ?>
套装
名称: 等级: 类型: 品质:  
-
一共有条记录
'; } ?>
名称 级别 部件 类型
' . $listvalue ['tzname'] . ' ' . $listvalue ['level'] . ' ' . findtz ( $listvalue ['tzid'] ) . ' ' . $c_2 [$listvalue ['type_id']] . '
一共有条记录