我想找出一些东西!
我有以下代码
if ($value = $rec['ip'] <= $cphigh_ip && $cplow_ip <= $value = $rec['ip']) {
$cpyes="on ";
$number= $value = $rec['ip'];
$whmLink=$number[strlen($number)-1];
}
else {
$cpno="not on cPanel";
}
我这下面还有一个按钮
<td><input type="submit" name="cPanelButton" onClick="window.location.href='https://www.<?=$variable; ?>.test.com'" value="cPanel"></td>
我想在else
添加隐藏按钮的地方 - 任何想法?
编辑:
?>
<table border=1>
<tr>
<td>Domain IP:</td>
<td><?=$ipyes.$ipno.$cpyes.$cpno;?><input type="submit" name="cPanelButton" onClick="window.location.href='https://www.<?=$variable; ?>.test.com'" value="cPanel"></td>
</tr>
<tr>
<td>Mail Exchange:</td>
<td><?=$yesMail.$yesHost.$noMail;?></td>
</tr>
<tr>
<td>Key DNS Records:</td>
<td colspan='2'><?=$dnsString;?></td>
</tr>
</table>
<?php
答案 0 :(得分:1)
您只需将按钮移动到/* Adjust this in your inner page (common.css, line 906) */
body {
/* Other styles omitted for brevity */
overflow-x: auto;
}
块中即可:
if
但是,您可能更愿意将表示和逻辑分开,以防止代码过于丑陋。