?? 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 + -