XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
xoops_code.php
Go to the documentation of this file.
1
<?php
14
// require_once dirname(__FILE__).'/../../../../../../mainfile.php';
15
16
$xoops
=
Xoops::getInstance
();
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));
26
$button_tray
=
new
Xoops\Form\ElementTray
(
''
,
''
);
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
45
$xoopsTpl
=
new
XoopsTpl
();
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();
XoopsLocaleEn_US\A_SUBMIT
const A_SUBMIT
Definition:
en_US.php:128
XoopsTpl
Definition:
template.php:32
XoopsLocaleEn_US\A_RESET
const A_RESET
Definition:
en_US.php:121
Xoops\getInstance
static getInstance()
Definition:
Xoops.php:160
$xoopsTpl
$xoopsTpl
Definition:
xoops_code.php:45
XoopsLocaleEn_US\PASTE_THE_CODE_YOU_WANT_TO_INSERT
const PASTE_THE_CODE_YOU_WANT_TO_INSERT
Definition:
en_US.php:897
$form
$form
Definition:
xoops_code.php:21
Xoops\Form\ThemeForm
Definition:
ThemeForm.php:27
Xoops
$button
$button
Definition:
xoops_code.php:29
XoopsLocaleEn_US\A_CLOSE
const A_CLOSE
Definition:
en_US.php:87
Xoops\Form\ElementTray
Definition:
ElementTray.php:25
Xoops\Form\Button
Definition:
Button.php:25
$button_tray
$button_tray
Definition:
xoops_code.php:26
$button_2
$button_2
Definition:
xoops_code.php:34
$xoops
$xoops
Definition:
xoops_code.php:16
$button_3
$button_3
Definition:
xoops_code.php:38
usr64
htdocs
class
xoopseditor
tinymce
tiny_mce
plugins
xoops_code
xoops_code.php
Generated on Fri May 22 2015 03:07:00 for XOOPS by
1.8.9.1