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/workflow_list.tpl.php
<?php

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

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

<form name="myform" action="?m=content&c=type_manage&a=listorder" method="post">

<div class="pad_10">

<div class="table-list">

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

        <thead>

	<tr>

	<th width="5%">ID</th>

	<th width="20%" align="left"><?php echo L('workflow_name');?></th>

	<th width="20%"><?php echo L('steps');?></th>

	<th width="10%"><?php echo L('workflow_diagram');?></th>

	<th width="*"><?php echo L('description');?></th>

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

	</tr>

        </thead>

    <tbody>

    



<?php

$steps[1] = L('steps_1');

$steps[2] = L('steps_2');

$steps[3] = L('steps_3');

$steps[4] = L('steps_4');

foreach($datas as $r) {

?>

<tr>

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

<td ><?php echo $r['workname']?></td>

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

<td align="center"><a href="javascript:view('<?php echo $r['workflowid']?>','<?php echo $r['workname']?>')"><?php echo L('onclick_view');?></a></td>

<td ><?php echo $r['description']?></td>

<td align="center"><a href="javascript:edit('<?php echo $r['workflowid']?>','<?php echo $r['workname']?>')"><?php echo L('edit');?></a> | <a href="javascript:;" onclick="data_delete(this,'<?php echo $r['workflowid']?>','<?php echo L('confirm',array('message'=>$r['workname']));?>')"><?php echo L('delete')?></a> </td>

</tr>

<?php } ?>

	</tbody>

    </table>



 </div>

</div>

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

</div>

</form>



<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_workflow');?>《'+name+'》',id:'edit',iframe:'?m=content&c=workflow&a=edit&workflowid='+id,width:'680',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 view(id, name) {

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

	window.top.art.dialog({title:'<?php echo L('workflow_diagram');?>《'+name+'》',id:'edit',iframe:'?m=content&c=workflow&a=view&workflowid='+id,width:'580',height:'300'}, 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 data_delete(obj,id,name){

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

	function(){

	$.get('?m=content&c=workflow&a=delete&workflowid='+id+'&pc_hash=<?php echo $_SESSION['pc_hash'];?>',function(data){

				if(data) {

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

				}

			}) 	

		 }, 

	function(){});

};

//-->

</script>

</body>

</html>