⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 help.php

📁 jsp程序开发系统
💻 PHP
字号:
<?php
// +-------------------------------------------------------------+
// | DeskPRO v [2.0.1 Production]
// | Copyright (C) 2001 - 2004 Headstart Solutions Limited
// | Supplied by WTN-WDYL
// | Nullified by WTN-WDYL
// | Distribution via WebForum, ForumRU and associated file dumps
// +-------------------------------------------------------------+
// | DESKPRO IS NOT FREE SOFTWARE
// +-------------------------------------------------------------+
// | License ID : Full Enterprise License =) ...
// | License Owner : WTN-WDYL Team
// +-------------------------------------------------------------+
// | $RCSfile: help.php,v $
// | $Date: 2004/02/10 01:34:25 $
// | $Revision: 1.13 $
// +-------------------------------------------------------------+
// | File Details:
// | - Administration interface help system
// +-------------------------------------------------------------+

error_reporting(E_ALL & ~E_NOTICE);

require_once('./global.php');
//Nullify WTN-WDYL Team

if (!isset($_REQUEST['mini'])) { // Only show full headers if we're not a popup
	admin_header('Help');
} else {
	$mini = '&mini=1';
	echo "<link href=\"./../tech.css\" rel=\"stylesheet\" type=\"text/css\">\n";
}

echo "<table width=\"100%\" cellspacing=\"0\"><tr><td valign=\"top\">";

$cat = array();
$entry = array();

$db->query("SELECT * FROM admin_help_cat ORDER BY displayorder");
while ($res = $db->row_array()) {
	$cat[] = $res;
}

if ($_REQUEST['category']) {
	if ((int)($_REQUEST['category'])) {
		$db->query("SELECT * FROM admin_help_entry WHERE category = '" . mysql_escape_string($_REQUEST[category]) . "' ORDER BY displayorder");
	} else {
		$db->query("SELECT admin_help_entry.*, admin_help_cat.name AS name FROM admin_help_entry LEFT JOIN admin_help_cat ON admin_help_cat.id = admin_help_entry.category WHERE name like '%" . mysql_escape_string($_REQUEST[category]) . "%' ORDER BY admin_help_entry.displayorder");
	}
	while ($res = $db->row_array()) {
		$entry[] = $res;
	}
}

echo "<tr valign=\"top\"><td nowrap>\n";

// Draw the category list bar (left column)
foreach ($cat as $key => $val) { 
	$txt = $val['name'];
	if ($val['id'] == $_REQUEST['category'] or $val['name'] == $_REQUEST['category']) {
		$show_entries = 1;
		$img = "bul072o.gif";
		$category_name = $val['name'];
	} else {
		$show_entries = 0;
		$img = "bul072.gif";
	}

	$txt = str_replace(" ", "&nbsp;", $txt);
	echo "<img src=\"../../images/$img\">&nbsp;<a href=\"help.php?category=$val[id]$mini\">$txt</a><BR>\n";

	// If we're drawing the popup, we need to show the entry index along with the categories
	if (isset($_REQUEST['mini']) AND $show_entries) { 
		foreach ($entry as $key2 => $val2) {
			$txt = str_replace(" ", "&nbsp;", $val2['title']);
			if ($val2['id'] == $_REQUEST['entry'] OR $val2['title'] == $_REQUEST['entry']) {
				$img = "bul062o.gif";
			} else {
				$img = "bul062.gif";
			}
			echo "&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"../../images/$img\">&nbsp;<a href=\"help.php?category=$val[id]&entry=$val2[id]$mini\"><font size=\"-1\">$txt</font></a><BR>\n";
		}
	}
}

print "</td><td>&nbsp;</td><td width=\"100%\">\n";

// If we're not drawing the popup version, we still have the entry index to show
if (!isset($_REQUEST['mini'])) { 
	print "<table width=\"100%\">\n";
	foreach ($entry as $key => $val) {
		$i++;
		$txt = str_replace(" ", "&nbsp;", $val['title']);
		if ($val['id'] == $_REQUEST['entry'] or $val['title'] == $_REQUEST['entry']) {
			$img = "bul062o.gif";
		} else {
			$img = "bul062.gif";
		}
		if ($i == "1") {
			echo "<tr>";
		}
		echo "<td><img src=\"../../images/$img\">&nbsp;<a href=\"help.php?category=$_REQUEST[category]&entry=$val[id]$mini\"><font size=\"-1\">$txt</font></a></td>\n";
		if ($i == "3") {
			echo "</tr>";
			$i = 0;
		}
	}
	if ($i) {
		echo "</tr>";
	}
	echo "</table>\n";
	echo "<HR NOSHADE>";
}

if ($_REQUEST['entry']) {
	if ((int)($_REQUEST['entry'])) {
		$result = $db->query_return("SELECT * FROM admin_help_entry WHERE id = $_REQUEST[entry]");
	} else {
		$_REQUEST['entry'] = mysql_escape_string($_REQUEST['entry']);
		$result = $db->query_return("SELECT * FROM admin_help_entry WHERE title like '$_REQUEST[entry]'");
	}
	echo "<U><B>$result[title]</B></U><BR>";
	echo $result['entry'];
} else {
	if (count($entry)) {
		echo "<B>$category_name:</B> Please select an entry.";
	} else {
		echo "<B>$category_name:</B> This category has no entries. Please select another.";
	}
}

echo "</td></tr></table>";

if (!isset($_REQUEST['mini'])) {
	admin_footer('Help');
}

?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -