#CJam, 51 50 bytes
$$\varphi=1+""\cfrac1{1+"ri:R*'\"ddots"R!>'}R*'$_
Code explanation:
"$$\varphi=1+" "This is a static string";
"\cfrac1{1+"ri:R*'\ "Repeat this string input number times. Put a \ at the end";
"ddots"R!> "If input is 0, remove 1st characters, else not";
'}R* "Put the closing bracket R times";
'$_ "The final $$";
Few examples:
N = 0
$$\varphi=1+\dots$$
$$\varphi=1+\dots$$
N = 4
$$\varphi=1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\ddots}}}}$$
$$\varphi=1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\ddots}}}}$$
N = 15
$$\varphi=1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\ddots}}}}}}}}}}}}}}}$$
$$\varphi=1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\cfrac1{1+\ddots}}}}}}}}}}}}}}}$$
UPDATE - 1 byte saved thanks to Sp3000!