<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
{include file=$HEAD}
<!--tooltip/-->
<link rel="stylesheet" type="text/css" href="../../js/yui/2.5.1/container/assets/container.css">
<script type="text/javascript" src="../../js/yui/2.5.1/yahoo-dom-event/yahoo-dom-event.js"></script> 
<script type="text/javascript" src="../../js/yui/2.5.1/animation/animation-min.js"></script> 
<script type="text/javascript" src="../../js/yui/2.5.1/container/container-min.js"></script>
<script type="text/javascript">
	//<![CDATA[{literal}
		window.onload = function(){
			new YAHOO.widget.Tooltip("tip01",{
				context:["context1"],
				showDelay:0
			}); 
		}


function setPageNavi(flg) {
	if (document.all) { //ie
  		doc  = frames["layoutframe"].document;
	} else {
		doc = document.getElementById("layoutframe").contentDocument;
	}
	if(flg) {
		doc.getElementById("breadcrumbsList").innerHTML = '<ul>\n<li>\n<a href="#noscript">ナビ1（サンプル）</a>\n</li>\n<li>\n<a href="#noscript">ナビ2</a></li>\n<li>ナビ3</li>\n</ul>';
	} else {
		doc.getElementById("breadcrumbsList").innerHTML = '';
	}
}
{/literal}//]]>
</script>
{literal}
<style type="text/css">
<!--
#tip01 {
	width: 300px;
}
-->
{/literal}
</style>

<script src="../../js/prototype.js" type="text/javascript"></script>
<script type="text/javascript" src="../../js/window/window.js"></script>
<link href="../../js/window/themes/default.css" rel="stylesheet" type="text/css"/>
<link href="../../js/window/themes/alert.css" rel="stylesheet" type="text/css"/>
<link href="../../js/window/themes/alphacube.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
<!-- {literal}
function reloadParentOnClose(){
	var url = layoutframe.location.href;
		layoutframe.location.href = url;
}
var win;
function showBox(title, url, width, height) {
html = $("showbox");
win = new Window(
			{className: "alphacube", 
				title: title,
				width:width, height:height,
				url: url,
				recenterAuto:false
});
win.setCloseCallback(function(){
	reloadParentOnClose();
	return true;
					});
win.setZIndex(10001);
win.showCenter(true);
}
function closeBox() {
	Windows.close(win.getId());
}
{/literal} -->
</script>

<!--/tooltip-->
<body id="pageTpl">
<a name="top"></a>
<form {$form.attributes}>
	{$form.hidden}
	<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td height="34" valign="top">
				<!--pageHeader/-->
				{include file=$HEADER}
				<!--/pageHeader-->
			</td>
		</tr>
		<tr>
			<td height="40" valign="top"><div id="localNaviArea">
					<!--title/-->
					<div id="ttlAreaOuter">
						<div id="ttlArea">
							<h2>テンプレート編集</h2>
							<p class="titleInfo"><a href="#" id="context1" title="以下に表示されているテンプレートの「ヘッダー」「フッター」「サイドバー（テンプレートによっては設定なし）」について編集します。編集した内容は、そのまま保存されます。"><img src="../../admin/common-img/ico_help.gif" width="21" height="21" border="0"/></a></p>
							{$form.buttons.BTNback.html}
						</div>
					</div>
					<!--/title-->
				</div>
			</td>
		</tr>
		<tr>
			<td height="100%" valign="top" style="padding: 0 0 0 10px;">
				<!--エラーコメント/-->
					{foreach from=$ERROR item="msg" name="err"}
					{if $smarty.foreach.err.first}
					<p class="errBox">
						{/if}
						{$msg}<br>
						{if $smarty.foreach.err.last}
					</p>
					{/if}
					{/foreach}
					<!--/エラーコメント-->
				<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
					<tr>
						<td height="100%" valign="top" bgcolor="#FFFFFF">
							<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td height="100%" valign="top">
										<table width="100%" height="100%" cellpadding="0" cellspacing="0">
											<tr>
												<td width="200" valign="top">
													<div id="gMenuList">
														<p class="gMenuListTitle" style="margin: 10px 0 0 0;">テンプレート設定情報</p>
														<p class="gMenuListSubTitle">テンプレート名称</p>
														<div style="margin: 5px 0;">{$form.tpl_name.html}</div>
														<p class="gMenuListSubTitle">パンくずリスト表示設定</p>
														<div style="margin: 5px 0;">{$form.tpl_pagenavi.html}</div>
														<p class="gMenuListSubTitle">メモ</p>
														<div style="margin: 5px 0 0 0;">{$form.tpl_summary.html}</div>
														<div class="contentEditBtnArea">{$form.buttons.BTNsave.html}</div>
													</div>
													<div id="gMenuList">
														<p class="gMenuListTitle">適用中のグローバルメニュー</p>
														<p class="gMenuListSubTitle">公開中</p>
														<ul>
{foreach from=$menulist item="m" name="m"}
														<li>{$m}</li>
{foreachelse}
														<li>---</li>
{/foreach}
														</ul>
														<p class="gMenuListSubTitle">編集中</p>
														<ul>
{foreach from=$tmpmenulist item="tm" name="tm"}
														<li>{$tm}</li>
{foreachelse}
														<li>---</li>
{/foreach}
														</ul>
													</div>
												</td>
												<td height="100%" valign="top">
													<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
														<tr>
															<td height="100%" valign="top"><iframe name="layoutframe" id="layoutframe" marginheight="0" marginwidth="0" src="../../admin/template/edit-in.php?tpl_code={$tpl_code}" frameborder="no" height="100%" scrolling="auto" width="100%">フレーム対応のブラウザでご覧下さい。</iframe></td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td height="24" valign="top">
				<!--pageFooter/-->
				{include file=$FOOTER}
				<!--/pageFooter-->
			</td>
		</tr>
	</table>
</form>
</body>
</html>
