Current File : //var/wcp4/success2/public_html/tmp/templates/main.html
<script language = "javascript">

var ie = (document.all)? true:false
function write_top_frame () {   
    var doc = top.topfrm.document ;
    doc.clear();
    doc.write("<script>function check_input() {if (!document.frm_top.txt_input.value) {");
    doc.write("alert('Please enter the directory you wish to go to'); document.frm_top.txt_input.focus();return false;}");
    doc.write("if (top.wasDownload()) return;if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(window.top.mainfrm.document.frm_main) == 'undefined') {")
    doc.write("alert('Please return to main screen and execute the command again'); return false}");
    doc.write("window.top.mainfrm.document.frm_main.cmd_do.value = 'cmd_cd';");
    doc.write("window.top.mainfrm.document.frm_main.txt_input.value = document.frm_top.txt_input.value;");
    doc.write("window.top.mainfrm.document.frm_main.submit();document.frm_top.txt_input.focus();return false;");
    doc.write("}<\/script>");
    doc.write("<link rel='stylesheet' href='<%html_url%>/<%scheme%>.css'><body class=background leftmargin=5 topmargin=10>");
    doc.write("<form name='frm_top' action='' method=post target='mainfrm' onsubmit='return check_input()'>");
    doc.write("<input type=hidden name=cmd_do value='cmd_cd'>")
    doc.write("<table border='1' cellpadding='3' cellspacing='0' width='100%'>");
    doc.write("<tr><td width='10%' align='right'><b><%font%>FileMan:</b></font></td><td width='40%'><%font%><%string%></font>&nbsp;</td>");
    doc.write("<td width=40%><%font%>Directory:</font> <input name='txt_input' value='' size='20' class='button'><input type=submit value='Go' class='submit'></td>");
    doc.write("<td rowspan=2 align='right'></td></tr>");
    doc.write("<tr><td width='10%' align='right'><%font%>Tools:</font></td><td width='80%' colspan=2><%font%>");
    doc.write("<font size=2><a href='javascript:top.js_cmd_search()'>Search</a> | ");
    doc.write("<font size=2><a href='javascript:top.js_cmd_replace()'>Replace</a> | ");
    doc.write("<a href='javascript:top.js_cmd_command(1)'>Command</a> | ");
    doc.write("<a href='javascript:top.js_cmd_upload(1)'>Upload</a> | ");
    doc.write("<a href='javascript:top.js_open_link(\"cmd_show\",\"mainfrm\",\"file_editor.html\")'>New File</a> | ");
    doc.write("<a href='javascript:top.js_cmd_makedir(1)'>New Dir</a> | ");
    doc.write("<a href='javascript:top.js_open_link(\"cmd_show_passwd\",\"bottomfrm\")'>Protect</a> | ");
    doc.write("<a href='javascript:top.js_open_link(\"cmd_show\",\"mainfrm\",\"preferences.html\")'>Preferences</a></font>");
    doc.write("</font></td></tr></table></form></body>");
    doc.close();
}

