/**
  * Handles a 'medialist' ajax call
  *
  * @see ajax_medialist()
  */
 function _handleAjaxMediaList(&$event)
 {
     global $NS;
     if ($event->data !== 'preservefilenames_medialist') {
         return;
     }
     $event->preventDefault();
     $NS = cleanID($_POST['ns']);
     if ($_POST['do'] === 'media') {
         $this->_mod_tpl_mediaFileList();
     } else {
         tpl_mediaContent('fromAjax');
     }
 }
  <div id="media__manager" class="<?php 
echo tpl_classes();
?>
 row">

    <div id="mediamgr__aside" class="col-xs-4">
      <h1><?php 
echo hsc($lang['mediaselect']);
?>
</h1>

      <?php 
/* keep the id! additional elements are inserted via JS here */
?>
      <div id="media__opts"></div>
        <?php 
tpl_mediaTree();
?>
      </div>

      <div id="mediamgr__content" class="col-xs-8">
        <?php 
tpl_mediaContent();
?>
      </div>

  </div>

</body>
</html>
예제 #3
0
/**
 * Return list of files for the Mediamanager
 *
 * @author Andreas Gohr <*****@*****.**>
 */
function ajax_medialist()
{
    global $conf;
    global $NS;
    $NS = $_POST['ns'];
    tpl_mediaContent(true);
}
예제 #4
0
파일: ajax.php 프로젝트: AlexanderS/Part-DB
/**
 * Return list of files for the Mediamanager
 *
 * @author Andreas Gohr <*****@*****.**>
 */
function ajax_medialist()
{
    global $conf;
    global $NS;
    global $INPUT;
    $NS = cleanID($INPUT->post->str('ns'));
    if ($INPUT->post->str('do') == 'media') {
        tpl_mediaFileList();
    } else {
        tpl_mediaContent(true);
    }
}
예제 #5
0
파일: ajax.php 프로젝트: nextghost/dokuwiki
/**
 * Return list of files for the Mediamanager
 *
 * @author Andreas Gohr <*****@*****.**>
 */
function ajax_medialist()
{
    global $conf;
    global $NS;
    $NS = $_POST['ns'];
    if ($_POST['do'] == 'media') {
        tpl_mediaFileList();
    } else {
        tpl_mediaContent(true);
    }
}
예제 #6
0
        <?php echo hsc($lang['mediaselect'])?>
        [<?php echo strip_tags($conf['title'])?>]
    </title>
    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
    <?php tpl_metaheaders()?>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
    <?php tpl_includeFile('meta.html') ?>
</head>

<body>
    <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
    <div id="media__manager" class="dokuwiki">
        <?php html_msgarea() ?>
        <div id="mediamgr__aside"><div class="pad">
            <h1><?php echo hsc($lang['mediaselect'])?></h1>

            <?php /* keep the id! additional elements are inserted via JS here */?>
            <div id="media__opts"></div>

            <?php tpl_mediaTree() ?>
        </div></div>

        <div id="mediamgr__content"><div class="pad">
            <?php tpl_mediaContent() ?>
        </div></div>
    </div>
    <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]-->
</body>
</html>
예제 #7
0
/**
 * Return list of files for the Mediamanager
 *
 * @author Andreas Gohr <*****@*****.**>
 */
function ajax_medialist()
{
    global $NS;
    global $INPUT;
    $NS = cleanID($INPUT->post->str('ns'));
    $sort = $INPUT->post->bool('recent') ? 'date' : 'natural';
    if ($INPUT->post->str('do') == 'media') {
        tpl_mediaFileList();
    } else {
        tpl_mediaContent(true, $sort);
    }
}
예제 #8
0
파일: ajax.php 프로젝트: lorea/Hydra-dev
/**
 * Return list of files for the Mediamanager
 *
 * @author Andreas Gohr <*****@*****.**>
 */
function ajax_medialist()
{
    global $conf;
    global $NS;
    require_once DOKU_INC . 'inc/media.php';
    require_once DOKU_INC . 'inc/template.php';
    $NS = $_POST['ns'];
    tpl_mediaContent(true);
}