本文整理汇总了PHP中html_decode函数的典型用法代码示例。如果您正苦于以下问题:PHP html_decode函数的具体用法?PHP html_decode怎么用?PHP html_decode使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_decode函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: utf8_substr
function utf8_substr($str, $len, $slh = 0)
{
$len = $len * 2;
$str = html_decode($str);
if (strlen($str) <= $len) {
return $str;
}
$n = 0;
$tempstr = '';
for ($i = 0; $i < $len; $i++) {
if (ord(substr($str, $n, 1)) > 224) {
$tempstr .= substr($str, $n, 3);
$n += 3;
$i++;
} elseif (ord(substr($str, $n, 1)) > 192) {
$tempstr .= substr($str, $n, 2);
$n += 2;
$i++;
} else {
$tempstr .= substr($str, $n, 1);
$n++;
}
}
$tempstr = html_encode($tempstr);
return $tempstr . ($slh ? '...' : '');
}
示例2: get_raw_title
function get_raw_title($redirect_data)
{
$rd_url = $redirect_data["url"];
$rd_cookies = $redirect_data["cookies"];
$rd_extra_headers = $redirect_data["extra_headers"];
$host = "";
$uri = "";
$port = 80;
if (get_host_and_uri($rd_url, $host, $uri, $port) == False) {
term_echo("get_host_and_uri=false");
return False;
}
$breakcode = "return ((strpos(strtolower(\$response),\"</title>\")!==False) or (strlen(\$response)>=10000));";
#$breakcode="";
$response = wget($host, $uri, $port, ICEWEASEL_UA, $rd_extra_headers, 20, $breakcode, 256);
#var_dump($response);
$html = strip_headers($response);
$title = extract_raw_tag($html, "title");
$title = html_decode($title);
$title = trim(html_decode($title));
if ($title == "") {
term_echo(" get_raw_title: title is empty");
return False;
}
return $title;
}
示例3: translate
function translate($lang_from, $lang_to, $msg)
{
$html = wget_ssl("translate.google.com", "/?sl=" . urlencode($lang_from) . "&tl=" . urlencode($lang_to) . "&js=n&ie=UTF-8&text=" . urlencode($msg));
$html = strip_headers($html);
if ($html === False) {
return "";
}
strip_all_tag($html, "head");
strip_all_tag($html, "style");
strip_all_tag($html, "a");
$html = strip_tags($html, "<div>");
$delim1 = "TRANSLATED_TEXT='";
$delim2 = "';";
$i = strpos($html, $delim1) + strlen($delim1);
if ($i === False) {
return "";
}
$html = substr($html, $i);
$i = strpos($html, $delim2);
if ($i === False) {
return "";
}
$result = trim(substr($html, 0, $i));
$result = str_replace("\\x26", "&", $result);
$result = html_decode($result);
$result = html_decode($result);
return $result;
}
示例4: html_remove
/**
* Remove.
* @param string|array $input
* @param bool $decode
* @return string|array
*/
function html_remove($input = null, bool $decode = false)
{
if (is_array($input)) {
return array_map('html_remove', $input);
}
if ($decode) {
$input = html_decode($input);
}
return preg_replace('~<([^>]+)>(.*?)</([^>]+)>|<([^>]+)/?>~', '', $input);
}
示例5: youtube_search
function youtube_search($query)
{
$agent = ICEWEASEL_UA;
$host = "www.youtube.com";
$uri = "/results";
$port = 443;
$params = array();
$params["search_query"] = $query;
$response = wpost($host, $uri, $port, $agent, $params);
$html = strip_headers($response);
strip_all_tag($html, "head");
strip_all_tag($html, "script");
strip_all_tag($html, "style");
$delim1 = "class=\"item-section\">";
$delim2 = "</ol>";
$html = extract_text_nofalse($html, $delim1, $delim2);
$results = explode("<li><div class=\"yt-lockup yt-lockup-tile yt-lockup-video vve-check clearfix yt-uix-tile\"", $html);
array_shift($results);
if (count($results) == 0) {
return False;
}
for ($i = 0; $i < count($results); $i++) {
$parts = explode(">", $results[$i]);
array_shift($parts);
$results[$i] = implode(">", $parts);
$delim1 = "<h3 class=\"yt-lockup-title \">";
$delim2 = "</h3>";
$results[$i] = extract_text_nofalse($results[$i], $delim1, $delim2);
$delim1 = "<a href=\"";
$delim2 = "\" ";
$url = "https://www.youtube.com" . extract_text_nofalse($results[$i], $delim1, $delim2);
$delim1 = "dir=\"ltr\">";
$delim2 = "</a>";
$title = extract_text_nofalse($results[$i], $delim1, $delim2);
$title = html_decode($title);
$title = html_decode($title);
$delim1 = "> - Duration: ";
$delim2 = ".</span>";
$time = extract_text_nofalse($results[$i], $delim1, $delim2);
$results[$i] = $url . " - " . $title . " - " . $time;
}
return $results;
}
示例6: quick_wget
function quick_wget($trailing)
{
$parts = explode(" ", $trailing);
delete_empty_elements($parts);
if (count($parts) < 2) {
return False;
}
$url = $parts[0];
array_shift($parts);
$trailing = implode(" ", $parts);
$parts = explode("<>", $trailing);
delete_empty_elements($parts);
if (count($parts) < 2) {
return False;
}
$delim1 = trim($parts[0]);
$delim2 = trim($parts[1]);
$host = "";
$uri = "";
$port = "";
if (get_host_and_uri($url, $host, $uri, $port) == False) {
return False;
}
$response = wget_ssl($host, $uri, $port);
$result = extract_text($response, $delim1, $delim2);
if ($result === False) {
return False;
}
$result = strip_tags($result);
$result = html_decode($result);
$result = html_decode($result);
$result = trim($result);
if ($result == "") {
return False;
}
return $result;
}
示例7: get_text
function get_text($title, $section, $return = False, $return_lines_array = False)
{
if ($title == "") {
wiki_privmsg($return, "wiki: get_text=invalid title");
return False;
}
$index = -1;
$title = str_replace(" ", "_", $title);
if ($section != "") {
$uri = "/w/api.php?action=parse&format=php&page=" . urlencode($title) . "&prop=sections";
$response = wget(WIKI_HOST, $uri, 80, WIKI_USER_AGENT);
$data = unserialize(strip_headers($response));
if (isset($data["parse"]["sections"]) == False) {
wiki_privmsg($return, "wiki: get_text=error getting sections for page \"" . $title . "\"");
return False;
}
$sections = $data["parse"]["sections"];
for ($i = 0; $i < count($sections); $i++) {
$line = $sections[$i]["line"];
if (strtolower($section) == strtolower($line)) {
$index = $sections[$i]["index"];
break;
}
}
}
$uri = "/w/api.php?action=parse&format=php&page=" . urlencode($title) . "&prop=text";
if ($index > 0) {
$uri = $uri . "§ion={$index}";
}
/*$url="http://".WIKI_HOST.$uri;
$url=get_redirected_url($url);
if (get_host_and_uri($url,&$host,&$uri,&$port)==False)
{
wiki_privmsg($return,"wiki: get_text=url parse failed");
return False;
}*/
$response = wget(WIKI_HOST, $uri, 80, WIKI_USER_AGENT);
$data = unserialize(strip_headers($response));
if (isset($data["parse"]["text"]["*"]) == True) {
$text = $data["parse"]["text"]["*"];
if ($section != "") {
$id = str_replace(" ", "_", $section);
$id = str_replace("~", ".7E", $id);
$id = str_replace("(", ".28", $id);
$id = str_replace(")", ".29", $id);
$head = "<span class=\"mw-headline\" id=\"{$id}\">{$section}</span>";
if (strpos($text, $head) === False) {
wiki_privmsg($return, "wiki: get_text=section span not found");
return False;
}
}
} else {
wiki_privmsg($return, "wiki: get_text=section not found");
return False;
}
strip_comments($text);
strip_all_tag($text, "h2");
strip_all_tag($text, "h3");
$text = strip_tags($text);
$text = trim($text, " \t\n\r\v\"");
$br = random_string(30);
$text = str_replace("\n", $br, $text);
$text = replace_ctrl_chars($text, " ");
$text = html_decode($text);
$text = clean_text($text);
$url = "http://wiki.soylentnews.org/wiki/" . urlencode($title);
if ($section != "") {
$url = $url . "#{$id}";
}
if ($return_lines_array == False) {
$text = str_replace($br, " ", $text);
$text = clean_text($text);
if (strlen($text) > 400) {
$text = trim(substr($text, 0, 400)) . "...";
}
bot_ignore_next();
wiki_privmsg($return, $text);
wiki_privmsg($return, $url);
$result = $text;
} else {
$result = explode($br, $text);
for ($i = 0; $i < count($result); $i++) {
$result[$i] = trim($result[$i]);
if (strlen($result[$i]) > 300) {
$result[$i] = trim(substr($result[$i], 0, 300)) . "...";
}
}
delete_empty_elements($result);
$result[] = $url;
}
return $result;
}
示例8: clean_input
/**
* This function cleans a string with any valid rules that have been provided in the $rules array.
* Note that $rules can also be a string if you only want to apply a single rule.
* If no rules are provided, then the string will simply be trimmed using the trim() function.
* @param string $string
* @param array $rules
* @return string
* @example $variable = clean_input(" 1235\t\t", array("nows", "int")); // $variable will equal an integer value of 1235.
*/
function clean_input($string, $rules = array())
{
if (is_scalar($rules)) {
if (trim($rules) != "") {
$rules = array($rules);
} else {
$rules = array();
}
}
if (count($rules) > 0) {
foreach ($rules as $rule) {
switch ($rule) {
case "page_url":
// Acceptable characters for community page urls.
// Acceptable characters for community page urls.
case "module":
$string = preg_replace("/[^a-z0-9_\\-]/i", "", $string);
break;
case "url":
// Allows only a minimal number of characters
$string = preg_replace(array("/[^a-z0-9_\\-\\.\\/\\~\\?\\&\\:\\#\\=\\+]/i", "/(\\.)\\.+/", "/(\\/)\\/+/"), "\$1", $string);
break;
case "file":
case "dir":
// Allows only a minimal number of characters
$string = preg_replace(array("/[^a-z0-9_\\-\\.\\/]/i", "/(\\.)\\.+/", "/(\\/)\\/+/"), "\$1", $string);
break;
case "int":
// Change string to an integer.
$string = (int) $string;
break;
case "float":
// Change string to a float.
$string = (double) $string;
break;
case "bool":
// Change string to a boolean.
$string = (bool) $string;
break;
case "nows":
// Trim all whitespace anywhere in the string.
$string = str_replace(array(" ", "\t", "\n", "\r", "", "\v", " "), "", $string);
break;
case "trim":
// Trim whitespace from ends of string.
$string = trim($string);
break;
case "trimds":
// Removes double spaces.
$string = str_replace(array(" ", "\t", "\n", "\r", "", "\v", " ", "", "ÿ", "", ""), " ", $string);
$string = html_decode(str_replace(" ", "", html_encode($string)));
break;
case "nl2br":
$string = nl2br($string);
break;
case "underscores":
// Trim all whitespace anywhere in the string.
$string = str_replace(array(" ", "\t", "\n", "\r", "", "\v", " "), "_", $string);
break;
case "lower":
// Change string to all lower case.
// Change string to all lower case.
case "lowercase":
$string = strtolower($string);
break;
case "upper":
// Change string to all upper case.
// Change string to all upper case.
case "uppercase":
$string = strtoupper($string);
break;
case "ucwords":
// Change string to correct word case.
$string = ucwords(strtolower($string));
break;
case "boolops":
// Removed recognized boolean operators.
$string = str_replace(array("\"", "+", "-", "AND", "OR", "NOT", "(", ")", ",", "-"), "", $string);
break;
case "quotemeta":
// Quote's meta characters
$string = quotemeta($string);
break;
case "credentials":
// Acceptable characters for login credentials.
$string = preg_replace("/[^a-z0-9_\\-\\.]/i", "", $string);
break;
case "alphanumeric":
// Remove anything that is not alphanumeric.
$string = preg_replace("/[^a-z0-9]+/i", "", $string);
break;
//.........这里部分代码省略.........
示例9: isset
?>
" method="post" class="form-horizontal">
<div class="control-group">
<label for="instructional_method" class="control-label form-required">Instructional Method:</label>
<div class="controls">
<input type="text" id="instructional_method" name="instructional_method" value="<?php
echo isset($medbiq_instructional_method) ? html_decode($medbiq_instructional_method->getInstructionalMethod()) : "";
?>
" />
</div>
</div>
<div class="control-group">
<label for="instructional_method_description" class="control-label form-nrequired">Description:</label>
<div class="controls">
<textarea id="instructional_method_description" name="instructional_method_description" style="width: 98%; height: 200px"><?php
echo isset($medbiq_instructional_method) ? html_decode($medbiq_instructional_method->getInstructionalMethodDescription()) : "";
?>
</textarea>
</div>
</div>
<div class="control-group">
<label for="code" class="control-label form-required">Instructional Code:</label>
<div class="controls">
<input type="text" class="input-small" id="code" name="code" value="<?php
echo isset($medbiq_instructional_method) ? html_encode($medbiq_instructional_method->getCode()) : "";
?>
" />
</div>
</div>
<div class="control-group">
<label class="control-label form-nrequired">Mapped Event Types:</label>
示例10: date
break;
}
$elective = true;
} else {
$elective = false;
$skip = false;
}
if (!$skip) {
echo "<tr" . ($is_here && $cssclass != " class=\"in_draft\"" ? " class=\"current\"" : $cssclass) . ">\n";
echo "\t<td class=\"modified\">" . (!empty($click_url) ? "<a href=\"" . $click_url . "\" style=\"font-size: 11px\">" : "") . "<img src=\"" . ENTRADA_URL . "/images/" . ($apartment_available ? "housing-icon-small.gif" : "pixel.gif") . "\" width=\"16\" height=\"16\" alt=\"" . ($apartment_available ? "Detailed apartment information available." : "") . "\" title=\"" . ($apartment_available ? "Detailed apartment information available." : "") . "\" style=\"border: 0px\" />" . (!empty($click_url) ? "</a>" : "") . "</td>\n";
echo "\t<td class=\"type\">" . (!empty($click_url) ? "<a href=\"" . $click_url . "\" style=\"font-size: 11px\">" : "") . "" . ($elective ? "Elective" . ($elective_word != "" ? " (" . $elective_word . ")" : "") : "Core Rotation") . "" . (!empty($click_url) ? "</a>" : "") . "" . "</td>\n";
echo "\t<td class=\"date-smallest\">" . (!empty($click_url) ? "<a href=\"" . $click_url . "\" style=\"font-size: 11px\">" : "") . "" . date("D M d/y", $result["event_start"]) . "" . (!empty($click_url) ? "</a>" : "") . "</td>\n";
echo "\t<td class=\"date-smallest\">" . (!empty($click_url) ? "<a href=\"" . $click_url . "\" style=\"font-size: 11px\">" : "") . "" . date("D M d/y", $result["event_finish"]) . "" . (!empty($click_url) ? "</a>" : "") . "</td>\n";
echo "\t<td class=\"region\">" . (!empty($click_url) ? "<a href=\"" . $click_url . "\" style=\"font-size: 11px\">" : "") . "" . html_encode($result["city"] == "" ? limit_chars($result["region_name"], 30) : $result["city"]) . "" . (!empty($click_url) ? "</a>" : "") . "</td>\n";
echo "\t<td class=\"title\">";
echo "\t\t" . (!empty($click_url) ? "<a href=\"" . $click_url . "\" style=\"font-size: 11px\">" : "") . "<span title=\"" . $event_title . "\">" . limit_chars(html_decode($event_title), 55) . "</span>" . (!empty($click_url) ? "</a>" : "");
echo "\t</td>\n";
echo "</tr>\n";
}
}
?>
</tbody>
</table>
</div>
<?php
$accessible_rotation_ids = clerkship_rotations_access();
if (is_array($accessible_rotation_ids) && count($accessible_rotation_ids)) {
$query = "\tSELECT " . $_SESSION[APPLICATION_IDENTIFIER][$MODULE]["sb"] . " AS `sort_by`, a.`lentry_id`, d.`rotation_id`, a.`entry_active`\n FROM `" . CLERKSHIP_DATABASE . "`.`logbook_entries` AS a \n LEFT JOIN `" . CLERKSHIP_DATABASE . "`.`logbook_lu_locations` AS b\n ON a.`llocation_id` = b.`llocation_id`\n LEFT JOIN `" . CLERKSHIP_DATABASE . "`.`logbook_lu_sites` AS c\n ON a.`lsite_id` = c.`lsite_id`\n LEFT JOIN `" . CLERKSHIP_DATABASE . "`.`events` AS d\n ON a.`rotation_id` = d.`event_id`\n LEFT JOIN `" . CLERKSHIP_DATABASE . "`.`global_lu_rotations` AS e\n ON d.`rotation_id` = e.`rotation_id`\n WHERE a.`proxy_id` = " . $db->qstr($PROXY_ID) . "\n ORDER BY " . $_SESSION[APPLICATION_IDENTIFIER][$MODULE]["sb"] . " ASC";
$results = $db->GetAll($query);
if ($results) {
$rotation_ids = array();
示例11: foreach
$cssclass = " class=\"rejected\"";
break;
default:
$cssclass = "";
}
}
$getStudentsQuery = "SELECT `etype_id`\n\t\t\t\tFROM " . CLERKSHIP_DATABASE . ".`event_contacts`\n\t\t\t\tWHERE `event_id` = " . $db->qstr($result["event_id"]);
$getStudentsResults = $db->GetAll($getStudentsQuery);
foreach ($getStudentsResults as $student) {
$name = get_account_data("firstlast", $student["etype_id"]);
echo "<tr" . ($is_here ? " class=\"current\"" : $cssclass) . ">\n";
echo "\t<td class=\"modified\"> </td>\n";
echo "\t<td class=\"date\"><a href=\"" . $click_url . "\" style=\"font-size: 11px\">" . $name . "</a></td>\n";
echo "\t<td class=\"date\"><a href=\"" . $click_url . "\" style=\"font-size: 11px\">" . date(DEFAULT_DATE_FORMAT, $result["event_start"]) . "</a></td>\n";
echo "\t<td class=\"region\"><a href=\"" . $click_url . "\" style=\"font-size: 11px\">" . ($result["city"] == "" ? html_encode(limit_chars($result["region_name"], 30)) : $result["city"]) . "</a></td>\n";
echo "\t<td class=\"title\"><a href=\"" . $click_url . "\" style=\"font-size: 11px\">" . limit_chars(html_decode($result["event_title"]), 55, true, false) . "</a></td>\n";
echo "</tr>\n";
}
}
?>
</tbody>
</table>
<br /><br />
<?php
}
// Setup internal variables.
$DISPLAY = true;
if ($DISPLAY) {
if ($_GET["gradyear"] || $_GET["gradyear"] === "0") {
$GRADYEAR = trim($_GET["gradyear"]);
@app_setcookie("student_search[gradyear]", trim($_GET["gradyear"]));
示例12: wget
$host = "www.just-one-liners.com";
$port = 80;
if (mt_rand(0, 4) == 0) {
$uri = "/";
} else {
$uri = "/category/confucius-say-wordplay";
}
$response = wget($host, $uri, $port, $agent);
$delim1 = "<h2 class=\"title\" id=\"post-";
$delim2 = "</h2>";
$text = extract_text($response, $delim1, $delim2);
if ($text === False) {
return;
}
$i = strpos($text, "<");
if ($i === False) {
return;
}
$text = substr($text, $i);
$text = replace_ctrl_chars($text, " ");
$text = trim(strip_tags($text));
$text = str_replace(" ", " ", $text);
$text = html_decode($text);
$text = html_decode($text);
$text_len = strlen($text);
$max_text_length = 300;
if (strlen($text) > $max_text_length) {
$text = trim(substr($text, 0, $max_text_length)) . "...";
}
privmsg($text);
#####################################################################################################
示例13: parse_xml
function parse_xml($html)
{
$parts = explode("<story", $html);
array_shift($parts);
$items = array();
for ($i = 0; $i < count($parts); $i++) {
$item = array();
$item["type"] = "xml_story";
$item["title"] = extract_raw_tag($parts[$i], "title");
$item["title"] = html_decode($item["title"]);
$item["title"] = html_decode($item["title"]);
$item["title"] = replace_ctrl_chars($item["title"], " ");
$item["title"] = str_replace(" ", " ", $item["title"]);
$url = str_replace("&", "&", strip_ctrl_chars(extract_raw_tag($parts[$i], "url")));
term_echo("*** raw story url: " . $url);
$item["url"] = get_redirected_url($url);
$item["timestamp"] = time();
if ($item["title"] === False or $item["url"] === False) {
continue;
}
$items[] = $item;
}
return $items;
}
示例14: array
* @author Unit: School of Medicine
* @author Developer: Andrew Dos-Santos <andrew.dos-santos@queensu.ca>
* @copyright Copyright 2010 Queen's University. All Rights Reserved.
*
*/
/**
* Load the grid - used by the annualreport module.
*/
@set_include_path(implode(PATH_SEPARATOR, array(dirname(__FILE__) . "/../core", dirname(__FILE__) . "/../core/includes", dirname(__FILE__) . "/../core/library", get_include_path())));
/**
* Include the Entrada init code.
*/
require_once "init.inc.php";
if (isset($_SESSION["isAuthorized"]) && (bool) $_SESSION["isAuthorized"]) {
$proxy_id = $ENTRADA_USER->getActiveId();
$args = html_decode($_GET["t"]);
if (isset($_POST["sortname"]) && $_POST["sortname"] != '') {
$sort = $_POST["sortname"];
} else {
$sort = 'year_reported';
}
if (isset($_POST["sortorder"]) && $_POST["sortorder"] != '') {
$dir = $_POST["sortorder"];
} else {
$dir = 'DESC';
}
if (isset($_POST["rp"]) && $_POST["rp"] != '') {
$limit = $_POST["rp"];
} else {
$limit = '10';
}
示例15: foreach
}
?>
at this point.
<br /><br />
Try changing the group that results are calculated for in the <strong>Result Calculation</strong> menu.
</div>
<?php
}
/**
* Sidebar item that will provide a method for choosing which results to display.
*/
$sidebar_html = "Calculate results for:\n";
$sidebar_html .= "<ul class=\"menu\">\n";
if (is_array($calculation_targets)) {
foreach ($calculation_targets as $key => $target_name) {
$sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER][$MODULE]["target"]) == $key ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/admin/" . $MODULE . "?" . replace_query(array("target" => $key)) . "\" title=\"" . trim(html_decode($target_name)) . "\">" . $target_name . "</a></li>\n";
}
}
$sidebar_html .= "</ul>\n";
$sidebar_html .= "Results based on:\n";
$sidebar_html .= "<ul class=\"menu\">\n";
$sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER][$MODULE]["attempt"]) == "first" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/admin/" . $MODULE . "?" . replace_query(array("attempt" => "first")) . "\" title=\"The First Attempt\">only the first attempt</a></li>\n";
$sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER][$MODULE]["attempt"]) == "last" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/admin/" . $MODULE . "?" . replace_query(array("attempt" => "last")) . "\" title=\"The Last Attempt\">only the last attempt</a></li>\n";
$sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER][$MODULE]["attempt"]) == "best" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/admin/" . $MODULE . "?" . replace_query(array("attempt" => "best")) . "\" title=\"The Best Attempt\">only the highest scored attempt</a></li>\n";
$sidebar_html .= "\t<li class=\"" . (strtolower($_SESSION[APPLICATION_IDENTIFIER][$MODULE]["attempt"]) == "all" ? "on" : "off") . "\"><a href=\"" . ENTRADA_URL . "/admin/" . $MODULE . "?" . replace_query(array("attempt" => "all")) . "\" title=\"All Attempts\">all attempts</a></li>\n";
$sidebar_html .= "</ul>\n";
new_sidebar_item("Result Calculation", $sidebar_html, "sort-results", "open");
/**
* Sidebar item that will provide the links to the different sections within this page.
*/
$sidebar_html = "<ul class=\"menu\">\n";