<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>上传文件 - 共享资料</title>
<link href="/css/g.css" rel="stylesheet" type="text/css">
<script src="/js/dialog.js" language="JavaScript" type="text/javascript"></script>
<script src="/js/zhishi_js.js" language="JavaScript" type="text/javascript"></script>
<script type="text/javascript">
var userLogin = false;
function upload()
{
if (!checkFileVal()) {
return false;
}
/*$('UploadingFirst').style.display = 'none';
$('UploadingSecond').style.display = 'block';*/
var sUrl = "/cgi-bin/handle.cgi?hach=200807286f77b1aedbbb172f02cf4af3e792e90000";
var sIfram = '<iframe id="uploadIfram" name="uploadIfram" frameborder="0" marginheight="0" marginwidth="0" hspace="0" vspace="0" scrolling="no" width="100%" height="60px" src="' + sUrl + '"></iframe>';
$('Uploading').innerHTML = sIfram;
return true;
}
function del(obj)
{
if($(obj) != null) {
$(obj).parentNode.removeChild($(obj));
}
}
function insHtmlEnd(element, html)
{
element = $(element);
if ( element.insertAdjacentHTML ) {
element.insertAdjacentHTML("beforeend", html);
} else {
var oRange = document.createRange() ;
oRange.setStartBefore( element ) ;
var oFragment = oRange.createContextualFragment( html );
element.appendChild( oFragment, element.firstChild ) ;
}
}
function addAttach()
{
//检测用户上传文件格式
var temp = document.form1.atth0.value;
if (!isImageAttach(temp)) {
_error_msg_show("您只有选择图片上传,才能上传多个文件!");
return false;
}
var i, j;
j = 0;
for(i=0; i<5; i++)
{
if(isNull($("bxAttach_"+i))){
insHtmlEnd("bxAttach","<div id=\"bxAttach_"+i+"\" style=\"margin-bottom: 6px;\"><input type=file name=\"atth"+i+"\" class=\"sc\" style=\"width:320px;\" size=\"35\" onChange=\"checkImage("+i+");return false;\"> <input type=\"button\" name=\"del"+i+"\" value=\"删除\" style=\"height:22px;\" onclick=\"return delAttach("+i+");\"></div>");
break;
}
j ++;
}
if (j > 4) {
_error_msg_show("您最多只能上传5个图片文件!");
}
return false;
}
function checkImage(num)
{
var temp = eval('document.form1.atth' + num + '.value');
if (!isImageAttach(temp)) {
delAttach(num);
addAttach();
_error_msg_show("多个文件上传,只能上传图片格式的文件!");
return false;
}
}
function showAddBut()
{
var temp = document.form1.atth0.value;
if (isImageAttach(temp)) {
$("showAddStats").style.display = 'block';
} else {
$("showAddStats").style.display = 'none';
for(i=1; i<5; i++)
{
del("bxAttach_"+i);
}
}
return false;
}
function isImageAttach(sFile)
{
var sUploadImagesExt = ".jpg .jpeg .bmp .png .gif";
var sExt = sFile.match( /\.[^\.]*$/ ) ;
if (sExt) {
sExt = sExt[0].toLowerCase();
} else {
return false;
}
if ( sUploadImagesExt.indexOf( sExt ) != -1 ) {
return true;
}
return false;
}
function delAttach(index)
{
var num = 0;
num = getFileNum();
if (num <= 1) {
_error_msg_show("请指定要上传的文件!");
return false;
}
del("bxAttach_"+index);
/*if (num == 5) {
$("showAddStats").style.display = 'block';
}*/
return false;
}
function getFileNum()
{
var i, j;
j = 0;
for(i=0; i< 5; i++)
{
if(!isNull($("bxAttach_"+i))){
j ++;
}
}
return j;
}
function checkFileVal()
{
var i;
var ddd = "";
var j = 0;
for(i=0; i< 5; i++)
{
if(!isNull($("bxAttach_"+i))){
try {
ddd = eval('document.form1.atth' + i + '.value');
} catch (e) {}
var iExt = uploadAllowedExt(ddd);
if (iExt == 1) {
} else if (iExt == 2) {
_error_msg_show("文件格式有误,请重新选择上传文件!");
return false;
} else {
j ++;
}
}
}
if (j > 0) {
return true;
}
_error_msg_show("请指定要上传的文件!");
return false;
}
function uploadAllowedExt(sFile)
{
var sUploadAllowedExtensions = ".php .mp3 .wma .ape .ogg .mid .wmv .avi .swf .rmvb .rm .mp4 .mpeg .3gp .mov .flv .asf .vob .dat .mpg" ;
if (isNull(sFile)) {
return 1;
}
var sExt = sFile.match( /\.[^\.]*$/ ) ;
sExt = sExt ? sExt[0].toLowerCase() : "." ;
if ( sUploadAllowedExtensions.indexOf( sExt ) != -1 ) {
return 2;
}
return 3;
}
function addAttachVal(val)
{
try {
document.submitForum.attRetName.value = val;
} catch (e) {}
if (isNull(document.submitForum.attRetName.value)) {
_error_msg_show('文件上传失败!', 'top.location.reload();');
return false;
}
if ($('submitEnd').style.display == "none") {
if (!checkSub()) {
$('submitEnd').style.display == "block";
return false;
}
document.submitForum.action = "/upload/upload.php";
document.submitForum.submit();
}
return false;
}
function submitAll()
{
//直接提交
if (!checkSub()) {
return false;
}
if (isNull(document.submitForum.attRetName.value)) {
//checkRealUser();
$('submitEnd').style.display = "none";
$('userError').style.display = "none";
$("stmsg").innerHTML = "资料正在上传,请耐心等待!";
return false;
}
document.submitForum.submit();
return false;
}
function checkSub(ty)
{
var this_form = document.submitForum;
var titleLen = strLen(this_form.title.value.trim());
if (titleLen <= 0 || titleLen > 100) {
_error_msg_show("请输入资料名称", "", "title");
return false;
}
var descriptionLen = strLen(this_form.description.value.trim());
if (descriptionLen <= 0 || descriptionLen > 600) {
_error_msg_show("请填写资料说明", "", "description");
return false;
}
var sv1 = this_form.select1.value;
var sv2 = this_form.select2.value;
var sv3 = this_form.select3.value;
if (sv1==0 && sv2==0 && sv3==0) {
_error_msg_show("请选择资料的分类!", "", "select1");
return false;
}
if (!userLogin)
{
if (isNull(this_form.U_Loginname.value.trim())) {
_error_msg_show("请输入用户名", "", "U_Loginname");
return false;
}
if (isNull(this_form.U_Pass.value.trim())) {
_error_msg_show("请输入您的密码!", "", "U_Pass");
return false;
}
}
return true;
}
function closeIframe(t)
{
if (t != 1) {
$('submitEnd').style.display = "block";
}
$('userError').style.display = "block";
$("stmsg").innerHTML = "您输入的用户名或者密码有误,请重新输入。";
return false;
}
</script>
<script language="JavaScript" src="/adm/class.js"></script>
<script language="JavaScript" src="/js/show_class.js"></script>
<style>
.sc_i { BORDER-RIGHT: #ccc 1px dashed; PADDING-RIGHT: 10px; BORDER-TOP: #ccc 1px dashed; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; BORDER-LEFT: #ccc 1px dashed; PADDING-TOP: 10px; BORDER-BOTTOM: #ccc 1px dashed }
</style>
</head>
<body topmargin="0" leftmargin="0">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" class="topline">
<tr>
<td width="220" height="65" align="right"><a href="/"><img src="http://image2.sina.com.cn/pfp/ishare/logo_gx.gif" border="0" width="204" height="50" alt="共享资料" class="mt15"></a></td>
<td width="5"></td>
<td valign="top">
<table border="0" width="310" align="right" cellpadding="0" cellspacing="0" class="f12" background="http://image2.sina.com.cn/pfp/ask/images/zhishi/bg_top_line_t.gif">
<tr>
<td width="28" height="22"><img src="http://image2.sina.com.cn/pfp/ask/images/zhishi/top_xsj.gif" border="0" width="28" height="22"></td>
<td align="center"><a href="javascript:void(0);" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://iask.com');" class="toplink">设爱问为首页</a> <a href="http://www.sina.com.cn/" target="_blank" class="toplink">新浪首页</a> <a href="http://iask.com/" class="toplink">爱问首页</a> <a href="/" class="toplink">共享资料首页</a></td>
</tr>
</table><br clear="all">
<table border="0" cellpadding="0" cellspacing="0">
<form name="gxForm" method="get" onSubmit="return iask_submit(this,'ishare');">
<tr>
<td class="ar" valign="top" nowrap>
<input type=text name=key id=is size=47 class=f14 value="" onClick="ckwords(this);">
<input type="submit" value=" 搜 索 " class="sc">
</td>
</tr>
<tr class="f12"><td><input type="radio" name="format" value="" checked="checked">全部 <input type="radio" name="format" value="doc">DOC <input type="radio" name="format" value="pdf">PDF <input type="radio" name="format" value="ppt">PPT <input type="radio" name="format" value="img">图片 <input type="radio" name="format" value="mov">视频 <input type="radio" name="format" value="aud">音频</td></tr>
</form>
</table>
</td>
</tr>
<tr><td height="7"></td></tr>
</table>
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="f13 cc" background="http://image2.sina.com.cn/pfp/ask/images/zhishi/bg_nav_30.gif">
<tr valign="bottom" align="center">
<td width="20" height="23"></td>
<td width="3">|</td>
<td width="6%" nowrap><a href="/" class="nav">首页</a></td>
<td width="3">|</td>
<td width="8%" nowrap><a href="/catalog.php" class="nav">资料分类</a></td>
<td width="3">|</td>
<td width="7%" nowrap><a href="/topuser/toplist.php" class="nav">用户榜</a></td>
<td width="3">|</td>
<td width="6%" nowrap><a href="http://iask.com/more.html" class="nav">更多»</a></td>
<td align="right"><a href="http://iask.sina.com.cn/myknow/my_info_list.php"><img src="http://image2.sina.com.cn/pfp/ask/images/zhishi/grzx.gif" border="0" width="78" height="19"></a></td>
<td width="15"></td>
</tr>
<tr>
<td height="7" colspan="9"></td>
</tr>
</table>
<br/>
<iframe id="ifmUpload" name="ifmUpload" style="display: none;"></iframe>
<div id="UploadingFirst" style="display: block;">
<table border="0" width="780" cellpadding="0" cellspacing="0" align="center" class="f12">
<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="/cgi-bin/post.cgi?200807286f77b1aedbbb172f02cf4af3e792e90000" onSubmit="return upload();" target="ifmUpload">
<tr><td height="10"></td></tr>
<tr valign="top">
<td>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr><td> </td><td height="55" valign="top"><img src="http://i0.sinaimg.cn/pfp/ishare/gx_sc1.gif" border="0" id="myUploadImg"></td></tr>
<tr><td> </td><td align="right" height=20><a href="http://v.iask.com/u.php" target="_blank">如上传视频文件,请点击这里!</a></td></tr>
<tr valign="top">
<td width="70" nowrap="nowrap" align="center" class="ttc pt15"><b>文件路径</b></td>
<td id="td1" class="tdof" nowrap>
<div id="bxAttach" style="position:relative;">
<div id="bxAttach_0" style="margin-bottom: 6px;"><input type=file name="atth0" class="sc" style="width:420px;" size="35" onChange="showAddBut();return false;"></div>
</div>
<span id="showAddStats" style="display: none;"><input type="button" class="sc" value="添加文件" onClick="addAttach();return false;"></span>
<div style="text-align:right;width:100%;"><font class="lh15" color="#b9caa5">文件大小不能超过30MB</font></div>
</td>
</tr>
<tr>
<td> </td>
<td height="60" align="center"><input type="submit" value=" 下一步 " class="sc"></td>
</tr>
<tr>
<td> </td>
<td class="sc_i c9 lh18">
<span class="cc">·</span>限定大小:不能超过<b>30MB</b> <a href="http://v.blog.sina.com.cn/vbloghelp/other.htm" target="_blank" style="color:#ff0000;background:transparent; text-decoration:underline;"></a><br>
<span class="cc">·</span>支持格式:<strong>DOC</strong>,<strong>XLS</strong>, <b>RAR</b>, <b>PPT</b>, <b>PDF</b>, <b>ZIP</b>, <b>JPG</b>, <b>BMP</b>,等<br>
<span class="cc">·</span>禁止上传任何含有政治敏感、色情等违法内容,以及侵犯他人版权的资料<br>
<span class="cc">·</span>上传资料表示您完全接受共享资料的<a href="http://ishare.iask.sina.com.cn/help/yztk.html" target="_blank">原则条款</a>
</td>
</tr>
</table>
</td>
<td width="20"> </td>
<td width="250"> </td>
</tr>
</form>
</table>
<p> </p>
</div>
<div id="UploadingSecond" style="display: none;">
<iframe id="ifmUploadSubmit" name="ifmUploadSubmit" style="display: none;"></iframe>
<table border="0" width="780" cellpadding="0" cellspacing="0" align="center" class="f12">
<form id="submitForum" name="submitForum" method="post" action="/upload/upload.php" target="ifmUploadSubmit">
<tr><td height="10"></td></tr>
<tr valign="top">
<td>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr><td></td><td height="45" valign="top"><img src="http://i1.sinaimg.cn/pfp/ishare/gx_sc2.gif" border="0"></td></tr>
<tr><td></td><td>
<div id="Uploading"></div>
</td></tr>
<tr><td height="20" width="70"></td><td style="color:#f60;"><span id="stmsg">请您填写资料信息,然后点击“提交”</span></td></tr>
</table>
<div id="submitEnd">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="70" nowrap="nowrap" align="center" class="ttc pt15"><b>资料名称</b></td>
<td id="td1" class="tdof">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr><td><input type="text" name="title" id="title" class="w100 f14" maxlength="50" value="" onKeyDown="zsxz(this,syzs1,50)" onKeyUp="zsxz(this,syzs1,50)"></td></tr>
<tr><td align="right"><font class="lh15" color="#b9caa5">可输入<input type="text" size="2" readonly id="syzs1" class="zishu1" value="50">个汉字</font></td></tr>
</table>
</td>
</tr>
<tr><td colspan="9" height="5"></td></tr>
<tr valign="top">
<td nowrap="nowrap" align="center" class="ttc pt15"><b>资料说明</b></td>
<td id="td2" class="tdof">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td><textarea name="description" id="description" rows="6" cols="45" class="w100 f14" onKeyDown="zsxz(this,syzs2,300)" onKeyUp="zsxz(this,syzs2,300)"></textarea></td>
</tr>
<tr>
<td align="right"><font class="lh15" color="#b9caa5">可输入<input type="text" size="4" readonly id="syzs2" class="zishu1" value="300">个汉字</font></td>
</tr>
<tr><td>
</td></tr>
</table>
</td>
</tr>
<tr><td colspan="9" height="5"></td></tr>
<tr valign="top">
<td nowrap="nowrap" align="center" class="ttc pt15"><b>设置分类</b></td>
<td id="td3" class="tdof">
<div style="position:relative;">
<table border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td width="135">
<select name="select1" id="select1" size=15 style="width:130px" onChange="searchlist2(this.form);" onFocus="td3.className='tdon';" onBlur="td3.className='tdof';">
<option></select>
<script language="JavaScript">
searchinit1(0);
</script>
</select></td>
<td width="110">
<select name="select2" id ="select2" size="15" style="width:100px" onChange="searchlist3(this.form);" onFocus="td3.className='tdon';" onBlur="td3.className='tdof';">
<option></select>
<script language="JavaScript">
searchinit2(0);
</script>
</td>
<td width="110">
<select name="select3" id = "select3" size="15" style="width:100px" onFocus="td3.className='tdon';" onBlur="td3.className='tdof';">
<option></select>
<script language="JavaScript">
searchinit3(0);
</script>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr><td colspan="9" height="5"></td></tr>
<tr valign="top">
<td nowrap="nowrap" align="center" class="ttc pt15"><b>设置积分</b></td>
<td id="td4" class="tdof">
<table border="0" width="100%" cellpadding="0" cellspacing="0" style="color:#668342;">
<tr>
<td><input type="radio" name="price" onFocus="td4.className='tdon';" onBlur="td4.className='tdof';" checked="checked" value="0">0分<input type="radio" name="price" onFocus="td4.className='tdon';" onBlur="td4.className='tdof';" value="1">1分<input type="radio" name="price" onFocus="td4.className='tdon';" onBlur="td4.className='tdof';" value="2">2分<input type="radio" name="price" onFocus="td4.className='tdon';" onBlur="td4.className='tdof';" value="5">5分</td>
<td align=" |