Lines Matching refs:form
122 $form = $this->_startFieldSet($this->getLang('SelectCategory'), 'translator_setup');
126 …$form->addElement(form_makeListboxField('Category', array_keys($categories), $_REQUEST['Category']…
127 $form->addElement(form_makeTag('br'));
129 …$form->addElement(form_makeListboxField('Version', (empty($categories[$_REQUEST['Category']]['Vers…
130 $form->addElement(form_makeTag('br'));
132 $form->addElement(form_makeField('submit', 'fn[setup]', $this->getLang('Show'), ''));
134 $renderer->doc .= $this->_finishFieldset($form);
141 function _categorySelection(&$form, $currentCategory) { argument
146 $form;
155 …$form->addElement(form_makeListboxField('Category', $categories, $currentCategory, $this->getLang(…
156 $form->addElement(form_makeTag('br'));
186 $form = $this->_startFieldSet($this->getLang('Translator'), "translator_do");
188 $form->addElement(form_makeOpenTag("table", array('class' => 'translation_table')));
190 $form->addElement(form_makeOpenTag("colgroup"));
191 $form->addElement(form_makeOpenTag("col", array('width' => 2)));
192 $form->addElement(form_makeOpenTag("col", array('width' => 4)));
193 $form->addElement(form_makeOpenTag("col", array('width' => 4)));
194 $form->addElement(form_makeOpenTag("col", array('width' => 1)));
195 $form->addElement(form_makeCloseTag("colgroup"));
198 $form->addElement(form_makeOpenTag("tr"));
200 $form->addElement(form_makeOpenTag("th"));
201 $form->addElement($this->getLang('RessourceKeyName'));
202 $form->addElement(form_makeCloseTag("th"));
204 $form->addElement(form_makeOpenTag("th"));
205 $form->addElement($this->getLang('MasterValue') . " ($masterLanguage)");
206 $form->addElement(form_makeCloseTag("th"));
208 $form->addElement(form_makeOpenTag("th", array('class' => 'translation_editor')));
209 $form->addElement($this->getLang('TranslationValue') . " ({$this->currentLanguage})");
210 $form->addElement(form_makeCloseTag("th"));
212 $form->addElement(form_makeCloseTag("tr"));
227 $form->addElement(form_makeOpenTag("tr"));
229 …$form->addElement(form_makeOpenTag("td", array_merge(array('class' => 'resourceKey', 'title' => hs…
230 $form->addElement(stripslashes(utf8_decode($line['ResourceKey'])));
231 $form->addElement(form_makeCloseTag("td"));
233 $form->addElement(form_makeOpenTag("td", $onclick));
236 …$form->addElement(form_makeOpenTag("textarea", array( 'rows' => (ceil(strlen($masterValue) / $text…
241 $form->addElement(hsc(stripslashes($masterValue)));
242 $form->addElement(form_makeCloseTag("textarea"));
243 $form->addElement(form_makeCloseTag("td"));
245 $form->addElement(form_makeOpenTag("td", array('class' => 'translation_editor')));
247 …$form->addElement(form_makeOpenTag("textarea", array( 'rows' => (ceil(strlen($masterValue) / $text…
253 $form->addElement(stripslashes($line['TranslationValue']));
254 $form->addElement(form_makeCloseTag("textarea"));
255 …if ( auth_ismanager() && !empty($line['TranslationValue']) ) $form->addElement("(" . tpl_link(wl($…
256 $form->addElement(form_makeCloseTag("td"));
257 $form->addElement(form_makeOpenTag("td"));
258 …$form->addElement(form_makeOpenTag("button", array('onclick' => "translator.run('{$this->currentLa…
259 $form->addElement('google');
260 $form->addElement(form_makeCloseTag("button"));
261 $form->addElement(form_makeCloseTag("td"));
263 $form->addElement(form_makeCloseTag("tr"));
268 $form->addElement(form_makeCloseTag("table"));
271 $form->addElement(form_makeField('submit', 'fn[setup]', $this->getLang('Cancel'), ''));
272 $form->addElement(form_makeField('submit', 'fn[translate]', $this->getLang('Submit'), ''));
275 $renderer->doc .= $this->_finishFieldset($form);
291 $form = $this->_startFieldSet($this->getLang('selectedOptions'));
292 …$form->addElement("<div class='language' style='width:150px;'>{$this->getLang('Category')}:</div><…
293 $form->addElement(form_makeTag('br'));
294 …$form->addElement("<div class='language' style='width:150px;'>{$this->getLang('Version')}:</div><d…
295 $form->addElement(form_makeTag('br'));
296 …$form->addElement("<div class='language' style='width:150px;'>{$this->getLang('Permalink')}:</div>…
297 $form->addElement(form_makeTag('br'));
299 …$form->addElement(form_makeListboxField('newAdditionalLanguage', $this->functions->_getAvailableLa…
300 $form->addElement(form_makeTag('br'));
301 …$form->addElement(form_makeListboxField('newAmount', array('25', '50', '100', '200'), $amount, $th…
302 $form->addElement(form_makeTag('br'));
303 $form->addElement(form_makeTextField('Filter', $_REQUEST['Filter'], 'Filter' . ':', '', 'short'));
304 $form->addElement(form_makeTag('br'));
305 …$form->addElement(form_makeField('submit', 'fn[setpage][0]', 'submit', '', 'fn[setpage][0]ID', 'se…
306 $form->addElement(form_makeTag('br'));
311 …$form->addElement(form_makeField('submit', 'fn[setpage][' . ($i-1)*$amount . ']', $i, '', 'fn[setp…
315 $form->addElement(form_makeTag('br'));
316 $form->addElement(form_makeField('submit', 'fn[setup]', $this->getLang('backToFirstPage'), ''));
319 return $this->_finishFieldset($form);
342 …$form = $this->_startFieldSet( $this->category . ' ' . $this->getLang('Version') . ' ' . $this->cu…
346 $form->addHidden('Version', $this->currentVersion);
347 $form->addHidden('Category', $this->category);
349 $form->addElement(form_makeOpenTag('p'));
350 $form->addElement($this->getLang('AmountOfMasterValues') . ': ' . $masterValues);
351 $form->addElement(form_makeCloseTag('p'));
364 $form->addElement(form_makeOpenTag('div', array('class' => 'language') ));
365 …$form->addElement($this->functions->_downloadLink($this->category, $this->currentVersion, $languag…
366 $form->addElement(form_makeCloseTag('div'));
368 $form->addElement(form_makeOpenTag('div', array('class' => 'language') ));
369 …$form->addElement($this->functions->_downloadLink($this->category, $this->currentVersion, $languag…
370 $form->addElement(form_makeCloseTag('div'));
372 $form->addElement(form_makeOpenTag('div', array('class' => 'percent')));
373 $form->addElement(sprintf("%.1f%%", $currentAmount / $masterValues * 100 ));
374 $form->addElement(form_makeCloseTag('div'));
378 …$form->addElement(form_makeField('submit', 'fn[setup][' . $language . '][' . $this->getLang('all')…
379 …if ( $currentAmount > 0 ) $form->addElement(form_makeField('submit', 'fn[setup][' . $language . ']…
380 …if ( $currentAmount < $masterValues ) $form->addElement(form_makeField('submit', 'fn[setup][' . $l…
382 $form->addElement(form_makeTag('br'));
385 $renderer->doc .= $this->_finishFieldset($form);
394 $form = new Doku_Form($hid, wl($ID), 'post', $formType);
395 $form->startFieldset( $name );
396 $form->addHidden('Category', $_REQUEST['Category']);
397 $form->addHidden('Version', $_REQUEST['Version']);
398 $form->addHidden('Display', $_REQUEST['Display']);
399 $form->addHidden('Language', $_REQUEST['Language']);
400 $form->addHidden('AdditionalLanguage', $_REQUEST['AdditionalLanguage']);
401 $form->addHidden('start', $_REQUEST['start']);
402 $form->addHidden('amount', $_REQUEST['amount']);
403 return $form;
409 function _finishFieldset($form=null) { argument
410 if ( empty($form) ) return;
412 $form->endFieldset();
413 return $this->functions->capture_form_output($form);