1: <?php
2: 3: 4: 5: 6: 7: 8: 9:
10:
11: if (!defined('XOOPS_ROOT_PATH')) exit();
12:
13: require_once XOOPS_MODULE_PATH . "/legacy/actions/SearchResultsAction.class.php";
14: require_once XOOPS_MODULE_PATH . "/legacy/forms/SearchShowallForm.class.php";
15:
16: class Legacy_SearchShowallAction extends Legacy_SearchResultsAction
17: {
18: function _setupActionForm()
19: {
20: $this->mActionForm =new Legacy_SearchShowallForm($this->mConfig['keyword_min']);
21: $this->mActionForm->prepare();
22: }
23:
24: function _getTemplateName()
25: {
26: return "legacy_search_showall.html";
27: }
28:
29: function _getSelectedMids()
30: {
31: $ret = array();
32: $ret[] = $this->mActionForm->get('mid');
33:
34: return $ret;
35: }
36:
37: function _getMaxHit()
38: {
39: return LEGACY_SEARCH_SHOWALL_MAXHIT;
40: }
41:
42: function executeViewIndex(&$controller, &$xoopsUser, &$render)
43: {
44: parent::executeViewIndex($controller, $xoopsUser, $render);
45:
46: $prevStart = $this->mActionForm->get('start') - LEGACY_SEARCH_SHOWALL_MAXHIT;
47: if ($prevStart < 0) {
48: $prevStart = 0;
49: }
50:
51: $render->setAttribute('prevStart', $prevStart);
52: $render->setAttribute('nextStart', $this->mActionForm->get('start') + LEGACY_SEARCH_SHOWALL_MAXHIT);
53: }
54: }
55:
56: ?>
57: