예제 #1
0
파일: index.php 프로젝트: m1has1k/Okay
            $a = GetNewImageSize($SESSION["dir"] . $FILES[$i], 200);
            // Bilddatei mit Thumbnail-Anzeige
            $icon = "<div id=\"th" . $i . "\" class=\"jsmpreview\"></div><img style=\"cursor:pointer;\" src=\"img/icon_image_16x16.png\" border=\"0\" onmouseover=\"jSMP.Show(\\'th" . $i . "\\', \\'" . $SESSION["dir"] . $FILES[$i] . "\\', \\'" . $a["width"] . "\\', \\'" . $a["height"] . "\\');\" onmouseout=\"jSMP.Close(\\'th" . $i . "\\');\" onclick=\"SMExplorer_Insert(\\'" . $SESSION["server"] . "\\', \\'" . $SESSION["dir"] . $FILES[$i] . "\\', \\'" . $SESSION["link_target"] . "\\');\" />";
            unset($a);
        } else {
            // Bilddatei ohne Thumbnail-Anzeige
            $icon = "<img style=\"cursor:pointer;\" src=\"img/icon_image_16x16.png\" border=\"0\" onclick=\"SMExplorer_Insert(\\'" . $SESSION["server"] . "\\', \\'" . $SESSION["dir"] . $FILES[$i] . "\\', \\'" . $SESSION["link_target"] . "\\');\" />";
        }
    } else {
        // Keine Bilddatei
        $icon = "<img style=\"cursor:pointer;\" src=\"img/icon_file_16x16.png\" border=\"0\" onclick=\"SMExplorer_Insert(\\'" . $SESSION["server"] . "\\', \\'" . $SESSION["dir"] . $FILES[$i] . "\\', \\'" . $SESSION["link_target"] . "\\');\" />";
    }
    if ($SESSION["show_file_menu"] == 1) {
        echo "jSMT.AddData(Array('<input id=\"td_checkbox" . $i . "\" name=\"td_checkbox" . $i . "\" class=\"checkbox\" type=\"checkbox\" value=\"0\" onclick=\"SMExplorer_Check(" . count($FILES) . ");\" />', '" . $icon . "', '<input id=\"fn_input" . $i . "\" name=\"fn_input" . $i . "\" class=\"edit\" style=\"width:98%;\" type=\"text\" value=\"" . $FILES[$i] . "\" title=\"" . $FILES[$i] . "\" onclick=\"SMExplorer_InputClick(this, " . $CONFIG["rename_file_ext"] . ");\" onblur=\"SMExplorer_InputBlur(this, \\'" . $FILES[$i] . "\\');\" onkeypress=\"SMExplorer_InputEnter(event, this, \\'" . $FILES[$i] . "\\', \\'" . bin2hex(RC4("id=1&" . $GET)) . "\\');\">', '<img id=\"i1" . $i . "\" style=\"cursor:pointer;\" src=\"img/icon_insert_16x16.png\" border=\"0\" title=\"\" onclick=\"SMExplorer_Insert(\\'" . $SESSION["server"] . "\\', \\'" . $SESSION["dir"] . $FILES[$i] . "\\', \\'" . $SESSION["link_target"] . "\\');\" />', '<img id=\"i3" . $i . "\" style=\"cursor:pointer;\" src=\"img/icon_show_16x16.png\" border=\"0\" title=\"\" onclick=\"SMExplorer_View_Show(\\'" . $SESSION["dir"] . $FILES[$i] . "\\');\" />', '<img id=\"i2" . $i . "\" style=\"cursor:pointer;\" src=\"img/icon_delete_16x16.png\" border=\"0\" title=\"\" onclick=\"SMExplorer_DeleteFile(\\'" . bin2hex(RC4("id=1&" . $GET)) . "\\', \\'" . $FILES[$i] . "\\');\" />', '" . number_format(@filesize(GetDocumentRoot() . $SESSION["dir"] . $FILES[$i]) / 1024, 2, ",", ".") . "&nbsp;KB', '" . date(GetDateFormat() . ' H:i', @filemtime(GetDocumentRoot() . $SESSION["dir"] . $FILES[$i])) . "'), Array('width:18px; text-align:center;', 'width:18px; text-align:center;', '', 'width:16px; text-align:center;', 'width:16px; text-align:center;', 'width:16px; text-align:center;', 'width:102px; text-align:right;', 'width:122px; text-align:center;'));";
    } else {
        echo "jSMT.AddData(Array('" . $icon . "', '<input id=\"fn_input" . $i . "\" name=\"fn_input" . $i . "\" class=\"edit\" style=\"width:98%;\" type=\"text\" value=\"" . $FILES[$i] . "\" title=\"" . $FILES[$i] . "\" readonly=\"1\">', '" . number_format(@filesize(GetDocumentRoot() . $SESSION["dir"] . $FILES[$i]) / 1024, 2, ",", ".") . "&nbsp;KB', '" . date(GetDateFormat() . ' H:i', @filemtime(GetDocumentRoot() . $SESSION["dir"] . $FILES[$i])) . "'), Array('width:18px; text-align:center;', '', 'width:16px; text-align:center;', 'width:102px; text-align:right;', 'width:122px; text-align:center;'));";
    }
}
?>

		// Tabelle zeichnen
		jSMT.Paint();

		<?php 