function write_top_frame_selected () { 
    var doc = top.topfrm.document ;
    doc.clear();
    doc.write("<script>function check_input() {if (!document.frm_top.txt_input.value) {");
    doc.write("alert('Please enter the directory you wish to go to'); document.frm_top.txt_input.focus();return false;}");
    doc.write("if (top.wasDownload()) return;if (typeof(window.top.mainfrm.frm_main) == 'unknown' || typeof(window.top.mainfrm.document.frm_main) == 'undefined') {")
    doc.write("alert('Please return to main screen and execute the command again'); return false}");
    doc.write("window.top.mainfrm.document.frm_main.cmd_do.value = 'cmd_cd';");
    doc.write("window.top.mainfrm.document.frm_main.txt_input.value = document.frm_top.txt_input.value;");
    doc.write("window.top.mainfrm.document.frm_main.submit();document.frm_top.txt_input.focus();return false;");
    doc.write("}<\/script>");
    doc.write("<link rel='stylesheet' href='<%html_url%>/<%scheme%>.css'><body class=background leftmargin=5 topmargin=10>");
    doc.write("<table border='1' cellpadding='3' cellspacing='0' width='100%'>");
    doc.write("<tr>");    
    doc.write("<td width='10%' align='right'><%font%><b>FileMan:</b></font></td>");
    <%if root_select%>
    doc.write("<form name='frmroot' action='./' method=post target='_top'>");
    doc.write("<input type=hidden name=do value='fileman'>")
    <%ifnot user_sessions%>
    doc.write("<input type=hidden name=session_id value='<%session_id%>'>")
    <%endif%>
    <%endif%>
    
    doc.write("<td width='<%if root_select%>50%<%else%>45%<%endif%>'><%if root_select%><%root_select%><%endif%>&nbsp;<%font%><%string%></font></td><%if root_select%></form><%endif%>");
    doc.write("<form name='frm_top' action='' method=post target='mainfrm' onsubmit='return check_input()'>");
    doc.write("<input type=hidden name=cmd_do value='cmd_cd'>")
    doc.write("<td align=center width=<%if root_select%>30%<%else%>35%<%endif%>><%font%>Directory: <input name='txt_input' value='' size='20' class='button'><input type=submit value='Go' class='submit'></font></td></form>");
    doc.write("</tr>");
    doc.write("<tr><td width='10%' align='right'><%font%>Tools:</font></td><td width='80%' colspan=2><%font%>");
    doc.write("<font size=2><%if cmd_search%><a href='javascript:top.js_cmd_search()'>Search</a> | <%endif%>");
    doc.write("<font size=2><%if cmd_replace%><a href='javascript:top.js_cmd_replace()'>Replace</a> | <%endif%>");
    doc.write("<%if cmd_command%><a href='javascript:top.js_cmd_command(1)'>Command</a> | <%endif%>");
    doc.write("<%if cmd_upload%><a href='javascript:top.js_cmd_upload(1)'>Upload</a> | <%endif%>");
    doc.write("<%if cmd_editor%><a href='javascript:top.js_open_link(\"cmd_show\",\"mainfrm\",\"file_editor.html\")'>New File</a> | <%endif%>");
    doc.write("<%if cmd_makedir%><a href='javascript:top.js_cmd_makedir(1)'>New Dir</a> | <%endif%>");
    doc.write("<%ifnot srv_soft%><%if cmd_passwd%><a href='javascript:top.js_open_link(\"cmd_show_passwd\",\"bottomfrm\")'>Protect</a> | <%endif%><%endif%>");
    doc.write("<%if cmd_preferences%><a href='javascript:top.js_open_link(\"cmd_show\",\"mainfrm\",\"preferences.html\")'>Preferences</a><%endif%></font>");
    <%if multi or single%>      
        <%if cmd_admin%>
            doc.write(" | <a href='javascript:top.js_open_link(\"user_form\",\"mainfrm\")'>Password</a>");
            doc.write(" | <a href='<%http_ref%>?<%if multi%>do=log_off<%else%>fdo=log_off<%endif%>&<%url_opts%>' target=_top>Log off</a></font>");
        <%endif%>
    <%endif%>
    doc.write("</font></td></tr></table></body>");
    doc.close();
}

function js_action() {
    <%if show_all%>
    write_top_frame();
    <%else%>
    write_top_frame_selected();
    <%endif%>
    <%if reload eq '1'%>
        <%if cmd_do eq 'cmd_command'%>
            <%ifnot cmd_command%>
                top.js_status("<%status%>");
                return;
            <%endif%>
        <%endif%>
        top.js_<%cmd_do%>();
    <%endif%>
    <%if reload eq '2'%>top.js_<%cmd_do%>(1);<%endif%>
    
    var footer = top.bottomfrm.document.frm_footer
    if (typeof(footer) == 'undefined') {
        <%if show_all%>
            top.js_cmd_search(1);
        <%else%>
            <%if cmd_search%>
            top.js_cmd_search(1);
            <%else%>
            top.js_tools_bar();         
            <%endif%>
        <%endif%>
    }
    <%ifnot status%>
    else {      
        if (footer.cmd_do.value == 'cmd_search' || footer.cmd_do.value == 'cmd_replace') 
            footer.scope.options[0].text = "All of <%if work_path%><%work_path%><%else%>Root<%endif%>";
        var status = "";
        if (footer.cmd_do.value == 'cmd_makedir') {
            status = "Create New directory inside of <b><%if work_path%>/<%work_path%><%else%>Root<%endif%></b> directory"
        }           
        else if (footer.cmd_do.value == 'cmd_upload') {
            status = "Upload into <b><%if work_path%>/<%work_path%><%else%>Root<%endif%></b> directory"
        }

        if (ie) {
            if (typeof(top.bottomfrm.document.all['d_status']) != 'undefined') 
                top.bottomfrm.document.all['d_status'].innerHTML = status
        } else {
            if (typeof(top.bottomfrm.document.layers) != 'undefined') {
                top.bottomfrm.document.layers['d_status'].document.write(status)
                top.bottomfrm.document.layers['d_status'].document.close()
            }
        }
    }
    <%endif%>
    top.obj_focus()
}

<%if re_scheme%>
setInterval("top.refresh()", 100)
<%endif%>

</script>
<link rel="stylesheet" href="<%html_url%>/<%scheme%>.css">
<body class="bg_main" onload="js_action()" leftmargin=5 topmargin=4>
<form name='frm_main' action='<%http_ref%>' method=post>

<%if readme%><%if position eq 'Y'%><p><%font%><%readme%></font><%endif%><%endif%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <%if search%>
    <%if cmd_do eq "cmd_search" or cmd_do eq "cmd_replace"%>
  <tr><td><%font%>      
      <a href="<%http_ref%>?fdo=cmd_main_display&work_path=<%work_path%>&<%url_opts%>"><img src='<%html_url%>/icons/back.gif' border=0></a>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%status%></font></td></tr>
    <%endif%>
  <%endif%>
  <tr class="bg_main2">
    <td class="bg_main2">       
      <table border="0" cellpadding="1" cellspacing="1" width="100%" id="tabMain" >
        <tr bgcolor="#000066">
          <td width="1%" align=center class="header_format"> 
            <input name="allbox" type="checkbox" value="Check All" onClick="top.CheckAll();">
          </td>
          <td width="3%" class="header_format"><%font%><%sview%></td>
          <td width="36%" class="header_format"><%font%><%sname%></td>
          <td width="10%" class="header_format"><%font%><%ssize%></td>
          <td width="12%" class="header_format"><%font%><%stype%></td>
          <td width="16%" class="header_format"><%font%><%sdate%></td>
          <td width="10%" class="header_format"><%font%><%suser%></td>
          <td width="12%" class="header_format"><%font%><%sperm%></td>
        </tr>    
       <%loop results%> 
        <tr <%ifnot even%>class="background"<%else%>class="bg_main"<%endif%>> 
          <td width="1%" align=center> 
            <%if type%>
                <%if disabled%>
                 <input type="checkbox" name="c_edit" value="" disabled onClick="top.CheckCheckAll(this);">              
                <%else%>
                 <input type="checkbox" name="c_edit"  value="<%name%>" onClick="top.CheckCheckAll(this);">              
                <%endif%>
            <%else%>
                &nbsp;
                <input name="dparent" type=hidden value="1">
            <%endif%>
            <input type="hidden" name="size<%row_num%>" value="<%if nsize%><%nsize%><%endif%>">
          </td>
          <td align=center valign=middle>
          <%if disabled%>
             <%icon%>
          <%else%>
            <%if isdir%>
                <a href="<%http_ref%>?fdo=cmd_main_display&work_path=<%work_path%><%if work_path%>/<%endif%><%name%>&<%url_opts%>">
              <%else%>
                <a href="<%http_ref%>?cmd_do=cmd_view&work_path=<%work_path%>&c_edit=<%name%>&<%url_opts%>">
              <%endif%><%icon%></a>
          <%endif%>       
          </td>
          <td><%font%>
          <%if disabled%>
              <%name%>
          <%else%>
              <%if isdir%>
                <a href="<%http_ref%>?fdo=cmd_main_display&work_path=<%work_path%><%if work_path%>/<%endif%><%name%><%if url_opts%>&<%url_opts%><%endif%>"><%name%></a>
              <%else%>
                <%if show_all%>
                    <a href="<%http_ref%>?cmd_do=cmd_edit&work_path=<%work_path%>&c_edit=<%name%>&<%url_opts%>"><%name%></a>
                <%else%>
                    <%ifnot cmd_edit%>
                        <%name%>
                    <%else%>
                        <a href="<%http_ref%>?cmd_do=cmd_edit&work_path=<%work_path%>&c_edit=<%name%>&<%url_opts%>"><%name%></a>
                    <%endif%>
                 <%endif%>
              <%endif%>
          <%endif%></font>
          </td>
          <td><%font%><%if size%><%size%><%else%>&nbsp;<%endif%></font></td>
          <td><%font%><%if type%><%type%><%else%>&nbsp;<%endif%></font></td>
          <td><%font%><%date%></font></td>
          <td><%font%><%user%></font></td>
          <td><%font%>
           <%if disabled%>
              <%perm%>
          <%else%>
            <%if show_all%>
                <%if type%><a href="javascript:top.js_show_chmod('<%name%>','<%perm%>')" target=bottomfrm><%perm%></a><%endif%>
            <%else%>
                <%ifnot cmd_chmod%>
                    <%perm%>
                <%else%>
                   <%if type%><a href="javascript:top.js_show_chmod('<%name%>','<%perm%>')" target=bottomfrm><%perm%></a><%endif%>
                <%endif%>
            <%endif%>
          <%endif%>
           &nbsp;
              </font></td>
            </tr>           
        <%endloop%>
      </table>
    </td>
  </tr>
