⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 计算卫星天线角度
💻 PHP
字号:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" >
<?php require_once("connect.php")?>
<form action=index.php method=post>
<center>
<table border=0>
<tr><td colspan=2 height=100>
<tr align=center><th colspan=2>卫星天线参数查询表<hr color=red>
<tr><td>请输入卫星名称:<td><input type=text name=name>
<tr><td>请输入接收地名称:<td><input type=text name=address>
<tr align=center><td><input type=submit name=sub value=确定><td><input type=reset value=重填>
<tr><td colspan=2 height=30><hr color=red><br>
<tr><td><a href=num.php>自己输入参数计算</a><td><a href=info.php>旬阳地区参数浏览</a>
<tr><td><a href=add.php>数据库添加</a>
</table>
</center>
</form>
<?php
if(isset($sub)){
   if($name==""||$address==""){
   echo "<center>";
   echo "<B><font color=red size=3>信息没有填写完整!</font></b></center>";
   } else{
connect();
mysql_select_db(test);
$name=trim($name);
$address=trim($address);
$sql="select * from ufotab where sname like '%$name%'";
$sql1="select * from addrtab where addrname like '%$address%'";
$result=mysql_query($sql);
$result1=mysql_query($sql1);
if($row1=mysql_fetch_array($result1)){
echo ("<center>");
echo ("<table border=1 bgcolor=gray>");
   while($row=mysql_fetch_array($result)){
   echo ("<tr><th>");
   echo ("卫星名称:".trim($row[0])."&nbsp;&nbsp;接收地名称:".trim($row1[0]));
   echo ("<tr><td>");
   fangwei(trim($row[1]),trim($row1[1]),trim($row1[2]));
   echo ("<tr><td>");
   yangjiao(trim($row[1]),trim($row1[1]),trim($row1[2]));
   echo ("<tr><td>");
   jihua(trim($row[1]),trim($row1[1]));
}
echo ("</table>");
echo ("</center>");
}else {echo "<center><b>您输入的地名不存在!</b></center>";}
}
} 
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -