\n"; $CNT_TMP .= headline($crow["acontent_title"], $crow["acontent_subtitle"], $template_default["article"]); if(in_array($remoteIP, $poll_form["ip"])) { $poll_total_votes = 0; foreach($poll_form["count"] as $key => $value) { $poll_total_votes += $value; } if($poll_total_votes > 0) { $poll_html .= ''; for($key = 0; $key < $poll_count; $key++) { $poll_html .= "\n\n\t\n\t".'\n\n"; } $poll_html .= "
"; $poll_do_br = ''; $poll_form["choice"][$key] = isset($poll_form["choice"][$key]) ? trim($poll_form["choice"][$key]) : ''; if(!empty($poll_form["choice"][$key])) { $poll_html .= html_specialchars($poll_form["choice"][$key]); $poll_do_br = '
'; } if(is_array($poll_image["images"][$key]) && count($poll_image["images"][$key])) { $poll_html .= $poll_do_br; $poll_html .= showPollImage($poll_image["images"][$key]); } $barWidth = round(($poll_form["count"][$key] / $poll_total_votes * 100), 0); $poll_html .= "
'; $poll_html .= ''; $poll_html .= ''; $poll_html .= ''.$barWidth."%
"; } } elseif((is_array($poll_form["choice"]) && count($poll_form["choice"])) || (is_array($poll_image["images"]) && count($poll_image["images"]))) { $form_name = "form_".randpassword(6); $poll_html .= '
'; $poll_html .= ''; for($key = 0; $key < $poll_count; $key++) { $poll_html .= "\n\n\t".'\n\t"; $poll_html .= '\n"; } $poll_html .= "
'; $poll_html .= ''; $poll_html .= "'; $poll_do_br = ''; $poll_form["choice"][$key] = isset($poll_form["choice"][$key]) ? trim($poll_form["choice"][$key]) : ''; if(!empty($poll_form["choice"][$key])) { $poll_html .= $poll_form["choice"][$key]; $poll_do_br = '
'; } if(is_array($poll_image["images"][$key]) && count($poll_image["images"][$key])) { $poll_html .= $poll_do_br; $poll_html .= showPollImage($poll_image["images"][$key]); } $poll_html .= "
\n"; $poll_html .= ''; $poll_html .= "
"; } $CNT_TMP .= $poll_html; $CNT_TMP .= "\n\n"; unset($poll_image); unset($poll_text); unset($poll_form); ?>