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

📄 temp.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/link.inc.php" );
include( "func/temp.inc.php" );
include( "func/db.inc.php" );
include( "func/nocatch.php" );
needauth( 14 );

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</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 >&nbsp;&nbsp;<img src=\"images/bar.gif\" >&nbsp;&nbsp;";
echo $strTempSet;
echo "</td>\r\n    <td width=\"70\" align=\"center\" > \r\n      <input type=\"button\" name=\"Button\" value=\"";
echo $strTempSpool;
echo "\" class=\"button\" onClick=\"self.location='tempsel.php'\">\r\n    </td>\r\n  </tr>\r\n</table>\r\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"images/mu1.jpg\" height=\"5\">\r\n  <tr> \r\n    <td></td>\r\n  </tr>\r\n</table>\r\n";
$step = $_REQUEST['step'];
$fold = $_REQUEST['fold'];
if ( $step == "set" )
{
	$msql->query( "update {$tbl_menu} set skin='{$fold}'" );
}
if ( $step == "save" )
{
	tempsave( );
	exit( );
}
$msql->query( "select skin from {$tbl_menu} where menuid='1'" );
if ( $msql->next_record( ) )
{
	$nowskin = $msql->f( "skin" );
}
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" align=\"center\">\r\n  <tr> \r\n    <td width=\"60\" class=\"title\" height=\"26\" align=\"center\"><font color=\"#FFFFFF\">";
echo $strTempId;
echo "</font></td>\r\n    <td width=\"50\"  class=\"title\" height=\"26\">&nbsp;</td>\r\n    <td  class=\"title\" height=\"26\"><font color=\"#FFFFFF\">";
echo $strTempFold;
echo " \r\n      </font></td>\r\n    <td width=\"180\"  class=\"title\" height=\"26\"><font color=\"#FFFFFF\">";
echo $strTempWidth;
echo "</font></td>\r\n    <td  class=\"title\" height=\"26\" width=\"120\" align=\"center\"><font color=\"#FFFFFF\">";
echo $strTempLook;
echo "</font></td>\r\n    <td  class=\"title\" height=\"26\" width=\"100\" align=\"center\">&nbsp;</td>\r\n    <td  class=\"title\" align=\"center\" width=\"60\">";
echo $strTempUse;
echo " </td>\r\n    <td  class=\"title\" align=\"center\" width=\"60\">";
echo $strModify;
echo "</td>\r\n  </tr>\r\n  ";
$skstr = "";
$fd = fopen( "../templates/skin.dat", "r" );
$str = fread( $fd, 2000 );
fclose( $fd );
$arr = explode( "\n", $str );
$nums = sizeof( $arr ) - 1;
$i = 0;
for ( ;	$i <= $nums;	$i++	)
{
	$lskin = str_replace( "\r", "", $arr[$i] );
	$lskin = str_replace( "\n", "", $lskin );
	$lskin = trim( $lskin );
	if ( $lskin != "" )
	{
		$sk = explode( "|", $lskin );
		if ( sizeof( $sk ) == 3 )
		{
			$id = $sk[0];
			$tempname = $sk[1];
			$tempfold = $sk[2];
			echo " \r\n  <tr class=\"list\"> \r\n    <td width=\"60\" align=\"center\">";
			echo $id;
			echo " </td>\r\n    <td width=\"50\"  >&nbsp;</td>\r\n    <td  >";
			echo $tempfold;
			echo "</td>\r\n    <td width=\"180\"  > ";
			echo $tempname;
			echo " PX</td>\r\n    <td width=\"120\" align=\"center\"  >";
			if ( file_exists( "../templates/".$tempfold."/images/tempshow.gif" ) )
			{
				echo "<img src=images/image.gif onClick=\"StDv".$id.".style.visibility='visible'\">";
			}
			else
			{
				echo "<img src=images/noimage.gif >";
			}
			echo " \r\n      <div id=\"StDv";
			echo $id;
			echo "\" style=\"position:absolute; width:100px; height:100px; z-index:1; visibility: hidden\"> \r\n        <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" height=\"100%\" bgcolor=\"#CCCCCC\" style='border:5px #ffffff solid;filter:progid:DXImageTransform.Microsoft.Shadow(Color=#333333,Direction=120,strength=3);'>\r\n          <tr align=\"right\" bgcolor=\"#f0f0f0\"> \r\n            <td  height=\"10\" valign=\"t";
			echo "op\"><img src=\"images/closewindow.gif\" width=\"12\" height=\"12\"  onClick=\"StDv";
			echo $id;
			echo ".style.visibility='hidden'\"></td>\r\n          </tr>\r\n          <tr bgcolor=\"#FFFFFF\" align=\"center\"> \r\n            <td  onClick=\"StDv";
			echo $id;
			echo ".style.visibility='hidden'\">";
			echo "<img src='../templates/".$tempfold."/images/tempshow.gif'>";
			echo " </td>\r\n          </tr>\r\n        </table>\r\n      </div>\r\n    </td>\r\n    <td width=\"100\" align=\"center\"  >&nbsp;</td>\r\n    <td width=\"60\" align=\"center\"  >";
			if ( $tempfold == $nowskin )
			{
				echo " <img src=\"images/tempuse.gif\" width=\"18\" height=\"18\"> ";
			}
			else
			{
				echo " <img src=\"images/tempnouse.gif\" width=\"18\" height=\"18\" style=\"cursor:hand;\" onClick=\"self.location='temp.php?step=set&fold=";
				echo $tempfold;
				echo "'\"> \r\n      ";
			}
			echo " </td>\r\n    <td width=\"60\" align=\"center\"  ><a href=\"tempftp.php?fold=";
			echo $tempfold;
			echo "\"><img src=\"images/toolbar_locate_up.gif\" width=\"22\" height=\"20\" border=\"0\"></a></td>\r\n  </tr>\r\n  ";
		}
	}
}
echo " \r\n</table>\r\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"10\" background=\"images/mu1.jpg\">\r\n  <tr> \r\n    <td  align=\"center\" height=\"2\" colspan=\"2\"></td>\r\n  </tr>\r\n</table>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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