405 lines
8.4 KiB
PHP
Executable File
405 lines
8.4 KiB
PHP
Executable File
<?php
|
|
require("../../inc/header.inc");
|
|
?>
|
|
|
|
<head>
|
|
<script language="JavaScript">
|
|
|
|
var num_num=0;
|
|
|
|
function change_box( this_1)
|
|
{
|
|
|
|
if(this_1.checked == 1)
|
|
{
|
|
num_num++;
|
|
//alert("the num id ++ "+num_num);
|
|
}
|
|
else
|
|
{
|
|
num_num--;
|
|
//alert("the num id -- "+num_num);
|
|
}
|
|
|
|
|
|
//alert("the num id "+num_num);
|
|
//alert("this is "+this_1.checked);
|
|
|
|
if(num_num > 8)
|
|
{
|
|
alert(' the number is not larger than 8 !!!!!');
|
|
this_1.checked=false;
|
|
}
|
|
}
|
|
|
|
function checked()
|
|
{
|
|
alert("::"+document.getElementById('checkbox_9').checked+"::");
|
|
alert("::"+document.getElementById('checkbox_8').checked+"::");
|
|
}
|
|
|
|
function change()
|
|
{
|
|
var down_date_from=document.getElementById('from').value-0;
|
|
|
|
//alert("how are you!!!!"+down_date_from);
|
|
|
|
var down_date_to=document.getElementById('to').value-0;
|
|
|
|
//alert("rrrrrrrrrrrrrrrr"+down_date_to);
|
|
|
|
if(down_date_from < down_date_to)
|
|
{
|
|
document.getElementById('to').value=document.getElementById('from').value;
|
|
}
|
|
|
|
}
|
|
|
|
function changeType()
|
|
{
|
|
//alert("good good");
|
|
|
|
if(document.getElementById('select_1').value == 1)
|
|
{
|
|
//alert("hello helo");
|
|
document.getElementById('element').style.display='';
|
|
document.getElementById('tg_type_id').style.display='none';
|
|
document.getElementById('dd').style.display='none';
|
|
document.getElementById('direction').style.display='none';
|
|
//alert("111");
|
|
}
|
|
else
|
|
{
|
|
|
|
document.getElementById('tg_type_id').style.display='';
|
|
document.getElementById('element').style.display='none';
|
|
document.getElementById('direction').style.display='';
|
|
document.getElementById('dd').style.display='';
|
|
}
|
|
|
|
if(document.getElementById('select_2').value == 3)
|
|
{
|
|
//alert("hello helo11111111111");
|
|
}
|
|
else
|
|
{
|
|
//alert("beeter22222222222");
|
|
}
|
|
|
|
if(document.getElementById('box').checked == 1)
|
|
{
|
|
//alert("check check 11111111111");
|
|
}
|
|
else
|
|
{
|
|
//alert("check check 22222222222");
|
|
}
|
|
|
|
var down_date_from=document.getElementById('from').value-0;
|
|
|
|
//alert("how are you!!!!"+down_date_from);
|
|
|
|
var down_date_to=document.getElementById('to').value-0;
|
|
|
|
//alert("rrrrrrrrrrrrrrrr"+down_date_to);
|
|
|
|
if(down_date_from < down_date_to)
|
|
{
|
|
document.getElementById('from').value=document.getElementById('to').value;
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
|
|
<body onload="javascript:adjust();" onresize="javascript:adjust();" leftmargin="15" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
|
|
|
|
<?php
|
|
adjust_head();
|
|
|
|
adjust_title_head();
|
|
|
|
echo "<FORM NAME=\"downForm\" action=\"./rect_erlang.php\" method=\"post\">";
|
|
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
|
|
echo "<tr>";
|
|
echo "<td width=\"50%\">";
|
|
echo "Performance > MSC > Erlang";
|
|
echo "</td>";
|
|
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
|
$helpId="1.2.2";
|
|
showHelp($helpId);
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
echo "<tr>";
|
|
echo "<td width=\"50%\">";
|
|
echo " ";
|
|
echo "</td>";
|
|
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
|
|
//echo "<a href=# onClick=\"javascript:clearAll();\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strClear</a>";
|
|
echo "<span onClick=\"window.print();\" style=\"cursor:hand\">";
|
|
echo "<img align=absBottom border=0 src=\"../../images/printer.gif\" width=16 height=16>";
|
|
echo "</span>";
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
echo "</table>";
|
|
echo "</FORM>";
|
|
|
|
adjust_title_tail();
|
|
|
|
adjust_content_head();
|
|
echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
|
|
|
|
/////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
|
|
|
|
echo "<form name=\"form1\" action=\"rect_erlang.php\" method=\"POST\">";
|
|
|
|
echo "<br>";
|
|
echo "Customize the condition for Erlang<br>";
|
|
|
|
echo "<tr bgcolor=\"#E6E6E6\">";
|
|
echo "<td width=\"8%\">";
|
|
echo "Type";
|
|
echo "</td>";
|
|
|
|
echo "<td width=\"16%\">";
|
|
echo "<select name =\"select_1\" onchange=\"javascript:changeType();\">";
|
|
echo "<option value=1 id=\"select_server\">Service</option>";
|
|
echo "<option value=2 id=\"select_trunk\">Trunk Group</option>";
|
|
echo "</select>";
|
|
echo "</td>";
|
|
/////
|
|
echo "<td width=\"8%\" id=\"direction\" style=\"display:none;\">";
|
|
echo "Direction";
|
|
echo "</td>";
|
|
|
|
echo "<td width=\"16%\" id=\"dd\" style=\"display:none;\">";
|
|
echo "<select name=\"select_3\" onchange=\"javascript:changeType();\">";
|
|
echo "<option value=5 id=\"in\">In</option>";
|
|
echo "<option value=6 id=\"hour\">Out</option>";
|
|
echo "<option value=7 id=\"in_out\" selected>In&Out</option>";
|
|
echo "</select>";
|
|
echo "</td>";
|
|
|
|
/////
|
|
echo "<td width=\"8%\">";
|
|
echo "Interval";
|
|
echo "</td>";
|
|
|
|
echo "<td width=\"16%\">";
|
|
echo "<select name=\"select_2\" onchange=\"javascript:changeType();\">";
|
|
echo "<option value=3 id=\"day\">Dayly</option>";
|
|
echo "<option value=4 id=\"hour\">Hourly</option>";
|
|
echo "</select>";
|
|
echo "</td>";
|
|
|
|
|
|
for($i=0;$i<30;$i++)
|
|
{
|
|
$startDay[$i]=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
|
|
}
|
|
|
|
echo "<td>";
|
|
echo "Start time";
|
|
echo "</td>";
|
|
|
|
echo "<td width=\"20%\">";
|
|
echo "<select name=\"sel_date_from\" id=\"from\" onChange=\"javascript:change();\">";
|
|
for($i=0;$i<=30;$i++)
|
|
{
|
|
if($i == 0)
|
|
{
|
|
echo "<option selected value=$i>{$startDay[$i]}</option>";
|
|
}
|
|
else
|
|
{
|
|
echo "<option value=$i>{$startDay[$i]}</option>";
|
|
}
|
|
}
|
|
echo "</select>";
|
|
echo "</td>";
|
|
|
|
/////////////////////////
|
|
|
|
echo "<td>";
|
|
echo "End time";
|
|
echo "</td>";
|
|
|
|
echo "<td width=\"20%\">";
|
|
echo "<select name=\"sel_date_to\" id=\"to\" onChange=\"javascript:changeType();\">";
|
|
|
|
for($i=0;$i<=30;$i++)
|
|
{
|
|
if($i== 0)
|
|
{
|
|
echo "<option selected value=$i>{$startDay[$i]}</option>";
|
|
}
|
|
else
|
|
{
|
|
echo "<option value=$i>{$startDay[$i]}</option>";
|
|
}
|
|
}
|
|
echo "</select>";
|
|
echo "</td>";
|
|
|
|
|
|
echo "<td width=\"8%\">";
|
|
echo "Merge";
|
|
|
|
echo "<input type=checkbox name=\"bxx\" id=\"box\" onchange=\"javascript:changeType();\" checked >";
|
|
|
|
echo "</td>";
|
|
|
|
///////////////////////////////
|
|
|
|
echo "<td>";
|
|
echo "<input type=submit value=\"Search\" onClick=\"javascript::checked();\" >";
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
|
|
echo "<tr id=\"element\" style=\"display:;\">";
|
|
echo "<td colspan=10>";
|
|
echo "<table border=0 width=100%>";
|
|
echo "<tr>";
|
|
|
|
echo "<td width=5>";
|
|
echo "<input type=checkbox name=\"bxx_1\" id=\"0\">";
|
|
echo "</td>";
|
|
|
|
echo "<td>";
|
|
echo "SUB SUB";
|
|
echo "</td>";
|
|
|
|
echo "<td width=5>";
|
|
echo "<input type=checkbox name=\"bxx_2\" id=\"1\">";
|
|
echo "</td>";
|
|
|
|
echo "<td>";
|
|
echo "SUB TRK";
|
|
echo "</td>";
|
|
|
|
echo "<td width=5>";
|
|
echo "<input type=checkbox name=\"bxx_3\" id=\"2\" >";
|
|
echo "</td>";
|
|
|
|
echo "<td>";
|
|
echo "TRK SUB";
|
|
echo "</td>";
|
|
|
|
echo "<td width=5>";
|
|
echo "<input type=checkbox name=\"bxx_4\" id=\"3\">";
|
|
echo "</td>";
|
|
|
|
echo "<td>";
|
|
echo "TRK IP";
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
|
|
echo "<tr>";
|
|
|
|
echo "<td width=5>";
|
|
echo "<input type=checkbox name=\"bxx_5\" id=\"4\">";
|
|
echo "</td>";
|
|
|
|
echo "<td>";
|
|
echo "TRK TRK";
|
|
echo "</td>";
|
|
|
|
echo "<td width=5>";
|
|
echo "<input type=checkbox name=\"bxx_6\" id=\"5\">";
|
|
echo "</td>";
|
|
|
|
echo "<td>";
|
|
echo "INTRA";
|
|
echo "</td>";
|
|
|
|
echo "<td width=5>";
|
|
echo "<input type=checkbox name=\"bxx_7\" id=\"6\">";
|
|
echo "</td>";
|
|
|
|
echo "<td>";
|
|
echo "SUB IP";
|
|
echo "</td>";
|
|
|
|
echo "<td width=5>";
|
|
echo "<input type=checkbox name=\"bxx_8\" id=\"7\">";
|
|
echo "</td>";
|
|
|
|
echo "<td>";
|
|
echo "IP";
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
|
|
|
|
|
|
echo "<tr>";
|
|
|
|
echo "<td width=5>";
|
|
echo "<input type=checkbox name=\"bxx_9\" id=\"checkbox_8\" checked>";
|
|
echo "</td>";
|
|
|
|
echo "<td>";
|
|
echo "MO";
|
|
echo "</td>";
|
|
|
|
echo "<td width=5>";
|
|
echo "<input type=checkbox name=\"bxx_10\" id=\"checkbox_9\" checked>";
|
|
echo "</td>";
|
|
|
|
echo "<td>";
|
|
echo "MT";
|
|
echo "</td>";
|
|
|
|
echo "<td width=5>";
|
|
echo "<input type=checkbox name=\"bxx_11\" id=\"checkbox_10\">";
|
|
echo "</td>";
|
|
|
|
echo "<td>";
|
|
echo "IN TRK";
|
|
echo "</td>";
|
|
|
|
echo "<td width=5>";
|
|
echo "<input type=checkbox name=\"bxx_12\" id=\"checkbox_11\">";
|
|
echo "</td>";
|
|
|
|
echo "<td>";
|
|
echo "OUT TRK";
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
|
|
echo "</table>";
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
|
|
|
|
echo "<tr id=\"tg_type_id\" style=\"display:none;\">";
|
|
echo "<td colspan=10>";
|
|
echo "<table border=0 width=100%>";
|
|
|
|
|
|
for($i=0;$i<32;$i++)
|
|
{
|
|
echo "<tr>";
|
|
for($j=0;$j<8;$j++)
|
|
{
|
|
echo "<td>";
|
|
$value="tg".($i*8+$j);
|
|
echo "<input type=checkbox id=\"($i*8+$j)\" name=\"{$value}\" onClick=\"javascript:change_box(this);\" >";
|
|
echo "TG ".($i*8+$j);
|
|
echo "</td>";
|
|
}
|
|
echo "</tr>";
|
|
}
|
|
|
|
echo "</table>";
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
|
|
|
|
echo "</table>";
|
|
echo "</form>";
|
|
|
|
adjust_content_tail();
|
|
?>
|
|
|