public static function CreateStatic($basePath = QFINDER_DEFAULT_BASEPATH, $width = '100%', $height = 400, $selectFunction = null) { $finder = new QFinder($basePath, $width, $height, $selectFunction); $finder->Create(); }
</head> <body> <h1 class="samples"> QFinder - Sample - Standalone </h1> <div class="description"> QFinder may be used in standalone mode inside any page, to create a repository manager with ease. You may define a custom JavaScript function to be called when an image is selected (double-clicked).</div> <p style="padding-left: 30px; padding-right: 30px;"> <?php require_once '../../starter.php'; // You can use the "QFinder" class to render QFinder in a page: $finder = new QFinder(); $finder->BasePath = '../../'; // The path for the installation of QFinder (default = "/qfinder/"). $finder->SelectFunction = 'ShowFileInfo'; // The default height is 400. $finder->Height = 600; $finder->Create(); // It can also be done in a single line, calling the "static" // Create( basePath, width, height, selectFunction ) function: // QFinder::CreateStatic( '../../', null, null, 'ShowFileInfo' ) ; ?> </p> <div id="footer"> <hr /> </div> </body> </html>
<?php if (!isset($_SESSION['is_adm']) || !$_SESSION['is_adm']) { include_once 'template/log.tpl'; } else { require_once 'core/qfinder_php5.php'; $QFinder = new QFinder(QFINDER_DEFAULT_BASEPATH, '100%', '700px'); $QFinder->Create(); }