function help_content() { ?> <ul class="tabs"> <li><a href="#tab1">Redigera artiklar</a></li> <li><a href="#tab2">Lägg till ny artikel</a></li> <li><a href="#tab3">Hantera ordning av artiklar</a></li> </ul> <div id="tab1"> <table class="smalltable"> <tr> <td>Ordning</td> <td>Titel</td> <td>Ändra</td> <td>Ta bort</td> </tr> <?php listArticle(); ?> </table> </div> <div id="tab2"> <?php addNewarticle(); ?> </div> <div id="tab3"> <table class="smalltable"> <tr> <td>Nuvarande<br />ordningsvärde</td> <td>Titel</td> <td>Ändra till</td> </tr> <?php printOrderchange(); ?> </table> </div> <?php }
// same title as admin menu // echo "<div><h4>"._AM_CAREORDER."</h4></div>"; echo "<div><h4>"._AM_WEIGHTMANAGE."</h4></div>"; // add adminmenu flag // adminmenu(); if ($wfsAdminMenu) adminmenu(); if (empty($category)) { echo "<div><h4>"._AM_CAREORDER2."</h4></div>"; echo ""._AM_CATREORDERTEXT.""; listcategory($listtype); } else { echo "<div><h4>"._AM_CAREORDER3."</h4></div>"; // bug fix : can't display ten or more articles // listArticle($category, $start, 10); // $articlecount = WfsArticle::countByCategory($catid); $articlecount = WfsArticle::countByCategory($category); listArticle($category, $start, $articlecount); } wfsfooter(); xoops_cp_footer(); } ?>
if (isset($_GET['start']) && is_numeric($_GET['start'])) { $start = $_GET['start']; } else { $start = 0; } if (isset($_GET['orderby'])) { $orderby = convertorderbyin($_GET['orderby']); } else { // -- Skalpack2 [start] //$orderby = 'title ASC']; $orderby = $wfsConfig['aidxorder']; // -- Skalpack2 [/end] } $listtype = $wfsConfig['toppagetype']; if (isset($_GET['listtype'])) $listtype = intval($_GET['listtype']); include '../../header.php'; if (empty($category)) { listcategory($listtype); } else { listArticle($category, $start, $wfsConfig['articlesapage']); } include_once 'footer.php'; ?>
echo "<br />"; } global $xoopsModule, $xoopsUser, $xoopsDB, $myts, $wfsConfig, $HTTP_GET_VARS; if (isset($HTTP_GET_VARS['category']) && ereg("^[0-9]{1,}\$", $HTTP_GET_VARS['category'])) { $category = $HTTP_GET_VARS['category']; } else { $category = 0; } if (isset($HTTP_GET_VARS['start']) && is_numeric($HTTP_GET_VARS['start'])) { $start = $HTTP_GET_VARS['start']; } else { $start = 0; } $orderby = 'weight'; $listtype = 0; if (isset($HTTP_GET_VARS['listtype'])) { $listtype = intval($HTTP_GET_VARS['listtype']); } echo "<div><h4>" . _AM_CAREORDER . "</h4></div>"; adminmenu(); if (empty($category)) { echo "<div><h4>" . _AM_CAREORDER2 . "</h4></div>"; echo "" . _AM_CATREORDERTEXT . ""; listcategory($listtype); } else { echo "<div><h4>" . _AM_CAREORDER3 . "</h4></div>"; listArticle($category, $start, 10); } wfsfooter(); xoops_cp_footer(); }
// bug fix : A title character carries out transformation //http://jp.xoops.org/modules/newbb/viewtopic.php?topic_id=2066&forum=11&viewmode=flat&order=ASC&start=10 //$xoopsTpl->assign('xoops_pagetitle', htmlentities($xoopsModule->name() . ' - ' . $article->title())); $xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').'-'.$article->title().''); if ($wfsConfig['comments']) { include XOOPS_ROOT_PATH.'/include/comment_view.php'; } // add else block } ELSE { include '../../header.php'; listArticle($match_array); } include(XOOPS_ROOT_PATH."/footer.php"); exit; // add this function function searchArticleByTitle($title, $limit=20) { $match_array = array(); $start = 0; $catid = ''; // all category $sarray = WfsArticle::searchByTitle($title,$limit,$start,$catid);