<div class="pad-10">
<div class="col-tab">
<ul class="tabBut cu-li">
<li id="tab_swf_1" <?php echo $tab_status?> onclick="SwapTab('swf','on','',5,1);"><?php echo L('upload_attachment')?></li>
//ɾ³ýÒÔÏÂ
<strong><span style="color: #ff0000;"> <li id="tab_swf_2" onclick="SwapTab('swf','on','',5,2);"><?php echo L('net_file')?></li></span></strong>
<?php if($allowupload && $this->admin_username && $_SESSION['userid']) {?>
<li id="tab_swf_3" onclick="SwapTab('swf','on','',5,3);set_
iframe('album_list','index.php?m=attachment&c=attachments&a=album_load&args=<?php echo $args?>');"><?php echo L('gallery')?></li>
<li id="tab_swf_4" onclick="SwapTab('swf','on','',5,4);set_iframe('album_dir','index.php?m=attachment&c=attachments&a=album_dir&args=<?php echo $args?>');"><?php echo L('directory_browse')?></li>
<?php }?>
<?php if($att_not_u
sed!='') {?>
<li id="tab_swf_5" class="on icon" onclick="SwapTab('swf','on','',5,5);"><?php echo L('att_not_used')?></li>
<?php }?>
</ul>
<div id="div_swf_1" class="content pad-10 <?php echo $div_status?>">
<div>
<div class="addnew" id="addnew">
<span id="buttonPlaceHolder"></span>
</div>
<input type="button" id="btupload" value="<?php echo L('start_upload')?>" onClick="swfu.startUpload();" />
<div id="nameTip" class="onShow"><?php echo L('upload_up_to')?><font color="red"> <?php echo $file_upload_limit?></font> <?php echo L('attachments')?>,<?php echo L('largest')?> <font color="red"><?php echo $file_size_limit?></font></div>
<div class="bk3"></div>
<div class="lh24"><?php echo L('supported')?> <font style="font-family: Arial, Helvetica, sans-serif"><?php echo str_replace(array('*.',';'),array('','¡¢'),$file_types)?></font> <?php echo L('formats')?></div>
//ɾ³ýÏÂÃæµÄˮӡ
<input type="
checkbox" id="watermark_enable" value="1" <?php if(isset($watermark_enable) &&$watermark_enable == 1) echo '
checked'?> onclick="change_params()"> <?php echo L('watermark_enable')?>
</div>
<div class="bk10"></div>
<fieldset class="blue pad-10" id="swfupload">
<legend><?php echo L('lists')?></legend>
<ul class="attachment-list"id="fsUploadProgress">
</ul>
</fieldset>
</div>
<span style="color: #ff0000;"><strong><div id="div_swf_2" class="contentList pad-10 hidden">
<div class="bk10"></div>
<?php echo L('enter_address')?><div class="bk3"></div><input type="text" name="info[filename]" class="input-text" value=""style="width:350px;"onblur="addonlinefile(this)">
<div class="bk10"></div>
</div></strong> </span>
<?php if($allowupload && $this->admin_username && $_SESSION['userid']) {?>
<div id="div_swf_3" class="contentList pad-10 hidden">
<ul class="attachment-list">
<iframe name="album-list" src="#" frameborder="false" scrolling="no" style="overflow-x:hidden;border:none" width="100%" height="345" allowtransparency="true" id="album_list"></iframe>
</ul>
</div>
<div id="div_swf_4" class="contentList pad-10 hidden">
<ul class="attachment-list">
<iframe name="album-dir" src="#" frameborder="false" scrolling="auto" style="overflow-x:hidden;border:none" width="100%" height="330" allowtransparency="true" id="album_dir"></iframe>
</ul>
</div>
<?php }?>
<?php if($att_not_used!='') {?>
<div id="div_swf_5" class="contentList pad-10">
<div class="explain-col"><?php echo L('att_not_used_desc')?></div>
<ul class="attachment-list" id="album">
<?php if(is_array($att) && !empty($att)){ foreach ($att as $_v) {?>
<li>
<div class="img-wrap">
<a onclick="
javascript:album_cancel(this,<?php echo $_v['aid']?>,'<?php echo $_v['src']?>')" href="javascript:;" class="off"title="<?php echo $_v['filename']?>"><div class="icon"></div><img width="<?php echo $_v['width']?>"path="<?php echo $_v['src']?>" src="<?php echo $_v['fileimg']?>" title="<?php echo $_v['filename']?>"></a>
</div>
</li>
<?php }}?>
</ul>
</div>
<?php }?>
<div id="att-status" class="hidden"></div>
<div id="att-status-del" class="hidden"></div>
<div id="att-name" class="hidden"></div>
<!-- swf -->
</div>
µÚÒ»²½£ºÕÒµ½statics/images/water Îļþ¼Ð£¬½«È¥É¾³ý£»Èç¹ûϵͳÕÒ²»µ½waterÎļþ¼ÐµÄˮӡͼƬ£¬Ôò½«»áÖ´Ðеڶþ²½£¬¸øͼƬÌí¼ÓÒ»¸öÎı¾¸ñʽµÄˮӡ¡£
function watermark($source, $target = '', $w_pos = '', $w_img = '', $w_text = '',$w_font = 8, $w_color = '#ff0000') {
$w_pos = $w_pos ? $w_pos : $this->w_pos;
$w_img = $w_img ? $w_img : $this->w_img;
if(!$this->watermark_enable || !$this->check($source)) return false;
if(!$target) $target = $source;
$w_img = PHPCMS_PATH.$w_img;
$source_info =
getimagesize($source);
$source_w = $source_info[0];
$source_h = $source_info[1];
Èç¹ûÏëÌ滻Ϊ×Ô¼ºÉè¼ÆµÄˮӡͼƬ£¬ÔòÖ»ÐèÒªÌæ»»statics/images/waterÎļþ¼ÐϵÄˮӡͼƬΪ×Ô¼ºÉè¼ÆµÄˮӡͼƬ¼´¿É¡£
Èç¹ûÏë¸ø×Ô¼ºÉÏ´«µÄͼƬÌí¼ÓÎı¾¸ñʽµÄˮӡ£¬Ôò³ýÁËÐèҪɾ³ýstatics/images/waterÎļþ¼ÐÍ⣬»¹ÐèÒª½«watermarkº¯ÊýÖеÄ$w_text²ÎÊýµÄÖµÐÞ¸ÄΪÆäËüÎÄ×Ö¼´¿É¡£