当前位置: 首页>>代码示例>>PHP>>正文


PHP functions::seo方法代码示例

本文整理汇总了PHP中functions::seo方法的典型用法代码示例。如果您正苦于以下问题:PHP functions::seo方法的具体用法?PHP functions::seo怎么用?PHP functions::seo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在functions的用法示例。


在下文中一共展示了functions::seo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: mysql_result

     require_once '../incfiles/head.php';
     echo '<div class="phdr"><h3>Blogs</h3></div>';
     $total = mysql_result(mysql_query("SELECT COUNT(*) FROM `animes_cat`"), 0);
     if ($total) {
         if ($total > $kmess) {
             echo '<div class="topmenu">' . functions::display_pagination('index.php?', $start, $total, $kmess) . '</div>';
         }
         $req = mysql_query("SELECT `animes_cat`.`name`, `animes_cat`.`id`\n         FROM `animes_cat`\n         ORDER BY `animes_cat`.`realid` ASC LIMIT " . $start . "," . $kmess);
         $i = 1;
         while (($row = mysql_fetch_assoc($req)) !== false) {
             $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `animes` WHERE " . ($rights < 7 ? "`time`<='" . time() . "' AND " : "") . "`refid`='{$row['id']}'"), 0);
             echo $i % 2 ? '<div class="list1">' : '<div class="list2">';
             if (file_exists('../files/blogs/ico_cat_' . $row['id'] . '.jpg') !== false) {
                 echo '<img style="margin: 0 0 -3px 0;border: 0px;" src="../files/blogs/ico_cat_' . $row['id'] . '.jpg" alt="" width="16" height="16"/>&#160;';
             }
             echo '<a href="' . $home . '/blogs/' . functions::seo(htmlentities($row['name'], ENT_QUOTES, 'UTF-8')) . '_' . $row['id'] . '.html">' . htmlentities($row['name'], ENT_QUOTES, 'UTF-8') . '</a>(' . $count . ')';
             echo '</div>';
             ++$i;
         }
         echo '<div class="phdr">' . $lng['total'] . ': ' . $total . '</div>';
         if ($total > $kmess) {
             echo '<div class="topmenu">' . functions::display_pagination('index.php?', $start, $total, $kmess) . '</div>';
             echo '<p><form action="index.php" method="get">
         <input type="text" name="page" size="2"/>
         <input type="submit" value="' . $lng['to_page'] . ' &gt;&gt;"/></form></p>';
         }
     } else {
         echo '<div class="rmenu">Empty Category</div>';
     }
 }
 if ($user_id) {
开发者ID:chegestar,项目名称:catroxs,代码行数:31,代码来源:index.php

示例2: mysql_result

<?php

echo '<div class="phdr" align="center"><b>Update Movies</b></div>';
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `animes`"), 0);
if ($total) {
    $req = mysql_query("SELECT `id`,`user_id`, `name`, `count`, `text`, `time` FROM `animes` ORDER BY `id` DESC LIMIT 4 ");
    $i = 1;
    while (($row = mysql_fetch_assoc($req)) !== false) {
        echo $i % 2 ? '<div class="list1">' : '<div class="list2">';
        if (file_exists('files/blogs/anime_icon_' . $row['id'] . '.jpg') !== false) {
            echo '<a href="../blogs/index.php?act=view&amp;id=' . $row['id'] . '">' . htmlentities($row['name'], ENT_QUOTES, 'UTF-8') . '</a> <br />(' . date('d.m.o / H:i', $row['time'] + $sdvigclock * 3600) . ')<br />';
        } else {
            echo '<div class="phdr">(' . date('d.m.o / H:i', $row['time'] + $sdvigclock * 3600) . ')</div>
			   <a href="' . $home . '/blogs/' . functions::seo(htmlentities($row['name'], ENT_QUOTES, 'UTF-8')) . '_p' . $row['id'] . '.html"><div align="center"><font size="3">' . htmlentities($row['name'], ENT_QUOTES, 'UTF-8') . '</font></div></a><br/>';
        }
        $text = $row['text'];
        if (mb_strlen($text) > 100) {
            $str = mb_substr($text, 0, 100);
            $text = mb_substr($str, 0, mb_strrpos($str, ' ')) . '...';
        }
        echo '<div class="textx">';
        echo functions::checkout($text, 2, 1);
        echo '</div>';
        $us = mysql_query("SELECT `id`, `name` FROM `users` WHERE `id` = '{$req['user_id']}'");
        if (mysql_num_rows($us)) {
            $rowuse = mysql_fetch_assoc($us);
            $name_use = $user_id ? '<a href="../users/profile.php?id=' . $rowuse['id'] . '">' . $rowuse['name'] . '</a>' : $rowuse['name'];
        }
        //echo '<br/>[<a href="../blogs/index.php?act=view&amp;id=' . $row['id'] . '">Komentar : ' . mysql_result(mysql_query("SELECT COUNT(*) FROM `animes_comments` WHERE `refid`= '".$row['id']."' "), 0) . '</a>]';
        echo '</div>';
        ++$i;
开发者ID:chegestar,项目名称:catroxs,代码行数:31,代码来源:blogs.php

示例3:

                echo ' <span style="color: #33FF00">[Movie]</span>';
                break;
            case 9:
                echo ' <span style="color: #FFFF00">[Ongoing]</span>';
                break;
            case 10:
                echo ' <span style="color: #FF0000">[Completed]</span>';
                break;
            default:
                break;
        }
    }
    //Judul thread
    echo '&#160;<a href="' . $set['homeurl'] . '/forum/' . functions::seo($res['text']) . '_' . $res['id'] . ($cpg > 1 && $_SESSION['uppost'] ? '_p' . $cpg : '') . '.html">' . $res['text'] . '</a>&#160;[' . $colmes1 . ']';
    if ($cpg > 1) {
        echo '&#160;<a href="' . $set['homeurl'] . '/forum/' . functions::seo($res['text']) . '_' . $res['id'] . ($_SESSION['uppost'] ? '' : '_p' . $cpg) . '.html">Lihat</a>';
    }
    //echo '<a href="index.php?id=' . $res['id'] . '&amp;page=' . $cpg . '">&#160;&gt;&gt;</a>';
    //edit seo 4
    //echo '<a href="'.$home.'/forum/' . functions::seo($res['text']) . '_' . $res['id'] . '_p' . $cpg . '.html">&#160;&gt;&gt;</a>';
    echo '<br /><div class="sub"><div class="textx">Last Post ';
    echo '<span class="green">';
    if ($colmes1 > 1) {
        echo '' . $nick['from'];
    } else {
        echo $res['from'];
    }
    echo '</span>';
    echo '</div></div></div></div>';
    ++$i;
}
开发者ID:chegestar,项目名称:catroxs,代码行数:31,代码来源:last_aktif.php


注:本文中的functions::seo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。