<%if speed_bar%> 
  <tr> 
      <td colspan="8"><%font%>Pages: &nbsp;<%speed_bar%></font> </td>
  </tr>
<%endif%> 
</table>
<%ifnot position%>
<%set position="N"%>
<%endif%>
<%if readme%><%if position eq 'N'%><p><%font%><%readme%></font><%endif%><%endif%>
<input type=hidden name='work_path' value='<%work_path%>'>
<input type=hidden name='txt_input' value=''>
<input type=hidden name="cmd_do" value=''>
<input type=hidden name="page" value=''>
<input type=hidden name="search" value="<%if search%><%search%><%endif%>">
<input type=hidden name="status" value="<%if status%><%status%><%endif%>">
<input type=hidden name="main_screen">
<input type=hidden name="opt_gz">
<input type=hidden name="chmode">
<input type=hidden name="retime">
<!--Search options-->
<input type=hidden name="c_regex">
<input type=hidden name="c_case">
<input type=hidden name="c_word">
<input type=hidden name="c_content">
<input type=hidden name="c_bak">
<input type=hidden name="scope">
<input type=hidden name="txt_with">
<input type=hidden name=do value='fileman'>
<input type=hidden name=have_gzip value='<%have_gzip%>'>

<!--informations-->
<input type=hidden name="num_objects" value="<%if num_objects%><%num_objects%><%endif%>">
<input type=hidden name="total_space" value="<%if total_space%><%total_space%><%endif%>">

<!--multi users-->
<%ifnot user_sessions%>
<input type=hidden name='session_id' value="<%session_id%>">
<%endif%>
<%if root_selected%>
<input type=hidden name='root_selected' value="<%root_selected%>">
<%endif%>
<%if re_scheme%>
<input name="re_scheme" type=hidden value="<%re_scheme%>">
<%endif%>
</form>
<script>
show_msg(0,0)

function show_msg(space_selected,objects_selected) {
    if (ie) {
        if (typeof(top.bottomfrm.document.all['d_msg']) != 'undefined') {
            top.bottomfrm.document.all['d_msg'].innerHTML = "<font size=1><b>"+space_selected+" of "+top.print_filesize(<%total_space%>)+" in "+objects_selected+" of <%num_objects%> files selected&nbsp;</b></font>";
        }           
    } else {
        if (typeof(top.bottomfrm.document.layers) != 'undefined') {
            top.bottomfrm.document.layers['d_msg'].document.write("<font size=1><b>"+space_selected+"  of "+top.print_filesize(<%total_space%>)+" in "+objects_selected+" of <%num_objects%> files selected&nbsp;</b></font>")
            top.bottomfrm.document.layers['d_msg'].document.close()
        }
    }
}

</script>
</body>
</html>