Ejemplo n.º 1
0
function html_maps()
{
    ?>
    <div class="maps">
	<div class="header center">Maps</div>
	<p>
	Do you want to find geocaches in the greater Sydney area?
	Have a look at these two sources:
	</p>
<?php 
    showlinks("maps.txt");
    ?>
    </div>
<?php 
}
Ejemplo n.º 2
0
                $style = "success";
            } else {
                $dialogBox .= q($row->title) . " : " . $langLinkAlreadyUsed . "<br />";
                $style = "caution";
            }
        }
    }
    $iterator++;
}
if (isset($dialogBox) && $dialogBox != "") {
    $tool_content .= "<table width=\"99%\"><tr>";
    $tool_content .= disp_message_box($dialogBox, $style);
    $tool_content .= "</td></tr></table>";
    $tool_content .= "<br />";
}
$tool_content .= showlinks();
//$tool_content .= "<br />";
//$tool_content .= disp_tool_title($langPathContentTitle);
//$tool_content .= '<a href="learningPathAdmin.php?course=$course_code">&lt;&lt;&nbsp;'.$langBackToLPAdmin.'</a>';
// display list of modules used by this learning path
//$tool_content .= display_path_content();
$tool_content .= action_bar(array(array('title' => $langBack, 'url' => "learningPathAdmin.php?course={$course_code}&amp;path_id=" . (int) $_SESSION['path_id'], 'icon' => 'fa-reply', 'level' => 'primary-label')));
draw($tool_content, 2, null, $head_content);
function showlinks()
{
    global $langName, $langSelection, $langAddModulesButton, $course_id, $course_code, $themeimg;
    $result = Database::get()->queryArray("SELECT * FROM link WHERE course_id = ?d ORDER BY `order` DESC", $course_id);
    $output = "\n<form action='{$_SERVER['SCRIPT_NAME']}?course={$course_code}' method='POST'>\n                      <table width='100%' class='tbl_alt'>\n\n                      <tr>\n                        <th colspan='2'>{$langName}</th>\n                        <th width='50'>{$langSelection}</th>\n                      </tr>\n\n                      <tbody>";
    $i = 1;
    foreach ($result as $myrow) {
        $output .= "\n                <tr>\n                <td width='1' valign='top'><img src='{$themeimg}/links_on.png' border='0'></td>\n                <td align='left' valign='top'><a href='../link/link_goto.php?course={$course_code}&amp;link_id=" . $myrow->id . "&amp;link_url=" . urlencode($myrow->url) . "' target='_blank'>" . q($myrow->title) . "</a>\n                <br />\n                <small class='comments'>" . q($myrow->description) . "</small></td>";