Tariq,
Sorry, but it's not my job (or anyone else's in a peer-to-peer support forum like this) to write your application for you... it's up to you to make the actual code modifications that are necessary.
>Please modify codes, if possible.
>
>Thanks in advance