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 : 7.2.33
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/dbsource/templates/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


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

defined('IN_ADMIN') or exit('No permission resources.');

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

?>

<div class="pad_10">

<div class="table-list">

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

<input type="hidden" name="m" value="dbsource" />

<input type="hidden" name="c" value="data" />

<input type="hidden" name="a" value="del" />

    <table width="100%" cellspacing="0">

        <thead>

		<tr>

		<th width="80"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>

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

		<th><?php echo L('output_mode')?></th>

		<th><?php echo L('stdcall')?></th>

		<th><?php echo L('data_call')?></th>

		<th width="150"><?php echo L('operations_manage')?></th>

		</tr>

        </thead>

        <tbody>

<?php 

if(is_array($list)):

	foreach($list as $v):

?>

<tr>

<td width="80" align="center"><input type="checkbox" value="<?php echo $v['id']?>" name="id[]"></td>

<td align="center"><?php echo $v['name']?></td>

<td align="center"><?php switch($v['dis_type']){case 1:echo 'json';break;case 2:echo 'xml';break;case 3:echo 'js';break;}?></td>

<td align="center"><?php switch($v['type']){case 0:echo L('model_configuration');break;case 1:echo L('custom_sql');break;}?></td>

<td align="center"><input type="text" ondblclick="copy_text(this)" value="<?php if($v['dis_type']==3){ echo  new_html_special_chars('<script type="text/javascript" src="'.APP_PATH.'index.php?m=dbsource&c=call&a=get&id='.$v['id'].'"></script>')?><?php } else { echo APP_PATH?>index.php?m=dbsource&c=call&a=get&id=<?php echo $v['id']?><?php }?>" size="30" /></td>

<td align="center"><a href="javascript:edit(<?php echo $v['id']?>, '<?php echo new_html_special_chars(new_addslashes($v['name']))?>')"><?php echo L('edit')?></a> | <a href="?m=dbsource&c=data&a=del&id=<?php echo $v['id']?>" onclick="return confirm('<?php echo new_html_special_chars(new_addslashes(L('confirm', array('message'=>$v['name']))))?>')"><?php echo L('delete')?></a></td>

</tr>

<?php 

	endforeach;

endif;

?>

</tbody>

</table>

<div class="btn">

<label for="check_box"><?php echo L('select_all')?>/<?php echo L('cancel')?></label> <input type="submit" class="button" name="dosubmit" value="<?php echo L('delete')?>" onclick="return confirm('<?php echo L('sure_deleted')?>')"/>

</div>

</from>

</div>

</div>

<div id="pages"><?php echo $pages?></div>

<script type="text/javascript">
<!--
function edit(id, name) {

	window.top.art.dialog({id:'edit'}).close();

	window.top.art.dialog({title:'<?php echo L('editing_data_sources_call')?>《'+name+'》',id:'edit',iframe:'?m=dbsource&c=data&a=edit&id='+id,width:'700',height:'500'}, function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;d.document.getElementById('dosubmit').click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});

}



function copy_text(matter){



	matter.select();



	js1=matter.createTextRange();



	js1.execCommand("Copy");



	alert('<?php echo L('copy_code');?>');



	}


//-->
</script>

</body>

</html>