本文整理汇总了PHP中OnEvent::reloadSidePanel方法的典型用法代码示例。如果您正苦于以下问题:PHP OnEvent::reloadSidePanel方法的具体用法?PHP OnEvent::reloadSidePanel怎么用?PHP OnEvent::reloadSidePanel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OnEvent
的用法示例。
在下文中一共展示了OnEvent::reloadSidePanel方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sidePanelAttachments
public function sidePanelAttachments($filesDir)
{
$I = new HTMLInput("TBAttachments", "file");
$I->onchange(OnEvent::rme($this, "processAttachmentUpload", array("'{$filesDir}'", "fileName"), " " . OnEvent::reloadSidePanel("tinyMCE")));
echo "<div style=\"padding:5px;height:50px;\">" . $I . "</div></div>";
if (!file_exists(FileStorage::getFilesDir() . "{$filesDir}")) {
mkdir(FileStorage::getFilesDir() . "{$filesDir}");
}
$T = new HTMLTable(2, "Bilder");
$dir = new DirectoryIterator(FileStorage::getFilesDir() . "{$filesDir}");
foreach ($dir as $file) {
if ($file->isDot()) {
continue;
}
if ($file->isDir()) {
continue;
}
$BI = new Button("Datei löschen", "./images/i2/insert.png", "icon");
$BD = new Button("Datei löschen", "./images/i2/delete.gif", "icon");
$BD->style("float:right;margin-left:5px;");
$BD->rmePCR("tinyMCE", "", "deleteAttachment", array("'{$filesDir}'", "'" . $file->getFilename() . "'"), OnEvent::reloadSidePanel("tinyMCE"));
$T->addRow(array($BI, "{$BD}<small style=\"color:grey;float:right;margin-top:4px;\">" . Util::formatByte($file->getSize()) . " </small>" . (strlen($file->getFilename()) > 15 ? substr($file->getFilename(), 0, 15) . "..." : $file->getFilename())));
$T->addRowStyle("cursor:pointer;");
$T->addRowEvent("click", "contentManager.tinyMCEAddImage('" . DBImageGUI::imageLink("tinyMCEGUI", $filesDir, $file->getFilename(), true) . "');");
}
echo $T;
}
示例2: sidePanelPool
public function sidePanelPool($dir, $copyTo)
{
$I = new HTMLInput("filesPool", "file");
$I->onchange(OnEvent::rme($this, "processPoolUpload", array("'{$dir}'", "fileName"), " " . OnEvent::reloadSidePanel("mFile")));
echo "<div style=\"padding:5px;height:50px;\">" . $I . "</div></div>";
if (!file_exists(FileStorage::getFilesDir() . "{$dir}")) {
return;
}
$T = new HTMLTable(1, "Pool");
$Idir = new DirectoryIterator(FileStorage::getFilesDir() . "{$dir}");
foreach ($Idir as $file) {
if ($file->isDot()) {
continue;
}
if ($file->isDir()) {
continue;
}
$BD = new Button("Datei löschen", "./images/i2/delete.gif", "icon");
$BD->style("float:right;margin-left:5px;");
$BD->rmePCR("mFile", -1, "deletePoolFile", array("'{$dir}'", "'" . $file->getFilename() . "'"), OnEvent::reloadSidePanel("mFile"));
$BU = new Button("Datei verwenden", "./images/i2/insert.png", "icon");
$BU->style("float:left;margin-right:5px;");
$BU->rmePCR("mFile", -1, "copyFile", array("'{$dir}'", "'{$copyTo}'", "'" . $file->getFilename() . "'"), OnEvent::reloadPopup("mFile"));
$T->addRow(array("{$BU}{$BD}<small style=\"color:grey;float:right;margin-top:4px;\">" . Util::formatByte($file->getSize()) . " </small>" . (strlen($file->getFilename()) > 15 ? substr($file->getFilename(), 0, 15) . "..." : $file->getFilename())));
}
echo $T;
}