Exemplo n.º 1
0
 public function Get_Pic($bookname, $url)
 {
     $img = file_get_contents($url);
     $Pinyin = new TransPinyin();
     $bookname_pinyin = $Pinyin->Pinyin($bookname);
     file_put_contents('BookImages/' . $bookname_pinyin . '.jpg', $img);
 }
Exemplo n.º 2
0
 public function Get_Pic($bookname, $url)
 {
     $img = file_get_contents($url);
     $Pinyin = new TransPinyin();
     $bookname_pinyin = $Pinyin->Pinyin($bookname);
     file_put_contents('/home/wwwroot/novels/basic/web/BookImages/' . $bookname_pinyin . '.jpg', $img);
 }
Exemplo n.º 3
0
    <div class="topba-title">
    <div class="topba-sm hgce">书名</div>
    <div class="topba-zj hgce">最新章节</div>
    <div class="topba-cz hgce">作者</div>
    <div class="topba-cz hgce">点击数</div>
    <div class="topba-tim hgce">更新日期</div>
    <div class="topba-cz hgce">状态</div>
    </div>
    <div class="topba-cont">
        <ul class="topba-list">
            <?php 
foreach ($search_result as $search_result_book) {
    ?>
            <li>
                    <div class="topba-sm mx"><a target="_blank" href="Fiction_Catalog/<?php 
    echo $TransPinyin->Pinyin($search_result_book['bookname']);
    ?>
.html"><?php 
    echo $search_result_book['bookname'];
    ?>
</a></div>
                    <div class="topba-zj mx"><a target="_blank" href="Fiction_Catalog/<?php 
    echo $TransPinyin->Pinyin($search_result_book['bookname']);
    ?>
/<?php 
    echo $search_result_book['article_last_id'];
    ?>
.html"><?php 
    echo $search_result_book['article_last_title'];
    ?>
</a></div>