Server : nginx/1.22.1 System : Linux iZwz9daxib3w3i063fw434Z 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 User : www ( 1000) PHP Version : 7.2.33 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/www.jkmold.com/phpcms/modules/formguide/templates/ |
<?php defined('IN_ADMIN') or exit('No permission resources.'); $show_header = 1; include $this->admin_tpl('header', 'admin'); ?> <div class="pad-10"> <?php if(is_array($result)){ foreach($result as $v){ ?> <table width="100%" cellspacing="0" class="table-list"> <thead> <tr> <th align="left"><strong><?php echo $fields[$v['field']]['name']?></strong></th> <th width="10%" align="center"><?php echo L('stat_num')?></th> <th width='30%' align="center"><?php echo L('thumb_shi')?></th> </tr> </thead> <tbody> <?php $i = 1; $setting = string2array($v['setting']); $setting = $setting['options']; $options = explode("\n",$setting); if(is_array($options)){ foreach($options AS $_k=>$_v){ $_key = $_kv = $_v; if (strpos($_v,'|')!==false) { $xs = explode('|',$_v); $_key =$xs[0]; $_kv =$xs[1]; } ?> <tr> <td> <?php echo intval($_k+1).' 、 '.$_key;?> </td> <td align="center"><?php $number = 0; foreach ($datas AS $__k=>$__v) { if(trim($__v[$v['field']])==trim($_kv)) $number++; } echo $number; ?></td> <td align="center"> <?php if($total==0){ $per=0; }else{ $per=intval($number/$total*100); }?> <div class="vote_bar"> <div style="width:<?=$per?>%"><span><?php echo $per;?> %</span> </div> </div> </td> </tr> <?php $i++; } } ?> </tbody> </table> <div class="bk10"></div> <?php } } ?> <div class="bk10"></div> </div> </body> </html>