How To Create Login With Database And Popup Box

same as title, how i can do that? somebody can help me?

Try to implement this one

Login Form using CJuiDialog