{if $form.type eq 'main_page'}
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>{$lang.admin_title_main}{$header.subtitle}</title>
	<link href="{$site_root}{$template_root}/css/style.css" rel="stylesheet" type="text/css">
</head>
<frameset framespacing=0 name="mainframe" id="mainframe" rows="93%,7%" border=0 scrolling=yes>
	<frameset  framespacing=0 name="mainframe" id="mainframe" cols="40%,60%" border=0 scrolling=yes>
		<frame src="{$form.frame_link_1}" name="frame1" id="frame1" frameborder="0" noresize scrolling=yes>
		<frame src="{$form.frame_link_2}" name="frame2" id="frame2" frameborder="0" noresize scrolling=yes>
	</frameset>
	<frame src="{$form.frame_link_3}" name="frame3" id="frame3" frameborder="0" noresize scrolling=no>
</frameset>
{/if}

{if $form.type eq 'frame_buttons'}
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link href="{$site_root}{$template_root}/css/style.css" rel="stylesheet" type="text/css">
</head>
{literal}
<style>
body{
	scrollbar-3dlight-color: #ffffff;
	scrollbar-arrow-color: #ffffff;
	scrollbar-darkshadow-color: #ffffff;
	scrollbar-face-color: #EDEDE6;
	scrollbar-highlight-color: #ffffff;
	scrollbar-shadow-color: #ffffff;
	scrollbar-track-color: #ffffff;
}
</style>
{/literal}
<body>
			<table width="100%"><tr height="40">
			<td width="40%">&nbsp;</td>
			<td width="60%" style="padding-left:20px">
				<a class="admin_button_major" onclick="javascript: parent.frame2.document.lang_save.submit();">{$lang.button.save}<span>&nbsp;</span></a>
				<a class="admin_button" onclick="javascript:  parent.window.close();parent.opener.focus();">{$lang.button.close}<span>&nbsp;</span></a>
			</td>
			</tr></table>
</body>
</html>

{/if}


{if $form.type eq 'frame_read'}
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset={$form.charset}">
	<title>{$lang.admin_title_main}{$header.subtitle}</title>
	<link href="{$site_root}{$template_root}/css/style.css" rel="stylesheet" type="text/css">
</head>
{literal}
<style>
body{
	scrollbar-3dlight-color: #ffffff;
	scrollbar-arrow-color: #ffffff;
	scrollbar-darkshadow-color: #ffffff;
	scrollbar-face-color: #EDEDE6;
	scrollbar-highlight-color: #ffffff;
	scrollbar-shadow-color: #ffffff;
	scrollbar-track-color: #ffffff;
}
</style>
{/literal}
<body>
		<center>
		<table width="98%" height="100%" cellspacing="0" cellpadding="0">
			<tr>
			<td width="100%" height="100%" class="white_block">

				<table width="100%" border=0 cellspacing="3px" cellpadding="10px" height=100%>
				<tr>
					<td width="100%" class="blue_block" valign="top"><font class="text">
						<table width="100%">
							<tr><td width="14%"><img src="{$site_root}{$template_root}/images/icon_yf.gif" border="0"></td><td align="left" width="86%" class=red_header>{$form.language}</td></tr>
							<tr>
								<td colspan="2" style="padding-top: 9px">
									<div align="center">
										<table class="table_main" cellspacing=1 cellpadding=5 width="100%">
											<tr class="table_header">
												<td class="main_header_text">
													{$data.name}
												</td>
											</tr>
											<tr class="odd">
												<td class="forumbodytext">
													{$data.content}
												</td>
											</tr>
											<tr class="table_header"><td>&nbsp;</td></tr>
										</table>
									</div>
								</td>
							</tr>
						</table>
					</font></td>
				</tr>
				</table>
			</td>
			</tr>
		</table>
	</center>
</body>
</html>
{/if}

{if $form.type eq 'frame_save'}
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset={$form.charset}">
	<title>{$lang.admin_title_main}{$header.subtitle}</title>
	<link href="{$site_root}{$template_root}/css/style.css" rel="stylesheet" type="text/css">
        <script language="JavaScript" type="text/javascript" src="{$server}{$template_root}/js/jquery-1.7.2.min.js"></script>
        <script language="JavaScript" type="text/javascript">
        var SERVER = "{$server}";
        var TEMPLATE_PATH = "{$site_root}{$template_root}";
		var SITE_ROOT = "{$site_root}";
		var SEO_SITE_ROOT = "{$seo_site_root}";
		var redactor_lang = "{if $redactor_lang}{$redactor_lang}{else}en{/if}";
        </script>
        {*if $redactor*}{*!customized redactor by dpopenov*}
		<script type="text/javascript" src="{$server}/imp_redactor/redactor.js"></script>
		<link rel="stylesheet" href="{$server}/imp_redactor/css/redactor.css" type="text/css" />
	{*/if*}
</head>
{if $form.close eq '1'}
<script>
	parent.window.close();
	parent.opener.focus();
</script>
{/if}
{literal}
<style>
body{
	scrollbar-3dlight-color: #ffffff;
	scrollbar-arrow-color: #ffffff;
	scrollbar-darkshadow-color: #ffffff;
	scrollbar-face-color: #EDEDE6;
	scrollbar-highlight-color: #ffffff;
	scrollbar-shadow-color: #ffffff;
	scrollbar-track-color: #ffffff;
}
</style>
{/literal}
<body>
		<center>
		<table width="98%" height="100%" cellspacing="0" cellpadding="0">
			<tr><td width="100%" height="100%" class="white_block">

				<table width="100%" border=0 cellspacing="3px" cellpadding="10px" height=100%>
				<tr>
					<td width="100%" class="blue_block" valign="top"><font class="text">
						<table width="100%">
							<tr><td width="14%"><img src="{$site_root}{$template_root}/images/icon_yf.gif" border="0"></td><td align="left" width="86%" class=red_header>{$form.language}</td></tr>
							<tr>
								<td colspan="2">
									<div align="center">
									<form name=lang_save action="{$form.action}" method=post onSubmit="return CheckChanges()" ENCTYPE="multipart/form-data" style="margin-top:5px">
									{$form.hidden}
										<table cellspacing=0 cellpadding=0 width="100%" height="580px">
											{if !($data.id_info==1 && $table_key==1)}
												<tr height="20px" bgcolor="#FFFFFF">
													<td>
														<input type="text" name="name" value="{$data.name}" size="40">
													</td>
												</tr>
											{/if}
											<tr bgcolor="#FFFFFF">
												<td class="forumbodytext">
                                                                                                        {$redactor}
                                                                                                        <textarea width="100%" style="width:100%; height: 500px;" name="text" id="description" class="redactor_normal"></textarea>
                                                                                                        <div id="bad_div_description" class="bad_div_left"></div>
												</td>
											</tr>
										</table>
									</form>
									</div>
								</td>
							</tr>
						</table>
					</font></td>
				</tr>
				</table>
			</td></tr>
		</table>
	</center>
{literal}
<script>
function CheckChanges(){
	bp = document.forms['lang_save'];
	if(bp.name.value == ""){
		alert({/literal}"{$lang.err.invalid_feilds|escape:javascript} {$lang.addition.name|escape:javascript}"{literal}); return false;
	}
	return true;
}
</script>
{/literal}
</body>
</html>
{/if}