I'm not 100% sure if this is a loan to a director from the company or a loan from a director to the company.
Either way, the process is similar.
Set up the loan account (either as an asset or a liability depending on which way the loan is going).
Entry to show the loan - either a cheque or a deposit posting from the bank account to the loan account.
Entry to repay the loan is the reverse - either a deposit or a cheque to the bank account from the loan account.
Hope this helps.