/*****************************************************************************/
/*                                                                           */
/*                          北京市中盟国际体育有限公司网站                   */
/*                                作者：刘大鹏                               */
/*                               时间：2008-09-15                            */
/*                                                                           */
/*****************************************************************************/
/*多文件上传
<TABLE> 
<FORM ENCTYPE=multipart/form-data NAME=MyForm ACTION=testup.php METHOD=POST>
<TR><TD><a href=test.php?flag=1>More+++</a><a href=test.php?flag=0>Little+++</a></TD></tr>	
<?php
if ($_GET['flag']==1){
	echo "<TR><TD><INPUT NAME='MyFile[]' TYPE='File'></TD></tr>";
	echo "<TR><TD><INPUT NAME='MyFile[]' TYPE='File'></TD></tr>";
	echo "<TR><TD><INPUT NAME='MyFile[]' TYPE='File'></TD></tr>";
	echo "<TR><TD><INPUT NAME='MyFile[]' TYPE='File'></TD></tr>";
	echo "<TR><TD><INPUT NAME='MyFile[]' TYPE='File'></TD></tr>";
}
else{
	echo "<TR><TD><INPUT NAME='MyFile[]' TYPE='File'></TD></tr>";
}
?>
<tr><TD align=right><INPUT NAME="submit" VALUE="Submit" TYPE="submit"></TD></TR> 
</form>
</TABLE>

多文件上传处理文件
<?php
$uploaddir='test/';//上传文件所到的地址 
foreach ($_FILES['MyFile']['error'] as $key=> $error){
	if($error==UPLOAD_ERR_OK){
			$uploadfile_tmp=$_FILES['MyFile']['tmp_name'][$key];
			$uploadfile=$_FILES['MyFile']['name'][$key];
			$date=date('Ymdhis');//得到当前时间,如;20070705163148 
			$i=rand(1,1000);//生成一个随机数
			$name=explode('.',$uploadfile);//将文件名以'.'分割得到后缀名,得到一个数组 
			$newName=$uploaddir.$date.$i.'.'.$name[1];//得到一个新的文件为'20081213163148.jpg',即新的路径 
		move_uploaded_file($uploadfile_tmp,$newName);
}
}
?>
*/
/*css布局*/
/*先定义公用的定义body{text-align:center;}*/
*{margin:0px;padding:0px;}
/*定义整个主页窗口为左右居中*/
img {border:0px}/*插入的照片无边框，这样当图片为超链接的时候就不会在外面有一圈颜色*/
a{text-decoration:none; color:#000}/*定义超链接的颜色*/
a:link{color:#000000}
html{ filter: expression(document.execCommand("BackgroundImageCache", false, true)); }/*鼠标移动时层的背景图片变换*/
p {font-size:12px;line-height:24px;}
/*****************************************************************************************/
.imgcolor { FILTER: Gray }/*照片变为黑白色*/
/*****************************************************************************************/
/*页面 下的页面 背景色*/
#bgcolor_main{background-color: #dfdfdd;}
/*****************************************************************************************/
/*主页面即logo下的页面*/
.main_style1{position:absolute; width:100%; z-index:1; top: 93px; background-color: #dfdfdd;TEXT-ALIGN: center;}
.main_style2{position:relative;width:950px;MARGIN-RIGHT: auto;MARGIN-LEFT: auto; background-color: #dfdfdd;}
/*白色底框*/	
.main_style3{position:absolute; width:950px; z-index:1; left: 0px; top: 39px;background-color: #FFFFFF;}
/*有上边框 黄色*/
.main_border1{border-top: #d2ab67 1px solid;}
/*有上边框 黑色*/
.main_border2{border-top: #9d9fa2 1px solid;}
/*****************************************************************************************/
/*垂直渐变色 白色到60黑 logo内 三个菜单*/
.div_stylelogo1{position:absolute;background-image: url(img/bgd1d3d4.jpg) !important;padding-top:4px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ffffff',EndColorStr='#d1d3d4');}
/*垂直渐变色 白色到60黑 所在位置*/
.div_style1{position:absolute; z-index:2;background-image: url(img/bg11.jpg) !important; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ffffff',EndColorStr='#d1d3d4');}
/*垂直渐变色  白色到20黄 所在位置*/
.div_style11{position:absolute; z-index:2;background-image: url(img/bg22.jpg) !important; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ffffff',EndColorStr='#fffdca');}
/*****************************************************************************************/
/*圆角菜单的鼠标特效*/
.div_style01{width:164px;height:46px;background-image: url(img/menu_circle_01.jpg);z-index:1;cursor:pointer;event:expression(onmouseover=function(){this.style.background='url(img/menu_circle_1.jpg)';},onmouseout=function(){this.style.background='url(img/menu_circle_01.jpg)'} )}
.div_style02{width:164px;height:46px;background-image: url(img/menu_circle_02.jpg);z-index:1;cursor:pointer;event:expression(onmouseover=function(){this.style.background='url(img/menu_circle_2.jpg)';},onmouseout=function(){this.style.background='url(img/menu_circle_02.jpg)'} )}
.div_style03{width:164px;height:46px;background-image: url(img/menu_circle_03.jpg);z-index:1;cursor:pointer;event:expression(onmouseover=function(){this.style.background='url(img/menu_circle_3.jpg)';},onmouseout=function(){this.style.background='url(img/menu_circle_03.jpg)'} )}
/*左边菜单鼠标特效*/
.div_style3{width:167px;height:26px;background-image: url(img/menu_down_out.jpg);z-index:1;cursor:pointer;event:expression(onmouseover=function(){this.style.background='url(img/menu_down_over.jpg)';},onmouseout=function(){this.style.background='url(img/menu_down_out.jpg)'} )}
/*子页面内的上面水平菜单鼠标特效*/
.div_style8{background-image: url(img/menu_up_out.jpg);z-index:1;cursor:pointer;event:expression(onmouseover=function(){this.style.background='url(img/menu_up_over.jpg)';},onmouseout=function(){this.style.background='url(img/menu_up_out.jpg)'} )}
/*子页面内的上面水平菜单鼠标特效 长的*/
.div_style13{background-image: url(img/menu_up_out_long.jpg);z-index:1;cursor:pointer;event:expression(onmouseover=function(){this.style.background='url(img/menu_up_over_long.jpg)';},onmouseout=function(){this.style.background='url(img/menu_up_out_long.jpg)'} )}
/*专题的鼠标特效*/
.div_style4{width:697px;height:26px;background-image: url(img/zhuanti_out.jpg);z-index:1;cursor:pointer;event:expression(onmouseover=function(){this.style.background='url(img/zhuanti_over.jpg)';},onmouseout=function(){this.style.background='url(img/zhuanti_out.jpg)'} )}
/*由白到灰色的渐变*//*暂时取消*/
.div_style5{position:absolute; width:226px; height:107px; z-index:1;top: 0px;FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr='#ffffff',EndColorStr='#fffcd5')}
/*图片新闻的鼠标特效*//*暂时取消*/
.div_style6{width:232px;height:80px;background-image: url(img/tupian_out.jpg);z-index:1;cursor:pointer;event:expression(onmouseover=function(){this.style.background='url(img/tupian_over.jpg)';},onmouseout=function(){this.style.background='url(img/tupian_out.jpg)'} )}
/*注册按钮的背景的鼠标特效*//*暂时取消*/
.div_style7{position:absolute;width:38px;height:15px;background-image: url(img/zhuce_out.jpg);z-index:1;cursor:pointer;event:expression(onmouseover=function(){this.style.background='url(img/zhuce_over.jpg)';},onmouseout=function(){this.style.background='url(img/zhuce_out.jpg)'} )}
/*****************************************************************************************/
/*水平渐变色 白色到60黑*/
.div_style9{position:absolute; top: 0px;width:10px; z-index:2; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr='#ffffff',EndColorStr='#d1d3d4');}
/*水平渐变色 白色到20黄*/
.div_style10{position:absolute; top: 0px;width:10px; z-index:2; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr='#ffffff',EndColorStr='#fffdca');}
/*投票系统 红色到白色*/
.div_style12{position:absolute;FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr='#ff0000',EndColorStr='#ffffff');}
/*****************************************************************************************/
/*新闻栏目*/
.news_style1{position:absolute; width:249px; height:204px; z-index:8;  top: 0px;border:1px solid #808285;}
/*新闻栏目的标头*/
.news_style2{position:absolute; width:247px; height:34px; z-index:2; left: 0px; top: 0px;background-image: url(img/news.jpg);}
/*新闻栏目的标头 左边 新闻*/
.news_style3{position:absolute; width:100px; height:34px; z-index:1; left: 0px;padding-top:9px;padding-left:7px;}
/*新闻栏目的标头 右边 more*/
.news_style4{position:absolute; width:40px; height:34px;padding-top:10px; padding-right:10px;z-index:2; right: 0px; top: 0px;}
/*新闻栏目的内容*/
.news_style5{position:absolute; width:249px; height:170px; z-index:1; left: 0px; top: 34px;}
/*新闻栏目的内容 顶部文字*/
.news_style6{position:absolute; width:249px; height:15px;padding-left:5px; z-index:1; left: 0px; top: 0px;}
/*新闻栏目的内容 下面图片*/
.news_style7{position:absolute; width:249px; height:160px; z-index:1; left: 0px; top: 20px;}
/*****************************************************************************************/
/*内页 左边 菜单 样式*/
/*菜单 样式 大*/
.menu_style1{position:absolute;width:230px; height:20px; z-index:1; left: 0px;}
/*菜单 样式 三角箭头*/
.menu_style2{position:absolute;padding-top:2px; width:20px; height:20px;left:10px; z-index:2;}
/*文字内容 前面没有小图片*/
.menu_style3{position:absolute; width:180px;padding-top:6px; height:20px;left:30px; z-index:2;}
/*前面 小图片*/
.menu_style4{position:absolute; width:20px; height:20px;left:30px; z-index:2}
/*文字内容 前面有小图片*/
.menu_style5{position:absolute; width:180px;padding-top:4px; height:20px;left:55px; z-index:2}
/*****************************************************************************************/
/*新闻中心 大标题*/
.newscenter_style1{position:absolute; width:700px; height:20px; z-index:1; left: 10px; top: 0px;}
/*新闻中心 more*/
.newscenter_style2{position:absolute; width:200px; height:20px; z-index:1; left: 150px; top: 0px;}
/*新闻中心 小新闻条*/
.newscenter_style3{position:absolute; width:700px; height:160px;z-index:1; left: 10px; top: 35px;}
/*****************************************************************************************/
/*经典案例 白色底*/
.anli_style1{position:absolute;width:156px !important;height:96px !important;width:171px;height:120px;padding-left:15px;padding-top:24px;background-image: url(img/anlibg.png);}
/*经典案例 说明 文字*/
.anli_style2{position:absolute;width:171px;height:10px;align:center;font-size:12px;color:#ffffff;}
/*经典案例 左箭头*/
.anli_style3{position:absolute;width:4px;height:15px;top: 620px;background-image: url(img/anliarrowl.png);}
/*经典案例 右箭头*/
.anli_style4{position:absolute;width:4px;height:15px;top: 620px;background-image: url(img/anliarrowr.png);}
/*经典案例 链接下一页 橘色*/
.anli_style5{position:absolute;width:15px;height:15px;top: 620px;padding-left:1px;padding-top:2px;font-size:12px;color:#ffffff;background-image: url(img/anlimenu1.png);}
/*经典案例 链接下一页 灰色*/
.anli_style6{position:absolute;width:15px;height:15px;top: 620px;padding-left:1px;padding-top:2px;font-size:12px;color:#ffffff;background-image: url(img/anlimenu2.png);}
/*****************************************************************************************/
.space{padding-left:49px; padding-right:49px;padding-top:35px;}/*新闻页面的新闻文字部分的定位 上 左 右 空白*/
/*文字的样式*/
.style1{font-size: 12px;line-height:27px; color:#FFFFFF;font-weight:bold;}/*内页 水平菜单的文字*/
.style2{font-size: 14px;line-height:27px; color:#FFFFFF; font-weight:bold;}/*首页 左边列的菜单及专题*/
.style3{font-size:12px;line-height:18px;}/*激活卡注册内的卡号 密码 助威扇等的新闻的文字，黑色 不缩进*/
.style4{font-size:12px;line-height:20px;color:#FFFFFF;}/*激活卡注册内激活按钮的文字*/
.style5{font-size:12px;line-height:16px;color:#FF0000;}/*激活页面 顶部 提示 登录 失败 提示 招聘 提示文字红色*/
.style6{font-size: 14px;line-height:27px; color:#000000; font-weight:bold;}/*错误提示页面 标题 大 文字*/
.style7{font-size: 16px;color:#000000; }/*首页 左下 圆角菜单的文字*/
.style8{font-size: 12px;line-height:20px; }/*右上 3个 导航条的文字*/
.style9{font-weight:bold;font-size: 18px;line-height:28px;color:#ff0000; }/*项目集萃 案例分享 新闻 红色 大 标题*/
.style10 {font-size:12px;font-weight:bold;}/*首页底部的地址信息的文字，黑色*/
.style11 {font-size:11px;}/*新闻 右侧 文字*/
.style12 {font-size:14px;font-weight:bold;}/*首页 3个新闻块 大分类标题 粗体*/
.style13 {font-size:12px;line-height:24px;text-indent: 2em;}/*新闻的文字，黑色 缩进 */
.style14 {font-size:12px;}/*项目集萃 案例分享 左侧 菜单 文字 未点击前*/
.style15 {font-size:12px;color:#FF0000;}/*项目集萃 案例分享 左侧 菜单 文字 点击后 红色*/
.style16 {font-size:14px;font-weight:bold;color:#FF0000;}/*新闻 副标题 红色 稍大*/
.style17 {font-size:12px;color:#727272;}/*新闻 摘抄 备注 */
.style18 {font-size:12px;color:#ffffff;}/*项目集萃 案例分享 导入页面 图片下的文字*/
.style19 {font-size: 16px;color:#ff0000;font-weight:bold; }/*新闻 中心 3大分类 标题文字*/
.style20 {font-size:12px;line-height:18px;text-indent: 2em;font-weight:bold;}/*新闻的文字，注释部分，黑色 缩进 粗体*/
.style21 {font-size:14px;color:#ff0000;}/*新闻 中心 more+*/
.style22 {font-size:14px;}/*流量统计*/
.style23{font-size: 13px; color:#FFFFFF; font-weight:bold;}/*资源中心 大标题 文字*/
/*****************************************************************************************/