1
|
|
|
<?php |
2
|
|
|
### ============================================================= |
3
|
|
|
### Mastop InfoDigital - Paixão por Internet |
4
|
|
|
### ============================================================= |
5
|
|
|
### Index do Módulo |
6
|
|
|
### ============================================================= |
7
|
|
|
### Developer: Fernando Santos (topet05), [email protected] |
8
|
|
|
### Copyright: Mastop InfoDigital © 2003-2007 |
9
|
|
|
### ------------------------------------------------------------- |
10
|
|
|
### www.mastop.com.br |
11
|
|
|
### ============================================================= |
12
|
|
|
### |
13
|
|
|
### ============================================================= |
14
|
|
|
|
15
|
|
|
require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
16
|
|
|
require_once __DIR__ . '/header.php'; |
17
|
|
|
|
18
|
|
|
if (!$_POST) { |
19
|
|
|
echo '<h1>' . $xoopsModule->getVar('name') . '</h1>'; |
20
|
|
|
echo MGO_MAI_DESC . '<br><br>'; |
21
|
|
|
require_once XOOPS_ROOT_PATH . '/modules/' . MGO_MOD_DIR . '/include/generator.form.inc.php'; |
22
|
|
|
$dstac_form->display(); |
23
|
|
|
} else { |
24
|
|
|
if (isset($_POST)) { |
25
|
|
|
foreach ($_POST as $k => $v) { |
26
|
|
|
${$k} = $v; |
27
|
|
|
} |
28
|
|
|
} |
29
|
|
|
// $sec_classe = mgo_getClass(MGO_MOD_TABELA0, $sec_10_id); |
30
|
|
|
$sec_classe = new \XoopsModules\Mastopgo2\Section($sec_10_id); |
31
|
|
|
if (empty($sec_10_id) || '' == $sec_classe->getVar('sec_10_id') || 0 == $sec_classe->contaDestaques()) { |
32
|
|
|
xoops_error(sprintf(MGO_MAI_SEC_404, $sec_classe->getVar('sec_30_nome'))); |
|
|
|
|
33
|
|
|
} else { |
34
|
|
|
$iframe = '<iframe src="' . XOOPS_URL . '/modules/' . MGO_MOD_DIR . '/tac.php?sec_id=' . $sec_10_id; |
35
|
|
|
$iframe .= ('100%' !== $mgo_w) ? '&w=' . $mgo_w : ''; |
36
|
|
|
$iframe .= (200 != $mgo_h) ? '&h=' . (int)$mgo_h : ''; |
37
|
|
|
$iframe .= (0 == $setas) ? '&noarrows=1' : ''; |
38
|
|
|
$iframe .= (0 == $barra) ? '¬extbar=1' : ''; |
39
|
|
|
$iframe .= (6 != $delay) ? '&delay=' . $delay : ''; |
40
|
|
|
$iframe .= ('333333' != $barcolor) ? '&barcolor=' . $barcolor : ''; |
41
|
|
|
$iframe .= ('FFFFFF' !== $textcolor) ? '&textcolor=' . $textcolor : ''; |
42
|
|
|
$iframe .= (50 != $transp) ? '&bartransp=' . $transp : ''; |
43
|
|
|
$iframe .= '" scrolling="no" frameborder="0" width="' . $mgo_w . '" height="' . $mgo_h . '" marginheight="0" marginwidth="0" align="' . $align . '"></iframe>'; |
44
|
|
|
echo '<h3>' . MGO_MAI_FORM_TITLE . '</h3>'; |
45
|
|
|
echo $iframe; |
46
|
|
|
echo '<br><br>' . MGO_MAI_COPY_PASTE . '<br><br>'; |
47
|
|
|
echo "<textarea rows='5' style='width:90%; padding:5px; margin-top:10px; margin-bottom:10px;' onfocus='this.select();' >" . $iframe . '</textarea>'; |
48
|
|
|
} |
49
|
|
|
require_once XOOPS_ROOT_PATH . '/modules/' . MGO_MOD_DIR . '/include/generator.form.inc.php'; |
50
|
|
|
$dstac_form->display(); |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
require_once XOOPS_ROOT_PATH . '/footer.php'; |
54
|
|
|
|