10-27-2021, 07:37 PM
0
Capturas
Ejecutar estas consultas
En admin.php --> inc --> php --> admin.php
Buscar:
Debajo agregar:
Buscar:
Arriba agregar:
En posts.php --> inc --> php --> posts.php
Buscar:
Arriba agregar:
En t.admin.tpl --> themes --> default --> templates --> t.admin.tpl
Buscar:
Debajo agregar:
En t.home.tpl --> themes --> default --> templates --> t.home.tpl
Buscar:
Debajo agregar:
En m.admin_sidemenu.tpl --> themes --> default --> templates --> admin_mods --> m.admin_sidemenu.tpl
Buscar:
Debajo agregar:
Y subir esta carpeta
Mega
Debes agradecer para ver el contenido...
Google Drive
Debes agradecer para ver el contenido...
Mediafire
Debes agradecer para ver el contenido...
Creditos: Debes agradecer para ver el contenido...
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
Ejecutar estas consultas
Código PHP: ( Seleccionar Todo )
CREATE TABLE IF NOT EXISTS `e_encuesta` (
`e_id` int(11) NOT NULL AUTO_INCREMENT,
`e_titulo` varchar(150) NOT NULL,
`e_autor` int(11) NOT NULL,
`e_fecha` int(10) NOT NULL,
`e_estado` int(1) NOT NULL,
PRIMARY KEY (`e_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
Código PHP: ( Seleccionar Todo )
CREATE TABLE IF NOT EXISTS `e_opciones` (
`opc_id` int(11) NOT NULL AUTO_INCREMENT,
`o_encuesta` int(11) NOT NULL,
`o_titulo` varchar(150) NOT NULL,
`o_votos` int(11) NOT NULL,
PRIMARY KEY (`opc_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
Código PHP: ( Seleccionar Todo )
CREATE TABLE IF NOT EXISTS `e_votos` (
`voto_id` int(11) NOT NULL AUTO_INCREMENT,
`v_user` int(11) NOT NULL,
`v_opcion` int(11) NOT NULL,
`v_encuesta` int(11) NOT NULL,
`v_fecha` int(10) NOT NULL,
PRIMARY KEY (`voto_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
En admin.php --> inc --> php --> admin.php
Buscar:
Código PHP: ( Seleccionar Todo )
$tsAdmin = new tsAdmin();
Debajo agregar:
Código PHP: ( Seleccionar Todo )
// CLASE ENCUESTA
include("../class/c.encuesta.php");
$tsEncuesta = new tsEncuesta();
Buscar:
Código PHP: ( Seleccionar Todo )
/** NOTICIAS **/
Arriba agregar:
Código PHP: ( Seleccionar Todo )
/* ESCUESTA */
} elseif($action == 'enc'){
if(empty($act)) $smarty->assign("tsEncuesta",$tsEncuesta->getEncuesta());
} elseif($action == 'opc') {
if(empty($act)) $smarty->assign("tsOpciones",$tsEncuesta->getOpciones());
En posts.php --> inc --> php --> posts.php
Buscar:
Código PHP: ( Seleccionar Todo )
// CLASE TOPS
Arriba agregar:
Código PHP: ( Seleccionar Todo )
include TS_CLASS . 'c.encuesta.php';
$smarty->assign('tsEncuesta', tsEncuesta::getInstance()->homeEncuesta());
En t.admin.tpl --> themes --> default --> templates --> t.admin.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
{include file='admin_mods/m.admin_noticias.tpl'}
Debajo agregar:
Código PHP: ( Seleccionar Todo )
{elseif $tsAction == 'enc' || $tsAction == 'opc'}
{include file='admin_mods/m.admin_encuesta.tpl'}
En t.home.tpl --> themes --> default --> templates --> t.home.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
{include file='modules/m.home_stats.tpl'}
Debajo agregar:
Código PHP: ( Seleccionar Todo )
{include file='modules/m.home_encuesta.tpl'}
En m.admin_sidemenu.tpl --> themes --> default --> templates --> admin_mods --> m.admin_sidemenu.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
<li id="a_news"><span class="cat-title"><a href="{$tsConfig.url}/admin/news">Noticias</a></span></li>
Debajo agregar:
Código PHP: ( Seleccionar Todo )
<li id="a_{if $tsAction == opc}opc{else}enc{/if}"><span class="cat-title"><a href="{$tsConfig.url}/admin/enc">Encuesta</a></span></li>
Y subir esta carpeta
Mega
Debes agradecer para ver el contenido...
Google Drive
Debes agradecer para ver el contenido...
Mediafire
Debes agradecer para ver el contenido...
Creditos: Debes agradecer para ver el contenido...


Facebook
Twitter
Reddit
Digg
del.icio.us
Tumblr
Pinterest
Blogger
Fark
LinkedIn
Mix
Google