{#include file="header.html"#}
<body>

<!-- top menu -->
{#include file="top.html"#}
<!-- top menu -->

<!-- wrap -->
<div class="wrap">
	<!-- nav -->
	<div class="navlink"><a href="admincp.php">{#$cp_lang.cp#}</a>{#$navlink#}</div>
	<!-- msg -->
	<!-- main -->
	<div class="container">
		<table cellpadding="0" cellspacing="0">
		<tr>
		<td style="width:180px">
		<!-- sidebar -->
		<div class="sidebar">
		<div class="leftmenuheader">{#$cp_lang.cate#}</div>
		{#foreach from=$menu item=item key=key name=outmenu#}
		<div class="leftmenubody">
			<div class="leftmenutitle" onClick="show_menu('leftmenuitem_','{#$smarty.foreach.outmenu.iteration#}');"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="leftmenuitem_icon_{#$smarty.foreach.outmenu.iteration#}" />&nbsp;&nbsp;{#$item.mName#}</div>
			<div class="leftmenuitem" id="leftmenuitem_{#$smarty.foreach.outmenu.iteration#}">
				{#foreach from=$item.mItems item=s_item key=s_key#}
				<li><a href="admincp.php?action={#$s_item#}">{#$s_key#}</a></li>
				{#/foreach#}
			</div>
		</div>
		{#/foreach#}
		</div>
		<!-- sidebar end -->
		</td>
		<td>
		<!-- content -->
		<div class="content">
			<!-- include -->
			{#if $type eq "add"#}
			<!-- tip -->
			<!-- tip end -->
			<!-- item -->
			<div class="tablebody">
				<div class="tabletitle" onClick="show_menu('tablecontent_','1');"><span style="float:right;"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="tablecontent_icon_1" /></span>{#$cp_lang.add_cate#}</div>
				<div class="tablecontent" id="tablecontent_1">
				<form action="{#$actionurl#}" method="post" name="form" id="{#$type#}">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.add_cate_order#}</span><br />{#$cp_lang.add_cate_order_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="" name="cate[order]" id="order" size="5" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.add_cate_status#}</span><br />{#$cp_lang.add_cate_status_intro#}</td>
						<td width="50%" class="tcell_two"><input class="radio" type="radio" value="1" name="cate[status]" id="status_1" checked="checked" />&nbsp;{#$cp_lang.status_open#}<input class="radio" type="radio" value="0" name="cate[status]" id="status_0" />&nbsp;{#$cp_lang.status_close#}</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.add_cate_cup#}</span><br />{#$cp_lang.add_cate_cup_intro#}</td>
						<td width="50%" class="tcell_one">
							{#$cate_option#}
						</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.add_cate_name#}</span><br />{#$cp_lang.add_cate_name_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="cate[name]" id="name" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.add_cate_icon#}</span><br />{#$cp_lang.add_cate_icon_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="" name="cate[icon]" id="icon" size="35" />&nbsp;<a href="javascript:void(0);" onclick="pb_pop('admincp.php?action=fileupload&item=cate&input_id=icon',470,600);" title="{#$cp_lang.add_img#}"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/addimg.gif" alt={#$cp_lang.add_img#} /></a></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.add_cate_keywords#}</span><br />{#$cp_lang.add_cate_keywords_intro#}</td>
						<td width="50%" class="tcell_two"><textarea name="cate[keywords]" id="keywords" rows="7" cols="45"></textarea></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.add_cate_intro#}</span><br />{#$cp_lang.add_cate_intro_intro#}</td>
						<td width="50%" class="tcell_one"><textarea name="cate[intro]" id="intro" rows="7" cols="45"></textarea></td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="2">
							<input class="hidden" name="submitted" type="hidden" value="submitted">
							<input type="submit" value="{#$cp_lang.submit#}" class="submit" name="submit">
							<input type="reset" value="{#$cp_lang.reset#}" class="submit" name="reset">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- item -->
			{#elseif $type eq "edit"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.cate_edit_tip_1#}</li>
					<li>{#$cp_lang.cate_edit_tip_2#}</li>
				</div>
			</div>
			<!-- tip end -->
			<!-- list cate start -->
			<div class="tablebody">
				<div class="tabletitle" onClick="show_menu('tablecontent_','1');"><span style="float:right;"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="tablecontent_icon_1" /></span>{#$cp_lang.edit_cate#}</div>
				<div class="tablecontent" id="tablecontent_1">
				<form action="{#$actionurl#}" method="post" name="form" id="{#$type#}">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td width="10%" class="tcell_header">{#$cp_lang.cate_id#}</td>
						<td width="50%" class="tcell_header">{#$cp_lang.cate_name#}</td>
						<td width="10%" class="tcell_header">{#$cp_lang.cate_status#}</td>
						<td width="10%" class="tcell_header">{#$cp_lang.order#}</td>
						<td width="*" class="tcell_header">{#$cp_lang.operation#}</td>
					</tr>
					{#$cate_table#}
					<tr>
						<td class="tcell_sub" colspan="5">
							<input type="hidden" class="hidden" name="step" value="order">
							<input type="submit" value="{#$cp_lang.submit#}" class="submit" name="submit">
							<input type="reset" value="{#$cp_lang.reset#}" class="submit" name="reset">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- list cate end -->
			{#elseif $type eq "mod"#}
			<!-- tip -->
			<!-- tip end -->
			<!-- mod cate start -->
			<div class="tablebody">
				<div class="tabletitle" onClick="show_menu('tablecontent_','1');"><span style="float:right;"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="tablecontent_icon_1" /></span>{#$cp_lang.mod_cate#}</div>
				<div class="tablecontent" id="tablecontent_1">
				<form action="{#$actionurl#}" method="post" name="form" id="{#$type#}">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.add_cate_order#}</span><br />{#$cp_lang.add_cate_order_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="{#$cate.displayorder#}" name="cate[order]" id="order" size="5" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.add_cate_status#}</span><br />{#$cp_lang.add_cate_status_intro#}</td>
						<td width="50%" class="tcell_two"><input class="radio" type="radio" value="1" name="cate[status]" id="status_1" {#$status_1#} />&nbsp;{#$cp_lang.status_open#}<input class="radio" type="radio" value="0" name="cate[status]" id="status_0" {#$status_0#} />&nbsp;{#$cp_lang.status_close#}</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.add_cate_cup#}</span><br />{#$cp_lang.add_cate_cup_intro#}</td>
						<td width="50%" class="tcell_one">
							{#$cate_option#}
						</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.add_cate_name#}</span><br />{#$cp_lang.add_cate_name_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="{#$cate.name#}" name="cate[name]" id="name" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.add_cate_icon#}</span><br />{#$cp_lang.add_cate_icon_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="{#$cate.icon#}" name="cate[icon]" id="icon" size="35" />&nbsp;<a href="javascript:void(0);" onclick="pb_pop('admincp.php?action=fileupload&item=cate&input_id=icon&c_cid={#$cate.cid#}',470,600)" title="{#$cp_lang.add_img#}"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/addimg.gif" alt={#$cp_lang.add_img#} /></a></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.add_cate_keywords#}</span><br />{#$cp_lang.add_cate_keywords_intro#}</td>
						<td width="50%" class="tcell_two"><textarea name="cate[keywords]" id="keywords" rows="7" cols="45">{#$cate.keywords#}</textarea></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.add_cate_intro#}</span><br />{#$cp_lang.add_cate_intro_intro#}</td>
						<td width="50%" class="tcell_one"><textarea name="cate[intro]" id="intro" rows="7" cols="45">{#$cate.description#}</textarea></td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="2">
							<input class="hidden" name="submitted" type="hidden" value="submitted">
							<input type="submit" value="{#$cp_lang.submit#}" class="submit" name="submit">
							<input type="reset" value="{#$cp_lang.reset#}" class="submit" name="reset">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- mod cate end -->
			{#elseif $type eq "merge"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.cate_merge_tip_1#}</li>
					<li>{#$cp_lang.cate_merge_tip_2#}</li>
				</div>
			</div>
			<!-- tip end -->
			<!-- merge cate start -->
			<div class="tablebody">
				<div class="tabletitle" onClick="show_menu('tablecontent_','1');"><span style="float:right;"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="tablecontent_icon_1" /></span>{#$cp_lang.merge_cate#}</div>
				<div class="tablecontent" id="tablecontent_1">
				<form action="{#$actionurl#}" method="post" name="form" id="{#$type#}">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.source_cate#}</span><br />{#$cp_lang.source_cate_intro#}</td>
						<td width="50%" class="tcell_one">
							{#$source_option#}
						</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.destination_cate#}</span><br />{#$cp_lang.destination_cate_intro#}</td>
						<td width="50%" class="tcell_two">
							{#$destination_option#}
						</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="2">
							<input class="hidden" name="submitted" type="hidden" value="submitted">
							<input type="submit" value="{#$cp_lang.submit#}" class="submit" name="submit">
							<input type="reset" value="{#$cp_lang.reset#}" class="submit" name="reset">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- merge cate end -->
			{#/if#}
			<!-- include -->
		</div>
		<!-- content -->
		</td>
		</tr>
		</table>
	</div>
</div>
<!-- wrap -->

{#include file="footer.html"#}