📄 tem_del.php
字号:
<?
require "inc/check.php";
require "inc/error.php";
//check_login();
?>
<html>
<head>
<script language="JavaScript">
function loadframes()
{
parent.leftFrame.location.href="tem_menu.php"
}
</script>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>BODY {
FONT-FAMILY: "宋体"; FONT-SIZE: 12px; scrollbar-face-color: ffffff; scrollbar-shadow-color: C1C1BB; scrollbar-highlight-color: C1C1BB; scrollbar-3dlight-color: EBEBE4; scrollbar-darkshadow-color: EBEBE4; scrollbar-track-color: F4F4F0; scrollbar-arrow-color: CACAB7
}
P {
FONT-FAMILY: "宋体"; FONT-SIZE: 12px
}
INPUT {
FONT-FAMILY: "宋体"; FONT-SIZE: 12px
}
FONT {
FONT-FAMILY: "宋体"; FONT-SIZE: 12px
}
SELECT {
FONT-FAMILY: "宋体"; FONT-SIZE: 12px
}
OPTION {
FONT-FAMILY: "宋体"; FONT-SIZE: 12px
}
TEXTAREA {
FONT-FAMILY: "宋体"; FONT-SIZE: 12px
}
FORM {
FONT-FAMILY: "宋体"; FONT-SIZE: 12px
}
TD {
FONT-FAMILY: "宋体"; FONT-SIZE: 12px; TABLE-LAYOUT: fixed; WORD-BREAK: break-all
}
A:link {
TEXT-DECORATION: none
}
A:visited {
TEXT-DECORATION: none
}
A:hover {
TEXT-DECORATION: underline
}
A:active {
FONT-SIZE: 12px; TEXT-DECORATION: none
}
.border {
BACKGROUND-COLOR: #efefef; BORDER-BOTTOM: 1px dotted; BORDER-COLLAPSE: collapse; BORDER-LEFT: 1px dotted; BORDER-RIGHT: 1px dotted; BORDER-TOP: 1px dotted; COLOR: #000000
}
.shadow1 {
COLOR: #ffffff; FILTER: dropshadow(color=#000000,offx=1,offy=1); FONT-SIZE: 12px
}
.shadow2 {
COLOR: #000000; FILTER: dropshadow(color=#d5d5d5,offx=1,offy=1); FONT-SIZE: 12px
}
.p1 {
COLOR: #ffffff; FONT-SIZE: 12px; TEXT-DECORATION: none
}
.p2 {
COLOR: #000000; FONT-SIZE: 12px; TEXT-DECORATION: none
}
.p3 {
COLOR: #004080; FONT-SIZE: 14px; TEXT-DECORATION: none
}
</STYLE>
</head>
<body bgcolor="#FFFFFF" text="#000000" onload="loadframes()">
<table width="80%" border="1" cellspacing="0" cellpadding="3" align="center" bordercolor="#c0c0c0">
<tr bgcolor="">
<td class="head-2" height="27" bgcolor="#FFFFFF"><b><font size="2" color="#cae4ff"> </font></b>
<div align="center"><font color="#FFFFFF"><img src="images/edit.gif" width="18" height="13" border="0"><a href="tem_add.php">增加摸板</a>
<img src="images/edit.gif" width="18" height="13" border="0"><a href="tem_edit.php?temname=<?echo $temname;?>">编辑摸板</a>
<img src="images/edit.gif" width="18" height="13" border="0"><a href="tem_del.php?temname=<?echo $temname;?>">删除摸板</a>
<font color="#000000" > </font></font></div>
</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td width="3%"> </td>
<td width="95%">
<?
if($action=="del"){
unlink("template/$temname.php");
//写入list.txt
$url=file("list.txt");
$total=count($url);
$str="";
for($i=0;$i<$total;$i++)
{
$temp1=$temname."\n";
$temp2=$temname.EOF;
if(($url[$i]<>$temp1)and($url[$i]<>$temp2))
{
$str=$str.$url[$i];
}
}
$fp=fopen("list.txt","w");
fputs($fp, $str);
show_msg("模板成功删除,请进行其他操作!","tem_edit.php");
fclose($fp);
}
?>
<div align="center">
<?
if($temname<>"")
{
if(trim($temname)=="默认模板"){
show_msg("默认模板 是系统默认使用的模板,不可删除!");
}
$url="tem_del.php?action=del&temname=$temname";
show_msg("您确定删除模板 ".$temname." 吗?",$url);
}else{
show_msg("请先选择要删除的模板!");
}
?>
<p align="left"> </p>
</div>
<td width="2%"> </td>
</tr>
<tr>
<td width="3%"> </td>
<td width="95%"> </td>
<td width="2%"> </td>
</tr>
</table>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -