<?php
	$acl=$_SESSION["acl"];
	if (strlen($acl)<1 || !strpos($acl,"<1002>")) {	//没有权限
		ob_clean();
		header("Location: ../accesserror.html");
		exit;
	}
?>


<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">

<SCRIPT LANGUAGE="javascript">
function setvalue()
{
	document.form2.operator.value=document.form1.operator.value;
	document.form2.submit();
}
</SCRIPT>

<title>操作员管理</title>
</head>

<body background="../bkg.bmp">

<p align="center"><font size="5"><b>操作员管理</b></font></p>
<hr color="#999966">
<form name=form1 method="POST" action="listoperacl.php">
  <p align="center">
  操作员列表
  </p>
  <p align="center">
  &nbsp;  
  <select size="10" name="operator">
<?php
		$db=mysql_pconnect(get_cfg_var("SIPSERVER"),get_cfg_var("SIPUSER"),get_cfg_var("SIPPWD")); 
		mysql_select_db(get_cfg_var("SIPDB"),$db);
		$rs = mysql_query("select operator,opername from operators",$db);
	   while ($row = mysql_fetch_array($rs)) {
	           echo("<option value=".chr(34).$row["operator"].chr(34).">".$row["operator"]."->".$row["opername"]."</option>");
           }
		mysql_free_result($rs);
		mysql_close($db);
?>
  </select>
  </p>
  <p align="center"><input type="submit" value="修改权限" name="B1">
  <input type="button" value="删除" name="B2" onClick="javascript:setvalue();">
  </p>
</form>

<form name=form2 method="POST" action="deleteoper.php">
<input type="hidden" name="operator" value="">
</form>

<hr>
<p align="center">SIP宽带上网计费管理系统</p>
  <p align="center">作者：<b>深圳市飞沃软件有限公司</b></p>

</body>

</html>
