Server : Apache System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 User : www ( 1000) PHP Version : 5.6.40 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/saimikebio.com/themes/lingshi/library/ |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- {if $vote} --> {insert_scripts files='transport_jquery.js'} <div style="padding:8px; line-height:20px;"> <div id="ECS_VOTE"> <form id="formvote" name="ECS_VOTEFORM" method="post" action="javascript:submit_vote()"> <!-- {foreach from=$vote item=title} --> {$title.vote_name} ({$lang.vote_times}:<b style=" color:#c00">{$title.vote_count}</b>)<br /> <!-- {/foreach} --> <!-- {foreach from=$vote item=title} --> <!-- {foreach from=$title.options item=item} --> <!-- {if $title.can_multi eq 0} --> <input type="checkbox" name="option_id" value="{$item.option_id}" /> {$item.option_name} ({$item.percent}%)<br /> <!-- {else} --> <input type="radio" name="option_id" value="{$item.option_id}" /> {$item.option_name} ({$item.percent}%)<br /> <!-- {/if} --> <!-- {/foreach} --> <input type="hidden" name="type" value="{$title.can_multi}" /> <!-- {/foreach} --> <input type="hidden" name="id" value="{$vote_id}" /> <input type="submit" name="submit" style="border:none;" value="{$lang.submit}" class="bnt_bonus" /> <input type="reset" style="border:none;" value="{$lang.reset}" class="bnt_blue" /> </form> </div> </div> <script type="text/javascript"> {literal} /** * 处理用户的投票 */ function submit_vote() { var frm = document.forms['ECS_VOTEFORM']; var type = frm.elements['type'].value; var vote_id = frm.elements['id'].value; var option_id = 0; if (frm.elements['option_id'].checked) { option_id = frm.elements['option_id'].value; } else { for (i=0; i<frm.elements['option_id'].length; i++ ) { if (frm.elements['option_id'][i].checked) { option_id = (type == 0) ? option_id + "," + frm.elements['option_id'][i].value : frm.elements['option_id'][i].value; } } } if (option_id == 0) { return; } else { Ajax.call('vote.php', 'vote=' + vote_id + '&options=' + option_id + "&type=" + type, voteResponse, 'POST', 'JSON'); } } /** * 处理投票的反馈信息 */ function voteResponse(result) { if (result.message.length > 0) { alert(result.message); } if (result.error == 0) { var layer = document.getElementById('ECS_VOTE'); if (layer) { layer.innerHTML = result.content; } } } {/literal} </script> <!-- {/if} -->