setTableName('votation');
$vtr->setAnswerTableName('vote_answers');
$vtr->setTplFile($this_tpl.'voter_info.html');
$vtr->setUsersTableName('vote_users');
$vtr->setCharset('windows-1251');
$vtr->setView('get');
$vtr->setCoockiePath('/');
$vtr->setCoockieLive(24);
$vtr->setImgPath($IncludePath.'images/voting/');
$vtr->setImages('01.gif');
$vtr->setImages('02.gif');
$vtr->setImages('03.gif');
$vtr->setImages('04.gif');
$vtr->setImages('05.gif');
$vtr->setImages('06.gif');
$vtr->setImages('07.gif');
$vtr->setImages('08.gif');
$vtr->setImages('09.gif');
/*
$fvtr->setImages('01.gif');
$fvtr->setImages('02.gif');
$fvtr->setImages('03.gif');
$fvtr->setImages('04.gif');
$fvtr->setImages('05.gif');
$fvtr->setImages('06.gif');
$fvtr->setImages('07.gif');
$fvtr->setImages('01.gif');
$fvtr->setImages('02.gif');
$fvtr->setImages('03.gif');
$fvtr->setImages('04.gif');
$fvtr->setImages('05.gif');
$fvtr->setImages('06.gif');
$fvtr->setImages('07.gif');
*/
$vtr->setScriptName($PHP_SELF);
// $vtr->setDateFormat('DD.MM.YYYY');
$vtr->setDateFormat('%d.%m.%Y');
$vtr->setImages();
$vtr->setLimit(10);
$vtr->setMaxWidth(200);
// $vtr->viewOnly('voting');
if ($ans)
{
//echo "
@@@@@@@ ans== ".$ans;
//echo "
@@@@@@@ loc== ".$loc;
$vtr->vote($ans,$question);
if ($loc)
{
// Header("Location:nws_index.php");
// echo "
######## == ".$ans;
// echo "
######## == ".$loc;
// exit;
if (strpos($loc,'?')!==false)
header('Location: '.$loc.'&question='.$question);
else
header('Location: '.$loc.'?question='.$question);
}
}
require("main_functions.php");
require('func_include_up2.php');
require("nws_config.php");
require("nws_connect.php");
require("nws_setting.php");
require("nws_attach.php");
// $page->addMainValue('info',$vtr->show($question));
$title='Опрос от E-Rostov';
$tpl='votings_info.html';
$value['votings']=$vtr->show($question);;
$value['title']=$title;
$value['IncludePath']=$IncludePath;
$value['rubric']=$rubric;
exttemplate_printfile($IncludePath.$SitesSetting['Tpl'].$tpl,$value);
// echo $vtr->show($question);
require('func_include_down.php');
// $page->printPage();
?>