Server : nginx/1.22.1
System : Linux iZwz9daxib3w3i063fw434Z 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64
User : www ( 1000)
PHP Version : 5.6.40
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Directory :  /www/wwwroot/www.jkmold.com/phpcms/modules/attachment/templates/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : /www/wwwroot/www.jkmold.com/phpcms/modules/attachment/templates/album_list.tpl.php
<?php 

	$show_header = $show_validator = $show_scroll = 1; 

	include $this->admin_tpl('header', 'attachment');

?>

<link href="<?php echo JS_PATH?>swfupload/swfupload.css" rel="stylesheet" type="text/css" />

<form name="myform" action="" method="get" >

<input type="hidden" value="attachment" name="m">

<input type="hidden" value="attachments" name="c">

<input type="hidden" value="album_load" name="a">

<input type="hidden" value="<?php echo $file_upload_limit?>" name="info[file_upload_limit]">

<div class="lh26" style="padding:10px 0 0">

<label><?php echo L('name')?></label>

<input type="text" value="" class="input-text" name="info[filename]"> 

<label><?php echo L('date')?></label>

<?php echo form::date('info[uploadtime]')?>

<input type="submit" value="<?php echo L('search')?>" class="button" name="dosubmit">

</div>

</form>

<div class="bk20 hr"></div>

<ul class="attachment-list"  id="fsUploadProgress">

<?php foreach($infos as $r) {?>

<li>

	<div class="img-wrap">

		<a href="javascript:;" onclick="javascript:album_cancel(this,'<?php echo $r['aid']?>','<?php echo $this->upload_url.$r['filepath']?>')"><div class="icon"></div><img src="<?php echo $r['src']?>" width="<?php echo $r['width']?>" path="<?php echo $this->upload_url.$r['filepath']?>" title="<?php echo $r['filename']?>"/></a>

	</div>

</li>

<?php } ?>

</ul>

 <div id="pages" class="text-c"> <?php echo $pages?></div>

<script type="text/javascript">

$(document).ready(function(){

	set_status_empty();

});	

function set_status_empty(){

	parent.window.$('#att-status').html('');

	parent.window.$('#att-name').html('');

}

function album_cancel(obj,id,source){

	var src = $(obj).children("img").attr("path");

	var filename = $(obj).children("img").attr("title");

	if($(obj).hasClass('on')){

		$(obj).removeClass("on");

		var imgstr = parent.window.$("#att-status").html();

		var length = $("a[class='on']").children("img").length;

		var strs = filenames = '';

		$.get('index.php?m=attachment&c=attachments&a=swfupload_json_del&aid='+id+'&src='+source);

		for(var i=0;i<length;i++){

			strs += '|'+$("a[class='on']").children("img").eq(i).attr('path');

			filenames += '|'+$("a[class='on']").children("img").eq(i).attr('title');

		}

		parent.window.$('#att-status').html(strs);

		parent.window.$('#att-name').html(filenames);

	} else {

		var num = parent.window.$('#att-status').html().split('|').length;

		var file_upload_limit = '<?php echo $file_upload_limit?>';

		if(num > file_upload_limit) {alert('不能选择超过'+file_upload_limit+'个附件'); return false;}

		$(obj).addClass("on");

		$.get('index.php?m=attachment&c=attachments&a=swfupload_json&aid='+id+'&src='+source);

		parent.window.$('#att-status').append('|'+src);

		parent.window.$('#att-name').append('|'+filename);

	}

}

</script>