⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 skin_poll.php

📁 极限网络智能办公系统—MYOA26—100%—源程序。
💻 PHP
字号:
<?php

class skin_poll
{

	function edit_link( $tid, $fid )
	{
		global $ibforums;
		return "[ <a href=\"{$ibforums->base_url}&act=Mod&CODE=20&f={$fid}&t={$tid}\">{$ibforums->lang['ba_edit']}</a> ]";
	}

	function delete_link( $tid, $fid )
	{
		global $ibforums;
		return "[ <a href=\"{$ibforums->base_url}&act=Mod&CODE=22&f={$fid}&t={$tid}\">{$ibforums->lang['ba_delete']}</a> ]";
	}

	function render_row_form( $votes, $id, $answer )
	{
		global $ibforums;
		return "    <tr>\r\n    <td class='row1' colspan='3'><INPUT type=\"radio\" name=\"poll_vote\" value=\"{$id}\">&nbsp;<b>{$answer}</b></td>\r\n    </tr>";
	}

	function showpoll_header( $tid, $poll_q, $edit, $delete )
	{
		global $ibforums;
		return "    <table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>\r\n        <tr>\r\n            <td>\r\n                <table cellpadding='4' cellspacing='1' border='0' width='100%'>\r\n                <tr>\r\n                <td align='right' colspan='3' width='99%' class='titlemedium'><form action=\"{$ibforums->base_url}&act=Poll&t={$tid}\" method=\"post\"> {$edit} &nbsp; {$delete}</td>\r\n                </tr>\r\n                <tr>\r\n                 <td class='row1'>\r\n                  <table cellpadding='4' cellspacing='1' border='0' align='center'>\r\n                  <tr>\r\n                   <td colspan='3' align='center'><b>{$poll_q}</b></td>\r\n                  </tr>";
	}

	function showpoll_form_header( $tid, $poll_q, $edit, $delete )
	{
		global $ibforums;
		return "    <table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>\r\n        <tr>\r\n            <td>\r\n                <table cellpadding='4' cellspacing='1' border='0' width='100%'>\r\n                <tr>\r\n                <td align='right' colspan='3' width='99%' class='titlemedium'><form action=\"{$ibforums->base_url}&act=Poll&t={$tid}\" method=\"post\"> {$edit} &nbsp; {$delete}</td>\r\n                </tr>\r\n                <tr>\r\n                 <td class='row1'>\r\n                  <table cellpadding='4' cellspacing='1' border='0' align='center'>\r\n                  <tr>\r\n                   <td colspan='3' align='center'><b>{$poll_q}</b></td>\r\n                  </tr>";
	}

	function showpoll_footer( $vote_button )
	{
		global $ibforums;
		return "\r\n\t\t\t\t  </table>\r\n\t\t\t\t </td>\r\n                <tr>\r\n                <td class='titlemedium' align='center' colspan='3'>\r\n                {$vote_button}</form>\r\n                </td></tr></table>\r\n                </td></tr></table>\r\n              </tr>\r\n              <tr>\r\n               <td class='mainbg'>\r\n                ";
	}

	function render_row_results( $votes, $id, $answer, $percentage, $width )
	{
		global $ibforums;
		return "    <tr>\r\n    <td class='row1'>{$answer}</td>\r\n    <td class='row1'> [ <b>{$votes}</b> ] </td>\r\n    <td class='row1'><img src='{$ibforums->vars['img_url']}/bar_left.gif' border='0' width='4' height='11' align='middle' alt=''><img src='{$ibforums->vars['img_url']}/bar.gif' border='0' width='{$width}' height='11' align='middle' alt=''><img src='{$ibforums->vars['img_url']}/bar_right.gif' border='0' width='4' height='11' align='middle' alt=''>&nbsp;[{$percentage}%]</td>\r\n    </tr>";
	}

}

?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -