*
* @author 风卷残云,
* @copyright Copyright (c) 闲情网站, 2004-2005
* @since ~
*/
/*+++++++++++++++++++++++++
* Copyright (c) 2004,闲情网站
* All rights reserved
*
* 系统名称:闲情音乐
* 文件名称:diary.php
* 文件标识:见配置管理计划书
* 功 能:
* 摘 要:
*
* 当前版本:1.0
* 作 者:风卷残云
* 作者主页:http://freeday.512j.com
* 作者邮箱:bighuang@126.com
* 作者 QQ:121173553
* 完成日期:2005年4月3日
*
* 取代版本:1.0
* 原 作 者:风卷残云
* 完成日期:2005年4月3日
+++++++++++++++++++++++++*/
include "config/dbclass.php";
include "include/FreeDayCodeChange.php";
$my = new mydb();
$my->c_all($db_host,$db_user,$db_psw,$db_table);
//require("include/sess.php");
$my = new mydb();
$my->c_all($db_host,$db_user,$db_psw,$db_table);
require("include/header.php");
require("config/Smarty_Freeday.php");
$smarty = new Smarty_Freeday;
$query = "select count(*) from fd_music order by MC_id desc";
$res =$my->query($query);
$total = $my->fetch_arr($res);
$total = $total[0];
$queryN = "select * from fd_music order by MC_id desc";
$result =$my->query($queryN);
$i = "0";
$j = "1";
$musicArr = array();
if ($result)
{
while ($n = $my->fetch_arr($result))
{
$i ++;
$musicItem[$j-1][name] = $n[MC_name];
$musicItem[$j-1][songer] = $n[MC_songer];
$musicItem[$j-1][url] = $n[MC_url];
$j ++;
if($i==$total && $j%5!=0)
{
$musicArr[] = $musicItem;
}
if($j%5 == 0)
{
$musicArr[] = $musicItem;
$musicItem = "";
$j = "1";
}
}
}
else
{
echo "
}
$smarty->assign('total',$total);
$smarty->assign('musicArr',$musicArr);
$my->close();
$smarty->display('music.htm');
require("include/footer.php");
exit();
?>
tr>
td height="25" class="tdbc">总共有歌曲font color="#FF0000">$total}>font>首
tr>
tr>
td width="768" class="line">
tr>
tr>
td>
table>
section name=secF loop=$musicArr}>
tr>
section name=secS loop=$musicArr[secF]}>
td>
IMG src="images/11.gif" width=12>A title="" onclick="window.open(this.href,'','top=0,left=0,width=550,height=370,scrollbars=yes,resizable=no');return false;" href="http://freeday.512j.com/old/wj/sp.php?path=" target=_blank>$musicArr[secF][secS].name}>《$musicArr[secF][secS].songer}>》A>
td>
section}>
table>
td>
tr>
tr>
td width="768" class="line">td>
tr>
table>
<font size="2"><font face="verdana,arial,helvetica">代码:</font><hr></font><code><font color="#000000"><font color="#0000bb"><br></font><font color="#007700"><font color="#0000bb">table border</font><font color="#007700">=</font><font color="#dd0000">"1" </font><font color="#0000bb">width</font><font color="#007700">=</font><font color="#dd0000">"599" </font><font color="#0000bb">cellpadding</font><font color="#007700">=</font><font color="#dd0000">"0" </font><font color="#0000bb">cellspacing</font><font color="#007700">=</font><font color="#dd0000">"0" </font><font color="#0000bb">align</font><font color="#007700">=</font><font color="#dd0000">"center"</font><font color="#007700">><br> <font color="#0000bb">tr</font><font color="#007700">><br> <font color="#0000bb">section name</font><font color="#007700">=</font><font color="#0000bb">mydata loop</font><font color="#007700">=</font><font color="#0000bb">$news</font><font color="#007700">}><br> <font color="#0000bb">td width</font><font color="#007700">=</font><font color="#dd0000">"69%" </font><font color="#0000bb">align</font><font color="#007700">=</font><font color="#dd0000">"center"</font><font color="#007700">><br> <font color="#0000bb">a href</font><font color="#007700">=</font><font color="#dd0000">"#?id="</font><font color="#007700">><font color="#0000bb">$news</font><font color="#007700">[</font><font color="#0000bb">mydata</font><font color="#007700">].</font><font color="#0000bb">news_title</font><font color="#007700">}></font><font color="#0000bb">a</font><font color="#007700">><br> </font><font color="#0000bb">td</font><font color="#007700">><br> <font color="#0000bb">$smarty</font><font color="#007700">.</font><font color="#0000bb">section</font><font color="#007700">.</font><font color="#0000bb">mydata</font><font color="#007700">.</font><font color="#0000bb">rownum is div by 3</font><font color="#007700">}><br> </font><font color="#0000bb">tr</font><font color="#007700">><br> <font color="#0000bb">tr</font><font color="#007700">><br> <br> <font color="#0000bb">section</font><font color="#007700">}><br> </font><font color="#0000bb">tr</font><font color="#007700">><br></font><font color="#0000bb">table</font><font color="#007700">><br></font><font color="#0000bb"></font></font></font></font></font></font></font></font></font></font></font></code><hr>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

WebStorm Mac version
Useful JavaScript development tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version
SublimeText3 Linux latest version
