Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function listview()
- {
- global $nen;
- $listings=listings();
- $ret='';
- $project=project();
- //foreach($listings as $project)
- //{
- if(isset($project))
- if(is_array($project))
- foreach($project as $key => $value)
- {
- if($key==='Download')
- {
- $ret.='<tr><td colspan="1">'.$key.'</td><td colspan="1"><a href="./archives/'.$value.'">'.intval(filesize($nen['root'].$value)/1024).'KiB</a></td></tr>';
- }
- elseif($key==='About')
- {
- }
- elseif($key==='Summary')
- {
- }
- elseif($key==='Caption')
- {
- }
- elseif($key==='Thumb')
- {
- }
- elseif($key==='Vod')
- {
- }
- elseif($key==='Engine')
- {
- $ret.='<tr><td colspan="1">'.
- $key.
- '</td><td colspan="1">'.
- $value.
- '</td>';
- $ret.=
- '<td colspan="1" rowspan="1">'.'<p>'.$project['Caption'].'<br>('.$project['Summary'].')</p>';
- $ret.='</td></tr>';
- }
- elseif($key==='Platform')
- {
- $ret.='<tr><td colspan="1">'.
- $key.
- '</td><td colspan="1">'.
- $value.
- '</td>';
- $ret.=
- '<td colspan="1" rowspan="'.(count($project)-6).'">'.
- (strlen($project['Thumb'])>0?
- (strlen($project['Vod'])===0?
- '<img src="'.$project['Thumb'].'">'
- :
- ''
- )
- :
- ''
- ).
- (strlen($project['Vod'])>0?('<br><video width="320" height="240" controls><source src="'.$project['Vod'].'" type="video/mp4">Your browser does not support the video tag.</video>'):'').
- '<br>'.$project['About'];
- $ret.='</td></tr>';
- }
- else
- {
- $ret.='<tr><td>'.$key.'</td><td>'.$value.'</td></tr>';
- $ret.='</tr>';
- }
- }
- //}
- return $ret;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement