* @package doc
* @version $Id: view.html.php 975 2010-07-29 03:30:25Z jajacn@126.com $
* @link http://www.zentao.net
*/
?>
session->docList ? $this->session->docList : inlink('browse');?>
doc->fullscreen);
js::set('retrack', $lang->doc->retrack);
js::set('sysurl', common::getSysUrl());
?>
type == 'url')
{
$url = $doc->content;
if(!preg_match('/^https?:\/\//', $doc->content)) $url = 'http://' . $url;
$urlIsHttps = strpos($url, 'https://') === 0;
$serverIsHttps = isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on';
if(($urlIsHttps and $serverIsHttps) or (!$urlIsHttps and !$serverIsHttps))
{
echo "
";
}
else
{
$parsedUrl = parse_url($url);
$urlDomain = $parsedUrl['scheme'] . '://' . $parsedUrl['host'];
$title = '';
$response = common::http($url);
preg_match_all('/
(.*)<\/title>/Ui', $response, $out);
if(isset($out[1][0])) $title = $out[1][0];
echo "";
echo "
";
echo "
";
echo "
{$title}
";
echo "
" . html::a($url, $url, '_target') . "
";
echo "
";
}
}
else
{
echo $doc->content;
}
?>
files as $file):?>
extension, $config->file->imageExtensions)):?>
files[$file->id]);?>
fetch('file', 'printFiles', array('files' => $doc->files, 'fieldset' => 'true'));?>
doc->digest;?>
digest) ? $doc->digest : "
" . $lang->noData . '
';?>
doc->keywords;?>
keywords) ? $doc->keywords : "
" . $lang->noData . '
';?>
doc->basicInfo;?>
productName):?>
| doc->product;?> |
productName;?> |
projectName):?>
| doc->project;?> |
projectName;?> |
| doc->lib;?> |
name;?> |
| doc->module;?> |
moduleName ? $doc->moduleName : '/';?> |
| doc->addedDate;?> |
addedDate;?> |
| doc->editedBy;?> |
editedBy);?> |
| doc->editedDate;?> |
editedDate;?> |
createLink('action', 'comment', "objectType=doc&objectID=$doc->id");?>