HEX
Server: nginx/1.22.1
System: Linux VM-16-9-centos 3.10.0-1160.99.1.el7.x86_64 #1 SMP Wed Sep 13 14:19:20 UTC 2023 x86_64
User: www (1001)
PHP: 7.3.31
Disabled: 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
Upload Files
File: /www/wwwroot/oa.sanjiangapp.com/app/team/forum/view/index.html.php
<?php
/**
 * The index view file of forum module of ZDOO.
 *
 * @copyright   Copyright 2009-2018 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Chunsheng Wang <chunsheng@cnezsoft.com>
 * @package     forum
 * @version     $Id: index.html.php 4029 2016-08-26 06:50:41Z liugang $
 * @link        http://www.zdoo.com
 */
?>
<?php include '../../common/view/header.html.php'; ?>
<div id='boards'>
<?php foreach($boards as $parentBoard):?>
  <div class='panel'>
    <div class='panel-heading'>
      <strong><i class='icon-comment icon-large'></i> <?php echo $parentBoard->name;?></strong>
    </div>
    <div class='panel-body'>
      <table class='table'>
        <tbody>
          <tr>
            <?php $i = 0;?>
            <?php foreach($parentBoard->children as $childBoard):?>
            <?php $count = count($parentBoard->children);?>
            <?php if($count == 1) $width = '100%';?> 
            <?php if($count == 2) $width = '50%';?> 
            <?php if($count > 2)  $width = '33%';?> 
            <?php $i++;?>
            <td width="<?php echo $width;?>">
              <table class='board'>
                <tbody>
                  <tr class='board'>
                    <td>
                      <?php echo $this->forum->isNew($childBoard) ? "<span class='text-success'><i class='icon-comment'></i></span>" : "<span class='text-muted'><i class='icon-comment'></i></span>"; ?>
                      <?php commonModel::printLink('forum', 'board', "id=$childBoard->id", $childBoard->name, "class='name'");?>
                      <?php if($childBoard->desc) echo "<small class='text-muted'> [ " . $childBoard->desc . ' ] </small>';?>
                    </td>
                  </tr>
                  <tr class='board'>
                    <td>
                      <div>
                      <?php
                      if($childBoard->moderators[0]) printf("<span class='moderators hidden-xxs'>" . $lang->forum->lblOwner . '</span>', trim(implode(',', $childBoard->moderators), ',')) . '&nbsp;&nbsp;';
                      if($childBoard->postedBy)
                      {
                          echo $lang->forum->threadCount . $lang->colon . $childBoard->threads . '&nbsp;&nbsp;' . $lang->forum->postCount . $lang->colon . $childBoard->posts;
                      }
                      ?>
                      </div>
                      <div>
                        <?php 
                        if($childBoard->postedBy)
                        {
                            $postedBy =  html::a($this->createLink('thread', 'locate', "threadID={$childBoard->postID}&replyID={$childBoard->replyID}"), zget($users, $childBoard->postedBy));
                            echo sprintf($lang->forum->lastPost, formatTime($childBoard->postedDate, DT_DATETIME2), $postedBy);
                        }
                        else
                        {
                            echo $lang->forum->noPost;
                        }
                        ?>
                      </div>
                    </td>
                  </tr>
                </tbody>
              </table>
              <?php if(($i % 3) != 0 && $i != $count):?>
              <div class='divider-right'></div>
              <?php endif;?>
            </td>
            <?php if(($i % 3) == 0) echo $i == $count ? "" : "</tr><tr>";?>
            <?php endforeach;?>
            <?php 
              if(($i % 3) == 1) echo $count == 1 ? "" : "<td></td><td></td>"; 
              if(($i % 3) == 2) echo $count == 2 ? "" : "<td></td>";
            ?>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
<?php endforeach;?>
</div>
<?php include '../../common/view/footer.html.php'; ?>