<div class="c_form">
<!--{if $haveattachsize}-->
<div class="borderbox"> 您当前图片空间还剩余容量 <strong>$haveattachsize</strong>
<!--{if $_SGLOBAL[magic][attachsize]}-->
<p> <img src="image/magic/attachsize.small.gif" class="magicicon"/> <a id="a_magic_attachsize" href="magic.php?mid=attachsize" onClick="ajaxmenu(event, this.id, 1)">我要增加空间</a> (您可以购买道具“{$_SGLOBAL[magic][attachsize]}”来增加附件容量,上传更多的图片) </p>
<!--{/if}-->
</div>
<br>
<!--{/if}-->
<!--{if empty($_GET['op'])}-->
<table cellspacing="0" cellpadding="0" class="formtable">
<caption>
<h2>选择图片</h2>
<p>从电脑中选择你要上传的图片。<br>
提示:选择一张图片后,你可以继续选择下一张图片,这样就可以一次上传多张图片了。</p>
</caption>
<tbody id="attachbodyhidden">
<tr>
<td><form method="post" id="upload" action="cp.php?ac=upload<!--{if $eventid}-->&eventid=$eventid<!--{/if}-->" enctype="multipart/form-data" target="uploadframe">
<input type="file" name="attach" size="25" style="padding:10px;" />
<span id="localfile"></span>
<input type="hidden" name="uploadsubmit" id="uploadsubmit" value="true" />
<input type="hidden" name="albumid" id="albumid" value="0" />
<input type="hidden" name="topicid" id="topicid" value="0" />
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</form></td>
</tr>
</tbody>
<tbody id="attachbody">
</tbody>
</table>
<script>
no_insert = 1;
function a_addOption() {
var obj = $('uploadalbum');
obj.value = 'addoption';
addOption(obj);
}
function passwordShow(value) {
if(value==4) {
$('span_password').style.display = '';
$('tb_selectgroup').style.display = 'none';
} else if(value==2) {
$('span_password').style.display = 'none';
$('tb_selectgroup').style.display = '';
} else {
$('span_password').style.display = 'none';
$('tb_selectgroup').style.display = 'none';
}
}
function getgroup(gid) {
if(gid) {
var x = new Ajax();
x.get('cp.php?ac=privacy&op=getgroup&gid='+gid, function(s){
$('target_names').innerHTML += s;
});
}
}
function album_op(id) {
$('selectalbum').style.display = 'none';
$('creatalbum').style.display = 'none';
$(id).style.display = '';
}
</script>
<script src="source/script_upload.js" type="text/javascript"></script>
<iframe id="uploadframe" name="uploadframe" width="0" height="0" marginwidth="0" frameborder="0" src="about:blank"></iframe>
<form method="post" id="albumform" action="cp.php?ac=upload" target="uploadframe">
<table cellspacing="0" cellpadding="0" class="formtable">
<!--{if $albums}-->
<caption>
<h2>
<input type="radio" id="albumop_selectalbum" name="albumop" value="selectalbum" checked onClick="album_op(this.value);">
<label for="albumop_selectalbum">添加到现有相册</label>
<input type="radio" id="albumop_creatalbum" name="albumop" value="creatalbum" onClick="album_op(this.value);">
<label for="albumop_creatalbum">新建一个相册</label>
</h2>
</caption>
<tbody id="selectalbum">
<tr>
<td><table width="100%">
<tr>
<th width="60">选择相册</th>
<td><select name="albumid" id="uploadalbumid">
<!--{loop $albums $value}-->
<!--{if $value['albumid'] == $_GET['albumid']}-->
<option value="$value[albumid]" selected>$value[albumname]</option>
<!--{else}-->
<option value="$value[albumid]">$value[albumname]</option>
<!--{/if}-->
<!--{/loop}-->
</select>
</td>
</tr>
</table></td>
</tr>
</tbody>
<tbody id="creatalbum" style="display:none;">
<!--{else}-->
<caption>
<h2>新建一个相册</h2>
<input type="hidden" name="albumop" value="creatalbum">
</caption>
<tbody id="creatalbum">
<!--{/if}-->
<tr>
<td><table width="100%">
<tr>
<th width="60">相册名</th>
<td><input type="text" class="t_input" size="20" id="uploadalbumname" name="albumname" value="我的相册"></td>
</tr>
<tr>
<th>隐私设置</th>
<td><select name="friend" id="uploadfriend" onChange="passwordShow(this.value);">
<option value="0">全站用户可见</option>
<!--{if empty($_GET[topicid])}-->
<option value="1">全好友可见</option>
<option value="2">仅指定的好友可见</option>
<option value="3">仅自己可见</option>
<option value="4">凭密码查看</option>
<!--{/if}-->
</select>
<span id="span_password" style="display:none;">密码:
<input type="text" id="uploadpassword" name="password" value="" size="10">
</span> </td>
</tr>
<tbody id="tb_selectgroup" style="display:none;">
<tr>
<th>指定好友</th>
<td><select name="selectgroup" onChange="getgroup(this.value);">
<option value="">从好友组选择好友</option>
<!--{loop $groups $key $value}-->
<option value="$key">$value</option>
<!--{/loop}-->
</select>
多次选择会累加到下面的好友名单</td>
</tr>
<tr>
<th> </th>
<td><textarea name="target_names" id="target_names" style="width:85%;" rows="3"></textarea>
<br>
(可以填写多个好友名,请用空格进行分割)</td>
</tr>
</table></td>
</tr>
</tbody>
<tr>
<td><br>
<input type="hidden" name="albumsubmit" id="albumsubmit" value="true" />
<input type="hidden" name="topicid" value="$_GET[topicid]" />
<input type="submit" name="uploadsubmit" id="btnupload" value="开始上传" class="submit" />
</td>
</tr>
</table>
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</form>
<form method="post" id="albumresultform" action="cp.php?ac=upload<!--{if $eventid}-->&eventid=$eventid<!--{/if}-->" class="c_form">
<input type="hidden" name="opalbumid" id="opalbumid" value="0" />
<input type="hidden" name="topicid" id="optopicid" value="0" />
<input type="hidden" name="viewAlbumid" id="viewAlbumid" value="true" />
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</form>
<!--{elseif $_GET['op'] == 'cam'}-->
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0" width="100%" height="415">
<param name="movie" value="image/cam.swf?site=$siteurl&albumid=$_GET['albumid']" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="image/cam.swf?site=$siteurl&albumid=$_GET['albumid']" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%" height="415"></embed>
</object>
<!--{else}-->
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0" width="100%" height="400">
<param name="movie" value="image/upload.swf?site=$siteurl&albumid=$_GET[albumid]&topicid=$_GET[topicid]" />
<param name="quality" value="high" />
<embed src="image/upload.swf?site=$siteurl&albumid=$_GET[albumid]&topicid=$_GET[topicid]" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%" height="400"></embed>
</object>
<!--{/if}-->
</div>
</div> |