Mys.overseasView = function(config)
{
	Mys.overseasView.superclass.constructor.call(this, config);
};

Ext.extend(Mys.overseasView, Mys.KMAView, {
	bodyTemplate : (new Ext.Template([
		'<table width="100%" border="0" cellspacing="0" cellpadding="0">',
			'<tr>',
				'<td colspan="1">',
					'<div id="view_top_left">{admin}</div>',
				'</td>',
				'<td colspan="1">',
					'<div id="view_top_right">',
			    	'<a class="mys-item-list" onfocus="blur()" href="#state=list&page={page}"><img width="47" hspace="5" height="17" src="/images/common/btn_list.gif"/></a>',
					'</div>',
				'</td>',
			'</tr>',	
			'<tr>',
				'<td colspan="2" style="border:solid 5px #e7e7e7; padding:5px 0 2px 0"><table width="100%" border="0" cellspacing="0" cellpadding="0">',
					'<tr>',
						'<td width="50" height="30" align="center" class="mys-item-agree"><div class="score" title="추천수">{agree_count}</div><span><img src="/images/chuchun.gif" width="19" height="11"></span></td>',
						'<td width="5" class="partition" ><div>&nbsp;</div></td>',
						'<td style="padding-left:10px" class="subject">{title}</td>',
					'</tr>',
				'</table></td>',
			'</tr>',
			'<tr>',
				'<td colspan="2" height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">',
					'<tr>',
						'<td width="55"><img src="/images/common/stit_schedule.gif" width="39" height="13" hspace="5" /></td>',
						'<td class="txt1266">{dateRange}</td>',
						'<td width="65"><img src="/images/overseas/stit_limit.gif" width="53" height="13" hspace="5" /></td>',
						'<td width="190" class="c66">{applyDate}</td>',
					'</tr>',
				'</table></td>',
			'</tr>',
			'<tr>',
				'<td colspan="2" height="1" bgcolor="#e7e7e7"></td>',
			'</tr>',
			'<tr>',
				'<td colspan="2" height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">',
					'<tr>',
						'<td width="55"><img src="../images/common/stit_place.gif" width="39" height="13" hspace="5" /></td>',
						'<td class="txt1266">{location}</td>',
						'<td width="50"><img class = "replytitle" src="/images/common/stit_comment.gif" width="39" height="13" /></td>',
						'<td width="190" class="num mys-item-reply"><span class="reply-num">{reply_count}</span><a href="#reply"><img class="reply-num" src="../images/common/btn_viewcomment.gif" width="47" height="15" hspace="5" border="0" align="absmiddle" /></a></td>',
					'</tr>',
				'</table></td>',
			'</tr>',
			'<tr>',
				'<td colspan="2" height="2" bgcolor="#e8e8e8"></td>',
			'</tr>',
			'<tr>',
				'<td colspan="2" height="30" style="padding:8px 0 8px 0" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">',
					'<tr>',
						'<td width="55" valign="top"><img src="../images/common/stit_summary.gif" width="39" height="13" hspace="5" /></td>',
						'<td class="c66 h16">{summary}</td>',
						'</tr>',
				'</table></td>',
			'</tr>',
			'<tr>',
				'<td colspan="2" height="2" bgcolor="#e8e8e8"></td>',
			'</tr>',
			'<tr>',
				'<td colspan="2" align="right" style="padding-right: 5px;height : 30px;"><a href="{linkURL}" class="s11 c88 link">{linkURL}</a> <a class="copy" href="javascript:void(0);"><img src="/images/common/btn_coppyaddress.gif" width="49" height="17" hspace="5" border="0" align="absmiddle" /></a></td>',
			'</tr>',
			'<tr>',
				'<td colspan="2" class="contents"><div class="view-static-contents">{content}</div></td>',
			'</tr>',
			'<tr>',
				'<td colspan="2" height="20">&nbsp;</td>',
			'</tr>',
		'</table>',
		'{fileTable}',
		'<table width="100%" border="0" cellspacing="0" cellpadding="0">',
		'<tr>',
			'<td width="43" height="30" align="center" bgcolor="#f0f0f1"><img src="../images/common/icon_tag.gif" width="28" height="13" /></td>',
			'<td bgcolor="#f0f0f1" class="txt1244">{tags}</td>',
		'</tr>',
		'</table>',
	])).compile(),
	
	className : "mys-view-item",
	modifyURL : "/admin/overseas_write.htm",
	
	print : function()
	{
		var url = "overseas_print.htm?item_id=" + this.data.item_id;
		window.open(url,"" , "popup=1,width=800, height=768, top=0, left=0, location=0, toolbar=0, directories=0, status=0, menubar=1, scrollbars=1, resizable=1");
	}
});
