コードに示されているように。ユーザーは、6つの入力ボックスの1つにデータを入力します。クエリ結果はに返されます(例<td width="55%" bgcolor="#FFFFFF" class="tLBL1l" id="PROC_CODE" name="PROC_CODE"> </td>
:)
<td><tr>
クエリ結果が返されない限り、空白を非表示にする必要があります。
コードは長いですが、かなり単純で簡単です。基本的に、ユーザーは1つのレコードを照会し、1つのレコードが表示されます。ユーザークエリ4レコード4レコード表示。
私はすでにデータベースが機能していて、必要な結果を引き出しています。空白のテーブルデータを非表示にする方法がわかりません。
enter code here
<body style="text-align: center">
<a name="top"></a>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- xxxxxxx Logo -->
<td height="50" width="150">
<a href="http://xxxxxxx.xxxxxxx.com"><img src="http://xxxxxxx.xxxxxxx.com/contentowners/xxxxxxx_template/js/images/xxxxxxx_50.gif" alt="xxxxxxx" width="150"
height="50" border="0"></a>
</td>
<!-- xxxxxxx Search -->
<td height="50" align="right">
<iframe src="/provider_services/search.html" name="search" id="search" width="475" height="50" marginwidth="0" marginheight="0" align="right" scrolling="no" frameborder="0"></iframe>
</td>
</tr>
<tr>
<!-- Current Date -->
<td height="28" align="center" bgcolor="#CCFF66" class="smblue">
<script language="JavaScript" type="text/javascript" src="http://xxxxxxx.xxxxxxx.com/contentowners/xxxxxxx_template/js/date_short.js">
</script>
</td>
<td height="28" bgcolor="#99CC33">
<!-- Top Navigation (optional for your site) -->
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="topnav" id="TOPNAV"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- left col -->
<td width="150" valign="top" bgcolor="#ADD1EE">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<!-- Insert your site name here -->
<!-- Link this text to your homepage or main index -->
<h5 align="center" class="white"><img src="../../images/psc_logo_150x150.jpg" width="150" height="150"></h5></td>
<body onLoad="loadCommon();" style="text-align: center">
<script src="../../psc_nav_bar.js" language="javascript" type="text/javascript"></script>
<td class="leftnav" id="LEFTNAV">
</table>
</td>
<!--center col -->
<td valign="top">
<!-- begin content table -->
<form action="" method="post" name="frmTracking" id="frmTracking" onReset="clearControls(this);">
<input type="hidden" name="recordID" value="">
<p>
<br> <table width="100%" border="0" align="center">
<tr align="left">
<td align="left"> <p><U><strong>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <br></p>
</td>
</tr>
</table>
<table width="100%" border="0" align="center">
<tr align="left">
<td align="left">
<input name="searchRecord" id="searchRecord" type="text" size="8" maxlength="8">
<input name="searchRecord" id="searchRecord" type="text" size="8" maxlength="8">
<input name="searchRecord" id="searchRecord" type="text" size="8" maxlength="8">
<input name="searchRecord" id="searchRecord" type="text" size="8" maxlength="8">
<input name="searchRecord" id="searchRecord" type="text" size="8" maxlength="8">
<input name="searchRecord" id="searchRecord" type="text" size="8" maxlength="8">
</td>
</tr>
<td> <div id="TRACKBUTTONS" align="center">
<input type="button" name="btnFind" value="Find"
class="cmdBtn" onClick="return getDBRecord(this.form);"><input type="button" name="reset_form" value="Clear" onclick="this.form.reset(); history.go(0) " >
<!-- <input type="button" name="btnSave" value="Save" class="cmdBtn" title="Save current entry" onClick="return updateDBRecord(this.form);"> -->
</div></td>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr bgcolor="#F0F0F0">
<td colspan="5" align="center" class="th2">Procedure Code Record</td>
</tr>
<tr bgcolor="#F0F0F0">
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Procedure Code </td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" bgcolor="#FFFFFF" class="tLBL1l" id="PROC_CODE" name="PROC_CODE"> </td>
</tr>
<tr bgcolor="#F0F0F0">
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Medicare Advantage </td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" bgcolor="#FFFFFF" class="tLBL1l" id="MEDICARE" name="MEDICARE"> </td>
</tr>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Procedure</td>
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="STATUS"> </td>
<tr>
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Specialty</td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" class="tLBL1l" id="xxxxxxx_ID"> </td>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Precert Type
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1">
<td width="55%" class="tLBL1l" id="SYS_APP"> </td>
</td>
<td class="tLBL1l" id="DETAILS3"> </td>
<td width="1%" class="tdFieldHeadingsR1"> </td>
<td width="5%" class="tLBL1l" id="td"> </td>
<tr>
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Review Type:</td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="SUBMITTER"> </td>
<td class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="td"> </td>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Guidelines:</td>
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="EMAIL"> </td>
<td class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="td4"> </td>
<tr bgcolor="#F0F0F0">
<td colspan="5" align="center" class="th2">Procedure Code Record1</td>
</tr>
<tr bgcolor="#F0F0F0">
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Procedure Code </td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" bgcolor="#FFFFFF" class="tLBL1l" id="PROC_CODE1" name="PROC_CODE"> </td>
</tr>
<tr bgcolor="#F0F0F0">
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Medicare Advantage </td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" bgcolor="#FFFFFF" class="tLBL1l" id="MEDICARE1" name="MEDICARE"> </td>
</tr>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Procedure</td>
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="STATUS1"> </td>
<tr>
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Specialty</td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" class="tLBL1l" id="xxxxxxx_ID1"> </td>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Precert Type
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1">
<td width="55%" class="tLBL1l" id="SYS_APP1"> </td>
</td>
<td class="tLBL1l" id="DETAILS31"> </td>
<td width="1%" class="tdFieldHeadingsR1"> </td>
<td width="5%" class="tLBL1l" id="td"> </td>
<tr>
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Review Type:</td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="SUBMITTER1"> </td>
<td class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="td"> </td>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Guidelines:</td>
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="EMAIL1"> </td>
<td class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="td4"> </td>
<!--3rd set -->
<tr bgcolor="#F0F0F0">
<td colspan="5" align="center" class="th2">Procedure Code Record2</td>
</tr>
<tr bgcolor="#F0F0F0">
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Procedure Code </td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" bgcolor="#FFFFFF" class="tLBL1l" id="PROC_CODE2" name="PROC_CODE"> </td>
</tr>
<tr bgcolor="#F0F0F0">
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Medicare Advantage </td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" bgcolor="#FFFFFF" class="tLBL1l" id="MEDICARE2" name="MEDICARE"> </td>
</tr>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Procedure</td>
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="STATUS2"> </td>
<tr>
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Specialty</td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" class="tLBL1l" id="xxxxxxx_ID2"> </td>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Precert Type
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1">
<td width="55%" class="tLBL1l" id="SYS_APP2"> </td>
</td>
<td class="tLBL1l" id="DETAILS32"> </td>
<td width="1%" class="tdFieldHeadingsR1"> </td>
<td width="5%" class="tLBL1l" id="td"> </td>
<tr>
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Review Type:</td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="SUBMITTER2"> </td>
<td class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="td"> </td>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Guidelines:</td>
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="EMAIL2"> </td>
<td class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="td4"> </td>
<!--4th set -->
<tr bgcolor="#F0F0F0">
<td colspan="5" align="center" class="th2">Procedure Code Record3</td>
</tr>
<tr bgcolor="#F0F0F0">
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Procedure Code </td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" bgcolor="#FFFFFF" class="tLBL1l" id="PROC_CODE3" name="PROC_CODE"> </td>
</tr>
<tr bgcolor="#F0F0F0">
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Medicare Advantage </td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" bgcolor="#FFFFFF" class="tLBL1l" id="MEDICARE3" name="MEDICARE"> </td>
</tr>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Procedure</td>
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="STATUS3"> </td>
<tr>
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Specialty</td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" class="tLBL1l" id="xxxxxxx_ID3"> </td>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Precert Type
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1">
<td width="55%" class="tLBL1l" id="SYS_APP3"> </td>
</td>
<td class="tLBL1l" id="DETAILS33"> </td>
<td width="1%" class="tdFieldHeadingsR1"> </td>
<td width="5%" class="tLBL1l" id="td"> </td>
<tr>
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Review Type:</td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="SUBMITTER3"> </td>
<td class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="td"> </td>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Guidelines:</td>
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="EMAIL3"> </td>
<td class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="td4"> </td>
<!--5th set -->
<tr bgcolor="#F0F0F0">
<td colspan="5" align="center" class="th2">Procedure Code Record4</td>
</tr>
<tr bgcolor="#F0F0F0">
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Procedure Code </td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" bgcolor="#FFFFFF" class="tLBL1l" id="PROC_CODE4" name="PROC_CODE"> </td>
</tr>
<tr bgcolor="#F0F0F0">
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Medicare Advantage </td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" bgcolor="#FFFFFF" class="tLBL1l" id="MEDICARE4" name="MEDICARE"> </td>
</tr>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Procedure</td>
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="STATUS4"> </td>
<tr>
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Specialty</td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" class="tLBL1l" id="xxxxxxx_ID4"> </td>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Precert Type
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1">
<td width="55%" class="tLBL1l" id="SYS_APP4"> </td>
</td>
<td class="tLBL1l" id="DETAILS34"> </td>
<td width="1%" class="tdFieldHeadingsR1"> </td>
<td width="5%" class="tLBL1l" id="td"> </td>
<tr>
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Review Type:</td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="SUBMITTER4"> </td>
<td class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="td"> </td>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Guidelines:</td>
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="EMAIL4"> </td>
<td class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="td4"> </td>
<!--6th set -->
<tr bgcolor="#F0F0F0">
<td colspan="5" align="center" class="th2">Procedure Code Record5</td>
</tr>
<tr bgcolor="#F0F0F0">
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Procedure Code </td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" bgcolor="#FFFFFF" class="tLBL1l" id="PROC_CODE5" name="PROC_CODE"> </td>
</tr>
<tr bgcolor="#F0F0F0">
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Medicare Advantage </td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" bgcolor="#FFFFFF" class="tLBL1l" id="MEDICARE5" name="MEDICARE"> </td>
</tr>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Procedure</td>
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="STATUS5"> </td>
<tr>
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Specialty</td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td width="55%" class="tLBL1l" id="xxxxxxx_ID5"> </td>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Precert Type
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1">
<td width="55%" class="tLBL1l" id="SYS_APP5"> </td>
</td>
<td class="tLBL1l" id="DETAILS35"> </td>
<td width="1%" class="tdFieldHeadingsR1"> </td>
<td width="5%" class="tLBL1l" id="td"> </td>
<tr>
<td width="12%" align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Review Type:</td>
<td width="1%" align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="SUBMITTER5"> </td>
<td class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="td"> </td>
<tr>
<td align="right" bgcolor="#CCCCCC" class="tdFieldHeadingsR1">Guidelines:</td>
<td align="right" bgcolor="#FFFFFF" class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="EMAIL5"> </td>
<td class="tdFieldHeadingsR1"> </td>
<td class="tLBL1l" id="td4"> </td>
<!-- <tr id="rowTIN">
<td align="right" class="tdFieldHeadingsR">Change Status</td>
<td class="tdFieldHeadingsR"> </td>
<td colspan="3" class="tdFieldHeadingsR"><!-- <input name="txtTinPin" type="text" title="TIN/PIN" value="" size="12"> -->
<!-- <label for="txtTinPin"></label>
<select name="txtTinPin2" size="1" id="txtTinPin">
<option value="Open" selected>Open</option>
<option value="Closed">Closed</option>
</select></td>
</tr>
<tr id="rowControlNumber">
<td align="right" valign="top" class="tdFieldHeadingsR">Handler Notes</td>
<td class="tdFieldHeadingsR"> </td>
<td colspan="3" class="tdFieldHeadingsR"><textarea name="txtControl" cols="50" rows="8" title="Handler Notes"></textarea></td>
</tr> -->
<tr align="center">
<td colspan="5">
<p></p>
</td>
</tr>
</table>
</form>
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td valign="top">
<p align="center">
<img src="http://xxxxxxx.xxxxxxx.com/contentowners/xxxxxxx_template/js/images/up_arrow.gif" alt="" width="12" height="13" border="0" align="middle"> <a href="#top" class="top">top of page</a></td>
<!-- Right column for boxes -->
</tr>
</table>
<!-- end content table -->
</td>
</tr>
<!-- end center column -->
<tr>
<td colspan="2">
<hr size="1">
</td>
</tr>
</table>
<a href="http://www.xxxxxxx.com/">
<img src=
"http://xxxxxxx.xxxxxxx.com/contentowners/xxxxxxx_template/js/images/logo_footer.gif" alt="xxxxxxx" width="149" height="65" border="0" align="right"></a>
<!-- begin footer -->
<p align="left" class="pubinfo" id="PUBINFO">
</body>