⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 logo.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
字号:
<?php


include( "../config.inc.php" );
include( "../includes/SysGlobal.php" );
include( "language/".$aLan."_".$charset.".php" );
include( "../includes/version.php" );
include( "../includes/pro.php" );
include( "func/adm.inc.php" );
include( "func/common.inc.php" );
include( "func/db.inc.php" );
include( "func/nocatch.php" );
needauth( 24 );
echo "<html>\r\n<head >\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $charset;
echo "\">\r\n<link id=\"style_sheet\" href=\"css/commonstyle.css\" type=\"text/css\" rel=\"stylesheet\">\r\n<title>";
echo $strAdminTitle;
echo "</title>\r\n\r\n</head>\r\n\r\n<body  class=\"NormalPage\">\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" background=\"images/mu8.gif\" height=\"30\" >\r\n  <tr> \r\n    <td width=\"150\" >&nbsp;&nbsp;<img src=\"images/bar.gif\">&nbsp;&nbsp;";
echo $strLogoTitle;
echo "</td>\r\n    <td >&nbsp;</td>    <td width=\"100\" >&nbsp;</td>\r\n  </tr>\r\n  </table>\r\n";
$step = $_REQUEST['step'];
$menuid = $_REQUEST['menuid'];
if ( !isset( $menuid ) || $menuid == "" )
{
	$menuid = "1";
}
if ( $step == "modify" )
{
	$id = $_FILES['id'];
	$pic = $_FILES['jpg'];
	$hidden = $_POST['hidden'];
	$border = $_POST['border'];
	$width = $_POST['width'];
	$height = $_POST['height'];
	$hidden = $_POST['hidden'];
	if ( 0 < $pic['size'] )
	{
		$msql->query( "select src from {$tbl_logo} where menuid='{$menuid}'" );
		if ( $msql->next_record( ) )
		{
			$src = $msql->f( "src" );
		}
		$fname = "../".$src;
		if ( $src != "" && 9 < strlen( $src ) && $src != "images/logo.gif" && file_exists( $fname ) )
		{
			@unlink( $fname );
		}
		$arr = uploadimage( $pic['tmp_name'], $pic['type'], $pic['size'], "advs" );
		$msql->query( "update {$tbl_logo} set\r\n\t\thidden = '{$hidden}',\r\n\t\tborder = '{$border}',\r\n\t\twidth = '{$arr['0']}',\r\n\t\theight = '{$arr['1']}',\r\n\t\ttype = '{$arr['2']}',\r\n\t\tsrc = '{$arr['3']}'\r\n\r\n\t\twhere menuid = '{$menuid}'\r\n\t\t\r\n\t\t" );
		sayok( $strModifyOk, "logo.php?menuid=".$menuid, "" );
	}
	else
	{
		$msql->query( "update {$tbl_logo} set\r\n\t\thidden = '{$hidden}',\r\n\t\tborder = '{$border}',\r\n\t\twidth = '{$width}',\r\n\t\theight = '{$height}' \r\n\t\twhere menuid = '{$menuid}'\r\n\t\t" );
		sayok( $strModifyOk, "logo.php?menuid=".$menuid, "" );
	}
}
$msql->query( "select * from {$tbl_logo} where menuid = '{$menuid}'" );
if ( $msql->next_record( ) )
{
	$hidden = $msql->f( "hidden" );
	$border = $msql->f( "border" );
	$width = $msql->f( "width" );
	$height = $msql->f( "height" );
	$type = $msql->f( "type" );
	$src = $msql->f( "src" );
}
else
{
	$hidden = "0";
	$border = "0";
	$width = "180";
	$height = "60";
	$type = "gif";
	$src = "images/logo.gif";
	$msql->query( "insert into {$tbl_logo} set\r\n\t\thidden = '{$hidden}',\r\n\t\tborder = '{$border}',\r\n\t\twidth = '{$width}',\r\n\t\theight = '{$height}',\r\n\t\ttype = '{$type}',\r\n\t\tsrc = '{$src}',\r\n\t\tmenuid = '{$menuid}'\r\n\t\t" );
}
echo " \r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\" align=\"center\">\r\n  <form name=\"logo.php\" action=\"\" method=\"post\" enctype=\"multipart/form-data\">\r\n    <tr> \r\n      <td align=\"right\" class=\"title\" width=\"90\" height=\"26\">";
echo $strAdvsColtype;
echo "</td>\r\n      <td class=\"con\" width=\"200\">";
echo selcoltype( );
echo " </td>\r\n      <td align=\"right\" class=\"title\" width=\"90\">";
echo $strLogoBorder;
echo "</td>\r\n      <td class=\"con\" width=\"200\"> \r\n        <input name=\"border\" type=\"text\"  value=\"";
echo $border;
echo "\" size=\"2\" class=input>\r\n        PX </td>\r\n    </tr>\r\n    <tr> \r\n      <td align=\"right\" class=\"title\" width=\"90\" height=\"26\">";
echo $strLogoWidth;
echo "</td>\r\n      <td class=\"con\" width=\"200\"> \r\n        <input name=\"width\" type=\"text\" size=\"3\" value=\"";
echo $width;
echo "\" class=input>\r\n        PX </td>\r\n      <td align=\"right\" class=\"title\" width=\"90\">";
echo $strLogoHeight;
echo "</td>\r\n      <td class=\"con\" width=\"200\"> \r\n        <input name=\"height\" type=\"text\" size=\"3\" value=\"";
echo $height;
echo "\" class=input>\r\n        PX </td>\r\n    </tr>\r\n    <tr> \r\n      <td align=\"right\" class=\"title\" width=\"90\" height=\"26\">";
echo $strLogoUpload;
echo "</td>\r\n      <td class=\"con\"> \r\n        <input type=\"file\" name=\"jpg\" size=\"28\" class=input>\r\n      </td>\r\n      <td class=\"title\" align=\"right\">";
echo $strLogoShow;
echo "</td>\r\n      <td class=\"con\">\r\n        ";
echo "<s";
echo "elect name=\"hidden\">\r\n          <option value=\"0\" ";
echo seld( $hidden, 0 );
echo ">";
echo $strShow;
echo "</option>\r\n          <option value=\"1\" ";
echo seld( $hidden, 1 );
echo ">";
echo $strHidden;
echo "</option>\r\n        </select>\r\n      </td>\r\n    </tr>\r\n    <tr align=\"center\"> \r\n      <td class=\"title\" colspan=\"4\" height=\"26\">";
echo $strLogoNowPic;
echo "</td>\r\n    </tr>\r\n    <tr align=\"center\"> \r\n      <td class=\"con\" colspan=\"4\" height=\"26\">";
$src = "../".$src;
echo showtypeimage( $src, $type, $width, $height, $border );
echo "</td>\r\n    </tr>\r\n    <tr align=\"center\"> \r\n      <td colspan=\"4\" class=\"title\" height=\"26\"> \r\n        <input type=\"submit\" name=\"Submit\" value=\"";
echo $strSubmit;
echo "\" class=button>\r\n        <input type=\"hidden\" name=\"menuid\" value=\"";
echo $menuid;
echo "\">\r\n        <input type=\"hidden\" name=\"id\" value=\"";
echo $id;
echo "\">\r\n        <input name=\"step\" type=\"hidden\" id=\"submit\" value=\"modify\">\r\n      </td>\r\n    </tr>\r\n  </form>\r\n</table>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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