📄 index.php
字号:
<?
include_once("inc/auth.php");
?>
<html>
<head>
<title>Windows快捷组管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="JavaScript">
function CheckForm()
{
if(document.form1.WIN_DESC.value=="")
{ alert("快捷方式名称不能为空!");
return (false);
}
if(document.form1.WIN_PATH.value=="")
{ alert("程序路径不能为空!");
return (false);
}
}
function set_path()
{
document.form1.WIN_PATH.value=document.form1.WIN_PATH_FILE.value;
}
function delete_WIN(WIN_ID)
{
msg='确认要删除该项快捷方式么?';
if(window.confirm(msg))
{
WIN="delete.php?WIN_ID=" + WIN_ID;
window.location=WIN;
}
}
function delete_all()
{
msg='确认要删除所有快捷方式么?';
if(window.confirm(msg))
{
WIN="delete_all.php";
window.location=WIN;
}
}
</script>
</head>
<body class="bodycolor" topmargin="5" onload="document.form1.WIN_NO.focus();">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/notify_new.gif" align="absmiddle"><span class="big3"> 添加Windows快捷方式</span>
</td>
</tr>
</table>
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center" >
<form action="add.php" method="post" name="form1" onsubmit="return CheckForm();">
<tr>
<td nowrap class="TableData">序号:</td>
<td nowrap class="TableData">
<input type="text" name="WIN_NO" class="BigInput" size="10" maxlength="25">
</td>
<tr>
<td nowrap class="TableData">快捷方式名称:</td>
<td nowrap class="TableData">
<input type="text" name="WIN_DESC" class="BigInput" size="25">
</td>
</tr>
<tr>
<td nowrap class="TableData">程序路径:</td>
<td nowrap class="TableData">
<input type="text" name="WIN_PATH" class="BigInput" size="30">
<input type="file" name="WIN_PATH_FILE" class="BigInput" size="1" onchange="set_path()"><br>
本机Windows程序路径,如<br>
C:\Program Files\Windows Media Player\wmplayer.exe<br><br>
也可以定义使用IE访问网址,如<br>
iexplore http://<?=$TD_MYOA_WEB_SITE?>
</td>
</tr>
<tr>
<td nowrap class="TableControl" colspan="2" align="center">
<input type="submit" value="添加" class="BigButton" title="添加快捷方式" name="button">
</td>
</form>
</table>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
<tr>
<td background="/images/dian1.gif" width="100%"></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/notify_open.gif" align="absmiddle"><span class="big3"> 管理Windows快捷组</span>
</td>
</tr>
</table>
<br>
<div align="center">
<?
$query = "SELECT * from WINEXE where USER_ID='$LOGIN_USER_ID' order by WIN_NO";
$connection=OpenConnection();
$cursor= exequery($connection,$query);
$WIN_COUNT=0;
while($ROW=mysql_fetch_array($cursor))
{
$WIN_COUNT++;
$WIN_ID=$ROW["WIN_ID"];
$WIN_NO=$ROW["WIN_NO"];
$WIN_DESC=$ROW["WIN_DESC"];
$WIN_PATH=$ROW["WIN_PATH"];
if($WIN_COUNT==1)
{
?>
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3">
<?
}
?>
<tr class="TableData">
<td nowrap align="center"><?=$WIN_NO?></td>
<td nowrap align="center"><?=$WIN_DESC?></td>
<td><?=$WIN_PATH?></td>
<td nowrap align="center" width="80">
<a href="edit.php?WIN_ID=<?=$WIN_ID?>"> 编辑</a>
<a href="javascript:delete_WIN('<?=$WIN_ID?>');"> 删除</a>
</td>
</tr>
<?
}
if($WIN_COUNT>0)
{
?>
<thead class="TableHeader">
<td nowrap align="center">序号</td>
<td nowrap align="center">快捷方式名称</td>
<td nowrap align="center">程序路径</td>
<td nowrap align="center">操作</td>
</thead>
<thead class="TableControl">
<td nowrap align="center" colspan="5">
<input type="button" class="BigButton" OnClick="javascript:delete_all();" value="全部删除">
</td>
</thead>
</table>
<?
}
else
Message("","尚未添加Windows快捷方式");
?>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -