Forums / Cotonti / Core Labs / Archive / Some enhancement for list.php

Some enhancement for list.php

Asmo
#1064 2008-09-15 23:54
Good decision.
I do not coder, but I try :)

But better this :)

$arrows = array();
$params = array('title','key','date','author','owner','count','filecount');
foreach($params as $val)
{
	$arrows[$val]['asc']  = $sed_img_down;
	$arrows[$val]['desc'] = $sed_img_up;
}

$arrow[$s]['asc'] = ($s && $w=='asc') ? $sed_img_down_active : $sed_img_down;
$arrow[$s]['desc'] = ($s && $w=='desc') ? $sed_img_up_active : $sed_img_up;	

Dit bericht is bewerkt door Asmo (2008-09-16 00:13, 16 jaren ago)