PageRenderTime 244ms CodeModel.GetById 120ms app.highlight 5ms RepoModel.GetById 116ms app.codeStats 0ms

/halogy/application/modules/files/views/admin/browser.php

https://bitbucket.org/haloweb/halogy-1.0/
PHP | 61 lines | 49 code | 12 blank | 0 comment | 3 complexity | 98504581a0f5224571392ce7d4de442f MD5 | raw file
 1<a class="halogycms_close" href="#"><img title="Close" src="<?php echo $this->config->item('staticPath'); ?>/images/btn_close.png"/></a>
 2<a href="/admin/files/" class="halogycms_button halogycms_confirm" target="_top">Manage Files</a>
 3<div style="clear:both;"></div>
 4
 5<div id="halogycms_scroll">
 6
 7<?php if (@$folders): ?>
 8
 9	<?php foreach ($folders as $folder): ?>		
10		<?php if ($folder['files']): ?>
11			<ul>
12				<li class="halogycms_title"><a href="#" class="halogycms_togglefolder"><strong><?php echo $folder['folderName']; ?></strong></a></li>
13			</ul>
14			
15			<ul>
16				<?php foreach ($folder['files'] as $file): ?>
17					<?php $extension = substr($file['filename'], strpos($file['filename'], '.')+1); ?>
18					<li>
19						<div class="halogycms_thumb">
20							<a href="#" class="halogycms_insertfile" title="<?php echo $file['fileRef']; ?>"><img src="<?php echo $this->config->item('staticPath'); ?>/images/fileicons/<?php echo $extension; ?>.png" alt="<?php echo $file['fileRef']; ?>" /></a>
21						</div>
22						<div class="halogycms_description">
23							<a href="#" class="halogycms_insertfile" title="<?php echo $file['fileRef']; ?>"><?php echo $file['fileRef']; ?></a>
24						</div>	
25					</li>				
26				<?php endforeach; ?>
27					
28			</ul>
29		<?php endif; ?>
30	<?php endforeach; ?>
31
32	<ul>
33		<li class="halogycms_title"><a href="#" class="halogycms_togglefolder"><strong>Other Files</strong></a></li>
34	</ul>
35
36<?php endif; ?>
37
38<?php if ($files): ?>
39
40	<ul>
41		<?php foreach ($files as $file): ?>
42			<?php $extension = substr($file['filename'], strpos($file['filename'], '.')+1); ?>
43			<li>
44				<div class="halogycms_thumb">
45					<a href="#" class="halogycms_insertfile" title="<?php echo $file['fileRef']; ?>"><img src="<?php echo $this->config->item('staticPath'); ?>/fileicons/<?php echo $extension; ?>.png" alt="<?php echo $file['fileRef']; ?>" /></a>
46				</div>
47				<div class="halogycms_description">
48					<a href="#" class="halogycms_insertfile" title="<?php echo $file['fileRef']; ?>"><?php echo $file['fileRef']; ?></a>
49				</div>	
50			</li>
51		<?php endforeach; ?>
52			
53	</ul>
54	
55<?php else: ?>
56
57	<p class="clear">You haven't uploaded any files yet.</p>
58
59<?php endif; ?>
60
61</div>