@@ 107-132 (lines=26) @@ | ||
104 | ||
105 | break; |
|
106 | ||
107 | default: |
|
108 | ||
109 | Smartobject\Utility::getXoopsCpHeader(); |
|
110 | ||
111 | //Smartobject\Utility::getAdminMenu(5, _AM_SOBJECT_CURRENCIES); |
|
112 | ||
113 | Smartobject\Utility::getCollapsableBar('createdcurrencies', _AM_SOBJECT_CURRENCIES, _AM_SOBJECT_CURRENCIES_DSC); |
|
114 | ||
115 | // require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
116 | $objectTable = new Table($smartobjectCurrencyHandler); |
|
117 | $objectTable->addColumn(new ObjectColumn('name', 'left', false, 'getCurrencyLink')); |
|
118 | $objectTable->addColumn(new ObjectColumn('rate', 'center', 150)); |
|
119 | $objectTable->addColumn(new ObjectColumn('iso4217', 'center', 150)); |
|
120 | $objectTable->addColumn(new ObjectColumn('default_currency', 'center', 150, 'getDefaultCurrencyControl')); |
|
121 | ||
122 | $objectTable->addIntroButton('addcurrency', 'currency.php?op=mod', _AM_SOBJECT_CURRENCIES_CREATE); |
|
123 | ||
124 | $objectTable->addActionButton('updateCurrencies', _SUBMIT, _AM_SOBJECT_CURRENCY_UPDATE_ALL); |
|
125 | ||
126 | $objectTable->render(); |
|
127 | ||
128 | echo '<br>'; |
|
129 | Smartobject\Utility::closeCollapsable('createdcurrencies'); |
|
130 | echo '<br>'; |
|
131 | ||
132 | break; |
|
133 | } |
|
134 | ||
135 | //Smartobject\Utility::getModFooter(); |
@@ 100-152 (lines=53) @@ | ||
97 | ||
98 | break; |
|
99 | ||
100 | default: |
|
101 | ||
102 | Smartobject\Utility::getXoopsCpHeader(); |
|
103 | $adminObject->displayNavigation(basename(__FILE__)); |
|
104 | ||
105 | //Smartobject\Utility::getAdminMenu(4, _AM_SOBJECT_RATINGS); |
|
106 | ||
107 | Smartobject\Utility::getCollapsableBar('createdratings', _AM_SOBJECT_RATINGS, _AM_SOBJECT_RATINGS_DSC); |
|
108 | ||
109 | // require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
110 | $objectTable = new XoopsModules\Smartobject\Table($smartobjectRatingHandler); |
|
111 | $objectTable->addColumn(new XoopsModules\Smartobject\ObjectColumn('name', 'left')); |
|
112 | $objectTable->addColumn(new XoopsModules\Smartobject\ObjectColumn('dirname', 'left')); |
|
113 | $objectTable->addColumn(new XoopsModules\Smartobject\ObjectColumn('item', 'left', false, 'getItemValue')); |
|
114 | $objectTable->addColumn(new XoopsModules\Smartobject\ObjectColumn('date', 'center', 150)); |
|
115 | $objectTable->addColumn(new XoopsModules\Smartobject\ObjectColumn('rate', 'center', 40, 'getRateValue')); |
|
116 | ||
117 | // $objectTable->addCustomAction('getCreateItemLink'); |
|
118 | // $objectTable->addCustomAction('getCreateAttributLink'); |
|
119 | ||
120 | $objectTable->addIntroButton('addrating', 'rating.php?op=mod', _AM_SOBJECT_RATINGS_CREATE); |
|
121 | /* |
|
122 | $criteria_upcoming = new \CriteriaCompo(); |
|
123 | $criteria_upcoming->add(new \Criteria('start_date', time(), '>')); |
|
124 | $objectTable->addFilter(_AM_SOBJECT_FILTER_UPCOMING, array( |
|
125 | 'key' => 'start_date', |
|
126 | 'criteria' => $criteria_upcoming |
|
127 | )); |
|
128 | ||
129 | $criteria_last7days = new \CriteriaCompo(); |
|
130 | $criteria_last7days->add(new \Criteria('start_date', time() - 30 *(60 * 60 * 24), '>')); |
|
131 | $criteria_last7days->add(new \Criteria('start_date', time(), '<')); |
|
132 | $objectTable->addFilter(_AM_SOBJECT_FILTER_LAST7DAYS, array( |
|
133 | 'key' => 'start_date', |
|
134 | 'criteria' => $criteria_last7days |
|
135 | )); |
|
136 | ||
137 | $criteria_last30days = new \CriteriaCompo(); |
|
138 | $criteria_last30days->add(new \Criteria('start_date', time() - 30 *(60 * 60 * 24), '>')); |
|
139 | $criteria_last30days->add(new \Criteria('start_date', time(), '<')); |
|
140 | $objectTable->addFilter(_AM_SOBJECT_FILTER_LAST30DAYS, array( |
|
141 | 'key' => 'start_date', |
|
142 | 'criteria' => $criteria_last30days |
|
143 | )); |
|
144 | */ |
|
145 | ||
146 | $objectTable->render(); |
|
147 | ||
148 | echo '<br>'; |
|
149 | Smartobject\Utility::closeCollapsable('createdratings'); |
|
150 | echo '<br>'; |
|
151 | ||
152 | break; |
|
153 | } |
|
154 | ||
155 | //Smartobject\Utility::getModFooter(); |