<?php require_once '../thinkedit.init.php'; require_once '../class/datagrid.class.php'; require_once '../class/page.class.php'; $page = new page(); $datagrid = new datagrid(); $datagrid->addColumn('firstname', 'First name', true, true); $datagrid->addColumn('lastname', 'Last name', true, true); $datagrid->addColumn('title', 'Last name', true, true); for ($i = 1; $i < 1000; $i++) { $data['firstname'] = rand(1, 100); $data['lastname'] = rand(1, 100); $data['title'] = rand(1, 100); $datagrid->add($data); } $page->startPanel('test'); $page->add($datagrid->render('icon')); $page->endPanel('test'); echo $page->render();
<?php require_once 'init.inc.php'; require_once ROOT . '/class/page.class.php'; require_once ROOT . '/class/dropdown.class.php'; require_once ROOT . '/class/modulelist.class.php'; require_once ROOT . '/class/datagrid.class.php'; $page = new page(); $page->startPanel('title', 'title'); $page->add('Thinkedit 2.0'); $page->endPanel('title'); $module_selector = new dropdown(); $module_selector->setId('module_list'); $module_selector->setTitle('Choisissez un type d\'élément à éditer'); $modules = $thinkedit->getModuleList(); $module_selector->persist(); foreach ($modules as $module) { $module_selector->add($module, $module); } $page->startPanel('module_list'); $page->add($module_selector->render()); $page->endPanel('module_list'); if ($module_selector->getSelected()) { $list = new modulelist(); $list->setType($module_selector->getSelected()); $modules = $list->load(); $datagrid = new datagrid(); $datagrid->addColumn('id', 'Id'); $datagrid->addColumn('title', 'Title'); foreach ($modules as $module) { $datagrid->add($module->getArray());
require_once 'init.inc.php'; require_once 'class/module.class.php'; require_once 'class/browser.class.php'; require_once 'class/page.class.php'; require_once 'class/url.class.php'; $browser = new browser(); $page = new page(); $url = new url(); if ($url->getParam('node')) { $node = $url->getParam('node'); } else { $node = 1; } $module = new module($node); $page->startPanel('test'); $page->add($module->view()); $page->endPanel('test'); $page->startPanel('title'); $page->add('<h1>Welcome to Thinkedit 3.0</h1>'); $page->endPanel('title'); $page->addSeparator(); $page->startPanel('help'); $page->add('Navigate using icons bellow, use "up" to go up in the hierarchy'); $page->endPanel('help'); $page->addSeparator(); $page->startPanel('breadcrumb'); $parent = $module->getParent(); if ($parent) { $parent_link = new url(); $parent_link->setParam('node', $parent->getNode());
<?php require_once '../init.inc.php'; require_once '../class/page.class.php'; $page = new page(); $page->startPanel('test', 'This is a test'); $page->endPanel('test'); echo $page->render();