Esempio n. 1
0
function getEditform()
{
    global $pwd, $file, $imgdir, $p;
    ?>
<TABLE BGCOLOR=EFEFEF width=100% CELLSPACING=0 CELLPADDING=0>

<FORM ACTION='<?php 
    echo $THIS_FILE;
    ?>
' METHOD=POST NAME=file_write onsubmit="return write_check();">
<INPUT TYPE=HIDDEN NAME=query VALUE='update'>
<INPUT TYPE=HIDDEN NAME=pwd VALUE="<?php 
    echo $pwd;
    ?>
">
<INPUT TYPE=HIDDEN NAME=file VALUE="<?php 
    echo $file;
    ?>
">
<TR><TD BGCOLOR='#808080'> </TD></TR>
<TR><TD BGCOLOR='#FFFFFF'> </TD></TR>
<TR>
<TD WIDTH=100% BGCOLOR='#D4D0C8' HEIGHT=23>
<TABLE CELLSPACING=0 CELLPADDING=0>
<TR>
<TD WIDTH=1 BGCOLOR='#808080'> </TD>
<TD WIDTH=1 BGCOLOR='#FFFFFF'> </TD>
<TD HEIGHT=20>

<IMG SRC='<?php 
    echo getFileicon($file);
    ?>
'>
<INPUT TYPE=TEXT NAME='file_name' SIZE=25 VALUE="<?php 
    echo $file;
    ?>
" STYLE='color:red;background:pink;'>

<INPUT TYPE=IMAGE SRC='<?php 
    echo $imgdir;
    ?>
/write_finish.gif' BORDER=0 align=absmiddle>
<IMG SRC='<?php 
    echo $imgdir;
    ?>
/line.gif' align=absmiddle>
<A HREF='<?php 
    echo $THIS_FILE;
    ?>
?pwd=<?php 
    echo $pwd;
    ?>
&p=<?php 
    echo $p;
    ?>
'><IMG SRC='<?php 
    echo $imgdir;
    ?>
/write_list.gif' BORDER=0 align=absmiddle></A>
<A style='cursor:pointer;' onclick="window.open('<?php 
    echo $THIS_FILE;
    ?>
?pwd=<?php 
    echo $pwd;
    ?>
&query=src&file=<?php 
    echo $file;
    ?>
&type=file','srcwin','width=800,height=700,scrollbars=yes,left=0,top=0');"><IMG SRC='<?php 
    echo $imgdir;
    ?>
/write_src.gif' BORDER=0 align=absmiddle></A>
<A HREF="<?php 
    echo $pwd . $file;
    ?>
" TARGET=_blank><IMG SRC='<?php 
    echo $imgdir;
    ?>
/write_excute.gif' BORDER=0 align=absmiddle></A>
<A style='cursor:pointer;' onclick="window.open('<?php 
    echo $THIS_FILE;
    ?>
?pwd=<?php 
    echo $pwd;
    ?>
&query=move&file=<?php 
    echo $file;
    ?>
&type=file','srcwin','width=370,height=500,scrollbars=yes,left=0,top=0');"><IMG SRC='<?php 
    echo $imgdir;
    ?>
/write_move.gif' BORDER=0 align=absmiddle></A>
<A style='cursor:pointer;' onclick="location.href='<?php 
    echo $THIS_FILE;
    ?>
?pwd=<?php 
    echo $pwd;
    ?>
&query=copy&file=<?php 
    echo $file;
    ?>
&type=file';"><IMG SRC='<?php 
    echo $imgdir;
    ?>
/write_copy.gif' BORDER=0 align=absmiddle></A>
<A HREF='<?php 
    echo $THIS_FILE;
    ?>
?pwd=<?php 
    echo $pwd;
    ?>
&query=down&file=<?php 
    echo $file;
    ?>
&type=file'><IMG SRC='<?php 
    echo $imgdir;
    ?>
/write_down.gif' BORDER=0 align=absmiddle></A>
<A style='cursor:pointer;' onclick="confirm_check('정말로 삭제하시겠습니까?              \n\n삭제는 복구가 불가능합니다.','<?php 
    echo $THIS_FILE;
    ?>
?pwd=<?php 
    echo $pwd;
    ?>
&query=delete&file=<?php 
    echo $file;
    ?>
&type=file&p=<?php 
    echo $p;
    ?>
','','');"><IMG SRC='<?php 
    echo $imgdir;
    ?>
/write_delete.gif' BORDER=0 align=absmiddle></A>
<IMG SRC='<?php 
    echo $imgdir;
    ?>
/line.gif' align=absmiddle>

<!--
<A HREF='#filed' onclick="plus_width();"><IMG SRC='<?php 
    echo $imgdir;
    ?>
/w+.gif' align=absmiddle border=0 alt='폭늘이기'></A>
<A HREF='#filed' onclick="minus_width();"><IMG SRC='<?php 
    echo $imgdir;
    ?>
/w-.gif' align=absmiddle border=0 alt='폭줄이기'></A>
-->
<A HREF='#filed' onclick="plus_height();"><IMG SRC='<?php 
    echo $imgdir;
    ?>
/h+.gif' align=absmiddle border=0 alt='높이늘이기'></A>
<A HREF='#filed' onclick="minus_height();"><IMG SRC='<?php 
    echo $imgdir;
    ?>
/h-.gif' align=absmiddle border=0 alt='높이줄이기'></A>
<!--<A HREF='#filed' onclick="aplus_size();"><IMG SRC='<?php 
    echo $imgdir;
    ?>
/rs.gif' align=absmiddle border=0 alt='폭/높이늘이기'></A>-->
<A HREF='#filed' onclick="real_size();"><IMG SRC='<?php 
    echo $imgdir;
    ?>
/rs1.gif' align=absmiddle border=0 alt='원상태로'></A>

<IMG SRC='<?php 
    echo $imgdir;
    ?>
/line.gif' align=absmiddle>

</TD>
</TR>
</TABLE>

<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=0>
<TR>
<TD>
<?php 
    $DATA = @file($pwd . $file);
    $theight = sizeof($DATA) * 20 > 600 ? sizeof($DATA) * 20 : 600;
    ?>
<TEXTAREA ID='ContentDiv' NAME=CONTENT ROWS=23 COLS=100 SCROLLING=NO style='overflow:auto;width:100%;height:<?php 
    echo $theight;
    ?>
;padding:5pt;background:f1f1f1;border:1 solid #c0c0c0;'><?php 
    while ($dat = @each($DATA)) {
        echo htmlspecialchars($dat[1]);
    }
    ?>
</TEXTAREA>
</TD>
<TD WIDTH=6></TD>
</TR>
</TABLE>

</TD>
</TR>

</FORM>
</TABLE>
<?php 
}
Esempio n. 2
0
function getPrintFile($file, $nTab, $dir)
{
    global $THIS_FILE, $step_start;
    if ($step_start) {
        $nTab = $nTab - 1;
    }
    echo "<TR><TD><IMG SRC='{$imgdir}/blank.gif' WIDTH='" . ($nTab * 17 + 17) . "' HEIGHT=1 BORDER=0>";
    echo " <A HREF='{$THIS_FILE}?pwd={$dir}&file={$file}'>";
    echo "<IMG SRC='" . getFileicon($file) . "' ALIGN=absmiddle> " . $file;
    echo "</A></TD></TR>";
}