XOOPS  2.6.0
xoops_quote.php
Go to the documentation of this file.
1 <?php
14 require_once dirname(__FILE__).'/../../../../../../mainfile.php';
15 
17 $xoops->disableErrorReporting();
18 
19 $xoops->simpleHeader(true);
20 
21 $form = new Xoops\Form\ThemeForm('', 'imagecat_form', '#', false, 'vertical');
22 $form->addElement(new Xoops\Form\TextArea(XoopsLocale::PASTE_THE_QUOTE_YOU_WANT_TO_INSERT, 'text_id', '', 9, 7));
27 $button_tray->addElement(new Xoops\Form\Hidden('op', 'save'));
28 
29 $button = new Xoops\Form\Button('', 'submit', XoopsLocale::A_SUBMIT, 'submit');
30 $button->setExtra('onclick="Xoops_quoteDialog.insert();"');
31 $button->setClass('btn btn-success');
32 $button_tray->addElement($button);
33 
34 $button_2 = new Xoops\Form\Button('', 'reset', XoopsLocale::A_RESET, 'reset');
35 $button_2->setClass('btn btn-warning');
36 $button_tray->addElement($button_2);
37 
38 $button_3 = new Xoops\Form\Button('', 'button', XoopsLocale::A_CLOSE, 'button');
39 $button_3->setExtra('onclick="tinyMCEPopup.close();"');
40 $button_3->setClass('btn btn-danger');
41 $button_tray->addElement($button_3);
42 
43 $form->addElement($button_tray);
44 
46 $xoopsTpl->assign('js_file', 'js/xoops_quote.js');
47 $xoopsTpl->assign('css_file', 'css/xoops_quote.css');
48 $xoopsTpl->assign('form', $form->render());
49 $xoopsTpl->assign('include_html', '');
50 
51 $xoopsTpl->display('module:system/system_tinymce.tpl');
52 $xoops->simpleFooter();
$xoops
Definition: xoops_quote.php:16
$form
Definition: xoops_quote.php:21
const A_SUBMIT
Definition: en_US.php:128
const A_RESET
Definition: en_US.php:121
$button
Definition: xoops_quote.php:29
static getInstance()
Definition: Xoops.php:160
$button_2
Definition: xoops_quote.php:34
const PASTE_THE_QUOTE_YOU_WANT_TO_INSERT
Definition: en_US.php:898
const A_CLOSE
Definition: en_US.php:87
$button_tray
Definition: xoops_quote.php:26
$xoopsTpl
Definition: xoops_quote.php:45
$button_3
Definition: xoops_quote.php:38