125 lines
3.4 KiB
PHP
Executable File
125 lines
3.4 KiB
PHP
Executable File
<?php
|
|
/********************************************************************
|
|
********************************************************************/
|
|
require("../sub_inc/commfunc.php");
|
|
$helpId = "6.2.3";
|
|
$DEBUG = 0;
|
|
|
|
|
|
//==========================================================
|
|
//变量定义
|
|
//==========================================================
|
|
$backurl = rawurldecode($backurl);
|
|
|
|
$paramTable ='OBJ_322.param_99';
|
|
$objDb = 'OBJ_322';
|
|
$pubDb = 'OMC_PUB';
|
|
$startnum = 600;
|
|
|
|
//==========================================================
|
|
//数据处理
|
|
//==========================================================
|
|
|
|
|
|
//==========================================================
|
|
//输出并显示数据
|
|
//==========================================================
|
|
?>
|
|
|
|
<body topmargin="0" leftmargin="12">
|
|
<?php
|
|
|
|
if(!isset($instanceNo) )
|
|
{
|
|
if(!isset($instanceNo))
|
|
echo "<font><b>ERROR!!:instanceNo == NULL</b></font><br>";
|
|
exit(0);
|
|
}
|
|
|
|
echo "<form method=\"POST\" name=\"setForm\" action=\"$PHP_SELF\">";
|
|
echo "<table border=\"0\" width=\"100%\">";
|
|
echo "<tr>";
|
|
echo "<td width=\"50%\">";
|
|
echo "$strConfiguration > $strNetwork > AAS";
|
|
echo "</td>";
|
|
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
|
showHelp($helpId);
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
echo "</table>";
|
|
echo "<br>";
|
|
|
|
echo "<table width=\"100%\">";
|
|
echo "<tr><td>";
|
|
echo "<b>SRF announcement</b> ";
|
|
echo "language $instanceNo ";
|
|
switch($instanceNo){
|
|
case 0:
|
|
echo "(English)";
|
|
break;
|
|
case 1:
|
|
echo "(French)";
|
|
break;
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
echo "(--)";
|
|
break;
|
|
}
|
|
//echo "<input type=\"submit\" name=\"setSys\" value=\"Save\" class=\"button\" style=\"left: 1; top: 2; width: 60; height: 25; position: relative\">";
|
|
//echo "<input type=\"reset\" name=\"reset\" value=\"Reset\" class=\"button\" style=\"left: 1; top: 2; width: 60; height: 25; position: relative\">";
|
|
echo "</td>";
|
|
echo "<td>";
|
|
echo "<p align=\"right\"><a href=\"$backurl\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">$strBack</a>";
|
|
echo "</td></tr>";
|
|
echo "<input type=\"hidden\" name=\"instanceNo\" value=\"$instanceNo\">";
|
|
echo "<input type=\"hidden\" name=\"linkset\" value=\"$linkset\">";
|
|
echo "<input type=\"hidden\" name=\"sysId\" value=\"$sysId\">";
|
|
echo "<input type=\"hidden\" name=\"backurl\" value=\"$backurl\">";
|
|
|
|
echo "</table>";
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
echo "<table border=\"1\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\">";
|
|
echo "<tr bgcolor=\"#E6E6E6\">";
|
|
echo "<td width=\"5%\" ><b>No.</b></td>";
|
|
echo "<td><b>Announcement</b></td>";
|
|
echo "</tr>";
|
|
|
|
$path = "language0".$instanceNo."/";
|
|
//echo "$objWhereStr<br>";
|
|
$selSql = " SELECT instance ,showfiled FROM aasAnnounce where name='SRF' order by instance";
|
|
$Result = @mysqli_query($pubConn,$selSql);
|
|
$conut = mysqli_num_rows($Result);
|
|
$num = $startnum;
|
|
for($i=0; $i< $conut;$i++){
|
|
|
|
echo "<tr><td>$i</td>";
|
|
echo "<td><table>";
|
|
$Row = @mysqli_fetch_array($Result);
|
|
$num = $Row[instance];
|
|
echo "<td>$Row[showfiled]</td>";
|
|
$fullpath =$path.$num;
|
|
echo "<td width=\"5%\"><a href=./voiceplay.php?voicefile=$fullpath&sysId=$sysId>Play</a></td>";
|
|
echo "<td width=\"5%\"><a href=./uploadfile.php?voicefile=$fullpath&sysId=$sysId>Change</a></td>";
|
|
echo "<td width=\"5%\"><a href=./uploadfile.php?voicefile=$fullpath&default=1&sysId=$sysId>Default</a></td>";
|
|
echo "</table></td></tr>";
|
|
$num++;
|
|
}
|
|
|
|
echo "</table> ";
|
|
|
|
|
|
?>
|
|
|
|
</form>
|
|
</body>
|
|
</html>
|