From: <w4...@us...> - 2002-09-26 01:02:17
|
Update of /cvsroot/xoops/xoops-current/html/modules/mydownloads In directory usw-pr-cvs1:/tmp/cvs-serv9663/html/modules/mydownloads Modified Files: singlefile.php viewcat.php Log Message: no comment Index: singlefile.php =================================================================== RCS file: /cvsroot/xoops/xoops-current/html/modules/mydownloads/singlefile.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** singlefile.php 15 Jul 2002 08:13:18 -0000 1.1.1.1 --- singlefile.php 26 Sep 2002 01:02:15 -0000 1.2 *************** *** 39,44 **** $result=$xoopsDB->query($q); list($lid, $cid, $title, $url, $homepage, $version, $size, $platform, $logourl, $status, $time, $hits, $rating, $votes, $comments, $description)=$xoopsDB->fetchRow($result); ! echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" border=\"0\"><tr><td align=\"center\">\n"; ! echo "<table width=\"100%\" cellspacing=\"2\" cellpadding=\"2\" border=\"0\" bgcolor=\"cccccc\"><tr><td>\n"; $pathstring = "<a href=index.php>"._MD_MAIN."</a> : "; $nicepath = $mytree->getNicePathFromId($cid, "title", "viewcat.php?op="); --- 39,44 ---- $result=$xoopsDB->query($q); list($lid, $cid, $title, $url, $homepage, $version, $size, $platform, $logourl, $status, $time, $hits, $rating, $votes, $comments, $description)=$xoopsDB->fetchRow($result); ! echo "<table width='100%' cellspacing='0' cellpadding='3' border='0'><tr><td align='left'>\n"; ! echo "<table width='100%' cellspacing='2' cellpadding='2' border='0' bgcolor='cccccc'><tr><td>\n"; $pathstring = "<a href=index.php>"._MD_MAIN."</a> : "; $nicepath = $mytree->getNicePathFromId($cid, "title", "viewcat.php?op="); *************** *** 46,50 **** echo "<b>".$pathstring."</b>"; echo "</td></tr></table><br>"; ! echo "<table width=\"100%\" cellspacing=0 cellpadding=10 border=0>"; $rating = number_format($rating, 2); --- 46,50 ---- echo "<b>".$pathstring."</b>"; echo "</td></tr></table><br>"; ! echo "<table width='100%' cellspacing=0 cellpadding=10 border=0>"; $rating = number_format($rating, 2); *************** *** 61,69 **** $description = $myts->makeTareaData4Show($description,0); include("include/dlformat.php"); ! echo "</td></tr></table>\n"; echo "</td></tr></table>\n"; CloseTable(); ! include("footer.php"); --- 61,69 ---- $description = $myts->makeTareaData4Show($description,0); include("include/dlformat.php"); ! echo "</td></tr></table>\n"; echo "</td></tr></table>\n"; CloseTable(); ! include("footer.php"); Index: viewcat.php =================================================================== RCS file: /cvsroot/xoops/xoops-current/html/modules/mydownloads/viewcat.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** viewcat.php 15 Jul 2002 08:13:18 -0000 1.1.1.1 --- viewcat.php 26 Sep 2002 01:02:15 -0000 1.2 *************** *** 53,57 **** ! echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td align='center'>\n"; echo "<table width='100%' cellspacing='1' cellpadding='2' border='0' class='bg3'><tr><td>\n"; $pathstring = "<a href='index.php'>"._MD_MAIN."</a> : "; --- 53,57 ---- ! echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td align='left'>\n"; echo "<table width='100%' cellspacing='1' cellpadding='2' border='0' class='bg3'><tr><td>\n"; $pathstring = "<a href='index.php'>"._MD_MAIN."</a> : "; *************** *** 67,74 **** echo "</td></tr>"; echo "<tr><td align='left'><h4>"._MD_CATEGORIES."</h4></td></tr>\n"; ! echo "<tr><td align='center'>"; $scount = 0; echo "<table width='90%'><tr>"; ! foreach($arr as $ele){ $title = $myts->makeTboxData4Show($ele['title']); --- 67,74 ---- echo "</td></tr>"; echo "<tr><td align='left'><h4>"._MD_CATEGORIES."</h4></td></tr>\n"; ! echo "<tr><td align='left'>"; $scount = 0; echo "<table width='90%'><tr>"; ! foreach($arr as $ele){ $title = $myts->makeTboxData4Show($ele['title']); *************** *** 86,94 **** $fullcountresult=$xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE cid=$cid AND status>0"); list($numrows) = $xoopsDB->fetchRow($fullcountresult); ! if($numrows>0){ $q = "SELECT d.lid, d.title, d.url, d.homepage, d.version, d.size, d.platform, d.logourl, d.status, d.date, d.hits, d.rating, d.votes, d.comments, t.description FROM ".$xoopsDB->prefix("mydownloads_downloads")." d, ".$xoopsDB->prefix("mydownloads_text")." t WHERE cid=".$cid." AND d.status>0 AND d.lid=t.lid ORDER BY ".$orderby.""; $result = $xoopsDB->query($q,$show,$min); ! //if 2 or more items in result, show the sort menu if($numrows>1){ --- 86,94 ---- $fullcountresult=$xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE cid=$cid AND status>0"); list($numrows) = $xoopsDB->fetchRow($fullcountresult); ! if($numrows>0){ $q = "SELECT d.lid, d.title, d.url, d.homepage, d.version, d.size, d.platform, d.logourl, d.status, d.date, d.hits, d.rating, d.votes, d.comments, t.description FROM ".$xoopsDB->prefix("mydownloads_downloads")." d, ".$xoopsDB->prefix("mydownloads_text")." t WHERE cid=".$cid." AND d.status>0 AND d.lid=t.lid ORDER BY ".$orderby.""; $result = $xoopsDB->query($q,$show,$min); ! //if 2 or more items in result, show the sort menu if($numrows>1){ *************** *** 151,156 **** } } ! ! } echo "</td></tr></table>\n"; CloseTable(); --- 151,156 ---- } } ! ! } echo "</td></tr></table>\n"; CloseTable(); |