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

📄 search_doc_do.php3

📁 FIREFLY 是一个多用户专业帮助桌面系统
💻 PHP3
字号:
<?######################################################### SEARCH DOCS DO#######################################################/* init */include ("../include/config.php3");$title="Lookup Documentation";include "../include/header.inc";echo "<body bgcolor=#BBBCC2>";$or_topics=URLENCODE($topics);if (isset($topics))     $topics= SEARCH_STRING_TO_ARRAY($topics);     else     $topics=""; $result=SQL_SEARCH_DOCS($dbproc, $mine, $type_doc, $products, $topics, $sort, $way, $user);if ($result!=-1){  $numrows=SQL_NUM_ROWS($result);  echo "<TABLE width='80%' cellspacing='0' cellpadding='2'><TR><TD class='color_title'>\n";  echo "<h1>$msg_thereis $numrows $msg_approching_docs</h1>";  echo "</TD></TR><TR></TR></TABLE>";  if ( $way=="desc")    $way="asc";  else $way="desc";  if (is_array($products))    {      for ($index=0;$index<count($products);$index++)	$str.="&products[$index]=".$products[$index];    }  if (is_array($type_doc))    {      for ($index=0;$index<count($type_doc);$index++)	$str.="&type_doc[$index]=".$type_doc[$index];    }  echo "  <TABLE width='80%' cellspacing='0' cellpadding='2'>\n";  echo "    <TR>\n";  echo "      <TD class=\"color_title\"><a class=\"color_title\" target='doc_content' href='".$PHP_SELF."?sort=id&way=$way&topics=$topics".$str."'>Ref</a></TD>\n";  echo "      <TD class=\"color_title\"><a class=\"color_title\" target='doc_content' href='".$PHP_SELF."?sort=type&way=$way&topics=$topics".$str."'>$msg_type</a></TD>\n";  echo "      <TD class=\"color_title\"><a class=\"color_title\" target='doc_content' href='".$PHP_SELF."?sort=login_id&way=$way&topics=$topics".$str."'>$msg_author</a></TD>\n";  echo "      <TD class=\"color_title\"><a class=\"color_title\" target='doc_content' href='".$PHP_SELF."?sort=short_desc&way=$way&topics=$topics".$str."'>$msg_title</a></TD>\n";  echo "    </TR>\n";  $rows=SQL_FETCH_RESULT($result);  $class = "color_title";  for ($index=0;$index<count($rows);$index++)    {      if ($class=="color_title")	$class='tdcl';      else $class='color_title';      echo "    <TR>\n";      echo "      <TD class='$class'><a class='$class' href='display_doc.php3?topics=$or_topics&doc_id=".$rows[$index]["id"]."' target='doc_content'>". $rows[$index]["id"]. "</a></TD>\n";      echo "      <TD class='$class'>" . SQL_READ_DOC_TYPE($dbproc,$rows[$index]["type"] ). "&nbsp;</TD>\n";      $tp= SQL_READ_LOGIN($dbproc,$rows[$index]["login_id"]);      if (is_array($tp))	{	  $ent_id=$tp[0]['ent_id'];	  $entity=SQL_READ_ENTITY($dbproc, $ent_id);	  switch ($entity[0]['ent_typ_id'])	    {	    case 1:	      $cmp_id=SQL_ENTID_TO_CMPID($dbproc, $ent_id);	      $cmp=SQL_READ_CMP($dbproc, $cmp_id);	      $author=$cmp[0]['cmp_name'];	      break;	    case 2:	      $per_id=SQL_ENTID_TO_PERID($dbproc, $ent_id);	      $per=SQL_READ_CONTACT($dbproc, $per_id);	      $author=$per[0]['per_firstname'].' '.$per[0]['per_lastname'];	      break;	    }	}      else	$author="";      echo "      <TD class='$class'>" . $author. "&nbsp;</TD>\n";      echo "      <TD class='$class'>" . HIGHLIGHT(STRIP_SLASHES($rows[$index]["short_desc"]), $topics) ."&nbsp;</TD>\n";      if ($user->access_level<=100)     	echo "      <TD>" .	  "<a href='add_doc_form.php3?mode=edit&doc_id=".$rows[$index]["id"]."&mode=edit' target='doc_content'>".	  $msg_edit."</a>              </TD>\n";      if ((isset($from_table)) && (isset($from_id)) && ($mode=="add_link"))	echo "      <TD class='$class'>" .	  "<a class='$class' href='add_link_form.php3?from_table=$from_table&from_id=".$from_id.	  "&mode=add_link&to_id=".$rows[$index]["id"]."&to_table=docs'>link to docs ".$from_id."</a>              </TD>\n";      echo "    </TR>\n";    }  echo "  </TABLE>";}else{  echo $msg_no_doc;}include "../include/footer.inc";?>

⌨️ 快捷键说明

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