⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 deletemessages.tpl

📁 太烦了
💻 TPL
字号:
{strip}
<script type="text/javascript" src="javascript/check.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
{literal}
function checkAll(form,name,val){
	for( i=0 ; i < form.length ; i++)
		if( form.elements[i].type == 'checkbox' && form.elements[i].name == name )
			form.elements[i].checked = val;
}
function confdel(form,errmsg){
	for(i=0;i < form.length;i++){
		if(form.elements[i].type=='checkbox' && form.elements[i].checked == true){
			selected = true;
			break;
		}
		else {
			selected = false;
		}
	}
	if(!selected) {
		alert(errmsg);
		return false;
	}else{
		form.submit();
		return true;
	}
}
{/literal}
/* ]]> */
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0" >
	<tr>
		<td class="module_detail" width="100%">
			{assign var="page_hdr01_text" value="{lang mkey='mail_messages'}"}
			{include file="page_hdr01.tpl"}

			<table border="0" cellpadding="{$config.cellpadding}" cellspacing="{$config.cellspacing}" width="100%">
				<tr>
					<td width="100%" align="center">

						<table class="table" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}" border="0" width="50%">
							<tr>
								<td width="33%"><a href="mailmessages.php" >{lang mkey='inbox'}</a></td>
								<td width="33%"><a href="sentmessages.php" >{lang mkey='sent'}</a></td>
								<td width="33%">{lang mkey='trashcan'}</td>
							</tr>
						</table>

						<table width="550" border="0" cellpadding="{$config.cellpadding}" cellspacing="{$config.cellspacing}"  >
							<tr>
								<td class="module_detail_inside" width="100%">
								{assign var="page_hdr02_text" value="{lang mkey='trashcan'}"|capitalize}
								{include file="page_hdr02.tpl"}

									<table width="100%" border="0" cellpadding="{$config.cellpadding}" cellspacing="{$config.cellspacing}" >
										<tr>
											<td width="100%">
                        <form name="frmGroupMail" action="?sort={$smarty.get.sort}&amp;type={$smarty.get.type}"
                        method="post" onsubmit="javascript: return confdel(this,'{lang mkey=admin_js_error_msgs skey=1}');">
                        <input type="hidden" name="frm" value="frmGroupMail"/>
												<table class="table" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}" width="98%" border="0" align="center">
												<tbody>
													<tr class="table_head">
														<th width="25"><input type="checkbox" name="chkall" value="" onclick="checkAll(this.form,'txtcheck[]',this.checked)"/></th>
														<th width="25">{lang mkey='col_head_srno'}</th>
														<th width="25">{lang mkey='col_head_srno'}</th>
														<th width="200"><a href="?sort={lang mkey='col_head_subject}&amp;type={$sort_type}">{lang mkey='col_head_subject'}</a></th>
														<th width="100"><a href="?sort={lang mkey='col_head_username'}&amp;type={$sort_type}">{lang mkey='col_head_username'}</a></th>
														<th width="100"><a href="?sort={lang mkey='col_head_sendtime'}&amp;type={$sort_type}">{lang mkey='col_head_sendtime'}</a></th>
													</tr>
												{assign var="mcount" value="0"}
												{foreach item=item key=key from=$data}
													{math equation="$mcount+1" assign="mcount"}
													<tr>
														<td><input type="checkbox" name="txtcheck[]" value="{$item.id}"/></td>
														<td>{$mcount}</td>
														<td>{$item.folder|capitalize}</td>
														<td><a href="showmessage.php?id={$item.id}&amp;messages=sent">{$item.subject}</a></td>
														<td>
														{if $config.enable_mod_rewrite == 'Y'}
															<a href="javascript:popUpScrollWindow2('{$docroot}{if $config.seo_username == 'Y'}{$item.username}{else}{$item.id}.htm{/if}','top',650,600)">
														{else}
															<a href="javascript:popUpScrollWindow2('{$docroot}showprofile.php?{if $config.seo_username == 'Y'}username={$item.username}{else}id={$item.id}{/if}','top',650,600)">
														{/if}														{$item.username}</a></td>
														<td>{$item.sendtime|date_format:$smarty.const.DATE_TIME_FORMAT}</td>
													</tr>
												{/foreach}
													<tr><td colspan="9">&nbsp;</td></tr>
													<tr>
														<td colspan="9"><img src="images/arrow_ltr.png" alt="" />{lang mkey='with_selected'}&nbsp;
															<input type="submit" class="formbutton" value="{lang mkey='delete'}" name="groupaction" />&nbsp;
															<input type="submit"  class="formbutton" value="{lang mkey='restore'}" name="groupaction"/>
														 </td>
 													</tr>
												</tbody>
												</table>
                        </form>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
{/strip}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -