📄 artlist.php
字号:
<?PHP
error_reporting(7);
if ($HTTP_GET_VARS['HTTP_POST_VARS']['action'] == $HTTP_POST_VARS['action']) {
unset($HTTP_POST_VARS['action']);
}
$HTTP_POST_VARS['action'] = trim($HTTP_POST_VARS['action']);
if ($HTTP_POST_VARS['action']) {
$action = $HTTP_POST_VARS['action'];
} else if ($HTTP_GET_VARS['action']) {
$action = $HTTP_GET_VARS['action'];
}
if ($HTTP_GET_VARS['HTTP_POST_VARS']['id'] == $HTTP_POST_VARS['id']) {
unset($HTTP_POST_VARS['id']);
}
$HTTP_POST_VARS['id'] = intval(trim($HTTP_POST_VARS['id']));
unset($classid);
if ($HTTP_POST_VARS['id']) {
$classid = intval($HTTP_POST_VARS['id']);
} else if ($HTTP_GET_VARS['id']) {
$classid = intval($HTTP_GET_VARS['id']);
}
if ((!isset($action) or $action=="")) {
$action="list";
}
$templatesused = '';
// ############################### 歌手列表 ###############################
if ($action=="list") {
$templatesused = 'artlist,artlist_lists,artlist_changeline,artlist_titlebar,artlist_nolist';
include("./global.php");
unset($query);
if ($classid=="") {
$query = "FROM ".$table["class"]." LEFT JOIN ".$table["nclass"]." ON
".$table["class"].".ClassID=".$table["nclass"].".ClassID
WHERE ".$table["nclass"].".ClassID=1 ";
} else {
$query = "FROM ".$table["sclass"]." LEFT JOIN ".$table["nclass"]." ON
".$table["sclass"].".SClassID=".$table["nclass"].".SClassID
WHERE ".$table["nclass"].".SClassID=".$classid." ";
}
$arts = $DB_site->query("SELECT *
".$query."
ORDER BY NameCode ASC");
$i = 0;
$titlechar = "";
if ($art=$DB_site->fetch_array($arts)) {
if ($classid=="") {
$classname = $art['ClassName'];
} else {
$classname = $art['SClassName'];
}
$titlechar = $art['NameCode'];
eval("\$listarts = \"".gettemplate("artlist_titlebar")."\";");
$i++;
$artid = $art['NClassID'];
$artname = $art['NClassName'];
eval("\$listarts .= \"".gettemplate("artlist_lists")."\";");
while ($art=$DB_site->fetch_array($arts)) {
if ($titlechar!=$art['NameCode']) {
$titlechar = $art['NameCode'];
eval("\$listarts .= \"".gettemplate("artlist_titlebar")."\";");
$i = 0;
}
$i++;
$artid = $art['NClassID'];
$artname = $art['NClassName'];
eval("\$listarts .= \"".gettemplate("artlist_lists")."\";");
if (($i%$numOfArtLine)==0) {
eval("\$listarts .= \"".gettemplate("artlist_changeline")."\";");
}
}
} else {
eval("\$listarts = \"".gettemplate("artlist_nolist")."\";");
}
$DB_site->free_result($arts);
eval("dooutput(\"".gettemplate("artlist")."\");");
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -