Lines Matching refs:form

129  * Display the form to edit image meta data
158 $form = new Form([
162 $form->addTagOpen('div')->addClass('no');
163 $form->setHiddenField('img', $id);
164 $form->setHiddenField('mediado', 'save');
180 $form->addTagOpen('div')->addClass('row');
182 $form->addTextInput(
187 $form->addTextarea($p['name'], $lang[$field[1]])->id($p['id'])
192 $form->addTagClose('div');
194 $form->addTagOpen('div')->addClass('buttons');
195 $form->addButton('mediado[save]', $lang['btn_save'])->attr('type', 'submit')
197 $form->addTagClose('div');
199 $form->addTagClose('div');
200 echo $form->toHTML();
790 $form = new Form([
795 $form->addTagOpen('div')->addClass('no');
796 $form->setHiddenField('sectok', null);
799 $form->setHiddenField($pKey, $pVal);
802 $form->setHiddenField('q', $INPUT->str('q'));
804 $form->addHTML('<ul>'.NL);
811 $form->addHTML('<li class="'. $content[0] .'">');
817 $radio = $form->addRadioButton(
823 $form->addHTML('</li>'.NL);
825 $form->addHTML('<li>');
826 $form->addButton('', $lang['btn_apply'])->attr('type', 'submit');
827 $form->addHTML('</li>'.NL);
828 $form->addHTML('</ul>'.NL);
829 $form->addTagClose('div');
830 print $form->toHTML();
897 * Prints tab that displays uploading form
918 * Prints tab that displays search form
965 * Prints tab that displays form for editing mediafile metadata
1065 $form = new Form([
1069 $form->addTagOpen('div')->addClass('no');
1070 $form->addButton('', $lang['btn_delete'])->attr('type', 'submit');
1071 $form->addTagClose('div');
1073 echo $form->toHTML();
1081 $form = new Form([
1085 $form->addTagOpen('div')->addClass('no');
1086 $form->addButton('', $lang['media_update'])->attr('type', 'submit');
1087 $form->addTagClose('div');
1089 echo $form->toHTML();
1096 $form = new Form([
1100 $form->addTagOpen('div')->addClass('no');
1101 $form->setHiddenField('mediado', 'restore');
1102 $form->setHiddenField('rev', $rev);
1103 $form->addButton('', $lang['media_restore'])->attr('type', 'submit');
1104 $form->addTagClose('div');
1106 echo $form->toHTML();
1340 $form = new Form([
1346 $form->addTagOpen('div')->addClass('no');
1347 $form->setHiddenField('sectok', null);
1348 $form->setHiddenField('mediado', 'diff');
1349 $form->setHiddenField('rev2[0]', $l_rev);
1350 $form->setHiddenField('rev2[1]', $r_rev);
1351 echo $form->toHTML();
1642 * Print the media upload form if permissions are correct
1669 // The default HTML upload form
1670 $form = new Form([
1672 'enctype' => 'multipart/form-data',
1677 $form->addTagOpen('div')->addClass('no');
1678 $form->setHiddenField('ns', hsc($ns)); // FIXME hsc required?
1679 $form->addTagOpen('p');
1680 $form->addTextInput('upload', $lang['txt_upload'])->id('upload__file')
1682 $form->addTagClose('p');
1683 $form->addTagOpen('p');
1684 $form->addTextInput('mediaid', $lang['txt_filename'])->id('upload__name')
1686 $form->addButton('', $lang['btn_upload'])->attr('type', 'submit');
1687 $form->addTagClose('p');
1689 $form->addTagOpen('p');
1692 $form->addCheckbox('ow', $lang['txt_overwrt'])->id('dw__ow')->val('1')
1694 $form->addTagClose('p');
1696 $form->addTagClose('div');
1705 echo $form->toHTML('Upload');
1738 * Print the search field form
1750 // The default HTML search form
1751 $form = new Form([
1757 $form->addTagOpen('div')->addClass('no');
1758 $form->setHiddenField('ns', $ns);
1759 $form->setHiddenField($fullscreen ? 'mediado' : 'do', 'searchlist');
1761 $form->addTagOpen('p');
1762 $form->addTextInput('q', $lang['searchmedia'])
1765 $form->addHTML(' ');
1766 $form->addButton('', $lang['btn_search'])->attr('type', 'submit');
1767 $form->addTagClose('p');
1768 $form->addTagClose('div');
1769 print $form->toHTML('SearchMedia');