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/doc/doc/view/view.html.php
<?php
/**
 * The view file of doc 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      Yidong Wang <yidong@cnezsoft.com>
 * @package     doc
 * @version     $Id$
 * @link        http://www.zdoo.com
 */
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../../sys/common/view/ueditor.html.php';?>
<?php echo css::internal($keTableCSS);?>
<?php js::set('libType', $doc->project ? 'project' : 'custom');?>
<?php js::set('libID ', $doc->lib);?>
<div id='mainTitle' class='clearfix'>
  <div class='btn-toolbar pull-left'>
    <?php if(!isonlybody()):?>
    <?php if($this->session->docFrom == 'doc'):?>
    <?php $browseLink = $this->session->docList ? $this->session->docList : inlink('browse');?>
    <?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, "class='btn btn-back'");?>
    <?php else:?>
    <?php echo html::a('javascript:history.go(-1);', '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, "class='btn btn-back'");?>
    <?php endif;?>
    <div class="divider"></div>
    <?php endif;?>
    <div class="page-title">
      <span class="label label-id"><?php echo $doc->id?></span>
      <span class="text" title='<?php echo $doc->title; ?>'><?php echo $doc->title; ?></span>
    </div>
  </div>
</div>
<div class='main-row'>
  <div class='main-col col-8'>
    <div class='panel panel-block'>
      <div class='panel-heading'>
        <strong><?php echo $lang->doc->view;?></strong>
        <div class='panel-actions'>
          <?php if($doc->version > 1):?>
          <span class='dropdown'>
            <a href='#' data-toggle='dropdown' class='text-muted'><?php echo '#' . $version;?> <span class='caret'></span></a>
              <ul class='dropdown-menu'>
              <?php
              for($i = $doc->version; $i >= 1; $i --)
              {
                  $class = $i == $version ? " class='active'" : '';
                  echo '<li' . $class .'>' . html::a(inlink('view', "docID=$doc->id&version=$i"), '#' . $i) . '</li>';
              }
              ?>
            </ul>
          </span>
          <?php endif; ?>
        </div>
      </div>
      <div class='panel-body doc-content'>
        <table class='table table-form table-data'>
          <tr>
            <th class='w-70px'><?php echo $lang->doc->title;?></th>
            <td>
              <?php echo "#" . $doc->id . ' ' . $doc->title;?>
              <?php if($doc->deleted):?>
              <span class='label label-danger'><?php echo $lang->doc->deleted;?></span>
              <?php endif;?>
            </td>
          </tr>
          <tr>
            <th class='w-70px'><?php echo $lang->doc->digest;?></th>
            <td><?php echo $doc->digest;?></td>
          </tr>
          <?php if($doc->type == 'url'):?>
          <tr>
            <th><?php echo $lang->doc->url;?></th>
            <td><?php echo html::a(urldecode($doc->content), '', "target='_blank'");?></td>
          </tr>
          <?php endif;?>
          <?php if($doc->type == 'text'):?>
          <tr>
            <th class='text-top'><?php echo $lang->doc->content;?></th>
            <td class='content'></td>
          </tr>
          <tr>
            <td colspan='2' class='content'><?php echo $doc->content;?></td>
          </tr>
          <?php endif;?>
          <?php if($doc->files):?>
          <tr>
            <th><?php echo $lang->files;?></th>
            <td><?php echo $this->fetch('file', 'printFiles', array('files' => $doc->files, 'fieldset' => 'false'));?></td>
          </tr>
          <?php endif;?>
        </table>
      </div>
    </div>
    <?php echo $this->fetch('action', 'history', "objectType=doc&objectID={$doc->id}");?>
    <div class='main-actions text-center'>
      <div class='btn-toolbar'>
        <?php
        $browseLink = $this->session->docList ? $this->session->docList : inlink('browse');
        echo html::a($browseLink, $lang->goback, "class='btn btn-default'");

        $params = "docID=$doc->id";
        if(!$doc->deleted)
        {
            echo "<div class='divider'></div>";
            commonModel::printLink('doc', 'edit', $params, $lang->edit, "class='btn'");
            commonModel::printLink('doc', 'delete', $params, $lang->delete, "class='deleter btn'");
        }
        ?>
      </div>
    </div>
  </div>
  <div class='side-col col-4'>
    <div class='panel panel-block'>
      <div class='panel-heading'><strong><?php echo $lang->doc->basicInfo;?></strong></div>
      <div class='panel-body'>
        <table class='table table-data'>
          <tbody>
            <?php if($doc->project):?>
            <tr>
              <th class='w-80px'><?php echo $lang->doc->project;?></th>
              <td><?php echo zget($projects, $doc->project);?></td>
            </tr>
            <?php endif;?>
            <tr>
              <th class='w-80px'><?php echo $lang->doc->lib;?></th>
              <td><?php echo $lib;?></td>
            </tr>
            <tr>
              <th><?php echo $lang->doc->category;?></th>
              <td><?php echo $doc->moduleName ? $doc->moduleName : '/';?></td>
            </tr>
            <tr>
              <th><?php echo $lang->doc->type;?></th>
              <td><?php echo $lang->doc->types[$doc->type];?></td>
            </tr>
            <tr>
              <th><?php echo $lang->doc->keywords;?></th>
              <td><?php echo $doc->keywords;?></td>
            </tr>
            <tr>
              <th><?php echo $lang->doc->createdBy;?></th>
              <td><?php echo $users[$doc->createdBy];?></td>
            </tr>
            <tr>
              <th><?php echo $lang->doc->createdDate;?></th>
              <td><?php echo formatTime($doc->createdDate, DT_DATETIME1);?></td>
            </tr>
            <tr>
              <th><?php echo $lang->doc->editedBy;?></th>
              <td><?php echo $users[$doc->editedBy];?></td>
            </tr>
            <tr>
              <th><?php echo $lang->doc->editedDate;?></th>
              <td><?php echo formatTime($doc->editedDate, DT_DATETIME1);?></td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
<?php include '../../common/view/footer.html.php';?>