Update order_list.tpl (filter function)

Rewrote the 'filter' function to be more generalized and easier to maintain across the admin section. Basically this function could be applied to all listings with filters (but I will leave it here first for review).