// Hinweis hinzufügen
for ($i = 0; $i < count($FILES); $i++) {
    echo "document.getElementById('i1" . $i . "').title = tinyMCEPopup.getLang('smexplorer.file_menu_hint_1', '?'); document.getElementById('i2" . $i . "').title = tinyMCEPopup.getLang('smexplorer.file_menu_hint_2', '?'); document.getElementById('i3" . $i . "').title = tinyMCEPopup.getLang('smexplorer.file_menu_hint_3', '?');";
}
?>
		/* ]]> */
		</script>
예제 #2
0
파일: index.php 프로젝트: dimadmb/100shub
                    echo "<td><input class=\"edit\" style=\"width:98%;\" type=\"text\" value=\"" . $FILES[$j] . "\" title=\"" . $FILES[$j] . "\" onclick=\"SMImage_InputFileClick(this);\" onblur=\"SMImage_InputFileBlur(this, '" . $FILES[$j] . "');\" onkeypress=\"SMImage_InputFileEnter(event, this, '" . $FILES[$j] . "', '" . bin2hex(RC4("id=1&" . $GET)) . "')\"></td>";
                } else {
                    echo "<td><input class=\"edit\" style=\"width:98%;\" type=\"text\" value=\"" . $FILES[$j] . "\" title=\"" . $FILES[$j] . "\" readonly=\"1\"></td>";
                }
                // Icon "Bild einfügen"
                echo "<td style=\"width:16px; text-align:center;\"><img id=\"i1" . $i . "\" style=\"cursor:pointer;\" src=\"img/icon_insert_16x16.png\" border=\"0\" title=\"\" onclick=\"SMImage_Insert('" . $SESSION["server"] . "', '" . $IMAGE_PATH_2 . $FILES[$j] . "', '" . Image_GetWidth($IMAGE_PATH . $FILES[$j]) . "', '" . Image_GetHeight($IMAGE_PATH . $FILES[$j]) . "', '" . $CONFIG["style"] . "');\" /></td>";
                // Icon "Bilddatei löschen"
                if ($SESSION["show_image_menu"] == 1) {
                    echo "<td style=\"width:16px; text-align:center;\"><img id=\"i2" . $i . "\" style=\"cursor:pointer;\" src=\"img/icon_delete_16x16.png\" border=\"0\" title=\"\" onclick=\"SMImage_DeleteImage('" . bin2hex(RC4("id=1&" . $GET)) . "', '" . $FILES[$j] . "');\" /></td>";
                }
                // Dateigröße
                echo "<td style=\"width:102px; text-align:right;\">" . number_format(@filesize($IMAGE_PATH . $FILES[$j]) / 1024, 2, ",", ".") . "&nbsp;KB</td>";
                // Bildgröße
                echo "<td style=\"width:102px; text-align:right;\">" . Image_GetWidth($IMAGE_PATH . $FILES[$j]) . "&nbsp;x&nbsp;" . Image_GetHeight($IMAGE_PATH . $FILES[$j]) . "</td>";
                // Datum
                echo "<td style=\"width:122px; text-align:center;\">" . date(GetDateFormat() . ' H:i', @filemtime($IMAGE_PATH . $FILES[$j])) . "</td>";
                // ScrollBar
                echo "<td style=\"width:10px;\">&nbsp;</td>";
                echo "</tr>";
                // Hinweis hinzufügen
                echo "<script language=\"javascript\" type=\"text/javascript\">document.getElementById('i1" . $i . "').title = tinyMCEPopup.getLang('smimage.image_menu_hint_1', '?'); document.getElementById('i2" . $i . "').title = tinyMCEPopup.getLang('smimage.image_menu_hint_2', '?');</script>";
                $i++;
            }
            echo "</table></div>";
        }
        break;
    case 2:
        include "php/upload.php";
        break;
}
?>