{#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.batch#}</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 "article"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.batch_article_tip_1#}</li>
					<li>{#$cp_lang.batch_article_tip_2#}</li>
				</div>
			</div>
			<!-- 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.article_batch#}</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.batch_catename#}</span><br />{#$cp_lang.batch_catename_intro#}</td>
						<td width="50%" class="tcell_one">
						{#$cate_option#}
						</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.author#}</span><br />{#$cp_lang.batch_author_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="author" id="author" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.postdate#}</span><br />{#$cp_lang.batch_postdate_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" onclick="setday(this)" type="text" value="" name="later" id="later" size="15" />&nbsp;&#8254;&nbsp;<input class="forminput" onclick="setday(this)" type="text" value="" name="earlier" id="earlier" size="15" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.batch_article_views#}</span><br />{#$cp_lang.batch_article_views_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="-1" name="views" id="views" size="10" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.batch_article_comment#}</span><br />{#$cp_lang.batch_article_comment_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="-1" name="comments" id="comments" size="10" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.batch_article_digg#}</span><br />{#$cp_lang.batch_article_digg_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="-1" name="digg" id="digg" size="10" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.tags#}</span><br />{#$cp_lang.batch_article_tags_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="" name="tags" id="tags" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.batch_article_linkhost#}</span><br />{#$cp_lang.batch_article_linkhost_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="linkhost" id="linkhost" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.ip#}</span><br />{#$cp_lang.batch_ip_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="" name="ip" id="ip" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.batch_ddel#}</span><br />{#$cp_lang.batch_ddel_intro#}</td>
						<td width="50%" class="tcell_two"><input class="radio" type="radio" value="1" name="ddel" />&nbsp;{#$cp_lang.yes#}<input class="radio" type="radio" value="0" name="ddel" checked="checked"  />&nbsp;{#$cp_lang.no#}</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 "article_list"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.batch_article_tip_1#}</li>
					<li>{#$cp_lang.batch_article_tip_2#}</li>
				</div>
			</div>
			<!-- tip end -->
			<!-- list article 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.article_batch#}</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.tid#}</td>
						<td width="30%" class="tcell_header">{#$cp_lang.title#}</td>
						<td width="10%" class="tcell_header">{#$cp_lang.username#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.postdate#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.ip#}</td>
						<td width="*" class="tcell_header">{#$cp_lang.chose#}</td>
					</tr>
					{#foreach from=$article item=item name=article#}
					<tr class="{#if $smarty.foreach.article.iteration % 2 == 0#}tcell_one{#else#}tcell_two{#/if#}">
						<td align="center">{#$item.tid#}</td>
						<td><a href="javascript:void(0);" onclick="pb_pop('admincp.php?action=preview&type=article&id={#$item.tid#}','400','500')" class="uit" title="{#$cp_lang.preview#}">{#$item.subject#}</a></td>
						<td align="center">{#$item.author#}</td>
						<td align="center">{#$item.postdate#}</td>
						<td align="center">{#$item.postip#}</td>
						<td align="center"><input type="checkbox" name="tid[]" value="{#$item.tid#}" /></td>
					</tr>
					{#/foreach#}
					<tr>
						<td class="tcell_mult">{#$cp_lang.records#}：{#$total_records#}</td>
						<td class="tcell_mult" colspan="5" style="text-align:right;">
							{#$mult#}&nbsp;
						</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="6">
							<input type="hidden" class="hidden" name="step" value="del">
							<input type="button" value="{#$cp_lang.chose_all#}" class="submit" name="choseall" onclick="PBchoseAll(this.form)">
							<input type="submit" value="{#$cp_lang.delchose#}" class="submit" name="submit">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- list article end -->
			{#elseif $type eq "comment"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.batch_comment_tip_1#}</li>
				</div>
			</div>
			<!-- 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.comment_batch#}</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.batch_catename#}</span><br />{#$cp_lang.batch_catename_intro#}</td>
						<td width="50%" class="tcell_one">
						{#$cate_option#}
						</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.author#}</span><br />{#$cp_lang.batch_author_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="author" id="author" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.postdate#}</span><br />{#$cp_lang.batch_postdate_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" onclick="setday(this)" type="text" value="" name="later" id="later" size="15" />&nbsp;&#8254;&nbsp;<input class="forminput" onclick="setday(this)" type="text" value="" name="earlier" id="earlier" size="15" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.ip#}</span><br />{#$cp_lang.batch_ip_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="ip" id="ip" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.batch_ddel#}</span><br />{#$cp_lang.batch_ddel_intro#}</td>
						<td width="50%" class="tcell_one"><input class="radio" type="radio" value="1" name="ddel" />&nbsp;{#$cp_lang.yes#}<input class="radio" type="radio" value="0" name="ddel" checked="checked"  />&nbsp;{#$cp_lang.no#}</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 "comment_list"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.batch_comment_tip_1#}</li>
				</div>
			</div>
			<!-- tip end -->
			<!-- list comment 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.comment_batch#}</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.rid#}</td>
						<td width="30%" class="tcell_header">{#$cp_lang.content#}</td>
						<td width="10%" class="tcell_header">{#$cp_lang.username#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.postdate#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.ip#}</td>
						<td width="*" class="tcell_header">{#$cp_lang.chose#}</td>
					</tr>
					{#foreach from=$comment item=item name=comment#}
					<tr class="{#if $smarty.foreach.comment.iteration % 2 == 0#}tcell_one{#else#}tcell_two{#/if#}">
						<td align="center">{#$item.rid#}</td>
						<td><a href="javascript:void(0);" onclick="pb_pop('admincp.php?action=preview&type=comment&id={#$item.rid#}','400','500')" class="uit" title="{#$cp_lang.preview#}">{#$item.content#}</a></td>
						<td align="center">{#$item.author#}</td>
						<td align="center">{#$item.postdate#}</td>
						<td align="center">{#$item.postip#}</td>
						<td align="center"><input type="checkbox" name="rid[]" value="{#$item.rid#}" /></td>
					</tr>
					{#/foreach#}
					<tr>
						<td class="tcell_mult">{#$cp_lang.records#}：{#$total_records#}</td>
						<td class="tcell_mult" colspan="5" style="text-align:right;">
							{#$mult#}&nbsp;
						</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="6">
							<input type="hidden" class="hidden" name="step" value="del">
							<input type="button" value="{#$cp_lang.chose_all#}" class="submit" name="choseall" onclick="PBchoseAll(this.form)">
							<input type="submit" value="{#$cp_lang.delchose#}" class="submit" name="submit">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- list comment end -->
			{#elseif $type eq "attachment"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.batch_attachment_tip_1#}</li>
				</div>
			</div>
			<!-- 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.attachment_batch#}</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.batch_catename#}</span><br />{#$cp_lang.batch_catename_intro#}</td>
						<td width="50%" class="tcell_one">
						{#$cate_option#}
						</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.author#}</span><br />{#$cp_lang.batch_author_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="author" id="author" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.uploaddate#}</span><br />{#$cp_lang.batch_attachment_uploaddate_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" onclick="setday(this)" type="text" value="" name="later" id="later" size="15" />&nbsp;&#8254;&nbsp;<input class="forminput" onclick="setday(this)" type="text" value="" name="earlier" id="earlier" size="15" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.file_size#}</span><br />{#$cp_lang.batch_attachment_filesize_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="sizelarger" id="sizelarger" size="15" />&nbsp;&#8254;&nbsp;<input class="forminput" type="text" value="" name="sizesmaller" id="sizesmaller" size="15" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.batch_attachment_tid#}</span><br />{#$cp_lang.batch_attachment_tid_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="" name="tidlarger" id="tidlarger" size="15" />&nbsp;&#8254;&nbsp;<input class="forminput" type="text" value="" name="tidsmaller" id="tidsmaller" size="15" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.batch_attachment_onlyimg#}</span><br />{#$cp_lang.batch_attachment_onlyimg_intro#}</td>
						<td width="50%" class="tcell_two"><input class="radio" type="radio" value="1" name="onlyimg" id="onlyimg_1" />&nbsp;{#$cp_lang.yes#}<input class="radio" type="radio" value="0" name="onlyimg" id="onlyimg_0" checked="checked" />&nbsp;{#$cp_lang.no#}</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 "attachment_list"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.batch_attachment_tip_1#}</li>
					<li>{#$cp_lang.batch_attachment_tip_2#}</li>
				</div>
			</div>
			<!-- tip end -->
			<!-- list attachment 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.attachment_batch#}</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.aid#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.attname#}</td>
						<td width="10%" class="tcell_header">{#$cp_lang.file_size#}</td>
						<td width="10%" class="tcell_header">{#$cp_lang.author#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.uploaddate#}</td>
						<td width="10%" class="tcell_header">{#$cp_lang.batch_catename#}</td>
						<td width="10%" class="tcell_header">{#$cp_lang.downloads#}</td>
						<td width="*" class="tcell_header">{#$cp_lang.chose#}</td>
					</tr>
					{#foreach from=$attachment item=item name=attachment#}
					<tr class="{#if $smarty.foreach.attachment.iteration % 2 == 0#}tcell_one{#else#}tcell_two{#/if#}">
						<td align="center">{#$item.aid#}</td>
						<td><a href="javascript:void(0);" onclick="pb_pop('{#$PB_ENV.PB_URL#}attachments.php?aid={#$item.aid#}','400','500')" class="uit" title="{#$cp_lang.preview#}">{#$item.filename#}</a></td>
						<td align="center">{#$item.filesize#}</td>
						<td align="center">{#$item.username#}</td>
						<td align="center">{#$item.uploaddate#}</td>
						<td align="center">{#$item.catename#}</td>
						<td align="center">{#$item.downloads#}</td>
						<td align="center"><input type="checkbox" name="aid[]" value="{#$item.aid#}" /></td>
					</tr>
					{#/foreach#}
					<tr>
						<td class="tcell_mult"">{#$cp_lang.records#}：{#$total_records#}</td>
						<td class="tcell_mult" colspan="7" style="text-align:right;">
							{#$mult#}&nbsp;
						</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="8">
							<input type="hidden" class="hidden" name="step" value="del">
							<input type="button" value="{#$cp_lang.chose_all#}" class="submit" name="choseall" onclick="PBchoseAll(this.form)">
							<input type="submit" value="{#$cp_lang.delchose#}" class="submit" name="submit">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- list attachment end -->
			{#elseif $type eq "email"#}
			<!-- 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.email_batch#}</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.batch_sendto#}</span><br />{#$cp_lang.batch_sendto_intro#}</td>
						<td width="50%" class="tcell_one">
						{#$mailto#}
						</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.title#}</span><br />{#$cp_lang.batch_title_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="title" id="title" size="50" /></td>
					</tr>
					<tr>
						<td colspan="2" class="tcell_one"><span class="defaultbold">{#$cp_lang.content#}</span><br />{#$cp_lang.batch_content_intro#}</td>
					</tr>
					<tr>
						<td colspan="2" class="tcell_one">
							<textarea name="mail_content" id="mail_content" class="template"></textarea>
						</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.batch_count#}</span><br />{#$cp_lang.batch_count_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="100" name="count" id="count" size="10" /></td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="2">
							<input class="hidden" type="hidden" name="step" value="1">
							<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 "msg"#}
			<!-- 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.msg_batch#}</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.batch_sendto#}</span><br />{#$cp_lang.batch_sendto_intro#}</td>
						<td width="50%" class="tcell_one">
						{#$msgto#}
						</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.title#}</span><br />{#$cp_lang.batch_title_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="title" id="title" size="50" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.content#}</span><br />{#$cp_lang.batch_content_intro#}</td>
						<td width="50%" class="tcell_one"><textarea name="msg_content" id="msg_content" rows="7" cols="50"></textarea></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.batch_count#}</span><br />{#$cp_lang.batch_count_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="100" name="count" id="count" size="10" /></td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="2">
							<input class="hidden" type="hidden" name="step" value="1">
							<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 "invitecode"#}
			<!-- invitecode start -->
			{#if $step eq "apply"#}
			<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>申请列表</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"><a href="admincp.php?action=batch&type=invitecode&step=apply&orderby=id&ad={#$newad#}">ID</a></td>
						<td width="10%" class="tcell_header"><a href="admincp.php?action=batch&type=invitecode&step=apply&orderby=uid&ad={#$newad#}">申请人</a></td>
						<td width="40%" class="tcell_header">申请理由</td>
						<td width="15%" class="tcell_header">申请数目</td>
						<td width="15%" class="tcell_header"><a href="admincp.php?action=batch&type=invitecode&step=apply&orderby=applydate&ad={#$newad#}">申请时间</a></td>
						<td width="*" class="tcell_header">全选</td>
					</tr>
					{#foreach from=$apply item=item name=apply#}
					<tr class="{#if $smarty.foreach.apply.iteration % 2 == 0#}tcell_one{#else#}tcell_two{#/if#}">
						<td align="center">{#$item.id#}</td>
						<td align="center">{#$item.username#}</td>
						<td align="left" style="word-break:break-all;">{#$item.applyreason#}</td>
						<td align="center">{#$item.applynum#}</td>
						<td align="center">{#$item.applydate#}</td>
						<td align="center"><input type="checkbox" name="id[]" value="{#$item.id#}" /></td>
					</tr>
					{#/foreach#}
					<tr>
						<td class="tcell_mult"">{#$cp_lang.records#}：{#$total_records#}</td>
						<td class="tcell_mult" colspan="7" style="text-align:right;">
							{#$mult#}&nbsp;
						</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="8">
							<input type="radio" value="1" name="feedback" checked="checked" />通过&nbsp;<input type="radio" value="0" name="feedback" />删除
						</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="8">
							<input type="hidden" value="1" name="submitted">
							<input type="button" value="全选" class="submit" name="choseall" onclick="PBchoseAll(this.form)">
							<input type="submit" value="确定" class="submit" name="submit">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			{#elseif $step eq "manage"#}
			<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.invitecode_batch#}</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.id#}</td>
						<td width="10%" class="tcell_header">所有人</td>
						<td width="40%" class="tcell_header">{#$cp_lang.invitecode#}</td>
						<td width="15%" class="tcell_header">{#$cp_lang.postdate#}</td>
						<td width="15%" class="tcell_header">{#$cp_lang.enddate#}</td>
						<td width="*" class="tcell_header">{#$cp_lang.chose#}</td>
					</tr>
					{#foreach from=$invitecode item=item name=invitecode#}
					<tr class="{#if $smarty.foreach.invitecode.iteration % 2 == 0#}tcell_one{#else#}tcell_two{#/if#}">
						<td align="center">{#$item.id#}</td>
						<td align="center">{#$item.username#}</td>
						<td align="center">{#$item.invitecode#}</td>
						<td align="center">{#$item.createtime#}</td>
						<td align="center">{#$item.endtime#}</td>
						<td align="center"><input type="checkbox" name="id[]" value="{#$item.id#}" /></td>
					</tr>
					{#/foreach#}
					<tr>
						<td class="tcell_mult"">{#$cp_lang.records#}：{#$total_records#}</td>
						<td class="tcell_mult" colspan="7" style="text-align:right;">
							{#$mult#}&nbsp;
						</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="8">
							<input type="button" value="{#$cp_lang.chose_all#}" class="submit" name="choseall" onclick="PBchoseAll(this.form)">
							<input type="submit" value="{#$cp_lang.delchose#}" class="submit" name="submit">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			{#elseif $step eq "make"#}
			<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.batch_invitecode_make#}</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.batch_invitecode_num#}</span><br />{#$cp_lang.batch_invitecode_num_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="100" name="num" id="num" size="15" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.batch_invitecode_endtime#}</span><br />{#$cp_lang.batch_invitecode_endtime_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="-1" name="endtime" id="endtime" onclick="setday(this)" size="15" /></td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="2">
							<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>
			{#elseif $step eq "extend"#}
			<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.batch_invitecode_extend#}</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.batch_sendto#}</span></td>
						<td width="50%" class="tcell_one">
							{#$extendto#}
						</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.batch_invitecode_extendnum#}</span><br />{#$cp_lang.batch_invitecode_extendnum_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="5" name="extendnum" id="extendnum" size="15" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.batch_invitecode_endtime#}</span><br />{#$cp_lang.batch_invitecode_endtime_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="-1" name="endtime" id="endtime" onclick="setday(this)" size="15" /></td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="2">
							<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>
			{#else#}
			<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.batch_invitecode_tidy#}</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_two"><span class="defaultbold">{#$cp_lang.batch_invitecode_createtime#}</span><br />{#$cp_lang.batch_invitecode_tidy_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="createtime" id="createtime" onclick="setday(this)" size="15" /></td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="2">
							<input type="submit" value="{#$cp_lang.submit#}" class="submit" name="submit">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			{#/if#}
			<!-- invitecode end -->
			{#/if#}
			<!-- include -->
		</div>
		<!-- content -->
		</td>
		</tr>
		</table>
	</div>
</div>
<!-- wrap -->

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