コード例 #1
0
ファイル: html.php プロジェクト: kevinwojo/hubzero-cms
 public static function listDirHtml($dir = null, $currentDir = '')
 {
     if ($dir == null) {
         $dir = new stdClass();
     }
     $leftMargin = $dir->depth * 15 . 'px';
     $html = '<li style="margin-left:';
     $html .= $leftMargin;
     $html .= '"><input type="radio" name="newpath" value="';
     $html .= urlencode($dir->path);
     $html .= '"';
     if ($currentDir == $dir->path) {
         $html .= 'disabled="disabled" ';
     }
     $html .= '/> <span><span class="folder ';
     if ($currentDir == $dir->path) {
         $html .= 'prominent ';
     }
     $html .= '">';
     $html .= $dir->name;
     $html .= '</span></span></li>';
     if (count($dir->subdirs) > 0) {
         foreach ($dir->subdirs as $subdir) {
             $html .= \Components\Projects\Helpers\Html::listDirHtml($subdir, $currentDir);
         }
     }
     return $html;
 }
コード例 #2
0
ファイル: move.php プロジェクト: kevinwojo/hubzero-cms
        ?>
						<ul class="dirtree">
							<li>
								<input type="radio" name="newpath" value="" <?php 
        if (!$this->subdir) {
            echo 'disabled="disabled" ';
        }
        ?>
 checked="checked" /> <span><?php 
        echo Lang::txt('PLG_PROJECTS_FILES_HOME_DIRECTORY');
        ?>
</span>
							</li>
							<?php 
        foreach ($this->list as $dir) {
            echo \Components\Projects\Helpers\Html::listDirHtml($dir, $this->subdir);
        }
        ?>

						</ul>
					<?php 
    }
    ?>
					<?php 
    if ($maxlevel <= 100) {
        ?>
						<?php 
        if (count($this->list) > 0) {
            ?>
							<div class="or"><?php 
            echo Lang::txt('COM_PROJECTS_OR');