📄 tempsel.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);
ChkLic();
include("../license.php");
$lictype=$lic_3;
?>
<html>
<head >
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>">
<link id="style_sheet" href="css/commonstyle.css" type="text/css" rel="stylesheet">
<title><?php echo $strAdminTitle; ?></title>
</head>
<body class="NormalPage" ondragstart="window.event.returnValue=false" oncontextmenu="window.event.returnValue=false" onselectstart="event.returnValue=false">
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" background="images/mu8.gif" height="30" >
<tr>
<td > <img src="images/bar.gif" > <?php echo $strTempSpool; ?></td>
<td width="110" align="center" > </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/mu1.jpg" height="5">
<tr>
<td></td>
</tr>
</table>
<table width="670" border="0" cellspacing="1" cellpadding="5" align="center">
<tr>
<td>
<?php
if(MEDIPRO_SOFTNAME=="test"){
?>
<a href="tempsel.php" style="color:#333333"><?php echo $strTempCatAll; ?></a>|
<a href="tempsel.php?catid=1" style="color:#333333"><?php echo $strTempCat1; ?></a>
| <a href="tempsel.php?catid=2" style="color:#333333"><?php echo $strTempCat2; ?></a>
|
<?php
}
?>
</td>
<td width="390" align="right"><font color="#666666">
<?php
if(MEDIPRO_TYPE!="oem"){
echo $strTempNTC1;
}
?> </font></td>
</tr>
</table>
<table width="670" border="0" cellspacing="0" cellpadding="0" align="center" height="10" background="images/mu1.jpg">
<tr>
<td align="center" height="2" colspan="2"></td>
</tr>
</table>
<?php
$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,0777);
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;
}
?>
<table width="670" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td >
<table cellspacing="0" cellpadding="0">
<tr> <?php
$tr=1;
for($n=0;$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=" disabled ";
}else{
$dis=" ";
}
?>
<td width="120">
<table width="120" border="0" cellspacing="0" cellpadding="3" style="border:1px #cccccc solid">
<form action="tempsel.php" method=get>
<tr bgcolor="#EFEFEF">
<td height="66">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr bgcolor="#FFFFFF" align="center">
<td><img src="temppic.php?bn=<?php echo $bn; ?>" border="0" width="120" height="120"></td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td height="22">
<table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#E6E6E6">
<tr align="center">
<td width="25%"><?php echo $strNumber; ?></td>
<td width="25%" bgcolor="#FFFFFF"><?php echo $bn; ?></td>
<td width="25%"><?php echo $strWidth; ?></td>
<td width="25%" bgcolor="#FFFFFF"><?php echo $name; ?></td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td height="22">
<?php
if(MEDIPRO_TYPE=="oem"){
?>
<input type="submit" name="Submit" value="<?php echo $strTempSelThis; ?>" class=button style="width:120px" <?php echo $dis; ?>>
<?php
}elseif($lictype=="try"){
?>
<input type="button" value="<?php echo $strTempDownLoad; ?>" class=button style="width:120px" disabled>
<?php
}else{
?>
<input type="button" value="<?php echo $strTempDownLoad; ?>" class=button style="width:120px" <?php echo $dis; ?> onClick="window.location='tempdown.php?bn=<?php echo $bn; ?>'">
<?php
}
?>
<input type="hidden" name="id" value="<?php echo $id; ?>">
<input type="hidden" name="bn" value="<?php echo $bn; ?>">
<input type="hidden" name="step" value="2">
<input type="hidden" name="fold" value="<?php echo $fold; ?>">
<input type="hidden" name="name" value="<?php echo $name; ?>">
</td>
</tr>
</form>
</table>
</td>
<?php
if($tr==5){
echo "</tr><tr>";
$tr=0;
}
$tr++;
}
?> </tr>
</table>
</td>
</tr>
</table>
<table width="670" border="0" cellspacing="0" cellpadding="6" bgcolor="#FFFFFF" align="center" background="images/mu1.jpg" height="29">
<tr>
<td class=pages width="300"><?php
$pages->ShowNow();
?> </td>
<td class=pages width="325" align="right"><?php
$pages->output($ShowPageList);
?></td>
</tr>
</table>
<br>
<br>
<?php
}
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -