cotonti.com : Some enhancement for list.php https://www.cotonti.com Последние сообщения в теме Cotonti en Sat, 17 Jan 2026 01:34:11 -0000 Kilandor ср, 17 сен 2008 14:31:14 -0000 Trustmaster ср, 17 сен 2008 00:57:33 -0000 Orkan
haha! The power of Arrays !!!
$sed_img_active['asc'] = "<img src=https://www.cotonti.com/\"skins/".$usr['skin']."/img/system/arrow-up-active.gif\" alt=\"\" />";
$sed_img_active['desc'] = "<img src=https://www.cotonti.com/\"skins/".$usr['skin']."/img/system/arrow-down-active.gif\" alt=\"\" />";

$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;
}
$arrows[$s][$w]  = $sed_img_active[$w];
]]>
вт, 16 сен 2008 01:25:40 -0000
Asmo 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;	
]]>
пн, 15 сен 2008 23:54:46 -0000
Orkan
$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;
}
$arrows[$s]['asc']  = $sed_img_down_active;
$arrows[$s]['desc'] = $sed_img_up_active;
]]>
пн, 15 сен 2008 13:51:09 -0000
Asmo This looks very interesting and + clear URL string.



// At the very top, before the hook list.first
$url_string     = "list.php?c=$c";
$sort_string   .= (!empty($s) && !empty($w)) ? "&amp;s=$s&amp;w=$w" : "";
$filter_string .= (!empty($o) && !empty($p)) ? "&amp;o=$o&amp;p=$p" : "";


Pagination:
$pagination = sed_pagination($url_string.$sort_string.$filter_string, $d, $totallines, $cfg['maxrowsperpage']);
list($pageprev, $pagenext) = sed_pagination_pn($url_string.$sort_string.$filter_string, $d, $totallines, $cfg['maxrowsperpage'], TRUE);



The next hack adds highlight active arrows in sorting bar


You will also need to add two different colour images of arrows, for highlight
img/system/arrow-up-active.gif
img/system/arrow-down-active.gif

So, it looks very interesting and + clear URL string.

Heh, P.S. PFS and smiles not work Call to undefined function sed_htmlmetas()
Last core revision was very brutal :)]]>
вс, 14 сен 2008 23:47:08 -0000