📄 edit.php
字号:
<?
include_once 'inc/auth.php';
include_once 'inc/conn.php';
echo '
<html>
<head>
<title>编辑图片目录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="JavaScript">
function CheckForm()
{
if(document.form1.PIC_NAME.value=="")
{ alert("图片目录名称不能为空!");
return (false);
}
if(document.form1.PIC_PATH.value=="")
{ alert("图片目录路径不能为空!");
return (false);
}
return (true);
}
</script>
</head>
<body class="bodycolor" topmargin="5" onload="document.form1.PIC_NAME.focus();">
';
$connection = openconnection ();
$query = 'SELECT * from PICTURE where PIC_ID=' . $PIC_ID;
$cursor = exequery ($connection, $query);
if ($ROW = mysql_fetch_array ($cursor))
{
$PIC_ID = $ROW['PIC_ID'];
$PIC_NAME = $ROW['PIC_NAME'];
$PIC_PATH = $ROW['PIC_PATH'];
}
echo '
<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"><span class="big3"> 编辑图片目录</span>
</td>
</tr>
</table>
<br>
<table border="0" width="500" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form action="update.php" method="post" name="form1" onsubmit="return CheckForm();">
<tr>
<td nowrap class="TableData"> 图片目录名称:</td>
<td class="TableData">
<input type="text" name="PIC_NAME" size="30" class="BigInput" value="';
echo $PIC_NAME;
echo '">
</td>
</tr>
<tr>
<td nowrap class="TableData"> 图片目录路径(OA服务器的本地路径(如:D:\\MYOA)):</td>
<td class="TableData">
<input type="text" name="PIC_PATH" size="30" class="BigInput" value="';
echo $PIC_PATH;
echo '">
</td>
</tr>
<tr align="center" class="TableControl">
<td colspan="2" nowrap>
<input type="hidden" value="';
echo $PIC_ID;
echo '" name="PIC_ID">
<input type="submit" value="确定" class="BigButton">
<input type="button" value="返回" class="BigButton" onClick="location=\'index.php\'">
</td>
</tr>
</table>
</form>
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -