<?php
	!defined('DIRCMS_MANAGE') && exit('Access Denied!');
	if(!$module->roleid_check('gather',$_roleid))showmsg_nourl($lang['RETURN_NOPRI']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>自定义函数</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="admin/template/css/style.css" />
<script src="images/js/jquery.min.js" charset="gb2312"></script>
<script language="javascript" src="admin/template/js/css.js"></script>
<script type="text/javascript" src="admin/template/js/admin.js"></script>
</head>
<body>
<div id="wrap">
	<div class="tab">
	<ul>
		<li><a href="javascript:void(0);" class="on">自定义函数</a></li>
	</ul>
	</div>
	<div class="main">
		<fieldset>
		<legend><?php echo $lang['RETURN_TIPS'];?></legend>
		请在下面输入你要自定义PHP函数,注意函数名称尽量复杂,以避免该函数名称已被占用：
		</fieldset>
		<form action="" method="post" name="myform">		
		<input type="hidden" name="do_submit" value="1" />
		<input type="hidden" name="nodeid" value="<?php echo $id;?>" />
		<table width="100%">
		<tr>
			<td align="center">
			<textarea name="func" style='width:95%;height:450px;word-wrap: break-word;word-break:break-all;'><?php echo $funccontent;?></textarea>
			</td>
		</tr>
		<tr>
			<td align="center">
			<input type="submit" onfocus="blur();" name="1" value="保存函数" class="button" />
			<input type="button" onfocus="blur();" name="3" value="取消返回" class="button" onclick="javascript:history.back();" style="margin-left:10px" />
			</td>
		</tr>
	</table>
	</form>
	</div>
</div>
</body>
</html>