Lines Matching defs:form

143  * Display the form to edit image meta data
173 $form = new Form([
177 $form->addTagOpen('div')->addClass('no');
178 $form->setHiddenField('img', $id);
179 $form->setHiddenField('mediado', 'save');
195 $form->addTagOpen('div')->addClass('row');
197 $form->addTextInput(
202 $form->addTextarea($p['name'], $lang[$field[1]])->id($p['id'])
207 $form->addTagClose('div');
209 $form->addTagOpen('div')->addClass('buttons');
210 $form->addButton('mediado[save]', $lang['btn_save'])->attr('type', 'submit')
212 $form->addTagClose('div');
214 $form->addTagClose('div');
215 echo $form->toHTML();
841 $form = new Form([
846 $form->addTagOpen('div')->addClass('no');
847 $form->setHiddenField('sectok', null);
850 $form->setHiddenField($pKey, $pVal);
853 $form->setHiddenField('q', $INPUT->str('q'));
855 $form->addHTML('<ul>' . NL);
865 $form->addHTML('<li class="' . $content[0] . '">');
871 $radio = $form->addRadioButton(
877 $form->addHTML('</li>' . NL);
879 $form->addHTML('<li>');
880 $form->addButton('', $lang['btn_apply'])->attr('type', 'submit');
881 $form->addHTML('</li>' . NL);
882 $form->addHTML('</ul>' . NL);
883 $form->addTagClose('div');
884 echo $form->toHTML();
955 * Prints tab that displays uploading form
977 * Prints tab that displays search form
1025 * Prints tab that displays form for editing mediafile metadata
1128 $form = new Form([
1132 $form->addTagOpen('div')->addClass('no');
1133 $form->addButton('', $lang['btn_delete'])->attr('type', 'submit');
1134 $form->addTagClose('div');
1136 echo $form->toHTML();
1143 $form = new Form([
1147 $form->addTagOpen('div')->addClass('no');
1148 $form->addButton('', $lang['media_update'])->attr('type', 'submit');
1149 $form->addTagClose('div');
1151 echo $form->toHTML();
1157 $form = new Form([
1161 $form->addTagOpen('div')->addClass('no');
1162 $form->setHiddenField('mediado', 'restore');
1163 $form->setHiddenField('rev', $rev);
1164 $form->addButton('', $lang['media_restore'])->attr('type', 'submit');
1165 $form->addTagClose('div');
1167 echo $form->toHTML();
1531 * Print the media upload form if permissions are correct
1559 // The default HTML upload form
1560 $form = new Form([
1562 'enctype' => 'multipart/form-data',
1567 $form->addTagOpen('div')->addClass('no');
1568 $form->setHiddenField('ns', hsc($ns)); // FIXME hsc required?
1569 $form->addTagOpen('p');
1570 $form->addTextInput('upload', $lang['txt_upload'])->id('upload__file')
1572 $form->addTagClose('p');
1573 $form->addTagOpen('p');
1574 $form->addTextInput('mediaid', $lang['txt_filename'])->id('upload__name')
1576 $form->addButton('', $lang['btn_upload'])->attr('type', 'submit');
1577 $form->addTagClose('p');
1579 $form->addTagOpen('p');
1582 $form->addCheckbox('ow', $lang['txt_overwrt'])->id('dw__ow')->val('1')
1584 $form->addTagClose('p');
1586 $form->addTagClose('div');
1595 echo $form->toHTML('Upload');
1629 * Print the search field form
1642 // The default HTML search form
1643 $form = new Form([
1649 $form->addTagOpen('div')->addClass('no');
1650 $form->setHiddenField('ns', $ns);
1651 $form->setHiddenField($fullscreen ? 'mediado' : 'do', 'searchlist');
1653 $form->addTagOpen('p');
1654 $form->addTextInput('q', $lang['searchmedia'])
1657 $form->addHTML(' ');
1658 $form->addButton('', $lang['btn_search'])->attr('type', 'submit');
1659 $form->addTagClose('p');
1660 $form->addTagClose('div');
1661 echo $form->toHTML('SearchMedia');