コード例 #1
0
ファイル: tag.php プロジェクト: severnaya99/Sg-2010
            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();
コード例 #2
0
ファイル: offer.php プロジェクト: trabisdementia/xuups
        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 . "'>&nbsp;&nbsp;";
        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();