Você está na página 1de 8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.

0 Transitional//EN"> <HTML dir=ltr><HEAD><TITLE>Easy File Management Web Server - Add/Edit Virtual Fo lder</TITLE> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="no-cache"> <meta http-equiv="Expires" content="-1"> <meta http-equiv="Cache-Control" content="no-cache"> <link rel="stylesheet" href="/efm2.css" type="text/css"> <script language="javascript" type="text/javascript"> <!-function input(ok) { var M1=ok.path.value; if (M1=="") { alert("Please input the physical path for virtual folder!"); return false; } M1=ok.alias.value; if (M1=="") { alert("Please input the alias for virtual folder!"); return false; } return true; } function ReadCookie(dcname) {var dcexist = dcname + "="; var Dc0 = "Unregistered ";if (document.cookie.length > 0) {offset = document.cookie.indexOf(dcexist);if (offset != -1) {offset += dcexist.length; end = document.cookie.indexOf(";", of fset);if (end == -1) { end = document.cookie.length; } return unescape(document. cookie.substring(offset,end));} else { return Dc0; } } else { return Dc0; }}; function adduser() { var txtarea = document.post.permissions; var txtPermissions=''; if(document.post.view1.checked) txtPermissions="view" ; if(document.post.download1.checked) { if(txtPermissions=='') txtPermissions="download" ; else txtPermissions=txtPermissions+"/download" ; } if(document.post.upload1.checked) { if(txtPermissions=='') txtPermissions="upload" ; else txtPermissions=txtPermissions+"/upload" ; } if(document.post.edit1.checked) { if(txtPermissions=='') txtPermissions="edit" ; else txtPermissions=txtPermissions+"/edit" ; } if(document.post.delete1.checked) { if(txtPermissions=='') txtPermissions="delete" ;

else txtPermissions=txtPermissions+"/delete" ; } if(document.post.create1.checked) { if(txtPermissions=='') txtPermissions="create" ; else txtPermissions=txtPermissions+"/create" ; } if(document.post.rename1.checked) { if(txtPermissions=='') txtPermissions="rename" ; else txtPermissions=txtPermissions+"/rename" ; } if(document.post.copy1.checked) { if(txtPermissions=='') txtPermissions="copy" ; else txtPermissions=txtPermissions+"/copy" ; } if(document.post.cut1.checked) { if(txtPermissions=='') txtPermissions="cut" ; else txtPermissions=txtPermissions+"/cut" ; } if(document.post.zip1.checked) { if(txtPermissions=='') txtPermissions="zip" ; else txtPermissions=txtPermissions+"/zip" ; } if(document.post.unzip1.checked) { if(txtPermissions=='') txtPermissions="unzip" ; else txtPermissions=txtPermissions+"/unzip" ; } if(document.post.describe1.checked) { if(txtPermissions=='') txtPermissions="describe" ; else txtPermissions=txtPermissions+"/describe" ; } if(document.post.manage1.checked) { if(txtPermissions=='') txtPermissions="manage" ; else txtPermissions=txtPermissions+"/manage" ; } var text =document.post.user_id.value+", "+txtPermissions+"\r\n"; if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos .text + text + ' ' : caretPos.text + text; txtarea.focus(); } else {

txtarea.value += text; txtarea.focus(); } } function adduser2() { var txtarea = document.post.permissions2; var txtPermissions=''; if(document.post.view2.checked) txtPermissions="view" ; if(document.post.download2.checked) { if(txtPermissions=='') txtPermissions="download" ; else txtPermissions=txtPermissions+"/download" ; } if(document.post.upload2.checked) { if(txtPermissions=='') txtPermissions="upload" ; else txtPermissions=txtPermissions+"/upload" ; } if(document.post.edit2.checked) { if(txtPermissions=='') txtPermissions="edit" ; else txtPermissions=txtPermissions+"/edit" ; } if(document.post.delete2.checked) { if(txtPermissions=='') txtPermissions="delete" ; else txtPermissions=txtPermissions+"/delete" ; } if(document.post.create2.checked) { if(txtPermissions=='') txtPermissions="create" ; else txtPermissions=txtPermissions+"/create" ; } if(document.post.rename2.checked) { if(txtPermissions=='') txtPermissions="rename" ; else txtPermissions=txtPermissions+"/rename" ; } if(document.post.copy2.checked) { if(txtPermissions=='') txtPermissions="copy" ; else txtPermissions=txtPermissions+"/copy" ; } if(document.post.cut2.checked) { if(txtPermissions=='') txtPermissions="cut" ; else txtPermissions=txtPermissions+"/cut" ; } if(document.post.zip2.checked) { if(txtPermissions=='')

txtPermissions="zip" ; else txtPermissions=txtPermissions+"/zip" ; } if(document.post.unzip2.checked) { if(txtPermissions=='') txtPermissions="unzip" ; else txtPermissions=txtPermissions+"/unzip" ; } if(document.post.describe2.checked) { if(txtPermissions=='') txtPermissions="describe" ; else txtPermissions=txtPermissions+"/describe" ; } if(document.post.manage2.checked) { if(txtPermissions=='') txtPermissions="manage" ; else txtPermissions=txtPermissions+"/manage" ; } var text =document.post.group_id.value+", "+txtPermissions+"\r\n"; if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos .text + text + ' ' : caretPos.text + text; txtarea.focus(); } else { txtarea.value += text; txtarea.focus(); } } // --> </script> </HEAD> <BODY text=#000000 vLink=#587ea5 link=#587ea5 bgColor=#b8d0dc><A name=top></A> <TABLE cellSpacing=0 cellPadding=10 width="100%" align=center border=0> <TBODY> <TR> <TD class=bodyline> <TABLE cellSpacing=0 cellPadding=2 border=0> <TBODY> <TR> <TD vAlign=top noWrap align=middle><SPAN class=mainmenu> &nbsp; &n bsp;<IMG height=13 alt="Virtual Folders list" hspace=3 src="/vfolder.gif" width=12 border=0><A class=mainmenu href="/vfolder.ghp">Virtual Folders</A><!--chat-->&nbsp; &nbsp ;<IMG height=13 alt="Users setting" hspace=3 src="/user.gif" width=12 border=0><A class=mainmenu href="/users.ghp">User Setting</A>&nbsp; &nbsp;<IMG height=13 alt="Log out" hspace=3 src="/logout.gif" width=12

