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

📄 tempsel.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 );

include( "../license.php" );
$lictype = $lic_3;
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\" ondragstart=\"window.event.returnValue=false\" oncontextmenu=\"window.event.returnValue=false\" onselectstart=\"event.returnValue=false\">\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 $strTempSpool;
echo "</td>\r\n    <td width=\"110\" align=\"center\" >&nbsp; </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\r\n<table width=\"670\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\">\r\n  <tr> \r\n    <td>&nbsp;\r\n</td>\r\n    <td width=\"390\" align=\"right\"><font color=\"#666666\">\r\n";
if ( MEDIPRO_TYPE != "oem" )
{
	echo $strTempNTC1;
}
echo " </font></td>\r\n  </tr>\r\n</table>\r\n<table width=\"670\" 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\r\n\r\n";
$step = $_REQUEST['step'];
$bn = $_REQUEST['bn'];
$fold = $_REQUEST['fold'];
$name = $_REQUEST['name'];
$catid = $_REQUEST['catid'];
if ( $step == "2" )
{
	$FromPath = $ServerPath."/PageTemp/medipro/".MEDIPRO_SOFTNAME."/".$fold;
	$ToPath = "../templates/".$fold;
	@mkdir( $ToPath, 511 );
	cptemp( $FromPath, $ToPath );
	$str = "\r\n".$bn."|".$name."|".$fold;
	$fd = fopen( "../templates/skin.dat", "a" );
	fwrite( $fd, $str, 100 );
	fclose( $fd );
	sayok( $strTempSelOk, "temp.php", "" );
}
else
{
	$temparr = array(
		"softname" => MEDIPRO_SOFTNAME,
		"type" => MEDIPRO_TYPE,
		"catid" => $catid
	);
	$counts = $customer->call( "TempCount", $temparr );
	if ( $counts )
	{
		if ( $counts != "nul" )
		{
			$totalnums = $counts;
		}
		else
		{
			$totalnums = 0;
			exit( );
		}
	}
	else
	{
		err( $strTempLinkErr, "", "" );
	}
	$pages = new pages( );
	$pages->setvar( array(
		"catid" => $catid
	) );
	$pages->set( 10, $totalnums );
	$pagelimit = $pages->limit( );
	$temparr = array(
		"softname" => MEDIPRO_SOFTNAME,
		"type" => MEDIPRO_TYPE,
		"catid" => $catid,
		"pagelimit" => $pagelimit
	);
	$arr = $customer->call( "TempShow", $temparr );
	if ( $arr )
	{
		$nums = sizeof( $arr );
	}
	else
	{
		$nums = 0;
	}
	echo "\r\n\r\n<table width=\"670\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n  <tr> \r\n    <td > \r\n      <table  cellspacing=\"0\" cellpadding=\"0\">\r\n        <tr> ";
	$tr = 1;
	$n = 0;
	for ( ;	$n < $nums;	$n++	)
	{
		$id = $arr[$n]['id'];
		$bn = $arr[$n]['bn'];
		$name = $arr[$n]['name'];
		$fold = $arr[$n]['fold'];
		if ( is_dir( "../templates/".$fold ) || file_exists( "../templates/".$fold ) )
		{
			$dis = " ";
		}
		else
		{
			$dis = "  ";
		}
		echo " \r\n          <td width=\"120\"> \r\n            <table width=\"120\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" style=\"border:1px #cccccc solid\">\r\n              <form action=\"tempsel.php\" method=get>\r\n                <tr bgcolor=\"#EFEFEF\"> \r\n                  <td height=\"66\"> \r\n                    <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">\r\n                      <tr bgcolor=\"#FFFFFF\" align";
		echo "=\"center\"> \r\n                        <td><img src=\"temppic.php?bn=";
		echo $bn;
		echo "\" border=\"0\"  width=\"120\" height=\"120\"></td>\r\n                      </tr>\r\n                    </table>\r\n                  </td>\r\n                </tr>\r\n                <tr align=\"center\">\r\n                  <td height=\"22\"> \r\n                    <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" bgcolor=\"#E6E6E6\">\r\n                      <tr align=\"center\"> \r\n                        <td width=\"2";
		echo "5%\">";
		echo $strNumber;
		echo "</td>\r\n                        <td width=\"25%\" bgcolor=\"#FFFFFF\">";
		echo $bn;
		echo "</td>\r\n                        <td width=\"25%\">";
		echo $strWidth;
		echo "</td>\r\n                        <td width=\"25%\" bgcolor=\"#FFFFFF\">";
		echo $name;
		echo "</td>\r\n                      </tr>\r\n                    </table>\r\n                  </td>\r\n                </tr>\r\n                <tr align=\"center\"> \r\n                  <td height=\"22\"> \r\n";
		if ( MEDIPRO_TYPE == "oem" )
		{
			echo "<input type=\"submit\" name=\"Submit\" value=\"";
			echo $strTempSelThis;
			echo "\" class=button style=\"width:120px\" ";
			echo $dis;
			echo ">\r\n";
		}
		else if ( $lictype == "try" )
		{
			echo "<input type=\"button\"  value=\"";
			echo $strTempDownLoad;
			echo "\" class=button style=\"width:120px\" disabled>\r\n\r\n";
		}
		else
		{
			echo "<input type=\"button\"  value=\"";
			echo $strTempDownLoad;
			echo "\" class=button style=\"width:120px\" ";
			echo $dis;
			echo " onClick=\"window.location='tempdown.php?bn=";
			echo $bn;
			echo "'\">\r\n";
		}
		echo "                    \r\n<input type=\"hidden\" name=\"id\" value=\"";
		echo $id;
		echo "\">\r\n                    <input type=\"hidden\" name=\"bn\" value=\"";
		echo $bn;
		echo "\">\r\n                    <input type=\"hidden\" name=\"step\" value=\"2\">\r\n                    <input type=\"hidden\" name=\"fold\" value=\"";
		echo $fold;
		echo "\">\r\n\t\t\t\t\t<input type=\"hidden\" name=\"name\" value=\"";
		echo $name;
		echo "\">\r\n                  </td>\r\n                </tr>\r\n              </form>\r\n            </table>\r\n          </td>\r\n          ";
		if ( $tr == 5 )
		{
			echo "</tr><tr>";
			$tr = 0;
		}
		$tr++;
	}
	echo " </tr>\r\n      </table>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<table width=\"670\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" bgcolor=\"#FFFFFF\" align=\"center\" background=\"images/mu1.jpg\" height=\"29\">\r\n  <tr> \r\n    <td class=pages width=\"300\">";
	$pages->shownow( );
	echo " </td>\r\n    <td class=pages width=\"325\" align=\"right\">";
	$pages->output( $ShowPageList );
	echo "</td>\r\n  </tr>\r\n</table>\r\n<br>\r\n<br>\r\n";
}
echo "</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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