示例#1
0
function listcategory($listtype = 0)
{
    global $xoopsDB, $xoopsConfig, $xoopsModule, $myts, $wfsConfig;
    echo "<table border='0' cellspacing='1' cellpadding ='3' align = center width = 100%>";
    echo "<tr><td align = center><h4>" . indexmainheader() . "</h4></td></tr>";
    echo "<tr><td align = center><h3>" . sprintf($wfsConfig['indexheading']) . "</h3></td></tr>";
    echo "<tr><td align = center><h4>" . _WFS_MAININDEX . "</h4></td></tr>";
    if ($wfsConfig['indexheader']) {
        echo "<tr><td align= 'left'>" . $myts->makeTareaData4Show($wfsConfig['indexheader']) . "</td></tr>";
    }
    echo "</table><br>";
    echo "<table border='0' cellspacing='1' cellpadding ='3' class='outer' width = 100%>";
    echo "<tr><td align='left' width ='15%' class='itemHead'><b>" . _WFS_CATEGORY . "</b></td>";
    echo "<td align='left' class='itemHead'><b>" . _WFS_CATEGORYDESC . "</b></td>";
    if ($wfsConfig['showMarticles']) {
        echo "<td align='center' class='itemHead' width ='20%'><b>" . _WFS_ARTICLES . "</b></td>";
    }
    if ($wfsConfig['showMupdated']) {
        echo "<td align='center' class='itemHead'><b>" . _WFS_LASTUPDATE . "</b></td>";
    }
    $xt = new WfsCategory();
    $maintopics = $xt->getFirstChild();
    $deps = 0;
    $listtype = intval($listtype);
    showcategory($maintopics, 0, $listtype);
    echo "</table>";
    echo "<table border='0' cellspacing='1' ><tr>";
    if ($wfsConfig['indexheader']) {
        echo "<tr><br><td align='left'>" . $myts->makeTareaData4Show($wfsConfig['indexfooter'], 1, 1, 1) . "</td>";
    }
    echo "</tr></table>";
}
示例#2
0
 function listcategory($listtype = 0)
 {
     global $xoopsDB, $xoopsConfig, $xoopsModule;
     $orders = array();
     $cat = array();
     echo "<form name='reorder' METHOD='post'>";
     echo "<table border='0' width='100%' cellpadding = '2' cellspacing ='1' class = 'outer'>";
     echo "<tr class = bg3>";
     echo "<td align='center' width=3% height =16 ><b>" . _AM_REORDERID . "</b>";
     echo "</td><td align='center' width=3%><b>" . _AM_REORDERPID . "</b>";
     echo "</td><td align='left' width=30%><b>" . _AM_REORDERTITLE . "</b>";
     echo "</td><td align='left'><b>" . _AM_REORDERDESCRIPT . "</b>";
     echo "</td><td align='center' width=5%><b>" . _AM_REORDERWEIGHT . "</b>";
     echo "</td></tr>";
     $xt = new WfsCategory();
     $maintopics = $xt->getFirstChild();
     $deps = 0;
     $listtype = intval($listtype);
     showcategory($maintopics, 0, $listtype);
     echo "<tr><td class='foot' align='center' colspan='6'>\n\t\t<input type='hidden' name='op' value=reorder />\n\t\t<input type='submit' name='submit' value='" . _SUBMIT . "' />\n\t\t\n\t\t</td></tr>";
     echo "</table>";
     echo "</form>";
 }