XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
xoops_quote.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_QUOTE_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_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
45
$xoopsTpl
=
new
XoopsTpl
();
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
$xoops
Definition:
xoops_quote.php:16
$form
$form
Definition:
xoops_quote.php:21
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
$button
$button
Definition:
xoops_quote.php:29
Xoops\getInstance
static getInstance()
Definition:
Xoops.php:160
$button_2
$button_2
Definition:
xoops_quote.php:34
XoopsLocaleEn_US\PASTE_THE_QUOTE_YOU_WANT_TO_INSERT
const PASTE_THE_QUOTE_YOU_WANT_TO_INSERT
Definition:
en_US.php:898
Xoops\Form\ThemeForm
Definition:
ThemeForm.php:27
Xoops
XoopsLocaleEn_US\A_CLOSE
const A_CLOSE
Definition:
en_US.php:87
Xoops\Form\ElementTray
Definition:
ElementTray.php:25
$button_tray
$button_tray
Definition:
xoops_quote.php:26
$xoopsTpl
$xoopsTpl
Definition:
xoops_quote.php:45
Xoops\Form\Button
Definition:
Button.php:25
$button_3
$button_3
Definition:
xoops_quote.php:38
usr64
htdocs
class
xoopseditor
tinymce
tiny_mce
plugins
xoops_quote
xoops_quote.php
Generated on Fri May 22 2015 03:07:00 for XOOPS by
1.8.9.1