"MDL-13766, add extra yui images for yui treeview, this will display folder-style...
authordongsheng <dongsheng>
Thu, 7 May 2009 06:47:20 +0000 (06:47 +0000)
committerdongsheng <dongsheng>
Thu, 7 May 2009 06:47:20 +0000 (06:47 +0000)
13 files changed:
pix/y/lm.gif [new file with mode: 0644]
pix/y/lmh.gif [new file with mode: 0644]
pix/y/ln.gif [new file with mode: 0644]
pix/y/loading.gif [new file with mode: 0644]
pix/y/lp.gif [new file with mode: 0644]
pix/y/lph.gif [new file with mode: 0644]
pix/y/tm.gif [new file with mode: 0644]
pix/y/tmh.gif [new file with mode: 0644]
pix/y/tn.gif [new file with mode: 0644]
pix/y/tp.gif [new file with mode: 0644]
pix/y/tph.gif [new file with mode: 0644]
pix/y/vline.gif [new file with mode: 0644]
repository/lib.php

diff --git a/pix/y/lm.gif b/pix/y/lm.gif
new file mode 100644 (file)
index 0000000..b562300
Binary files /dev/null and b/pix/y/lm.gif differ
diff --git a/pix/y/lmh.gif b/pix/y/lmh.gif
new file mode 100644 (file)
index 0000000..a17fe23
Binary files /dev/null and b/pix/y/lmh.gif differ
diff --git a/pix/y/ln.gif b/pix/y/ln.gif
new file mode 100644 (file)
index 0000000..b7b3e55
Binary files /dev/null and b/pix/y/ln.gif differ
diff --git a/pix/y/loading.gif b/pix/y/loading.gif
new file mode 100644 (file)
index 0000000..0bbf3bc
Binary files /dev/null and b/pix/y/loading.gif differ
diff --git a/pix/y/lp.gif b/pix/y/lp.gif
new file mode 100644 (file)
index 0000000..b9f5485
Binary files /dev/null and b/pix/y/lp.gif differ
diff --git a/pix/y/lph.gif b/pix/y/lph.gif
new file mode 100644 (file)
index 0000000..f663714
Binary files /dev/null and b/pix/y/lph.gif differ
diff --git a/pix/y/tm.gif b/pix/y/tm.gif
new file mode 100644 (file)
index 0000000..56622cc
Binary files /dev/null and b/pix/y/tm.gif differ
diff --git a/pix/y/tmh.gif b/pix/y/tmh.gif
new file mode 100644 (file)
index 0000000..e42349e
Binary files /dev/null and b/pix/y/tmh.gif differ
diff --git a/pix/y/tn.gif b/pix/y/tn.gif
new file mode 100644 (file)
index 0000000..4a28039
Binary files /dev/null and b/pix/y/tn.gif differ
diff --git a/pix/y/tp.gif b/pix/y/tp.gif
new file mode 100644 (file)
index 0000000..906e8c4
Binary files /dev/null and b/pix/y/tp.gif differ
diff --git a/pix/y/tph.gif b/pix/y/tph.gif
new file mode 100644 (file)
index 0000000..8aa7c25
Binary files /dev/null and b/pix/y/tph.gif differ
diff --git a/pix/y/vline.gif b/pix/y/vline.gif
new file mode 100644 (file)
index 0000000..1fb0de8
Binary files /dev/null and b/pix/y/vline.gif differ
index e7da2b3..353f6b1 100644 (file)
@@ -39,8 +39,8 @@
 
 
 require_once(dirname(dirname(__FILE__)) . '/config.php');
-require_once(dirname(dirname(__FILE__)) . '/lib/filelib.php');
-require_once(dirname(dirname(__FILE__)) . '/lib/formslib.php');
+require_once($CFG->libdir . '/filelib.php');
+require_once($CFG->libdir . '/formslib.php');
 // File picker javascript code
 
 /**
@@ -1793,6 +1793,45 @@ function repository_get_client($context, $id = '',  $accepted_filetypes = '*', $
 @import "$CFG->httpswwwroot/lib/yui/assets/skins/sam/treeview.css";
 </style>
 <style type="text/css">
+/* Copyright (c) 2006 Yahoo! Inc. All rights reserved. */
+/* copy from yui/examples/treeview/assets/css/folders/tree.css */
+/* first or middle sibling, no children */
+.ygtvtn { background: url($CFG->pixpath/y/tn.gif) 0 0 no-repeat; width:17px; height:22px; }
+/* first or middle sibling, collapsable */
+.ygtvtm { background: url($CFG->pixpath/y/tm.gif) 0 0 no-repeat; width:34px; height:22px; cursor:pointer }
+/* first or middle sibling, collapsable, hover */
+.ygtvtmh { background: url($CFG->pixpath/y/tmh.gif) 0 0 no-repeat; width:34px; height:22px; cursor:pointer }
+/* first or middle sibling, expandable */
+.ygtvtp { background: url($CFG->pixpath/y/tp.gif) 0 0 no-repeat; width:34px; height:22px; cursor:pointer }
+/* first or middle sibling, expandable, hover */
+.ygtvtph { background: url($CFG->pixpath/y/tph.gif) 0 0 no-repeat; width:34px; height:22px; cursor:pointer }
+/* last sibling, no children */
+.ygtvln { background: url($CFG->pixpath/y/ln.gif) 0 0 no-repeat; width:17px; height:22px; }
+/* Last sibling, collapsable */
+.ygtvlm { background: url($CFG->pixpath/y/lm.gif) 0 0 no-repeat; width:34px; height:22px; cursor:pointer }
+/* Last sibling, collapsable, hover */
+.ygtvlmh { background: url($CFG->pixpath/y/lmh.gif) 0 0 no-repeat; width:34px; height:22px; cursor:pointer }
+/* Last sibling, expandable */
+.ygtvlp { background: url($CFG->pixpath/y/lp.gif) 0 0 no-repeat; width:34px; height:22px; cursor:pointer }
+/* Last sibling, expandable, hover */
+.ygtvlph { background: url($CFG->pixpath/y/lph.gif) 0 0 no-repeat; width:34px; height:22px; cursor:pointer }
+/* Loading icon */
+.ygtvloading { background: url($CFG->pixpath/y/loading.gif) 0 0 no-repeat; width:16px; height:22px; }
+/* the style for the empty cells that are used for rendering the depth 
+ * of the node */
+.ygtvdepthcell { background: url($CFG->pixpath/y/vline.gif) 0 0 no-repeat; width:17px; height:22px; }
+.ygtvblankdepthcell { width:17px; height:22px; }
+/* the style of the div around each node */
+.ygtvitem { }  
+.ygtvitem  table{ margin-bottom:0; }
+.ygtvitem  td { border:none;padding:0; } 
+/* the style of the div around each node's collection of children */
+.ygtvchildren { }  
+* html .ygtvchildren { height:1%; }  
+/* the style of the text label in ygTextNode */
+.ygtvlabel, .ygtvlabel:link, .ygtvlabel:visited, .ygtvlabel:hover { margin-left:2px; text-decoration: none; }
+
+
 .file-picker{font-size:12px;}
 .file-picker strong{background:#FFFFCC}
 .file-picker a{color: #336699}