XOOPS  2.6.0
xoops_code.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_CODE_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_codeDialog.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_code.js');
47 $xoopsTpl->assign('css_file', 'css/xoops_code.css');
48 $xoopsTpl->assign('form', $form->render());
49 $xoopsTpl->assign('include_html', '');
50 
51 $xoopsTpl->display('module:system/system_tinymce.tpl');
52 $xoops->simpleFooter();
const A_SUBMIT
Definition: en_US.php:128
const A_RESET
Definition: en_US.php:121
static getInstance()
Definition: Xoops.php:160
$xoopsTpl
Definition: xoops_code.php:45
const PASTE_THE_CODE_YOU_WANT_TO_INSERT
Definition: en_US.php:897
$form
Definition: xoops_code.php:21
$button
Definition: xoops_code.php:29
const A_CLOSE
Definition: en_US.php:87
$button_tray
Definition: xoops_code.php:26
$button_2
Definition: xoops_code.php:34
$xoops
Definition: xoops_code.php:16
$button_3
Definition: xoops_code.php:38