border=0><A class=mainmenu href="/login.htm">Log out <script language="javascript" type="text/javascript"> <!-function ReadUsername() {var dcexist = "UserID" + "="; var Dc0 = "";if (document .cookie.length > 0) {offset = document.cookie.indexOf(dcexist);if (offset != -1 ) {offset += dcexist.length; end = document.cookie.indexOf(";", offset);if (end == -1) { end = document.cookie.length; } if(unescape(document.cookie.substring(o ffset,end))=="") return ""; else return "[ "+unescape(document.cookie.substring( offset,end))+" ]";} else { return Dc0; } } else { return Dc0; }}; document.write(ReadUsername()); // --> </script></A></SPAN>&nbsp; </TD> </TR> </TBODY> </TABLE> <BR> <TABLE cellSpacing=2 cellPadding=2 width="100%" align=center border=0> <TBODY> <TR> <div align="center"><span class="cattitle"><!--title--></span><BR><br></div> <form method="POST" action="" name="post" onSubmit="return input(this)"> <input type="hidden" name="vfolderid" value="<!--id-->"> <TABLE class=forumline cellSpacing=1 cellPadding=4 width="100%" border=0> <TBODY> <tr> <th width="20%" height=25 align=left nowrap class=thCornerL>&nbs p;Virtual Folder</th> <th width="80%" height=25 nowrap class=thCornerL></th> </tr> <TR> <TD width="20%" class="row1"><SPAN class="gen">Physical Path: </SPAN></T D> <TD class="row2"><INPUT name="Path" class="post" id="path" style="WIDTH: 300px" value="<!--path-->" size="50" maxLength="255" %readonly></TD> </TR> <TR> <TD class="row1"><SPAN class="gen">Name: </SPAN></TD> <TD class="row2"><INPUT name="alias" type="text" class="post" id="alias" style="WIDTH: 300px" value="<!--name-->" size="50" maxLength="64"></TD> </TR> <TR> <TD class="row1"><SPAN class="gen">Description: </SPAN></TD> <TD class="row2"><INPUT name="description" type="text" class="post" id=" description" style="WIDTH: 300px" value="<!--description-->" size="50" maxLength ="255"></TD> </TR> <TR> <TD class="row1"><SPAN class="gen">Disk Quota: </SPAN></TD> <TD class="row2"><INPUT name="quota" type="text" class="post" id="quota" style="WIDTH: 120px" value="<!--quota-->" size="10" maxLength="10" %readonly><S PAN class="gen">&nbsp;MB (0 means unlimited quota)</SPAN></TD> </TR> </TBODY>

