orders { black list


I used black user list on search form,but I want to modify template according to that condition,I can not do that,because I do not understand where the main code comes.

I used version 2.2, url is global.php?dispatch=orders.manage&status%5B%5D=L&period=Y

I want to learn where is the query for status L condition and where is the real template file,because manage.tpl does supply required html and other front-end codes in orders folder.

I need urgent help,