break; case "addcurrency": include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php"; $controller = new SmartObjectController($smartobject_currency_handler); $controller->storeFromDefaultForm(_AM_SOBJECT_CURRENCIES_CREATED, _AM_SOBJECT_CURRENCIES_MODIFIED, SMARTOBJECT_URL . 'admin/currency.php'); break; case "del": include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php"; $controller = new SmartObjectController($smartobject_currency_handler); $controller->handleObjectDeletion(); break; default: smart_xoops_cp_header(); smart_adminMenu(5, _AM_SOBJECT_CURRENCIES); smart_collapsableBar('createdcurrencies', _AM_SOBJECT_CURRENCIES, _AM_SOBJECT_CURRENCIES_DSC); include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; $objectTable = new SmartObjectTable($smartobject_currency_handler); $objectTable->addColumn(new SmartObjectColumn('name', 'left', false, 'getCurrencyLink')); $objectTable->addColumn(new SmartObjectColumn('rate', 'center', 150)); $objectTable->addColumn(new SmartObjectColumn('iso4217', 'center', 150)); $objectTable->addColumn(new SmartObjectColumn('default_currency', 'center', 150, 'getDefault_currencyControl')); $objectTable->addIntroButton('addcurrency', 'currency.php?op=mod', _AM_SOBJECT_CURRENCIES_CREATE); $objectTable->addActionButton('updateCurrencies', _SUBMIT, _AM_SOBJECT_CURRENCY_UPDATE_ALL); $objectTable->render(); echo "<br />"; smart_close_collapsable('createdcurrencies'); echo "<br>"; break; } smart_modFooter(); xoops_cp_footer();
} else { redirect_header(smart_get_page_before_form(), 3, _CO_SOBJECT_SAVE_SUCCESS); } exit; break; case "mod": smart_xoops_cp_header(); edittag($tagid, $language, $fct); break; default: smart_xoops_cp_header(); smart_adminMenu(2, _AM_SOBJECT_TAGS); smart_collapsableBar('tags', _AM_SOBJECT_TAGS, _AM_SOBJECT_TAGS_INFO); include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; $objectTable = new SmartObjectTable($smartobject_tag_handler, false, array('delete')); $objectTable->addColumn(new SmartObjectColumn('name')); $objectTable->addColumn(new SmartObjectColumn('language')); $objectTable->addColumn(new SmartObjectColumn('value')); // $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_SENT_TAGS_FROM, $align='left', $width=false, 'getFromInfo')); $objectTable->addFilter('language', 'getLanguages'); $objectTable->addCustomAction("getEditLanguageLink"); $objectTable->addCustomAction("getEditItemLink"); $objectTable->setDefaultSort('tagid'); $objectTable->addIntroButton('addtag', 'tag.php?op=mod', _AM_SOBJECT_TAG_CREATE); $objectTable->render(); echo "<br />"; smart_close_collapsable('tags'); echo "<br>"; break; } smart_modFooter();
include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php"; $controller = new SmartObjectController($smartobject_rating_handler); $controller->storeFromDefaultForm(_AM_SOBJECT_RATINGS_CREATED, _AM_SOBJECT_RATINGS_MODIFIED, SMARTOBJECT_URL . 'admin/rating.php'); break; case "del": include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php"; $controller = new SmartObjectController($smartobject_rating_handler); $controller->handleObjectDeletion(); break; default: smart_xoops_cp_header(); smart_adminMenu(4, _AM_SOBJECT_RATINGS); smart_collapsableBar('createdratings', _AM_SOBJECT_RATINGS, _AM_SOBJECT_RATINGS_DSC); include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; $objectTable = new SmartObjectTable($smartobject_rating_handler); $objectTable->addColumn(new SmartObjectColumn('name', 'left')); $objectTable->addColumn(new SmartObjectColumn('dirname', 'left')); $objectTable->addColumn(new SmartObjectColumn('item', 'left', false, 'getItemValue')); $objectTable->addColumn(new SmartObjectColumn('date', 'center', 150)); $objectTable->addColumn(new SmartObjectColumn('rate', 'center', 40, 'getRateValue')); // $objectTable->addCustomAction('getCreateItemLink'); // $objectTable->addCustomAction('getCreateAttributLink'); $objectTable->addIntroButton('addrating', 'rating.php?op=mod', _AM_SOBJECT_RATINGS_CREATE); /* $criteria_upcoming = new CriteriaCompo(); $criteria_upcoming->add(new Criteria('start_date', time(), '>')); $objectTable->addFilter(_AM_SOBJECT_FILTER_UPCOMING, array( 'key' => 'start_date', 'criteria' => $criteria_upcoming ));
break; case "del": include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php"; $controller = new SmartObjectController($smartpartner_offer_handler); $controller->handleObjectDeletion(); break; case "default": default: include_once XOOPS_ROOT_PATH . "/modules/smartobject/include/functions.php"; smart_xoops_cp_header(); smart_adminMenu(3, _AM_SPARTNER_OFFERS); echo "<br />\n"; echo "<form><div style=\"margin-bottom: 12px;\">"; echo "<input type='button' name='button' onclick=\"location='offer.php?op=mod'\" value='" . _AM_SPARTNER_OFFER_CREATE . "'> "; echo "</div></form>"; smart_collapsableBar('createdoffers', _AM_SPARTNER_OFFERS, _AM_SPARTNER_OFFERS_DSC); include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjecttable.php"; $objectTable = new SmartObjectTable($smartpartner_offer_handler); $objectTable->addFilter('partnerid', 'getPartnerList'); $objectTable->addFilter('status', 'getStatusList'); $objectTable->addColumn(new SmartObjectColumn('title', 'left')); $objectTable->addColumn(new SmartObjectColumn('partnerid', 'center', 100)); $objectTable->addColumn(new SmartObjectColumn('status', 'center', 100)); $objectTable->render(); echo "<br />"; smart_close_collapsable('createdoffers'); echo "<br>"; break; } smart_modFooter(); xoops_cp_footer();
include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php"; $controller = new SmartObjectController($smartobject_adsense_handler); $controller->storeFromDefaultForm(_AM_SOBJECT_ADSENSES_CREATED, _AM_SOBJECT_ADSENSES_MODIFIED); break; case "del": include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php"; $controller = new SmartObjectController($smartobject_adsense_handler); $controller->handleObjectDeletion(); break; default: smart_xoops_cp_header(); smart_adminMenu(3, _AM_SOBJECT_ADSENSES); smart_collapsableBar('createdadsenses', _AM_SOBJECT_ADSENSES, _AM_SOBJECT_ADSENSES_DSC); include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; $objectTable = new SmartObjectTable($smartobject_adsense_handler); $objectTable->addColumn(new SmartObjectColumn('description', 'left')); $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_ADSENSE_TAG, 'center', 200, 'getXoopsCode')); // $objectTable->addCustomAction('getCreateItemLink'); // $objectTable->addCustomAction('getCreateAttributLink'); $objectTable->addIntroButton('addadsense', 'adsense.php?op=mod', _AM_SOBJECT_ADSENSES_CREATE); /* $criteria_upcoming = new CriteriaCompo(); $criteria_upcoming->add(new Criteria('start_date', time(), '>')); $objectTable->addFilter(_AM_SOBJECT_FILTER_UPCOMING, array( 'key' => 'start_date', 'criteria' => $criteria_upcoming )); $criteria_last7days = new CriteriaCompo(); $criteria_last7days->add(new Criteria('start_date', time() - 30 *(60 * 60 * 24), '>')); $criteria_last7days->add(new Criteria('start_date', time(), '<'));
include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php"; $controller = new SmartObjectController($smartobject_customtag_handler); $controller->storeFromDefaultForm(_AM_SOBJECT_CUSTOMTAGS_CREATED, _AM_SOBJECT_CUSTOMTAGS_MODIFIED); break; case "del": include_once XOOPS_ROOT_PATH . "/modules/smartobject/class/smartobjectcontroller.php"; $controller = new SmartObjectController($smartobject_customtag_handler); $controller->handleObjectDeletion(); break; default: smart_xoops_cp_header(); smart_adminMenu(2, _AM_SOBJECT_CUSTOMTAGS); smart_collapsableBar('createdcustomtags', _AM_SOBJECT_CUSTOMTAGS, _AM_SOBJECT_CUSTOMTAGS_DSC); include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; $objectTable = new SmartObjectTable($smartobject_customtag_handler); $objectTable->addColumn(new SmartObjectColumn('name', 'left', 150, 'getCustomtagName')); $objectTable->addColumn(new SmartObjectColumn('description', 'left')); $objectTable->addColumn(new SmartObjectColumn('language', 'center', 150)); // $objectTable->addCustomAction('getCreateItemLink'); // $objectTable->addCustomAction('getCreateAttributLink'); $objectTable->addIntroButton('addcustomtag', 'customtag.php?op=mod', _AM_SOBJECT_CUSTOMTAGS_CREATE); /* $criteria_upcoming = new CriteriaCompo(); $criteria_upcoming->add(new Criteria('start_date', time(), '>')); $objectTable->addFilter(_AM_SOBJECT_FILTER_UPCOMING, array( 'key' => 'start_date', 'criteria' => $criteria_upcoming )); $criteria_last7days = new CriteriaCompo(); $criteria_last7days->add(new Criteria('start_date', time() - 30 *(60 * 60 * 24), '>'));
smart_adminMenu(1, _AM_SOBJECT_SENT_LINK_DISPLAY); smart_collapsableBar('sentlinks', _AM_SOBJECT_SENT_LINK_DISPLAY, _AM_SOBJECT_SENT_LINK_DISPLAY_INFO); include_once XOOPS_ROOT_PATH . '/class/template.php'; $xoopsTpl =& new XoopsTpl(); $xoopsTpl->assign('link', $linkObj->toArray()); $xoopsTpl->display('db:smartobject_sentlink_display.html'); echo "<br />"; smart_close_collapsable('sentlinks'); echo "<br>"; break; default: smart_xoops_cp_header(); smart_adminMenu(1, _AM_SOBJECT_SENT_LINKS); smart_collapsableBar('sentlinks', _AM_SOBJECT_SENT_LINKS, _AM_SOBJECT_SENT_LINKS_INFO); include_once SMARTOBJECT_ROOT_PATH . "class/smartobjecttable.php"; $objectTable = new SmartObjectTable($smartobject_link_handler, null, array('delete')); $objectTable->addColumn(new SmartObjectColumn('date')); $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_SENT_LINKS_FROM, $align = 'left', $width = false, 'getFromInfo')); $objectTable->addColumn(new SmartObjectColumn(_AM_SOBJECT_SENT_LINKS_TO, $align = 'left', $width = false, 'getToInfo')); $objectTable->addColumn(new SmartObjectColumn('link')); $objectTable->addCustomAction("getViewItemLink"); $objectTable->setDefaultSort('date'); $objectTable->setDefaultOrder('DESC'); $objectTable->render(); echo "<br />"; smart_close_collapsable('sentlinks'); echo "<br>"; break; } smart_modFooter(); xoops_cp_footer();