Mat House

My dog using the bathroom outside, but I would rather to use it on the house to urinate a mat or something?
I have shih tzu and she sometimes do good in the pee outside. However, when I am gone, or something I can not take it out. Therefore, I would like to train to use a platform to urinate or something. that way when Im not here to get it out, she will be able to use the keyboard instead of the carpet. Is there any way I can train her to use the mat when urinating she can not leave. I love my dog and I do not want to get rid of it, but its got my house and I'm stinking afraid that by this winter, the smell will be unbearable with the heat and on all windows and doors closed. please help if you can. I prefer any quick and free education from there. but I'll take what we can get.
Place the pad where it is most. From there you can gradually move to wherever you want it to be. She will learn. Dogs are very intelligent.
Mat Kearney From The Road: House of Blues, Chicago