init web ems all
This commit is contained in:
98
wxc2_omc/account/replaceMSISDN/replace_up.php
Executable file
98
wxc2_omc/account/replaceMSISDN/replace_up.php
Executable file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function replaceMSISDN()
|
||||
{
|
||||
var page_num=document.myform.page_num.value;
|
||||
var order_field=document.myform.order_field.value;
|
||||
|
||||
var replacingMSISDN=document.myform.replacingMSISDN.value;
|
||||
var replacedMSISDN=document.myform.replacedMSISDN.value;
|
||||
|
||||
if(replacedMSISDN == "")
|
||||
{
|
||||
alert("Please input the replaced MSISDN");
|
||||
return;
|
||||
}
|
||||
if(replacingMSISDN == "" || replacingMSISDN == "Selected MSISDN")
|
||||
{
|
||||
alert("Please select the replacing MSISDN");
|
||||
return;
|
||||
}
|
||||
|
||||
var newurl="./replace_down.php?replace_opt=1&replacingMSISDN="+replacingMSISDN+"&replacedMSISDN="+replacedMSISDN+"&order_field="+order_field+"&page_num="+page_num;
|
||||
parent.replace_down.location.href=newurl;
|
||||
}
|
||||
|
||||
function selectClass()
|
||||
{
|
||||
var page_num=document.myform.page_num.value;
|
||||
var order_field=document.myform.order_field.value;
|
||||
var iClass=document.myform.class_select.value;
|
||||
|
||||
var newurl="./replace_down.php?order_field="+order_field+"&page_num="+page_num+"&classValue="+iClass;
|
||||
parent.replace_down.location.href=newurl;
|
||||
}
|
||||
</script>
|
||||
|
||||
<body leftmargin="15" rightmargin="10" onload="javascript:adjust_frame('up');" onresize="javascript:adjust_frame('up');" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
|
||||
<?php
|
||||
$canwrite_flag=checkWritePrivilege();
|
||||
echo "<form method=post action=\"replace_down.php\" name=\"myform\">";
|
||||
|
||||
adjust_head_frame("up");
|
||||
adjust_title_head_frame("up");
|
||||
echo "<table id=\"table_up\" border=0 width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=50% align=\"left\">";
|
||||
echo "Configuration > Database > Subscriber > Replace MSISDN";
|
||||
echo "</td>";
|
||||
echo "<td align=\"right\">";
|
||||
$helpId = "2.2.1.10";
|
||||
showHelp($helpId);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td align=\"left\" colspan=2>";
|
||||
|
||||
echo "Replace MSISDN ";
|
||||
|
||||
|
||||
echo "<input name=\"replacedMSISDN\" type=text class=text value=\"\">";
|
||||
echo " with ";
|
||||
echo "<input name=\"replacingMSISDN\" style=\"background-color:#cecece;\" type=text class=text readonly class=text value=\"Selected MSISDN\">";
|
||||
echo " ";
|
||||
if($canwrite_flag)
|
||||
echo "<input type=button class=button value=Replace onclick=\"javascript:replaceMSISDN();\">";
|
||||
else
|
||||
echo "<input type=button class=button disabled value=Replace onclick=\"javascript:replaceMSISDN();\">";
|
||||
echo " ";
|
||||
$classLabel=array(0=>"All",1=>"Ordinary",2=>"Premium",3=>"VIP");
|
||||
echo "Class <select size=1 name=\"class_select\" class=text onchange=\"javascript:selectClass();\">";
|
||||
for($i=0;$i<sizeof($classLabel);$i++)
|
||||
{
|
||||
echo "<option value=$i>{$classLabel[$i]}</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
|
||||
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
|
||||
|
||||
|
||||
echo "<br>";
|
||||
|
||||
|
||||
|
||||
echo "<input type=hidden name=\"page_num\" value=0>";
|
||||
echo "<input type=hidden name=\"order_field\" value=\"msisdn\">";
|
||||
echo "</form>";
|
||||
|
||||
adjust_title_tail_frame("up");
|
||||
adjust_content_head_frame("up");
|
||||
adjust_content_tail_frame("up");
|
||||
?>
|
||||
Reference in New Issue
Block a user