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(); xoops_cp_footer();
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();