edit.php
来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 90 行
PHP
90 行
<?
include_once 'inc/auth.php';
include_once 'inc/reg_func.php';
echo '
<html>
<head>
<title>编辑快捷方式</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
echo '<s';
echo 'cript Language="JavaScript">
function CheckForm()
{
if(document.form1.WIN_DESC.value=="")
{ alert("快捷方式名称不能为空!");
return (false);
}
if(document.form1.WIN_PATH.value=="")
{ alert("快捷方式路径不能为空!");
return (false);
}
}
</script>
</head>
';
$query = ((''.'SELECT * from WINEXE where WIN_ID=').$WIN_ID);
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$WIN_ID = $ROW['WIN_ID'];
$WIN_NO = $ROW['WIN_NO'];
$WIN_DESC = $ROW['WIN_DESC'];
$WIN_PATH = $ROW['WIN_PATH'];
}
echo '
<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/edit.gif" WIDTH="22" HEIGHT="20" align="absmiddle">';
echo '<s';
echo 'pan class="big3"> 编辑快捷方式</span>
</td>
</tr>
</table>
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center" >
<form action="update.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="B';
echo 'igInput" size="10" maxlength="25" value="';
echo $WIN_NO;
echo '">
</td>
</tr>
<tr>
<td nowrap class="TableData">快捷方式名称:</td>
<td nowrap class="TableData">
<input type="text" name="WIN_DESC" class="BigInput" size="25" value="';
echo $WIN_DESC;
echo '">
</td>
</tr>
<tr>
<td nowrap class="TableData">程序路径:</td>
<td nowrap class="TableData">
<input type="text" name="WIN_PATH" class="BigInput" size="40" value="';
echo $WIN_PATH;
echo '"><br>
本机Windows程序路径,如<br>
C:\\Program Files\\Windows Media Player\\wmplayer.exe<br><br>
也可以定义使用IE访问网址,如<br>
iexplore http://';
echo $TD_MYOA_WEB_SITE;
echo ' </td>
</tr>
<tr>
<td nowrap class="TableControl" colspan="2" align="center">
<input type="hidden" value="';
echo $WIN_ID;
echo '" name="WIN_ID">
<input type="submit" value="确定" class="BigButton">
<input type="button" value="返回" class="BigButton" onclick="location=\'index.php\'">
</td>
</form>
</table>
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?