Библиотека для cis, online, cms1
This commit is contained in:
commit
3c2e614d87
269 changed files with 39854 additions and 0 deletions
39
core/widgets/filebrowser.php
Normal file
39
core/widgets/filebrowser.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
require_once 'core/widgets/listtable.php';
|
||||
|
||||
/**
|
||||
* Êëàññ äëÿ ãåíåðàöèè òàáëèöû
|
||||
*/
|
||||
class FileBrowser extends ListTable
|
||||
{
|
||||
private $friend;
|
||||
public function setType($type)
|
||||
{
|
||||
$this->setData('type', $type);
|
||||
}
|
||||
|
||||
function setHeader($header)
|
||||
{
|
||||
$this->setData('table', $header);
|
||||
}
|
||||
|
||||
function setFriend(Widget $friend)
|
||||
{
|
||||
$this->friend = $friend->getName();
|
||||
}
|
||||
|
||||
function getPostCode()
|
||||
{
|
||||
if ($this->friend) {
|
||||
return $this->getName() . ".setFriend(" . $this->friend . ");";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
function postMake() {
|
||||
$this->view->addScriptRaw($this->getPostCode(), true); // CompositeView
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue