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

📄 down_conmod.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
📖 第 1 页 / 共 2 页
字号:
	$prop16 = $msql->f( "prop16" );
	$prop17 = $msql->f( "prop17" );
	$prop18 = $msql->f( "prop18" );
	$prop19 = $msql->f( "prop19" );
	$prop20 = $msql->f( "prop20" );
	$oldproj = $msql->f( "proj" );
	$oldcatid = $msql->f( "catid" );
	$oldcatpath = $msql->f( "catpath" );
	$dtime = date( "Y-m-d H:i:s", $msql->f( "dtime" ) );
	$uptime = date( "Y-m-d H:i:s", $msql->f( "uptime" ) );
	$oldbody = htmlspecialchars( $oldbody );
}
echo " \r\n      \r\n      <table width=\"100%\" cellpadding=\"2\" align=\"center\"  style=\"border-collapse: collapse\" border=\"0\" cellspacing=\"1\">\r\n        <form name=\"form\" action=\"down_conmod.php\" method=\"post\" enctype=\"multipart/form-data\" onSubmit=\"return SelectAll('spe_selec[]', 'select[]')\">\r\n          <tr> \r\n            <td height=\"30\" width=\"100\" align=\"center\" class=\"title\">";
echo $strDownCatTitle;
echo "</td>\r\n            <td height=\"30\" class=con> \r\n              ";
echo "<s";
echo "elect name=catid style='WIDTH: 399;font-size:12px;'>\r\n                ";
$msql->query( "select * from {$tbl_menu} where coltype='down'" );
while ( $msql->next_record( ) )
{
	$menu = $msql->f( "menu" );
	$lmenuid = $msql->f( "menuid" );
	$fsql->query( "select * from {$tbl_down_cat} where menuid='{$lmenuid}' order by catpath" );
	while ( $fsql->next_record( ) )
	{
		$lpid = $fsql->f( "pid" );
		$lcatid = $fsql->f( "catid" );
		$cat = $fsql->f( "cat" );
		$catpath = $fsql->f( "catpath" );
		$lcatpath = explode( ":", $catpath );
		$tsql->query( "select catid from {$tbl_down_cat} where pid='{$lcatid}'" );
		if ( $tsql->next_record( ) )
		{
			$ifson = "yes";
		}
		else
		{
			$ifson = "no";
		}
		if ( $ifson == "no" )
		{
			$i = 0;
			for ( ;	$i < sizeof( $lcatpath ) - 2;	$i++	)
			{
				$tsql->query( "select catid,cat from {$tbl_down_cat} where catid='{$lcatpath[$i]}'" );
				if ( $tsql->next_record( ) )
				{
					$ncatid = $tsql->f( "cat" );
					$ncat = $tsql->f( "cat" );
					$ppcat .= $ncat."/";
				}
			}
			if ( $catid == $lcatid )
			{
				echo "<option value='".$lcatid."' selected>".$menu." |- ".$ppcat.$cat."</option>";
			}
			else
			{
				echo "<option value='".$lcatid."'>".$menu." |- ".$ppcat.$cat."</option>";
			}
			$ppcat = "";
		}
	}
}
echo " \r\n              </select>\r\n              <font color=\"#FF0000\">*</font> \r\n              <div id=\"StDv\" 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=\"#666666\" style='border:5px #ffffff solid;filter:progid:DXImageTransform.Microsoft.Shadow(Color=#333333,Direction";
echo "=120,strength=3);'>\r\n                  <tr align=\"right\" bgcolor=\"#CCCCCC\"> \r\n                    <td  height=\"10\" valign=\"top\"><img src=\"images/closewindow.gif\" width=\"12\" height=\"12\"  onClick=\"StDv.style.visibility='hidden'\"></td>\r\n                  </tr>\r\n                  <tr bgcolor=\"#FFFFFF\" align=\"center\"> \r\n                    <td  onClick=\"StDv.style.visibility='hidden'\">";
if ( $src == "" )
{
	echo "";
}
else
{
	$showsrc = "../".$src;
	echo showtypeimage( $showsrc, $type, "", "", 0 );
}
echo " </td>\r\n                  </tr>\r\n                </table>\r\n              </div>\r\n            </td>\r\n          </tr>\r\n          <tr> \r\n            <td height=\"30\" width=\"100\" align=\"center\" class=\"title\">";
echo $strDownAddTitle;
echo "</td>\r\n            <td height=\"30\" class=con> \r\n              <input type=\"text\" name=\"title\" style='WIDTH: 399;font-size:12px;' maxlength=\"200\" class=input value=\"";
echo $title;
echo "\">\r\n              <font color=\"#FF0000\">*</font> </td>\r\n          </tr>\r\n          <tr> \r\n            <td height=\"30\" width=\"100\" align=\"center\" class=\"title\">";
echo $strDownAddMemo;
echo "</td>\r\n            <td height=\"30\" class=con> \r\n              <textarea name=\"memo\" style=\"WIDTH: 399;font-size:12px;\" class=\"input1\" rows=\"3\">";
echo $memo;
echo "</textarea>\r\n            </td>\r\n          </tr>\r\n          <tr> \r\n            <td height=\"30\" width=\"110\" align=\"center\" class=\"title\">";
echo $strDownAddMethod;
echo "</td>\r\n            <td height=\"30\" class=con> \r\n              <input type=\"radio\" name=\"addtype\" value=\"addurl\" checked onClick=\"divurl.style.visibility='visible';divsuo.style.visibility='hidden';form.kk.value='1'\">\r\n              ";
echo $strDownAddUrl;
echo " \r\n              <input type=\"radio\" name=\"addtype\" value=\"addfile\" onClick=\"divurl.style.visibility='hidden';divsuo.style.visibility='visible'; form.kk.value='2'\">\r\n              ";
echo $strDownAddUpload;
echo " \r\n              <input type=\"hidden\" name=\"kk\" value=\"1\">\r\n            </td>\r\n          </tr>\r\n          <tr> \r\n            <td height=\"30\" width=\"110\" align=\"center\" class=\"title\">";
echo $strDownAddImg;
echo "</td>\r\n            <td height=\"30\" class=con valign=top> \r\n              <div id=\"divsuo\" style=\"position:absolute; width:550px; height:30px; z-index:1\"> \r\n                <font color=\"#FF0000\"> \r\n                <input type=\"file\" name=\"jpg\" style='WIDTH: 399;font-size:12px;' class=input>\r\n                *</font> </div>\r\n              <div id=\"divurl\" style=\"position:absolute; width:420px; height:30px; ";
echo "z-index:1\"> \r\n                <input type=\"text\" name=\"url\" style='WIDTH: 399;font-size:12px;' value=\"";
echo $url;
echo "\" class=input>\r\n                <font color=\"#FF0000\">*</font> </div>\r\n            </td>\r\n          </tr>\r\n          <tr> \r\n            <td height=\"30\" width=\"110\" align=\"center\" class=\"title\">";
echo $strDownAddSize;
echo "</td>\r\n            <td height=\"30\" class=con> \r\n              <input type=\"text\" name=\"filesize\"  maxlength=\"200\" class=input size=\"15\" value=\"";
echo $filesize;
echo "\">\r\n            </td>\r\n          </tr>\r\n          ";
$i = 1;
$msql->query( "select * from {$tbl_prop} where menuid='{$oldmenuid}' and catid='{$catid}' order by xuhao" );
while ( $msql->next_record( ) )
{
	$propname = $msql->f( "propname" );
	$pn = "prop".$i;
	echo " \r\n          <tr> \r\n            <td height=\"30\" align=\"center\" class=\"title\">";
	echo $propname;
	echo "</td>\r\n            <td height=\"30\" class=\"con\"> \r\n              <input type=\"text\" name=\"";
	echo $pn;
	echo "\" value=\"";
	echo $$pn;
	echo "\" class=\"input\" style='WIDTH: 399;font-size:12px;'>\r\n            </td>\r\n          </tr>\r\n          ";
	$i++;
}
echo " \r\n          <tr> \r\n            <td height=\"30\" width=\"100\" align=\"center\" class=\"title\">";
echo $strDownAddCon;
echo "</td>\r\n            <td height=\"30\" class=con> ";
include( "edithtml/index1.php" );
echo " \r\n              <input  name=body type=hidden>\r\n              <input type=\"hidden\" name=\"step\" value=\"2\">\r\n              <input type=\"hidden\" name=\"id\" value=\"";
echo "{$id}";
echo "\">\r\n              <input type=\"hidden\" name=\"oldcatid\" value=\"";
echo $oldcatid;
echo "\">\r\n              <input type=\"hidden\" name=\"oldmenuid\" value=\"";
echo $oldmenuid;
echo "\">\r\n              <input type=\"hidden\" name=\"oldcatpath\" value=\"";
echo $oldcatpath;
echo "\">\r\n              <input type=\"hidden\" name=\"pid\" value=\"";
echo "{$pid}";
echo "\">\r\n              <input type=\"hidden\" name=\"page\" value=\"";
echo "{$page}";
echo "\">\r\n            </td>\r\n          </tr>\r\n          <tr> \r\n            <td height=\"30\" width=\"100\" align=\"center\" class=\"title\">";
echo $strSecure1;
echo "</td>\r\n            <td height=\"30\" class=con> \r\n              <input type=\"text\" name=\"secure\" style=\"width:25px\" value=\"";
echo $secure;
echo "\" class=input maxlength=\"1\">\r\n            </td>\r\n          </tr>\r\n          <tr> \r\n            <td height=\"30\" width=\"100\" align=\"center\" class=\"title\">";
echo $strFbtime;
echo "</td>\r\n            <td height=\"30\" class=con>";
echo $dtime;
echo "</td>\r\n          </tr>\r\n          <tr> \r\n            <td height=\"30\" width=\"100\" align=\"center\" class=\"title\">";
echo $strUptime;
echo "</td>\r\n            <td height=\"30\" class=con>";
echo $uptime;
echo " </td>\r\n          </tr>\r\n          <tr> \r\n            <td height=\"30\" width=\"100\" align=\"center\" class=\"title\">";
echo $strDownAddProj;
echo "</td>\r\n            <td height=\"30\" class=con>";
$catstr .= "<SCRIPT language=javascript src='js/multicat.js'></SCRIPT>";
$catstr .= "<table cellspacing=0 cellpadding=0><tr><td ><select style='WIDTH: 190px;font-size:12px;' multiple size=5 name=spe_funct>";
$fsql->query( "select * from {$tbl_proj} order by id desc" );
while ( $fsql->next_record( ) )
{
	$projid = $fsql->f( "id" );
	$project = $fsql->f( "project" );
	$NowPath = fmpath( $projid );
	$catstr .= "<option value=".$NowPath.">".$project."</option>";
	$ppcat = "";
}
$catstr .= "</select></td><td width=20>\r\n<input style='width:20px;height=37px;font-size:12px;border:1px outset;' onClick=\"JavaScript:AddItem('spe_funct', 'spe_selec[]')\" type=button value='+' name='Input'>\r\n<input style='width:20px;height=37px;font-size:12px;border:1px outset;' onClick=\"JavaScript:DelItem('spe_selec[]')\" type=button value='-' name='Input'>\r\n\t\t\t\t</td>\r\n\t\t\t\t<td>\r\n\t\t\t\t  <select  style='WIDTH: 190px;font-size:12px' multiple size=5 name=spe_selec[]>";
$arrs = explode( ":", $oldproj );
$k = 0;
for ( ;	$k < sizeof( $arrs ) - 1;	$k++	)
{
	$projid = $arrs[$k] + 0;
	$tsql->query( "select project from {$tbl_proj} where id='{$projid}'" );
	if ( $tsql->next_record( ) )
	{
		$project = $tsql->f( "project" );
	}
	$catstr .= "<option value=".$arrs[$k].">".$project."</option>";
}
$catstr .= "</select></td><td valign=bottom></td><td width=20 align=center  valign=bottom><font color=red>*</font></td></tr></table>";
echo $catstr;
echo " </td>\r\n          </tr>\r\n          <tr> \r\n            <td align=\"center\"  colspan=\"2\" height=\"40\" class=title> \r\n              <input type=\"submit\" name=\"submit\"  onClick=\"save();\" value=\"";
echo $strSubmit;
echo "\" class=button>\r\n            </td>\r\n          </tr>\r\n        </form>\r\n      </table>\r\n    </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 + -