id="cursor" alt="Play"
title="Execute the script until the current position of the cursor."></A>
<A href="javascript:gotoBottom()"><IMG src="icons/bottom.png"
- id="bottom" alt="Bottom" title="Execute the whole script."></A>
+ id="bottom" alt="Bottom" title="Execute the whole script."></A>
<INPUT type="BUTTON" value="Browse library" id="showdialog" ONCLICK="showLibrary()">
<INPUT type="BUTTON" value="Save" id="savebutton" ONCLICK="saveFile()">
- <INPUT type="BUTTON" value="Commit" id="savebutton" ONCLICK="commitAll()"></p>
+ <INPUT type="BUTTON" value="Commit" id="commitbutton" ONCLICK="commitAll()"></p>
<!-- <INPUT type="BUTTON" value="show sequent" id="showseq" ONCLICK="showSequent()">
<INPUT type="BUTTON" value="hide sequent" id="hideseq" ONCLICK="hideSequent()">
<INPUT type="BUTTON" value="selection test" id="hideseq" ONCLICK="test()"> -->
<div class="dialog" id="dialogBox" style="display: none;">
<div class="diaTitle" id="dialogTitle"></div>
<div class="scroll" id="dialogContent"></div>
+ <INPUT class="diaFile" type="text" id="dialogFilename">
</div>
</body>
</html>
let basedir = (Helm_registry.get "matita.rt_base_dir") ^ "/users/" ^ uid in
- let branch text acc =
+ let branch lpath children =
let id = newid () in
- let name = Filename.basename text in
+ let name = Filename.basename lpath in
let name = if name <> "." then name else "cic:/matita" in
- "<span class=\"trigger\" onClick=\"showBranch('" ^ id ^ "')\">\n" ^
+ "<span class=\"trigger\" onClick=\"showBranch('" ^ id ^ "','" ^ lpath ^ "')\">\n" ^
"<img src=\"treeview/closed.gif\" id=\"I" ^ id ^ "\"/>\n" ^
name ^ "<br/></span>\n" ^
"<span class=\"branch\" id=\"" ^ id ^ "\">\n" ^
- acc ^ "\n</span>"
+ children ^ "\n</span>"
in
- let leaf text =
+ let leaf lpath =
"<img src=\"treeview/doc.gif\"/>\n" ^
- "<a href=\"javascript:retrieveFile('" ^ text ^ "')\">" ^
- (Filename.basename text) ^ "</a><br/>"
+ "<a href=\"javascript:retrieveFile('" ^ lpath ^ "')\">" ^
+ (Filename.basename lpath) ^ "</a><br/>"
in
let rec aux path =
color: white;
}
+input.diaFile {
+ margin-left: auto;
+ margin-right: auto;
+ width: 444px;
+}
+
div.scroll {
display: block;
margin-left: auto;
var closedImg = new Image();\r
closedImg.src = "treeview/closed.gif";\r
\r
-function showBranch(branch){\r
+function showBranch(branch,path){\r
var objBranch = document.getElementById(branch).style;\r
if(objBranch.display=="block")\r
objBranch.display="none";\r
else\r
objBranch.display="block";\r
swapFolder('I' + branch);\r
+ // codice per mostrare il path nella casella di testo\r
}\r
\r
function swapFolder(img){\r