Пример #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);
 }
Пример #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);
 }
Пример #3
0
<!--头部 end-->
<?php 
use app\models\IndexModel;
use app\models\TransPinyin;
$IndexModel = new IndexModel();
$TransPinyin = new TransPinyin();
?>
				<div id="main">
				    <div class="hd" style="background:#fff;"><p class="authlistsea">搜索“<?php 
echo $keywords;
?>
”结果列表 | 共有 <?php 
echo count($search_result);
?>
 条结果</p></div>
					
<div class="left fl editors-choice">
    <div class="left-bd">
    <div class="mod">
    <div class="topba-box">
    <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