|
@@ 176-191 (lines=16) @@
|
| 173 |
|
. " AND datesub > 0 AND submit = '1' AND offline = '1' AND request = '0' ORDER BY term"); |
| 174 |
|
$totalSwords = $xoopsDB->getRowsNum($resultS); |
| 175 |
|
|
| 176 |
|
if ($totalSwords > 0) { // If there are definitions |
| 177 |
|
while (list($entryID, $term) = $xoopsDB->fetchRow($resultS)) { |
| 178 |
|
$subentries = array(); |
| 179 |
|
$xoopsModule = XoopsModule::getByDirname('lexikon'); |
| 180 |
|
$linktext = ucfirst($myts->htmlSpecialChars($term)); |
| 181 |
|
$subentries['linktext'] = $linktext; |
| 182 |
|
$subentries['id'] = $entryID; |
| 183 |
|
|
| 184 |
|
$blockS['substuff'][] = $subentries; |
| 185 |
|
} |
| 186 |
|
$xoopsTpl->assign('blockS', $blockS); |
| 187 |
|
$xoopsTpl->assign('wehavesubs', 1); |
| 188 |
|
} else { |
| 189 |
|
$xoopsTpl->assign('wehavesubs', 0); |
| 190 |
|
} |
| 191 |
|
|
| 192 |
|
$blockR = array(); |
| 193 |
|
$resultR = $xoopsDB->query('SELECT entryID, term FROM ' . $xoopsDB->prefix('lxentries') . ' WHERE datesub < ' . time() . " AND datesub > 0 AND request = '1' ORDER BY term"); |
| 194 |
|
$totalRwords = $xoopsDB->getRowsNum($resultR); |
|
@@ 196-211 (lines=16) @@
|
| 193 |
|
$resultR = $xoopsDB->query('SELECT entryID, term FROM ' . $xoopsDB->prefix('lxentries') . ' WHERE datesub < ' . time() . " AND datesub > 0 AND request = '1' ORDER BY term"); |
| 194 |
|
$totalRwords = $xoopsDB->getRowsNum($resultR); |
| 195 |
|
|
| 196 |
|
if ($totalRwords > 0) { // If there are definitions |
| 197 |
|
while (list($entryID, $term) = $xoopsDB->fetchRow($resultR)) { |
| 198 |
|
$reqentries = array(); |
| 199 |
|
$xoopsModule = XoopsModule::getByDirname('lexikon'); |
| 200 |
|
$linktext = ucfirst($myts->htmlSpecialChars($term)); |
| 201 |
|
$reqentries['linktext'] = $linktext; |
| 202 |
|
$reqentries['id'] = $entryID; |
| 203 |
|
|
| 204 |
|
$blockR['reqstuff'][] = $reqentries; |
| 205 |
|
} |
| 206 |
|
$xoopsTpl->assign('blockR', $blockR); |
| 207 |
|
$xoopsTpl->assign('wehavereqs', 1); |
| 208 |
|
} else { |
| 209 |
|
$xoopsTpl->assign('wehavereqs', 0); |
| 210 |
|
} |
| 211 |
|
} else { |
| 212 |
|
$xoopsTpl->assign('userisadmin', 0); |
| 213 |
|
$blockR = array(); |
| 214 |
|
$resultR = $xoopsDB->query('SELECT entryID, term FROM ' . $xoopsDB->prefix('lxentries') . ' WHERE datesub < ' . time() . " AND datesub > 0 AND request = '1' " . $catperms . ' ORDER BY term'); |
|
@@ 217-232 (lines=16) @@
|
| 214 |
|
$resultR = $xoopsDB->query('SELECT entryID, term FROM ' . $xoopsDB->prefix('lxentries') . ' WHERE datesub < ' . time() . " AND datesub > 0 AND request = '1' " . $catperms . ' ORDER BY term'); |
| 215 |
|
$totalRwords = $xoopsDB->getRowsNum($resultR); |
| 216 |
|
|
| 217 |
|
if ($totalRwords > 0) { // If there are definitions |
| 218 |
|
while (list($entryID, $term) = $xoopsDB->fetchRow($resultR)) { |
| 219 |
|
$reqentries = array(); |
| 220 |
|
$xoopsModule = XoopsModule::getByDirname('lexikon'); |
| 221 |
|
$linktext = ucfirst($myts->htmlSpecialChars($term)); |
| 222 |
|
$reqentries['linktext'] = $linktext; |
| 223 |
|
$reqentries['id'] = $entryID; |
| 224 |
|
|
| 225 |
|
$blockR['reqstuff'][] = $reqentries; |
| 226 |
|
} |
| 227 |
|
$xoopsTpl->assign('blockR', $blockR); |
| 228 |
|
$xoopsTpl->assign('wehavereqs', 1); |
| 229 |
|
} else { |
| 230 |
|
$xoopsTpl->assign('wehavereqs', 0); |
| 231 |
|
} |
| 232 |
|
} |
| 233 |
|
// Various strings |
| 234 |
|
$xoopsTpl->assign('lang_modulename', $xoopsModule->name()); |
| 235 |
|
$xoopsTpl->assign('lang_moduledirname', $xoopsModule->getVar('dirname')); |