</TABLE><br> <TABLE class=forumline cellSpacing=1 cellPadding=4 width="100%" border=0> <TBODY> <tr> <th width="20%" height=25 align=left nowrap class=thCornerL>&nbs p;User Permissions</th> <th width="80%" height=25 nowrap class=thCornerL></th> </tr> <TR> <TD width="20%" class="row1"><SPAN class="gen">User: </SPAN></TD> <TD class="row2"> <select name="user_id"><!--user_list--></select> </TD> </TR> <TR> <TD class="row1"><SPAN class="gen">Permissions: </SPAN></TD> <TD class="row2"> <input name="view1" type="checkbox" id="view1" value="1" c hecked><span class=gen>view</span> <input name="download1" type="checkbox" id="download1" val ue="1" checked><span class=gen>download</span> <input name="upload1" type="checkbox" id="upload1" value=" 1" ><span class=gen>upload</span> <input name="edit1" type="checkbox" id="edit1" value="1" > <span class=gen>edit</span> <input name="delete1" type="checkbox" id="delete1" value=" 1" ><span class=gen>delete</span> <input name="create1" type="checkbox" id="create1" value=" 1" ><span class=gen>create</span> <input name="rename1" type="checkbox" id="rename1" value=" 1" ><span class=gen>rename</span> <input name="copy1" type="checkbox" id="copy1" value="1" > <span class=gen>copy</span> <input name="cut1" type="checkbox" id="cut1" value="1" ><s pan class=gen>cut</span> <input name="zip1" type="checkbox" id="zip1" value="1" ><s pan class=gen>zip</span> <input name="unzip1" type="checkbox" id="unzip1" value="1" ><span class=gen>unzip</span> <input name="describe1" type="checkbox" id="describe1" val ue="1" ><span class=gen>describe</span> <input name="manage1" type="checkbox" id="manage1" value=" 1" ><span class=gen>manage</span> </TD> </TR> <TR> <TD class="row1"><SPAN class="gen"> </SPAN></TD> <TD class="row2"> <input type="button" value="Add" name="add_user" onClick="addus er()"> </TD> </TR> <TR> <TD class="row1"><SPAN class="gen"> </SPAN></TD> <TD class="row2"><textarea name="permissions" rows="10" cols="120"><!-permissions--></textarea> </TR> </TBODY>

</TABLE> <br> <TABLE class=forumline cellSpacing=1 cellPadding=4 width="100%" border=0> <TBODY> <tr> <th width="20%" height=25 align=left nowrap class=thCornerL>&nbs p;Group Permissions</th> <th width="80%" height=25 nowrap class=thCornerL></th> </tr> <TR> <TD width="20%" class="row1"><SPAN class="gen">Group: </SPAN></TD> <TD class="row2"> <select name="group_id"><!--group_list--></select> </TD> </TR> <TR> <TD class="row1"><SPAN class="gen">Permissions: </SPAN></TD> <TD class="row2"> <input name="view2" type="checkbox" id="view2" value="1" c hecked><span class=gen>view</span> <input name="download2" type="checkbox" id="download2" val ue="1" checked><span class=gen>download</span> <input name="upload2" type="checkbox" id="upload2" value=" 1" ><span class=gen>upload</span> <input name="edit2" type="checkbox" id="edit2" value="1" > <span class=gen>edit</span> <input name="delete2" type="checkbox" id="delete2" value=" 1" ><span class=gen>delete</span> <input name="create2" type="checkbox" id="create2" value=" 1" ><span class=gen>create</span> <input name="rename2" type="checkbox" id="rename2" value=" 1" ><span class=gen>rename</span> <input name="copy2" type="checkbox" id="copy2" value="1" > <span class=gen>copy</span> <input name="cut2" type="checkbox" id="cut2" value="1" ><s pan class=gen>cut</span> <input name="zip2" type="checkbox" id="zip2" value="1" ><s pan class=gen>zip</span> <input name="unzip2" type="checkbox" id="unzip2" value="1" ><span class=gen>unzip</span> <input name="describe2" type="checkbox" id="describe2" val ue="1" ><span class=gen>describe</span> <input name="manage2" type="checkbox" id="manage2" value=" 1" ><span class=gen>manage</span> </TD> </TR> <TR> <TD class="row1"><SPAN class="gen"> </SPAN></TD> <TD class="row2"> <input type="button" value="Add" name="add_user" onClick="addus er2()"> </TD> </TR> <TR> <TD class="row1"><SPAN class="gen"> </SPAN></TD> <TD class="row2"><textarea name="permissions2" rows="10" cols="120"><!-permissions2--></textarea> </TR>

</TBODY> </TABLE> <br> <table align=center> <tr> <TD class=row2><input type="submit" value="<!--submittitle-->" name="a dd_vfolder"></TD> </tr> </table> </form> <TABLE cellSpacing=2 cellPadding=2 width="100%" align=center border=0> <TBODY> <TR> <TD width="1" align=left><SPAN class=nav></SPAN></TD> </TR> </TBODY> </TABLE> <DIV align=center><SPAN class=copyright><BR> <BR> Powered by <A class=copyright href="http://www.web-file-management.com/" >Easy File Management Web Server </A><BR> Copyright &copy; 2008 EFS Software Inc.<BR> </SPAN></DIV></TD></TR></TBODY></TABLE></BODY></HTML>

Você também pode gostar