📄 story_print.php
字号:
<?include "include/db.php";include "include/authenticate.php";include "include/general.php";include "include/search_functions.php";$ref=getvalescaped("ref","");$resource=get_resource_data($ref);# check permissions (error message is not pretty but they shouldn't ever arrive at this page unless entering a URL manually)if (!checkperm("v") && ($resource["access"]==2)) { exit("This is a confidential resource."); }# Get story text$fields=get_resource_field_data($ref);$storyextract="";for ($n=0;$n<count($fields);$n++) { if ($fields[$n]["title"]=="Story Extract") {$storyextract=$fields[$n]["value"];} } # Log this activitydaily_stat("Print story",$ref);?><html><head><title><?=$applicationname?> <?=$lang["storyextract"]?></title><style>body {font-family:verdana,arial,sans-serif;font-size:12px;}h1 {font-size:16px;}h2 {font-size:14px;}.footer {font-size:10px;margin-top:30px;}</style></head><body onLoad="print();"><h1><?=$applicationname?> <?=$lang["storyextract"]?></h1><h2><?=$lang["resourceid"]?> <?=$ref?>: <?=$resource["title"]?></h2><p><?=nl2br(htmlspecialchars($storyextract))?></p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -