欢迎来到虫虫下载站 | 资源下载 资源专辑 关于我们
虫虫下载站

image.php

通达OA2007SE源代码 非常好的
PHP
字号:
<?
  include_once 'inc/auth.php';
  echo '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
  echo '<s';
  echo 'cript>
function CheckForm()
{
  if(document.form1.IMG_FILE.value!="")
     document.form1.BKGROUND.value=document.form1.IMG_FILE.value;
  return true;
}
</script>
</head>
';
  $query = (((''.'SELECT * from USER where USER_ID=\'').$LOGIN_USER_ID).'\'');
  $cursor = exequery ($connection, $query);
  if ($ROW = mysql_fetch_array ($cursor))
  {
    $BKGROUND = $ROW['BKGROUND'];
  }
  echo '
<body class="bodycolor" topmargin="5"  onload="form1.IMG_FILE.focus()">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="/images/image.gif" align="absmiddle">';
  echo '<s';
  echo 'pan class="big3"> 设置桌面背景图片</span>
    </td>
  </tr>
</table>
<br>
<table border="0" width="60%" cellpadding="3" cellspacing="1" align="center" bgcolor="#000000" class="small">
  <form action="image_update.php" name="form1" onsubmit="return CheckForm()">
    <tr>
      <td nowrap class="TableContent" width="100">当前图片路径:</td>
      <td class="TableData">';
  echo $BKGROUND;
  if (($BKGROUND != ''))
  {
    echo '    <input type="button" value="清空" class="SmallButton" name="button2" OnClick="location=\'image_update.php?OPEN_FLAG=';
    echo $OPEN_FLAG;
    echo '\'">
';
  }
  echo '      </td>
    </tr>
    <tr>
      <td nowrap class="TableContent" width="100">设置图片路径:</td>
      <td class="TableData">
      	<input type="file" name="IMG_FILE" class="BigInput" size="40">
      	<input type="hidden" name="BKGROUND" value="';
  echo $BKGROUND;
  echo '">
      	<input type="hidden" name="OPEN_FLAG" value="';
  echo $OPEN_FLAG;
  echo '">
      </td>
    </tr>
    <tr>
      <td nowrap class="TableControl" colspan="2" align="center">
          <input type="submit" value="保存" class="BigButton" title="保存" name="button1">&nbsp&nbsp&nbsp&nbsp
';
  if (($OPEN_FLAG != 1))
  {
    echo '          <input type="button" value="返回" class="BigButton" title="返回" name="button2" OnClick="parent.location=\'../index.php\'">
';
  }
  echo '      </td>
    </tr>
    </form>
</table>
</body>
</html>';
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -