$link .= '<a href="'.$_base_path.url_rewrite("mods/_core/editor/edit_content_folder.php?cid=".$content['content_id']).'" title="'.$full_title. _AT('click_edit').'">'."\n";
}
else {
- $link .= '<span style="cursor:pointer" onclick="javascript: toggleFolder(\''.$content['content_id'].$from.'\'); ">'."\n";
+ $link .= '<span style="cursor:pointer" onclick="javascript: ATutor.course.toggleFolder(\''.$content['content_id'].$from.'\'); ">'."\n";
}
if ($truncate && ($strlen($content['title']) > ($base_title_length-$depth*4)) ) {
if (isset($_SESSION['menu'][$content['content_id']]) && $_SESSION['menu'][$content['content_id']] == 1) {
if ($on) {
- echo '<a href="javascript:void(0)" onclick="javascript: toggleFolder(\''.$content['content_id'].$from.'\'); "><img src="'.$_base_path.'images/tree/tree_collapse.gif" id="tree_icon'.$content['content_id'].$from.'" alt="'._AT('collapse').'" border="0" width="16" height="16" title="'._AT('collapse').'" class="img-size-tree" /></a>'."\n";
+ echo '<a href="javascript:void(0)" onclick="javascript: ATutor.course.toggleFolder(\''.$content['content_id'].$from.'\'); "><img src="'.$_base_path.'images/tree/tree_collapse.gif" id="tree_icon'.$content['content_id'].$from.'" alt="'._AT('collapse').'" border="0" width="16" height="16" title="'._AT('collapse').'" class="img-size-tree" /></a>'."\n";
} else {
echo '<a href="'.$_my_uri.'collapse='.$content['content_id'].'">'."\n";
- echo '<img src="'.$_base_path.'images/'.$rtl.'tree/tree_collapse.gif" id="tree_icon'.$content['content_id'].$from.'" alt="'._AT('collapse').'" border="0" width="16" height="16" title="'._AT('collapse').' '.$content['title'].'" class="img-size-tree" onclick="javascript: toggleFolder(\''.$content['content_id'].$from.'\'); " />'."\n";
+ echo '<img src="'.$_base_path.'images/'.$rtl.'tree/tree_collapse.gif" id="tree_icon'.$content['content_id'].$from.'" alt="'._AT('collapse').'" border="0" width="16" height="16" title="'._AT('collapse').' '.$content['title'].'" class="img-size-tree" onclick="javascript: ATutor.course.toggleFolder(\''.$content['content_id'].$from.'\'); " />'."\n";
echo '</a>'."\n";
}
} else {
if ($on) {
- echo '<a href="javascript:void(0)" onclick="javascript: toggleFolder(\''.$content['content_id'].$from.'\'); "><img src="'.$_base_path.'images/tree/tree_collapse.gif" id="tree_icon'.$content['content_id'].$from.'" alt="'._AT('collapse').'" border="0" width="16" height="16" title="'._AT('collapse').'" class="img-size-tree" /></a>'."\n";
+ echo '<a href="javascript:void(0)" onclick="javascript: ATutor.course.toggleFolder(\''.$content['content_id'].$from.'\'); "><img src="'.$_base_path.'images/tree/tree_collapse.gif" id="tree_icon'.$content['content_id'].$from.'" alt="'._AT('collapse').'" border="0" width="16" height="16" title="'._AT('collapse').'" class="img-size-tree" /></a>'."\n";
} else {
echo '<a href="'.$_my_uri.'expand='.$content['content_id'].'">'."\n";
- echo '<img src="'.$_base_path.'images/'.$rtl.'tree/tree_expand.gif" id="tree_icon'.$content['content_id'].$from.'" alt="'._AT('expand').'" border="0" width="16" height="16" title="'._AT('expand').' '.$content['title'].'" class="img-size-tree" onclick="javascript: toggleFolder(\''.$content['content_id'].$from.'\'); " />';
+ echo '<img src="'.$_base_path.'images/'.$rtl.'tree/tree_expand.gif" id="tree_icon'.$content['content_id'].$from.'" alt="'._AT('expand').'" border="0" width="16" height="16" title="'._AT('expand').' '.$content['title'].'" class="img-size-tree" onclick="javascript: ATutor.course.toggleFolder(\''.$content['content_id'].$from.'\'); " />';
echo '</a>'."\n";
}
}
<style id="pref_style" type="text/css"></style>
</head>
<body onload="<?php echo $this->onload; ?>">
-<script language="javascript" type="text/javascript">
-//<!--
-//toggle content folder in side menu "content navigation"
-function toggleFolder(cid)
-{
- if (jQuery("#tree_icon"+cid).attr("src") == tree_collapse_icon) {
- jQuery("#tree_icon"+cid).attr("src", tree_expand_icon);
- jQuery("#tree_icon"+cid).attr("alt", "<?php echo _AT('expand'); ?>");
- ATutor.setcookie("c<?php echo $this->course_id;?>_"+cid, null, 1);
- }
- else {
- jQuery("#tree_icon"+cid).attr("src", tree_collapse_icon);
- jQuery("#tree_icon"+cid).attr("alt", "<?php echo _AT('collapse'); ?>");
- ATutor.setcookie("c<?php echo $this->course_id;?>_"+cid, "1", 1);
- }
-
- jQuery("#folder"+cid).slideToggle();
-};
-//-->
-</script>
<!-- section title -->
<div><a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#content" accesskey="c"><img src="<?php echo $this->base_path; ?>images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AT('goto_content'); ?> ALT+c" /></a> <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#menu" accesskey="m"><img src="<?php echo $this->base_path; ?>images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AT('goto_menu'); ?> ALT+m" /></a><h1 id="section-title"><?php echo $this->section_title; ?><?php if (($this->course_id > 0) && ($_SESSION['enroll'] == AT_ENROLL_NO)) : ?>
- <small><a href="<?php echo $this->base_path; ?>enroll.php?course=<?php echo $this->course_id; ?>"><?php echo _AT('enroll_me'); ?></a></small>
<style id="pref_style" type="text/css"></style>
</head>
<body onload="<?php echo $this->onload; ?>">
-<script language="javascript" type="text/javascript">
-//<!--
-// toggle open/close content folder in side menu "content navigation"
-function toggleFolder(cid)
-{
- if (jQuery("#tree_icon"+cid).attr("src") == tree_collapse_icon) {
- jQuery("#tree_icon"+cid).attr("src", tree_expand_icon);
- jQuery("#tree_icon"+cid).attr("alt", "<?php echo _AT('expand'); ?>");
- jQuery("#tree_icon"+cid).attr("title", "<?php echo _AT('expand'); ?>");
- ATutor.setcookie("c<?php echo $this->course_id;?>_"+cid, null, 1);
- }
- else {
- jQuery("#tree_icon"+cid).attr("src", tree_collapse_icon);
- jQuery("#tree_icon"+cid).attr("alt", "<?php echo _AT('collapse'); ?>");
- jQuery("#tree_icon"+cid).attr("title", "<?php echo _AT('collapse'); ?>");
- ATutor.setcookie("c<?php echo $this->course_id;?>_"+cid, "1", 1);
- }
-
- jQuery("#folder"+cid).slideToggle();
-}
-//-->
-</script>
<div class="page_wrapper">
<div id="header">
<a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#content" accesskey="c">
<style id="pref_style" type="text/css"></style>
</head>
<body onload="<?php echo $this->onload; ?>">
-<script language="javascript" type="text/javascript">
-//<!--
-//toggle content folder in side menu "content navigation"
-function toggleFolder(cid)
-{
- if (jQuery("#tree_icon"+cid).attr("src") == tree_collapse_icon) {
- jQuery("#tree_icon"+cid).attr("src", tree_expand_icon);
- jQuery("#tree_icon"+cid).attr("alt", "<?php echo _AT('expand'); ?>");
- ATutor.setcookie("c<?php echo $this->course_id;?>_"+cid, null, 1);
- }
- else {
- jQuery("#tree_icon"+cid).attr("src", tree_collapse_icon);
- jQuery("#tree_icon"+cid).attr("alt", "<?php echo _AT('collapse'); ?>");
- ATutor.setcookie("c<?php echo $this->course_id;?>_"+cid, "1", 1);
- }
-
- jQuery("#folder"+cid).slideToggle();
-}
-
-</script>
-
<div id="member-links" style="float: right;">
<!-- hidden direct link to content -->
<a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#content" style="border: 0px;" accesskey="c"><img src="<?php echo $this->base_path; ?>images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AT('goto_content'); ?> ALT+c" /></a>
});
});
-//toggle content folder in side menu "content navigation"
-function toggleFolder(cid)
-{
- if (jQuery("#tree_icon"+cid).attr("src") == tree_collapse_icon) {
- jQuery("#tree_icon"+cid).attr("src", tree_expand_icon);
- jQuery("#tree_icon"+cid).attr("alt", "<?php echo _AT('expand'); ?>");
- ATutor.setcookie("c<?php echo $this->course_id;?>_"+cid, null, 1);
- }
- else {
- jQuery("#tree_icon"+cid).attr("src", tree_collapse_icon);
- jQuery("#tree_icon"+cid).attr("alt", "<?php echo _AT('collapse'); ?>");
- ATutor.setcookie("c<?php echo $this->course_id;?>_"+cid, "1", 1);
- }
-
- jQuery("#folder"+cid).slideToggle();
-}
//-->
</script>
<style id="pref_style" type="text/css"></style>
</head>
<body onload="<?php echo $this->onload; ?>">
-<script language="javascript" type="text/javascript">
-//<!--
-//toggle content folder in side menu "content navigation"
-function toggleFolder(cid)
-{
- if (jQuery("#tree_icon"+cid).attr("src") == tree_collapse_icon) {
- jQuery("#tree_icon"+cid).attr("src", tree_expand_icon);
- jQuery("#tree_icon"+cid).attr("alt", "<?php echo _AT('expand'); ?>");
- ATutor.setcookie("c<?php echo $this->course_id;?>_"+cid, null, 1);
- }
- else {
- jQuery("#tree_icon"+cid).attr("src", tree_collapse_icon);
- jQuery("#tree_icon"+cid).attr("alt", "<?php echo _AT('collapse'); ?>");
- ATutor.setcookie("c<?php echo $this->course_id;?>_"+cid, "1", 1);
- }
-
- jQuery("#folder"+cid).slideToggle();
-}
-//-->
-</script>
<!-- section title -->
<div><a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#content" accesskey="c"><img src="<?php echo $this->base_path; ?>images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AT('goto_content'); ?> ALT+c" /></a> <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#menu" accesskey="m"><img src="<?php echo $this->base_path; ?>images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AT('goto_menu'); ?> ALT+m" /></a><h1 id="section-title"><?php echo $this->section_title; ?><?php if (($this->course_id > 0) && ($_SESSION['enroll'] == AT_ENROLL_NO)) : ?>
- <small><a href="<?php echo $this->base_path; ?>enroll.php?course=<?php echo $this->course_id; ?>"><?php echo _AT('enroll_me'); ?></a></small>
<style id="pref_style" type="text/css"></style>
</head>
<body onload="<?php echo $this->onload; ?>">
-<script language="javascript" type="text/javascript">
-//<!--
-// toggle content folder in side menu "content navigation"
-function toggleFolder(cid)
-{
- if (jQuery("#tree_icon"+cid).attr("src") == tree_collapse_icon) {
- jQuery("#tree_icon"+cid).attr("src", tree_expand_icon);
- jQuery("#tree_icon"+cid).attr("alt", "<?php echo _AT('expand'); ?>");
- ATutor.setcookie("c<?php echo $this->course_id;?>_"+cid, null, 1);
- }
- else {
- jQuery("#tree_icon"+cid).attr("src", tree_collapse_icon);
- jQuery("#tree_icon"+cid).attr("alt", "<?php echo _AT('collapse'); ?>");
- ATutor.setcookie("c<?php echo $this->course_id;?>_"+cid, "1", 1);
- }
-
- jQuery("#folder"+cid).slideToggle();
-}
-//-->
-</script>
<div class="page_wrapper">
<div id="header">
<a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#content" accesskey="c">