本文整理汇总了PHP中category::notice_count方法的典型用法代码示例。如果您正苦于以下问题:PHP category::notice_count方法的具体用法?PHP category::notice_count怎么用?PHP category::notice_count使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类category
的用法示例。
在下文中一共展示了category::notice_count方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
$has_link = true;
$odd_even = 1;
$categ_renvoivoiraussi_content .= "\n\t\t\t<div class='row'>\n \t\t<label for='' class='etiquette'>{$msg['categ_renvoivoiraussi']}</label>\n \t</div>\n \t<div class='row'>\n \t\t<table>";
while ($row = mysql_fetch_object($res)) {
$tcateg = new category($row->id_noeud);
$categ_renvoivoiraussi_content .= "\t<tr class='even'>";
if ($odd_even == 0) {
$categ_renvoivoiraussi_content .= "\t<tr class='odd'>";
$odd_even = 1;
} else {
if ($odd_even == 1) {
$categ_renvoivoiraussi_content .= "\t<tr class='even'>";
$odd_even = 0;
}
}
$notice_count = $tcateg->notice_count(false);
$categ_renvoivoiraussi_content .= "<td class='colonne80'>";
if ($tcateg->has_child) {
$categ_renvoivoiraussi_content .= "<a href='./autorites.php?categ=categories&sub=&id=0&parent=" . $tcateg->id . "'>";
$categ_renvoivoiraussi_content .= "<img src='./images/folderclosed.gif' hspace='3' border='0'></a>";
} else {
$categ_renvoivoiraussi_content .= "<img src='./images/doc.gif' hspace='3' border='0'>";
}
if ($tcateg->commentaire) {
$zoom_comment = "<div id='zoom_comment" . $tcateg->id . "' style='border: solid 2px #555555; background-color: #FFFFFF; position: absolute; display:none; z-index: 2000;'>";
$zoom_comment .= htmlentities($tcateg->commentaire, ENT_QUOTES, $charset);
$zoom_comment .= "</div>";
$java_comment = " onmouseover=\"z=document.getElementById('zoom_comment" . $tcateg->id . "'); z.style.display=''; \" onmouseout=\"z=document.getElementById('zoom_comment" . $tcateg->id . "'); z.style.display='none'; \"";
} else {
$zoom_comment = "";
$java_comment = "";
示例2: htmlentities
function aut_list()
{
global $search_subject;
global $search_indexint, $search_indexint_id;
global $msg;
global $charset;
global $show_empty;
$pair_impair = "";
$parity = 0;
if ($search_subject) {
$human[] = "<b>" . $msg["histo_subject"] . "</b> " . htmlentities(stripslashes($search_subject), ENT_QUOTES, $charset);
}
if ($search_indexint) {
$human[] = "<b>" . $msg["histo_indexint"] . "</b> " . htmlentities(stripslashes($search_indexint), ENT_QUOTES, $charset);
}
$this->human_query = implode(", ", $human);
$this->human_aut_query = implode(", ", $human);
if ($this->nb_s) {
$empty = false;
print "<strong>{$msg[23]} : " . sprintf($msg["searcher_results"], $this->nb_s) . "</strong><hr /><table>";
while ($categ = @pmb_mysql_fetch_object($this->s_query)) {
$pair_impair = $parity % 2 ? "even" : "odd";
$temp = new category($categ->categ_id);
if ($temp->voir_id) {
$cr = $temp->catalog_form;
$temp = new category($temp->voir_id);
$display = htmlentities($cr, ENT_QUOTES, $charset) . " -> <i>" . htmlentities($temp->catalog_form, ENT_QUOTES, $charset) . "@</i>";
} else {
$display = htmlentities($temp->catalog_form, ENT_QUOTES, $charset);
}
if ($temp->has_notices()) {
$notice_count = $temp->notice_count(false);
$link_categ = "<td><a href='" . $this->base_url . "&aut_id=" . $temp->id . "&aut_type=categ&etat=aut_search'>{$display}</a></td><td>{$notice_count}</td>";
} else {
$empty = true;
if ($show_empty) {
$link_categ = "<td>{$display}</td><td></td>";
} else {
$link_categ = "";
}
}
if ($link_categ) {
print "<tr class=\"{$pair_impair}\">{$link_categ}</tr>";
}
}
print "</table>";
if ($empty && !$show_empty) {
print "<a href='#' onClick=\"document.store_search.show_empty.value=1; document.store_search.page.value=0; document.store_search.submit(); return false;\">" . $msg["searcher_categ_empty_results"] . "</a>";
}
}
if ($this->nb_i || $this->nb_id) {
if ($this->nb_id) {
print "<br /><strong>{$msg[indexint_catal_title]} " . $msg["searcher_exact_indexint"] . ": " . sprintf($msg["searcher_results"], $this->nb_id) . "</strong><hr /><table>";
$id_ = array();
$empty = false;
while ($indexint = @pmb_mysql_fetch_object($this->id_query)) {
$pair_impair = $parity % 2 ? "even" : "odd";
$id_[$indexint->indexint_id] = 1;
$temp = new indexint($indexint->indexint_id);
$display = htmlentities($temp->name . " - " . $temp->comment, ENT_QUOTES, $charset);
if ($temp->has_notices()) {
$notice_count_sql = "SELECT count(*) FROM notices WHERE indexint = " . $temp->indexint_id;
$notice_count = pmb_mysql_result(pmb_mysql_query($notice_count_sql), 0, 0);
$link = "<td><a href='" . $this->base_url . "&aut_id=" . $temp->indexint_id . "&aut_type=indexint&etat=aut_search'>{$display}</a></td><td>" . $notice_count . "</td>";
} else {
$empty = true;
if ($show_empty) {
$link = "<td>{$display}</td><td></td>";
} else {
$link = "";
}
}
if ($link) {
print "<tr class=\"{$pair_impair}\">{$link}</tr>";
$parity += 1;
}
}
print "</table>";
if ($empty && !$show_empty) {
print "<a href='#' onClick=\"document.store_search.show_empty.value=1; document.store_search.page.value=0; document.store_search.submit(); return false;\">" . $msg["searcher_indexint_empty_results"] . "</a><br /><br />";
}
}
$i_ = "";
if ($this->nb_i) {
$empty = false;
while ($indexint = @pmb_mysql_fetch_object($this->i_query)) {
$pair_impair = $parity % 2 ? "even" : "odd";
if (!$id_[$indexint->indexint_id]) {
$temp = new indexint($indexint->indexint_id);
$display = htmlentities($temp->name . " - " . $temp->comment, ENT_QUOTES, $charset);
if ($temp->has_notices()) {
$notice_count_sql = "SELECT count(*) FROM notices WHERE indexint = " . $temp->indexint_id;
$notice_count = pmb_mysql_result(pmb_mysql_query($notice_count_sql), 0, 0);
$link = "<td><a href='" . $this->base_url . "&aut_id=" . $temp->indexint_id . "&aut_type=indexint&etat=aut_search'>{$display}</a></td><td>" . $notice_count . "</td>";
} else {
$empty = true;
if ($show_empty) {
$link = "<td>{$display}</td><td></td>";
} else {
$link = "";
//.........这里部分代码省略.........