function options($site_id) { global $db; $row = $db->get_one("select * from ve123_sites where site_id='" . $site_id . "'"); ?> <table width="100%" border="1" align="center" cellpadding="5" cellspacing="0" bordercolordark="#FFFFFF" bordercolor="888888"> <form id="form1" name="form1" method="post" action="?action=saveform"> <tr> <td width="100">网址:</td> <td><?php echo "<a target=\"_blank\" href=\"" . $row["url"] . "\">" . $row["url"]; ?> </a></td> </tr> <!--<tr> <td>上次更新时间:</td> <td><?php echo date("Y-m-d H:i:s", $row["indexdate"]); ?> </td> </tr>--> <tr> <td>共收录网页:</td> <td><font class="red"><?php echo count_links($row["url"]); ?> </font> 页</td> </tr> <tr> <td>索引深度:</td> <td><font class="red"><?php echo $row["spider_depth"]; ?> </font> (0表示只收首页)</td> </tr> <tr> <td>管理操作:</td> <td> <!--<a href="?action=update_qp&site_id=<?php echo $row["site_id"]; ?> ">更新qp</a> --> <a href="start.php?action=add_new_page&site_id=<?php echo $row["site_id"]; ?> ">小蜘蛛-收录</a> <a href="start.php?action=add_in_site_link&site_id=<?php echo $row["site_id"]; ?> ">大蜘蛛-收录</a> <a href="?action=update_in_site_all_links&url=<?php echo $row["url"]; ?> ">更新所有网页</a> <a href="?action=qiangzhi_update_links&url=<?php echo $row["url"]; ?> ">强制更新</a> <a href="links.php?action=search&url=<?php echo getdomain($row["url"]); ?> ">浏览所收录</a> <a onclick="if(!confirm('确认清空码?')) return false;" href="?action=dell_links&url=<?php echo $row["url"]; ?> ">清空所有网页</a> <a href="?action=modify&site_id=<?php echo $row["site_id"]; ?> ">修改</a> </td> </tr> </form> </table> <?php }
} $offset = ($page - 1) * $pagesize; $result = $db->query($sql . " order by site_id desc limit {$offset},{$pagesize}"); while ($row = $db->fetch_array($result)) { ?> <tr> <td align="center"><?php echo $row["site_id"]; ?> </td> <td><?php echo "<a href=\"" . $row["url"] . "\" target=\"_blank\">" . $row["url"] . "</a>"; ?> </td> <td align="center"><font class="red"><?php echo count_links($row["site_id"]); ?> </font></td> <td> <a href="?action=modify&site_id=<?php echo $row["site_id"]; ?> ">修改</a> <a href="?action=zhua_sites&site_id=<?php echo $row["site_id"]; ?> ">抓全站</a> <a href="?action=geng_sites&site_id=<?php echo $row["site_id"]; ?> ">更新已抓站</a>
function options($site_id) { global $db; $row = $db->get_one("select * from ve123_sites where site_id='" . $site_id . "'"); echo '<table width="100%" border="0" cellpadding="3" cellspacing="1" class="tablebg"> <form id="form1" name="form1" method="post" action="?action=saveform"> <tr> <td width="100">网址:</td> <td>'; echo "<a target=\"_blank\" href=\"" . $row['url'] . "\">" . $row['url']; echo '</a></td> </tr> <!--<tr> <td>上次更新时间:</td> <td>'; echo date('Y-m-d H:i:s', $row['indexdate']); echo '</td> </tr>--> <tr> <td>共收录网页:</td> <td><font class="red">'; echo count_links($row['url']); echo '</font> 页</td> </tr> <tr> <td>索引深度:</td> <td><font class="red">'; echo $row['spider_depth']; echo '</font> (0表示只收首页)</td> </tr> <tr> <td>管理操作:</td> <td> <!--<a href="?action=update_qp&site_id='; echo $row['site_id']; echo '">更新qp</a>--> <!--<a href="spider.php?action=update_links&site_id='; echo $row['site_id']; echo '">更新所有网页</a> <a href="spider.php?action=add_new_page&site_id='; echo $row['site_id']; echo '">收录新的网页</a>--> <a href="links.php?action=search&url='; echo $row['url']; echo '">浏览所收录的网页</a> <a onclick="if(!confirm(\'确认删除码?\')) return false;" href="?action=dell_links&url='; echo $row['url']; echo '">删除所有网页</a> <a href="?action=modify&site_id='; echo $row['site_id']; echo '">修改</a> </td> </tr> </form> </table> '; }
<ul> <li><span class='label'>URL: </span> <?php echo $page['url']; ?> </li> <li> <span class='label'># Incomming Links: </span> <?php echo count_links($pageID, "to"); ?> </li> <li> <span class='label'># Outgoing Links: </span> <?php echo count_links($pageID, "from"); ?> </li> <?php unset($page['title']); unset($page['ID']); unset($page['URL']); unset($page['crawled']); ?> <?php foreach ($page as $field => $value) { ?> <li><span class='label'><?php echo $field; ?> :</span><?php