24 require_once(
"config.php");
25 require_once(
"inc/db.class.php");
26 require_once(
"inc/auth.class.php");
27 require_once(
"inc/poll.class.php");
28 require_once(
"inc/html.class.php");
29 require_once(
"inc/user.class.php");
32 if( !(isset($_SESSION)) ){
37 $db=
new db( DB_USER, DB_PASS, DB_DATABASE, DB_HOST );
46 if (isset($_POST[
"send"])){
54 if( isset($_GET[
"ID"]) AND ($_GET[
"ID"] !=
"" ) ){
55 $pollId = intval($_GET[
"ID"]);
60 $poll->load_from_id(
$db,$pollId);
69 echo
"<table class='table_3'>";
73 echo
"<td colspan='2'>{$widget->dispName}";
74 echo
"<table class='table_3' >";
75 foreach($widget->option_list as $opt){
77 echo
"<td>{$opt->value}</td>";
78 echo
"<td>{$count[$opt->ID]}</td>";
84 $f = $widget->get_config(
"false");
85 $t = $widget->get_config(
"true");
86 $i =
"{$widget->ID}_true";
87 $i2 =
"{$widget->ID}_false";
89 echo
"<td>{$widget->dispName} $t <br/> {$widget->dispName} $f</td>";
90 echo
"<td>{$count[ $i ]} <br/> {$count[ $i2 ]}</td>";
92 echo
"<td>{$widget->dispName}</td>";
93 echo
"<td>{$count[ $widget->ID ]}</td>";