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


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

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

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

<div class="pad-lr-10">

<div class="table-list">

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

        <thead>

            <tr>

			 <th width="100">modelid</th>

            <th width="100"><?php echo L('model_name');?></th>

			<th width="100"><?php echo L('tablename');?></th>

            <th ><?php echo L('description');?></th>

            <th width="100"><?php echo L('status');?></th>

            <th width="100"><?php echo L('items');?></th>

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

            </tr>

        </thead>

    <tbody>

	<?php

	foreach($datas as $r) {

		$tablename = $r['name'];

	?>

    <tr>

		<td align='center'><?php echo $r['modelid']?></td>

		<td align='center'><?php echo $tablename?></td>

		<td align='center'><?php echo $r['tablename']?></td>

		<td align='center'>&nbsp;<?php echo $r['description']?></td>

		<td align='center'><?php echo $r['disabled'] ? L('icon_locked') : L('icon_unlock')?></td>

		<td align='center'><?php echo $r['items']?></td>

		<td align='center'><a href="?m=content&c=sitemodel_field&a=init&modelid=<?php echo $r['modelid']?>&menuid=<?php echo $_GET['menuid']?>"><?php echo L('field_manage');?></a> | <a href="javascript:edit('<?php echo $r['modelid']?>','<?php echo addslashes($tablename);?>')"><?php echo L('edit');?></a> | <a href="?m=content&c=sitemodel&a=disabled&modelid=<?php echo $r['modelid']?>&menuid=<?php echo $_GET['menuid']?>"><?php echo $r['disabled'] ? L('field_enabled') : L('field_disabled');?></a> | <a href="javascript:;" onclick="model_delete(this,'<?php echo $r['modelid']?>','<?php echo L('confirm_delete_model',array('message'=>addslashes($tablename)));?>',<?php echo $r['items']?>)"><?php echo L('delete')?></a> | <a href="?m=content&c=sitemodel&a=export&modelid=<?php echo $r['modelid']?>&menuid=<?php echo $_GET['menuid']?>""><?php echo L('export');?></a></td>

	</tr>

	<?php } ?>

    </tbody>

    </table>

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

  </div>

</div>

<script type="text/javascript"> 

<!--

window.top.$('#display_center_id').css('display','none');

function edit(id, name) {

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

	window.top.art.dialog({title:'<?php echo L('edit_model');?>《'+name+'》',id:'edit',iframe:'?m=content&c=sitemodel&a=edit&modelid='+id,width:'580',height:'420'}, 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 model_delete(obj,id,name,items){

	if(items) {

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

		return false;

	}

	window.top.art.dialog({content:name, fixed:true, style:'confirm', id:'model_delete'}, 

	function(){

	$.get('?m=content&c=sitemodel&a=delete&modelid='+id+'&pc_hash='+pc_hash,function(data){

				if(data) {

					$(obj).parent().parent().fadeOut("slow");

				}

			}) 	

		 }, 

	function(){});

};



//-->

</script>

</body>

</html>