protected function createControls() { $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Teilen von Dateien'); $upload = new UploaderControl($panel); $upload->setAction('uploadShare'); $upload->setNotify('medien'); $size = "<?php echo round({me_groesse}/1024/1024,1); ?> MB"; $sendLink = Configuration::get('site.url') . '/index.php/medien/get?token={me_token}'; $send = "<a class='btn-xs btn-default' href='mailto:?body=" . $sendLink . "'><span class='glyphicon glyphicon-envelope'></span></a>"; $editLink = Application::routing()->appLink('medien', 'editShare', array('id' => '{me_id}')); $edit = "<a class='btn-xs btn-default' href=" . $editLink . "><span class='glyphicon glyphicon-edit'></span></a>"; $buttons = $send . $edit; $token = new InputTextboxControl(null); $token->setValue($sendLink)->addCssClass('input-sm'); $valid = "<?php echo ((strtotime('{me_valid_until}')) < strtotime(date('d.m.Y'))) ? '<span style=\"color: red;\">Abgelaufen</span>' : '{me_valid_until}'; ?>"; $downloads = "<?php echo '{me_downloads}' == '' ? 0 : {me_downloads}?>"; $medien = new GridControl($panel, 'medien'); $medien->setEntity(new Medien(), array('share' => 1)); $medien->setDeleteAction('deleteMedien'); $medien->createColumn(GridColumn::LINK, 'me_titel')->setAppLink('medien', 'editShare', array('id' => '{me_id}')); $medien->createColumn(GridColumn::FIELD, 'me_erweiterung')->setHeader('Typ'); $medien->createColumn(GridColumn::FIELD, 'me_groesse', $size); $medien->createColumn(GridColumn::FIELD, 'me_token', $token->toHtml())->setHeader('Download-Link'); $medien->createColumn(GridColumn::FIELD, 'me_downloads', $downloads); $medien->createColumn(GridColumn::FIELD, 'me_valid_until', $valid); $medien->createColumn(GridColumn::FIELD, 'me_titel', $buttons)->setHeader(''); $medien->createColumn(GridColumn::DELETELINK); $hinweis = new CoreControls\HtmlControl($this); $hinweis->setInnerHtml("<span style='color: #AAA;'><b>Hinweis:</b> Abgelaufene Dateien werden nach 14 Tagen automatisch gelöscht.</span>"); }
protected function createControls() { $kommentare = $this->controller->kommentare; $anzahl = count($kommentare); if (!$this->request->ajax) { $panel = new CaptionedPanelControl($this, 'pnlKommentare'); $panel->setCaption('Kommentare (' . $anzahl . ')')->setCollapsed(true); $container = new ControlContainer($panel, 'ctnrKommentare'); $container->setSkin('<div id="ctnrKommentare">{controls}</div>'); } else { $container = $this; } foreach ($this->controller->kommentare as $kommentar) { $control = new KommentarControl($container, 'k' . $kommentar->id); $control->setKommentar($kommentar); } if (!$this->request->ajax) { $submit = new SubmitDataControl($panel, 'sbmKommentare'); $submit->setTarget('ctnrKommentare')->setInline(false)->setModule('Kommentare')->setAction('endEditKommentar')->setHiddenValue('ko_element_tabelle', $this->request->entity)->setHiddenValue('ko_element_id', $this->request->id); // Möglichkeit neuen Kommentar zu schreiben $edit = new EditControl($submit, 'edtKommentar'); $edit->setEntity(new Kommentar()); $edit->addRow('ko_kommentar'); } }
protected function createControls() { $this->setPostback('user', 'endEditUser', array('id' => $this->controller->user->id)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Benutzer » bearbeiten'); $lookupSprache = new DataControls\LookupBoxControl(null, 'us_sprache'); $lookupSprache->setLookupEntity(new Sprache())->setTextfield('sp_bezeichnung')->setValuefield('sp_id')->showNull(0, '-- bitte wählen --')->preSelect($this->controller->user->us_sprache); $anreden = new FormControls\InputSelectControl(null, 'us_anrede'); $anreden->addOption(0, '-- bitte wählen --'); $anreden->addOption('Firma', 'Firma'); $anreden->addOption('Frau', 'Frau'); $anreden->addOption('Herr', 'Herr'); $edit = new DataControls\EditControl($panel, 'edit'); $edit->setEntity($this->controller->user)->setHeader('Stammdaten bearbeiten')->addRow('us_benutzername')->addRow('us_aktiv')->addRow('Anrede', $anreden)->addRow('us_vorname')->addRow('us_name')->addRow('us_profilbild')->addRow('us_email')->addRow('Sprache', $lookupSprache)->addRow('us_anonymous')->addRow('us_passwort'); $button = new SaveButtonControl($panel, 'btnSave'); if ($this->request->action != 'newUser') { $pnlRolle = new CaptionedPanelControl($this, 'pnlRolle'); $pnlRolle->setCaption('Rollenzuweisung'); $lookupRolle = new DataControls\LookupBoxControl(null, 'ro_id'); $lookupRolle->setLookupEntity(new Rolle())->setTextfield('ro_bezeichnung')->setValuefield('ro_id')->showNull(0, '-- bitte wählen --'); $sbmRolle = new ExtControls\SubmitDataControl($pnlRolle, 'sbmRolle'); $sbmRolle->setModule('user')->setAction('insertRolle')->setNotify('grid')->setHiddenValue('user', $this->controller->user->id)->add($lookupRolle); $grid = new GridControl($pnlRolle, 'grid'); $grid->setEntity(new UserRolle(), $this->request); $grid->setDeleteAction('removeRolle'); $grid->createColumn(GridColumn::FIELD, 'us_name', '{us_vorname} {us_name}'); $grid->createColumn(GridColumn::FIELD, 'ro_bezeichnung'); $grid->createColumn(GridColumn::DELETELINK); } }
protected function createControls() { $artikelliste = $this->controller->kategorie->getArtikel(); Logging::info('Kategorie enthält ' . count($artikelliste) . ' Artikel'); foreach ($artikelliste as $artikel) { $glossar[strtoupper(substr($artikel->titel, 0, 1))][] = $artikel; } array_multisort($glossar, SORT_DESC); $menuString = '<br><div class="btn-group">'; foreach ($glossar as $buchstabe => $artikelmenge) { $menuString .= '<a href="' . $_SERVER['REQUEST_URI'] . '#' . $buchstabe . '" class="btn btn-default">' . $buchstabe . '</a>'; } $menuString .= '</div><br><br>'; $menu = new HtmlControl($this, 'menu'); $menu->setInnerHtml($menuString); foreach ($glossar as $buchstabe => $artikelmenge) { $anchor = new HtmlControl($this, $buchstabe); $anchor->setInnerHtml('<a id="' . $buchstabe . '"></a>'); $artikelPanel = new CaptionedPanelControl($this, 'buchstabe_' . $buchstabe); $artikelPanel->setCaption($buchstabe); sort($artikelmenge); foreach ($artikelmenge as $artikel) { $text = Text::get($artikel->getElementId() . '.intro', $_SESSION['sp_id'])->te_text; $artikelText = new HtmlControl($artikelPanel, 'text_' . $artikel->id); $artikelText->setInnerHtml('<h4>' . $artikel->titel . '</h4>' . $text . '<br>'); } } }
protected function createControls() { $artikelliste = $this->controller->kategorie->getArtikel(); Logging::info('Kategorie enthält ' . count($artikelliste) . ' Artikel'); $i = 1; foreach ($artikelliste as $artikel) { $text = Text::get($artikel->getElementId() . '.intro', $_SESSION['sp_id'])->te_text; $anchor = new HtmlControl($this); $anchor->setInnerHtml('<a name="' . $artikel->id . '"></a>'); $artikelPanel = new CaptionedPanelControl($this, 'artikel_' . $artikel->id); $artikelPanel->setCaption($artikel->titel); $blogInfos = new HtmlControl($artikelPanel); $blogInfos->setInnerHtml(' <div class="blog-post-tags"> <ul class="list-unstyled list-inline blog-info"> <li><i class="fa fa-calendar"></i> ' . $artikel->ca_geschrieben_am . '</li> <li><i class="fa fa-pencil"></i> ' . $artikel->autor . '</li> </ul> </div> '); $artikelText = new HtmlControl($artikelPanel, 'text_' . $artikel->id); $artikelText->setInnerHtml(' <img src="' . $artikel->ca_hauptbild . '" class="blogimage" /> ' . $text); $i++; } }
protected function createControls() { $this->setPostback('modView', 'endEditLookup', array('current' => $this->request->current, 'entity' => $this->request->entity, 'initPanel' => 2)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Lookup » bearbeiten'); // Felder festlegen $inputName = new InputTextboxControl(null, 'name'); $inputName->setValue($this->controller->lookup->name); $inputName->addCssClass('required'); $inputDescription = new InputTextboxControl(null, 'description'); $inputDescription->setValue($this->controller->lookup->description); $inputDescription->addCssClass('required'); $selectRelation = new InputSelectControl(null, 'relation'); foreach ($this->controller->entity->relations as $relation) { $selectRelation->addOption($relation->name, $relation->name); } $selectRelation->preSelect($this->controller->lookup->relation); $inputField = new InputTextboxControl(null, 'field'); $inputField->setValue($this->controller->lookup->field); $inputField->addCssClass('required'); // Felder darstellen $edit = new EditControl($panel, 'edit'); $edit->addRow('Name', $inputName)->addRow('Beschreibung', $inputDescription)->addRow('Relation', $selectRelation)->addRow('Feld in Relation', $inputField); $button = new ButtonControl($panel, 'button'); $button->setCaption('Speichern')->setIsSubmit('true'); }
protected function createControls() { $this->setPostback('modView', 'endEditEntity', array('current' => $this->request->current, 'initPanel' => 2)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Entität » bearbeiten'); $inputKlasse = new InputTextboxControl(null, 'klasse'); $inputKlasse->addCssClass('required'); $inputName = new InputTextboxControl(null, 'name'); $inputName->setValue($this->controller->entity->name); $inputName->addCssClass('required'); $inputPrimary = new InputTextboxControl(null, 'primary'); $inputPrimary->setValue($this->controller->entity->primaryKey); $inputPrimary->addCssClass('required'); $inputExtends = new InputTextboxControl(null, 'extends'); $inputExtends->setValue($this->controller->entity->extends); $inputMatch = new InputTextboxControl(null, 'match'); $inputMatch->setValue($this->controller->entity->match); $edit = new EditControl($panel, 'edit'); $edit->addRow('Tabellenname', $inputName)->addRow('Primärschlüssel', $inputPrimary)->addRow('Basis-Entität (bei Vererbung)', $inputExtends)->addRow('Match (abweichend von der Tabelle bei Vererbung)', $inputMatch); if ($this->request->action == 'newEntity') { $edit->addRow('Klassename', $inputKlasse); } $button = new ButtonControl($panel, 'button'); $button->setCaption('Speichern')->setIsSubmit('true'); }
protected function createControls() { $this->setPostback('modView', 'endEditFeld', array('current' => $this->request->current, 'entity' => $this->request->entity, 'initPanel' => 2)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Feld » bearbeiten'); $inputName = new InputTextboxControl(null, 'name'); $inputName->setValue($this->controller->feld->name); $inputName->addCssClass('required'); $inputDescription = new InputTextboxControl(null, 'description'); $inputDescription->setValue($this->controller->feld->description); $inputMax = new InputTextboxControl(null, 'maxLength'); $inputMax->setValue($this->controller->feld->maxLength); $inputValidation = new InputTextboxControl(null, 'validation'); $inputValidation->setValue($this->controller->feld->validation); $inputFormel = new InputTextboxControl(null, 'formula'); $inputFormel->setValue($this->controller->feld->getFormula()); $inputIndex = new InputCheckboxControl(null, 'index'); $inputIndex->setValue(1); $inputIndex->setChecked($this->controller->feld->getIndex() == 1); $typ = new InputSelectControl(null, 'type'); $typ->addOption(ModelField::TYPE_IMAGE, 'Bild')->addOption(ModelField::TYPE_BOOLEAN, 'Boolean')->addOption(ModelField::TYPE_DATE, 'Date')->addOption(ModelField::TYPE_DATETIME, 'Datetime')->addOption(ModelField::TYPE_FLOAT, 'Float')->addOption(ModelField::TYPE_HTML, 'Html')->addOption(ModelField::TYPE_INTEGER, 'Integer')->addOption(ModelField::TYPE_PASSWORD, 'Password')->addOption(ModelField::TYPE_STRING, 'String')->addOption(ModelField::TYPE_TEXT, 'Text')->addOption(ModelField::TYPE_TIME, 'Time')->addOption(ModelField::TYPE_FILE, 'Datei')->addOption(ModelField::TYPE_MARKDOWN, 'Markdown')->addOption(ModelField::TYPE_LABEL, 'Label')->preSelect($this->controller->feld->getType()); $edit = new EditControl($panel, 'edit'); $edit->setHeader('Stammdaten bearbeiten')->addRow('Name', $inputName)->addRow('Beschreibung', $inputDescription)->addRow('Datentyp', $typ)->addRow('Länge', $inputMax)->addRow('Validierung', $inputValidation)->addRow('Formel', $inputFormel)->addRow('Index', $inputIndex); $button = new ButtonControl($panel, 'button'); $button->setCaption('Speichern')->setIsSubmit('true'); }
/** * Erzeugt die Controls für den Show-View. Die Controls werden entweder * untereinander oder gemäß dem Template-File angeordnet */ protected function createControls() { $this->historie = $this->controller->historie; $this->setPostbackUrl(EntityLinks::update($this->historie)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Historie » anzeigen'); }
protected function createControls() { $this->relation = $this->controller->relation; $this->setPostback('modView', 'endEditRelation', array('current' => $this->request->current, 'entity' => $this->request->entity, 'initPanel' => 2)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Relation » bearbeiten'); // Felder festlegen $inputName = new InputTextboxControl(null, 'name'); $inputName->setValue($this->controller->relation->name); $inputName->addCssClass('required'); $selectField = new InputSelectControl(null, 'field'); foreach ($this->controller->entity->fields as $field) { $selectField->addOption($field->name, $field->name); } $selectField->preSelect($this->controller->relation->field); $inputForeignEntity = new InputTextboxControl(null, 'foreignEntity'); $inputForeignEntity->setValue($this->controller->relation->foreignEntity); $inputForeignEntity->addCssClass('required'); $inputForeignField = new InputTextboxControl(null, 'foreignField'); $inputForeignField->setValue($this->controller->relation->foreignField); $inputForeignField->addCssClass('required'); $inputJoinCriteria = new InputTextboxControl(null, 'joinCriteria'); $inputJoinCriteria->setValue($this->controller->relation->joinCriteria); $selectJoin = new InputSelectControl(null, 'join'); $selectJoin->addOption('inner', 'inner')->addOption('left outer', 'left outer')->addOption('right outer', 'right outer')->preSelect($this->controller->relation->join); // Felder darstellen $edit = new EditControl($panel, 'edit'); $edit->addRow('Name', $inputName)->addRow('Feld in lokaler Entität', $selectField)->addRow('Fremdentität', $inputForeignEntity)->addRow('Feld in Fremdentität', $inputForeignField)->addRow('Join', $selectJoin)->addRow('On-Bedingung', $inputJoinCriteria)->addRow('Implementierende Klasse', InputTextboxControl::create(null, 'foreignClass')->setValue($this->relation->foreignClass)); $button = new ButtonControl($panel, 'button'); $button->setCaption('Speichern')->setIsSubmit('true'); }
protected function createControls() { $this->setPostback('modView', 'endBerechtigung', array('id' => $this->controller->action->name, 'current' => $this->controller->current->qualifiedName)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Berechtigungen für ' . $this->controller->action->name); $security = new SecurityCheckboxControl($panel, 'berechtigung'); $security->setElement($this->controller->current->qualifiedName . '_' . $this->controller->action->name); $button = new SaveButtonControl($this, 'btnSave'); }
protected function createControls() { $this->setPostbackUrl(EntityLinks::update($this->controller->import)); $panel = new StdControls\CaptionedPanelControl($this, 'panel'); $panel->setCaption('Einträge » bearbeiten'); $edit = new DataControls\EditControl($panel, 'edit'); $edit->setEntity($this->controller->import)->addRow('im_bezeichnung')->addRow('it_bezeichnung')->addRow('im_dateiname')->addRow('*FTP')->addRow('im_ftp_host')->addRow('im_ftp_port')->addRow('im_ftp_user')->addRow('im_ftp_pass'); $button = new StdControls\SaveButtonControl($panel, 'btnSave'); }
protected function createControls() { $this->setPostbackUrl(EntityLinks::update($this->controller->importtyp)); $panel = new StdControls\CaptionedPanelControl($this, 'panel'); $panel->setCaption('Importtype » bearbeiten'); $edit = new DataControls\EditControl($panel, 'edit'); $edit->setEntity($this->controller->importtyp)->addRow('it_bezeichnung')->addRow('it_klasse'); $button = new StdControls\SaveButtonControl($panel, 'btnSave'); }
protected function createControls() { $this->setPostback('medien', 'endEditMedien', array('id' => $this->controller->medien->id)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Medien » bearbeiten'); $edit = new EditControl($panel, 'edit'); $edit->setEntity($this->controller->medien)->addRow('me_titel'); $button = new ButtonControl($panel, 'button'); $button->setCaption('Speichern')->setIsSubmit('true'); }
/** * Erzeugt die Controls für den Edit-View. Die Controls werden entweder * untereinander oder gemäß dem Template-File angeordnet */ protected function createControls() { $this->historie = $this->controller->historie; $this->setPostbackUrl(EntityLinks::update($this->historie)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Historie » bearbeiten'); $edit = new EditControl($panel, 'edit'); $edit->setEntity($this->historie); $button = new SaveButtonControl($panel, 'btnSave'); }
protected function createControls() { $this->setPostback('modView', 'endNewCRUD', array('current' => $this->request->current)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Aktionen » CRUD anlegen'); $edit = new EditControl($panel, 'edit'); $edit->setHeader('Details angeben')->addRow('Entität (logisch)', new InputTextboxControl(null, 'entity')); $button = new ButtonControl($panel, 'button'); $button->setCaption('Speichern')->setIsSubmit('true'); }
/** * */ protected function createControls() { $this->page = $this->controller->page; $this->setPostback('site', 'endEditPage', array('id' => $this->page->id, 'pa_site' => $this->page->pa_site, 'pa_module' => 'site', 'pa_action' => $this->page->pa_action, 'initPanel' => $this->request->initPanel)); $panel = new CaptionedTabPanelControl($this, 'panel'); $panel->setCaption('Seite » bearbeiten'); $tabStammdaten = $panel->tabs->addTab('Stammdaten'); $tabLayout = $panel->tabs->addTab('Layout'); $lookup = new LookupBoxControl(null, 'pa_parent'); $lookup->setLookupEntity(new Page())->setTextfield('pa_bezeichnung')->setValuefield('pa_id')->setGroupfield('parent')->setFilter(array('site' => $this->page->pa_site))->showNull(0, '-- Kein Parent --')->preSelect($this->page->pa_parent); $edit = new EditControl($tabStammdaten, 'edit'); $edit->setEntity($this->page)->addRow('pa_ausblenden')->addRow('pa_bezeichnung')->addRow('Parent-Page', $lookup)->addRow('pa_css')->addRow('-')->addRow('pa_link')->addRow('pa_description')->addRow('pa_keywords')->addRow('pa_icon'); $button = new SaveButtonControl($tabStammdaten, 'button'); // region Texte $texte = new TranslatedTextControl($tabStammdaten, 'texte'); $texte->setCaption('Angezeiger Text im Menü'); $texte->setElement($this->page->getElementId()); if ($this->request->action === 'newPage' && isset($this->request->text)) { $texte->setText($this->request->text); } // endregion // region Rechte $panelRechte = new CaptionedPanelControl($tabStammdaten, 'panelRechte'); $panelRechte->setCaption('Seiten » Berechtigungen'); $security = new SecurityCheckboxControl($panelRechte, 'berechtigung'); $security->setElement($this->page->getElementId()); // endregion // region Layout (Neu) if ($this->page->pa_action == 'composePage') { $rootRegions = Region::loadByPageAndParent($this->page->id, 0); foreach ($rootRegions as $region) { $block = $region->getBlock(); if ($block !== null) { $control = $block->toDesignModeHtml(); $tabLayout->add($control); } } $addRegion = new Controls\ChooseLayoutBlockControl($tabLayout, 'choose'); $addRegion->setPage($this->page); } // endregion // region Layout (alt) if ($this->page->pa_action == 'useInnerTemplate') { $choose = new Controls\ChooseTemplateControl($tabLayout, 'pa_innertemplate'); $choose->setChosenTemplate($this->page->pa_innertemplate); $choose->setOuterTemplate(Template::load($this->controller->site->si_template)); $edit = new Controls\EditRegionsControl($tabLayout, 'editInPlace'); $edit->setPageId($this->page->id); $edit->setRegions($this->page->getRegions()); $edit->setTemplate($this->page->pa_innertemplate); $button = new ButtonControl($tabLayout, 'button2'); $button->setCaption('Speichern')->setOnClick("\$('#initPanel').val(1); \$('#postback').submit();"); } // endregion }
protected function createControls() { $this->setPostback('modView', 'endEditModule'); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Neues Modul anlegen'); $fqn = new InputTextboxControl(null, 'namespace'); $fqn->setPlaceholder('Namespace z.B. MyApp\\MyModule')->addCssClass('required'); $edit = new EditControl($panel, 'edit'); $edit->addRow('Fully Qualified Name', $fqn)->addRow('Beschreibung', new InputTextboxControl(null, 'description'))->addRow('Autor', new InputTextboxControl(null, 'author'))->addRow('Version', new InputTextboxControl(null, 'version')); new SaveButtonControl($this, 'btnSpeichern'); }
protected function createControls() { $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Suchergebnis'); $item = '<p>{text}</p><a href="{site.scriptUrl}/{link}" class="button"><span>Mehr</span></a><p> </p>'; $items = new ListViewControl($this, 'items'); $items->setSkin('{controls}'); $items->setItemSkin($item); $items->addItems($this->controller->hits); $this->controls->setVar('count', count($this->controller->hits)); }
protected function createControls() { $this->setPostback('medien', 'endEditKollektion', array('id' => $this->controller->kollektion->id, 'ko_parent' => $this->controller->kollektion->ko_parent, 'projekt' => $this->request->projekt)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Ordner » bearbeiten'); $selectTyp = new InputSelectControl(null, 'ko_typ'); $selectTyp->addOption(0, '-- beliebig --')->addOption(1, 'Bilder')->addOption(2, 'Video')->addOption(3, 'Audio')->addOption(4, 'Dateien (z.B. PDF)')->preSelect($this->controller->kollektion->ko_typ); $edit = new EditControl($panel, 'edit'); $edit->setEntity($this->controller->kollektion)->setHeader('Stammdaten bearbeiten')->addRow('ko_bezeichnung')->addRow('Typ', $selectTyp); $button = new ButtonControl($panel, 'button'); $button->setCaption('Speichern')->setIsSubmit('true'); }
protected function createControls() { if (!isset($this->request->page)) { $page = Application::currentPage()->id; } else { $page = new Page($this->request->page); } $panel = new StdControls\CaptionedPanelControl($this, 'panel'); $panel->setCaption($page->pa_bezeichnung); $menu = new SiteMenuControl($this, 'submenu'); $menu->setRootPage($page); }
protected function createControls() { $this->setPostback('user', 'endEditRolle', array('id' => $this->controller->rolle->id)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Rollen » bearbeiten'); $lobRolle = new DataControls\LookupBoxControl(null, 'ro_parent'); $lobRolle->setLookupEntity(new Rolle())->setTextfield('ro_bezeichnung')->setTextfield2('parent')->setGroupfield('parent')->setValuefield('ro_id')->preSelect($this->controller->rolle->ro_parent)->showNull(0, '-- keine --'); $edit = new DataControls\EditControl($panel, 'edit'); $edit->setEntity($this->controller->rolle)->addRow('ro_bezeichnung')->addRow('ro_schluessel')->addRow('ro_aktiv')->addRow('ro_neuebenutzer')->addRow('Parent-Rolle', $lobRolle); $button = new ButtonControl($panel, 'button'); $button->setCaption('Speichern')->setIsSubmit('true'); }
protected function createControls() { $this->setPostback('site', 'endEditSite', array('id' => $this->controller->site->id)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Sitemaps » bearbeiten'); $selTemplate = new InputSelectControl(null, 'si_template'); $selTemplate->addOptions(Template::listTemplates()); $selTemplate->preSelect($this->controller->site->si_template); $edit = new EditControl($panel, 'edit'); $edit->setEntity($this->controller->site)->setHeader('Stammdaten bearbeiten')->addRow('si_bezeichnung')->addRow('si_name')->addRow('Template', $selTemplate)->addRow('si_urlpattern'); $button = new SaveButtonControl($panel, 'button'); }
protected function createControls() { $this->module = $this->controller->current; $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Berechtigungen für ' . $this->module->name); $btnDetails = new ButtonControl($panel, 'btnDetails'); $btnDetails->setCaption('Details')->setLink('modView', 'editModule', array('id' => $this->module->qualifiedName))->setIcon('list-alt'); $listView = new ListViewControl($panel, 'lv'); $listView->setSkinfile(__DIR__ . '/ModuleListView.skin'); $listView->setItemSkinFile(__DIR__ . '/BerechtigungListItem.skin'); $listView->setVar('header', '<th>Name</th><th>Beschreibung</th><th>Menü</th><th>Berechtigungen</th>'); $listView->addItems($this->controller->aktionen); }
protected function createControls() { $panel = new StdControls\CaptionedPanelControl($this, 'panel'); $panel->setCaption('Sprachen'); $button = new StdControls\ButtonControl($panel, 'button'); $button->setCaption('Neue Sprache anlegen')->setLink('cms', 'newSprache'); $grid = new DataControls\GridControl($panel, 'grid'); $grid->setEntity(new Model\Sprache(), $this->request); $grid->setDeleteAction('deleteSprache'); $grid->createColumn(GridColumn::LINK, 'sp_bezeichnung')->setAppLink('cms', 'editSprache', array('id' => '{sp_id}')); $grid->createColumn(GridColumn::FIELD, 'sp_aktiv'); $grid->createColumn(GridColumn::FIELD, 'sp_standard'); $grid->createColumn(GridColumn::DELETELINK); }
protected function createControls() { $this->setPostbackUrl(EntityLinks::update($this->controller->kategorie)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Kategorien » bearbeiten'); $lookup = new LookupBoxControl(null, 'ck_parent'); $lookup->setLookupEntity(new Model\CmsKategorie())->setTextfield('ck_bezeichnung')->setValuefield('ck_id')->setGroupfield('parent')->showNull(0, '-- Kein Parent --')->preSelect($this->controller->kategorie->ck_parent); $edit = new EditControl($panel, 'edit'); $edit->setEntity($this->controller->kategorie)->setHeader('Stammdaten bearbeiten')->addRow('ck_bezeichnung')->addRow('Parent', $lookup); $button = new ButtonControl($panel, 'button'); $button->setCaption('Speichern')->setIsSubmit('true'); $texte = new TranslatedTextControl($this, 'texte'); $texte->setCaption('Angezeiger Text'); $texte->setElement($this->controller->kategorie->getElementId()); }
protected function createControls() { $this->setPostback('DefaultMod', 'doUsername'); $wrapper = new WrapperControl($this, 'wrapperIntro'); $wrapper->setModule('cms')->setAction('show')->addParam('id', 12); $panel = new CaptionedPanelControl($this, 'pnl'); $panel->setCaption('E-Mail-Adresse eingeben'); $input = new InputTextboxControl(null, 'email'); $input->addCssClass('required validate-email'); $edit = new EditControl($panel, 'edt'); $edit->setEntity(new User()); $edit->addRow('Ihre Adresse', $input); $submit = new ButtonControl($this, 'submit'); $submit->setCaption('Senden')->setIsSubmit(true)->setAddArrows(false); }
protected function createControls() { $panel = new CaptionedPanelControl($this, 'pnlSmallBlog'); $panel->setCaption('Übersicht'); $panel->addCssClass('posts'); $itemSkin = ' <dl class="dl-horizontal"> <dt><a href="#"><img src="{ca_hauptbild}" alt="" /></a></dt> <dd> <p><a href="/nfs/index.php/Aktuelles#{ca_id}"><i class="icon-calendar"></i> {ca_geschrieben_am} - {titel}</a></p> </dd> </dl> '; $lView = new ListViewControl($panel, 'lViewAktuelles'); $lView->setSkin('{controls}')->setItemSkin($itemSkin)->addItems($this->controller->kategorie->getArtikel()); }
protected function createControls() { $this->setPostback('site', 'endEditRegion', array('id' => $this->controller->region->id, 're_page' => $this->controller->region->re_page, 're_parent' => $this->controller->region->re_parent, 're_name' => $this->controller->region->re_name)); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Region » bearbeiten'); $modules = new Controls\ListModuleControl(null, 're_module'); $modules->setNameOfActionBox('re_action'); $modules->preSelect($this->controller->region->re_module); $actions = new Controls\ListActionControl(null, 're_action'); $actions->setModule($this->controller->region->re_module); $actions->preSelect($this->controller->region->re_action); $edit = new EditControl($panel, 'edit'); $edit->setEntity($this->controller->region)->addRow('Modul', $modules)->addRow('Action', $actions)->addRow('re_parameter'); $button = new ButtonControl($panel, 'button'); $button->setCaption('Speichern')->setIsSubmit('true'); }
protected function createControls() { if (isset($this->request->projekt)) { $projekt = $this->request->projekt; } else { $projekt = 0; } $this->setPostback('medien', 'doUpload', array('kollektion' => $this->request->kollektion, 'projekt' => $projekt), 'multipart/form-data'); $panel = new CaptionedPanelControl($this, 'panel'); $panel->setCaption('Upload'); $fileUpload = new InputFileControl(null, 'Filedata'); $title = new \NewFrontiers\Controls\FormControls\InputTextboxControl(null, 'titel'); $edit = new EditControl($panel, 'edit'); $edit->setEntity($this->controller->kollektion)->setHeader('Datei hochladen')->addRow('Datei', $fileUpload)->addRow('Titel', $title); $button = new ButtonControl($panel, 'button'); $button->setCaption('Speichern')->setIsSubmit('true'); }