2 include 'core.inc.php';
4 function pageHeader() {
5 //header("Content-type: image/png");
6 echo "<html><head><title>KPS</title>";
7 echo '<link rel="shortcut icon" href="favicon.ico" >';
8 echo "<title></title>";
10 echo " <p><h1>Kernel Evolvement</h1></p>";
11 echo "<P ALIGN=LEFT><A HREF='./index.php'>Back to home</A></P>";
13 <script type="text/javascript"><!--
14 google_ad_client = "pub-0572408394016670";
15 /* 728x90, 创建于 09-8-19 */
16 google_ad_slot = "9359775421";
17 google_ad_width = 728;
18 google_ad_height = 90;
21 <script type="text/javascript"
22 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
26 function pageFooter() {
27 echo "</body></html>";
36 if ($real_name != "") {
38 } else if ($tf_name != "") {
39 $sql = 'select * from kps where name like "%'.$tf_name.'%" and class = '.$c_class;
40 $result = runSQL($sql);
43 while ($row = mysql_fetch_array($result)) {
44 if (!in_array($row['name'], $name_list)) {
45 $name_list[$i] = $row['name'];
49 if (count($name_list) == 1)
50 $name = $name_list[0];
51 else if ((count($name_list) == 0) && ($tf_name))
56 <form id
="form1" name
="form1" method
="post" action
=""><table
><tr
>
58 if (count($name_list) > 1) {
59 $count = count($name_list);
60 echo '<td><select name="real_name" size="8" tabindex="115" onKeyDown="javascript:if(event.keyCode==13) form1.Submit_Search.focus();">';
61 for ($i = 0; $i < $count; $i++
)
62 echo '<option value="'.htmlspecialchars($name_list[$i]).
63 '"> '.htmlspecialchars($name_list[$i]).' </option>';
64 echo '</select></td>';
66 echo '<td><input name="tf_name" type="text" id="tf_name" size="32" maxlength="64" onKeyDown="javascript:if(event.keyCode==13) form1.Submit_Search.focus();"/>';
69 <td
><label
><select name
="c_class">
70 <option
<?php
if ($c_class == 0) echo "selected='selected'"; ?
> value
="0"> People
</option
>
71 <option
<?php
if ($c_class == 1) echo "selected='selected'"; ?
> value
="1"> Employer
</option
>
72 </select
></label
></td
>
73 <td
><input name
="Submit_Search" type
="submit" id
="Submit_Search" value
="Search" />
75 $tmp_class = ($c_class == 0)?
"People":"Employer";
77 echo ' '.$tmp_class.' "'.htmlspecialchars($tf_name).
84 $new = htmlspecialchars($name);
86 $new = "Whole Kernel";
87 echo " Commit of \"".$new."\"<br>";
89 echo "<form><table><tr>";
90 echo "<td><img src=./drawimg.php?action=commit&id=$id></td>";
95 echo "<td><img src=./drawimg.php?action=rank&id=$id></td>";
97 echo "<td><img src=./drawimg.php?action=who></td>";
99 echo "</tr></table></form>";