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


PHP unhtml函数代码示例

本文整理汇总了PHP中unhtml函数的典型用法代码示例。如果您正苦于以下问题:PHP unhtml函数的具体用法?PHP unhtml怎么用?PHP unhtml使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: while

			}
			if(($_GET["page"])==""){
			    $page=1;
			
			}else{
			    $page=intval($_GET["page"]);
			
			}
			 
            
			 $sql1=mysql_query("select * from leaveword  order by time desc limit ".($page-1)*$pagesize.",$pagesize ",$conn);
             while($info1=mysql_fetch_array($sql1))
		     {
		  ?>
        <tr> 
          <td height="20" bgcolor="#FFFFFF"><div align="left"><?php echo unhtml($info1["title"]);?></div></td>
          <td height="20" bgcolor="#FFFFFF"><div align="center">
		  <?php
		   $sql2=mysql_query("select name from user where id='".$info1["userid"]."'",$conn);
		   $info2=mysql_fetch_array($sql2);
		   echo $info2["name"];
		  ?>
		  </div></td>
          <td height="20" bgcolor="#FFFFFF"><div align="center"><?php echo $info1["time"];?></div></td>
          <td height="20" bgcolor="#FFFFFF"><div align="center"><a href="editleaveword.php?id=<?php echo $info1["id"];?>">查看编辑</a></div></td>
          <td height="20" bgcolor="#FFFFFF"><div align="center">
              <input type="checkbox" name=<?php echo $info1["id"];?> value=<?php echo $info1["id"];?>>
            </div></td>
        </tr>
		<?php
		 }
开发者ID:pangjiuzala,项目名称:oldcode,代码行数:31,代码来源:lookleaveword.php

示例2: unhtml

                                            </tr>
                                        </table></td>
                                      </tr>
                                      <?php 
}
?>
                                  </table>
								  <table width="454" border="0" align="center" cellpadding="0" cellspacing="0">
                              <tr>
                                <td><div  align="center" name="content1" id="content1" style=" padding:5pt;BORDER-RIGHT:1px solid; BORDER-TOP:1px solid #999999;OVERFLOW-X: auto;OVERFLOW-Y: auto; BORDER-LEFT:1px solid; WIDTH: 350; BORDER-BOTTOM:1px solid; HEIGHT: 120px"> &nbsp;&nbsp;&nbsp;&nbsp;
                                        <?php 
include_once "function.php";
if (unhtml(imap_base64(@imap_fetchbody($mbox, $id, 1))) == "") {
    echo unhtml(@imap_fetchbody($mbox, $id, 1));
} else {
    echo unhtml(imap_base64(imap_fetchbody($mbox, $id, 1)));
}
?>
                                </div></td>
                              </tr>
</table>
		</td>
      </tr>
      <tr>
        <td height="27"><img src="images/mail_10.gif" width="454" height="27"></td>
      </tr>
    </table></td>
    <td width="15" valign="top"><img src="images/mail_05.gif" width="15" height="421"></td>
  </tr>
</table>
</body>
开发者ID:noikiy,项目名称:web,代码行数:31,代码来源:lookmailinfo.php

示例3: error_reporting

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查看评论</title>
<link rel="stylesheet" type="text/css" href="css/font.css">
</head>
<?php
error_reporting(0);
include("conn.php");
include("function.php");
$sql=mysql_query("select * from pingjia where id='".$_GET["id"]."'",$conn);
$info=mysql_fetch_array($sql);
?>
<body topmargin="0" leftmargin="0" bottommargin="0">
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25"><div align="left">评论主题:<?php echo $info["title"];?></div></td>
  </tr>
  <tr>
    <td height="25"><div align="left">内容:</div></td>
  </tr>
  <tr>
    <td height="140" valign="top"><div align="left"><?php echo unhtml($info["content"]);?></div></td>
  </tr>
</table>
</body>
</html>
开发者ID:pangjiuzala,项目名称:oldcode,代码行数:27,代码来源:lookpinglun.php

示例4: mysql_fetch_array

        $info3 = mysql_fetch_array($sql3);
        echo $info3[name];
        ?>
          </div></td>
        </tr>
        <tr>
          <td height="20"><div align="center">评论主题:</div></td>
          <td height="20" colspan="3"><div align="left"><?php 
        echo unhtml($info1[title]);
        ?>
</div></td>
        </tr>
        <tr>
          <td height="40"><div align="center">评论内容:</div></td>
          <td height="40" colspan="3" valign="bottom"><div align="left"><?php 
        echo unhtml($info1[content]);
        ?>
</div></td>
        </tr>
        <tr>
          <td height="10" colspan="4" background="images/line1.gif"></td>
        </tr>
        <?php 
    }
}
?>
      </table>
      <table width="550" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><div align="right"> &nbsp;本站共有该商品评论&nbsp;
                  <?php 
开发者ID:noikiy,项目名称:web,代码行数:31,代码来源:showpl.php

示例5: include

		     $id=$_GET["id"];
			 $sql=mysql_query("select * from gonggao where id='".$id."'",$conn);
			 $info=mysql_fetch_array($sql);
		     include("function.php");
		   
		   ?> 
			
			<tr>
              <td width="68" height="25" bgcolor="#FFFFFF"><div align="center">公告主题:</div></td>
              <td width="252" bgcolor="#FFFFFF"><div align="left"><?php echo unhtml($info["title"]);?></div></td>
              <td width="63" bgcolor="#FFFFFF"><div align="center">发布时间:</div></td>
              <td width="112" bgcolor="#FFFFFF"><div align="left"><?php echo $info["time"];?></div></td>
            </tr>
            <tr>
              <td height="125" bgcolor="#FFFFFF"><div align="center">公告主题:</div></td>
              <td height="125" colspan="3" bgcolor="#FFFFFF"><div align="left"><?php echo unhtml($info["content"]);?></div></td>
            </tr>
			
			
          </table></td>
        </tr>
      </table>
      <table width="500" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><div align="right"><a href="showgonggao.php">继续查看</a></div></td>
        </tr>
      </table></td>
  </tr>
</table>
<?php
 include("bottom.php");
开发者ID:pangjiuzala,项目名称:oldcode,代码行数:31,代码来源:showgg.php

示例6: remediumModel

     continue;
 }
 echo "{$remedium_abbr} ({$remedium_name}) ... {$url2}\n";
 $remedium = new remediumModel();
 if (!$remedium->find_one_by_name($remedium_name)) {
     $remedium->name = $remedium_name;
     $remedium->abbreviation = $remedium_abbr;
     $remedium->save();
 }
 $html = url_get($url2);
 $html = iconv('iso8859-2', 'utf-8', $html);
 $html = str_replace(['ć', 'Ć', 'œ'], ['e', 'AE', 'e'], $html);
 $b = [];
 if (preg_match_all('~<p align="justify">(.+?)</p>~si', $html, $b)) {
     foreach ($b[1] as $h) {
         $h = unhtml($h);
         $h = explode('.--', $h);
         if (count($h) == 1) {
             $desc = new descModel();
             $d = $desc->find('en', $book->id, $remedium->id);
             if (!$d) {
                 $desc->add($h[0], 'en', $book->id, $remedium->id);
             } else {
                 $dict = new dictModel($d);
                 $dict->body = $h[0];
                 $dict->save();
             }
         }
         if (count($h) == 2) {
             $complaint = new complaintModel();
             $complaint_name = strtolower($h[0]);
开发者ID:podstawski,项目名称:homeopatia,代码行数:31,代码来源:BOERICKE_MATERIA_MEDICA.php

示例7: mysql_query

              <td height="80" colspan="2" valign="top"><table width="275" height="22" border="0" align="center" cellpadding="0" cellspacing="0">
                  <?php 
$sqluwz = mysql_query("select * from tb_sjxz order by addtime desc limit 3,3", $conn);
while ($infouwz = mysql_fetch_array($sqluwz)) {
    ?>
                 
                  <tr>
                    <td width="15" height="22"><div align="center"><img src="images/mark_0.gif" width="3" height="3" /></div></td>
                    <td width="285" height="22" style="padding:5"><a href="sjxz.php?id=<?php 
    $sqlt = mysql_query("select id  from tb_type where id='" . $infouwz["typeid"] . "'", $conn);
    $infot = mysql_fetch_array($sqlt);
    echo $infot["id"];
    ?>
" class="a1">
                      <?php 
    echo unhtml(msubstr($infouwz["name"], 0, 12));
    if (strlen($infouwz["name"]) > 12) {
        echo " .";
    }
    echo "<font color=red>[" . substr(str_replace("-", "/", $infouwz[addtime]), 0, 10) . "]</font>";
    ?>
                    </a> </td>
                  </tr>
                  <tr>
                    <td height="1" colspan="2" background="images/line_1.gif"></td>
                  </tr>
                  <?php 
}
?>
              </table></td>
            </tr>
开发者ID:noikiy,项目名称:web,代码行数:31,代码来源:jszc.php

示例8: unhtml

		   <?php 
		     $spid=$info1["userid"];
			 $sql3=mysql_query("select name from user where id=".$spid."",$conn);
			 $info3=mysql_fetch_array($sql3);
			 echo $info3["name"];
			
		  ?>
		  </div></td>
        </tr>
        <tr>
          <td height="20"><div align="center">评论主题:</div></td>
          <td height="20" colspan="3"><div align="left"><?php echo unhtml($info1["title"]);?></div></td>
        </tr>
        <tr>
          <td height="40"><div align="center">评论内容:</div></td>
          <td height="40" colspan="3" valign="bottom"><div align="left"><?php echo unhtml($info1["content"]);?></div></td>
        </tr>
        <tr>
          <td height="10" colspan="4" background="images/line1.gif"></td>
        </tr>
		  <?php
		   }
		  }
		  
		  ?>
		
      </table>
      <table width="550" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><div align="right">
		   &nbsp;本站共有该商品评论&nbsp;<?php
开发者ID:pangjiuzala,项目名称:oldcode,代码行数:31,代码来源:showpl.php

示例9: while

			   if($total%$pagesize==0){
			      $pagecount=intval($total/$pagesize);
			   }else{
			      $pagecount=ceil($total/$pagesize);
			   }
			   $sql=mysql_query("select * from tb_cjwt order by createtime desc limit ".($page-1)*$pagesize.",$pagesize  ",$conn);
			   while($info=mysql_fetch_array($sql)){
			  
	     ?> 
			
            <tr>
              <td width="30" height="22"><div align="center"><img src="images/mark_0.gif" width="3" height="3" /></div></td>
              <td width="690" height="22">
			  <a href="lookcjwt.php?id=<?php echo $info["id"];?>" class="a1" target="_blank">
			  <?php
			  echo unhtml(msubstr($info["question"],0,70));
						
						 if(strlen($info["question"])>70)
			             {
			                echo " ...";
			             }
						 echo "<font color=blue>[".substr(str_replace("-","/",$info[createtime]),0,10)."]</font>";
						 
			?></a></td>
            </tr>
		<?
			 }
		  }
		?>	
          </table></td>
        </tr>
开发者ID:noikiy,项目名称:web,代码行数:31,代码来源:cjwt.php

示例10: strlen

    <td width="780" height="21" bgcolor="#FFFFFF"><?php 
echo $myrow_3["tb_affiche_date"];
?>
   楼主</td>
  </tr>
  <tr>
    <td height="21" bgcolor="#FFFFFF"><?php 
$length = strlen($myrow_3["tb_affiche_content"]);
$page_count = ceil($length / 80);
if ($length < 80) {
    echo $myrow_3["tb_affiche_content"];
} else {
    for ($i = 1; $i < $page_count; $i++) {
        $c = msubstr($myrow_3["tb_affiche_content"], 0, ($i - 1) * 80);
        $c1 = msubstr($myrow_3["tb_affiche_content"], 0, $i * 80);
        echo unhtml(substr($c1, strlen($c), strlen($c1) - strlen($c)));
        echo "\n";
    }
}
?>
</td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
</table><table width="1003" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="667" bgcolor="#F7F7FF">&nbsp;</td>
    <td width="283" bgcolor="#F7F7FF"><img src="images/index_8 (2).jpg" width="218" height="75"></td>
  </tr>
</table>
开发者ID:Arrray,项目名称:PHPpractice,代码行数:31,代码来源:send_affiche.php

示例11: unhtml

<?php

$mian = $_SERVER["PHP_SELF"];
function unhtml($content)
{
    $content = str_replace("v1list.php", "v1sy", $content);
    $content = str_replace("v1list_view", "v1sy", $content);
    $content = str_replace(".php", "", $content);
    $content = str_replace("list", "", $content);
    $content = str_replace("_", "", $content);
    return $content;
}
$nav = unhtml($mian);
$list = "v1sy";
$qiang = "v1qiang";
$item = "v1item";
$shop = "v1shop";
$task = "v1task";
$duihuan = "v1duihuan";
$choujiang = "v1choujiang";
$wenzhang = "v1wenzhang";
?>
<div id="shikee-logo" class="logo">
  <h1 id="logo"> <a class="shikee-img-logo" href="http://<?php 
echo $siteweb['siteUrl'];
?>
" target="_self"> <img width="529" height="57" src="/img/logo.png" alt="<?php 
echo $siteweb['siteName'];
?>
 - logo" title="<?php 
echo $siteweb['siteName'];
开发者ID:kwdwkiss,项目名称:trial,代码行数:31,代码来源:v1banner.php

示例12: unhtml

    <td height="23" bgcolor="#E9F3FF" class="a12">&nbsp;<img src="images/jia.gif" border="0" alt="展开" id="img<?php 
        echo $info[id];
        ?>
" onclick="ShowTR(img<?php 
        echo $info[id];
        ?>
,tr<?php 
        echo $info[id];
        ?>
)" />
        <?php 
        include_once "function.php";
        if ($info[top] == 1) {
            echo "<a href=\"bbs_lookbbs.php?id=" . $info[id] . "\" class=a1>" . unhtml($info[title]) . "";
        } else {
            echo "<a href=\"bbs_lookbbs.php?id=" . $info[id] . "\" class=a1>" . unhtml($info[title]);
        }
        ?>
        <div align="left"></div></td>
    <td height="23" bgcolor="#E9F3FF"><div align="center">
      <?php 
        $sql1 = mysql_query("select count(*) as total from tb_reply where bbsid='" . $info[id] . "'", $conn);
        $info1 = mysql_fetch_array($sql1);
        echo $info1[total];
        ?>
      |&nbsp;<?php 
        echo $info[readtimes];
        ?>
</div></td>
    <td height="23" bgcolor="#E9F3FF"><div align="center">
      <?php 
开发者ID:noikiy,项目名称:web,代码行数:31,代码来源:bbs_list.php

示例13: unhtml

          <td bgcolor="F0F5F9"><div align="center" style="font-weight: bold; color: #DC4A01">热门帖数</div></td>
        </tr>
        
		 
	    <?php 
            do {
                ?>
		<tr>
          <td width="62" height="60" bgcolor="F0F5F9"><div align="center"><img src="images/lt_15(3).jpg" width="40" height="36" /></div></td>
          <td height="60" bgcolor="F0F5F9"><table width="474" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="474" height="30">&nbsp;<strong><a href="bbs_list.php?id=<?php 
                echo $info1["id"];
                ?>
" class="a1"><?php 
                echo unhtml($info1["title"]);
                ?>
</a></strong></td>
             
            </tr>
            <tr>
              <td height="30"><font color="#666666">创建时间:<?php 
                echo $info1["createtime"];
                ?>
</font></td>
            </tr>
          </table></td>
          <td width="81" height="60" bgcolor="F0F5F9"><div align="center"><?php 
                $sqlt = mysql_query("select count(*) as totalt from tb_bbs where typeid='" . $info1["id"] . "'", $conn);
                $infot = mysql_fetch_array($sqlt);
                echo $infot["totalt"];
开发者ID:noikiy,项目名称:web,代码行数:31,代码来源:bbs_index.php

示例14: while

        <td width="58" bgcolor="#F7F7F7"><div align="center">回复次数</div></td>
        <td width="117" bgcolor="#F7F7F7"><div align="center">创建时间</div></td>
        <td width="117" bgcolor="#F7F7F7"><div align="center">最后回复时间</div></td>
        </tr>
      <?php 
        while ($info2 = mysql_fetch_array($sql2)) {
            $sql3 = mysql_query("select * from tb_user where id='" . $info2[userid] . "'", $conn);
            $info3 = mysql_fetch_array($sql3);
            ?>
      <tr>
        <td height="23" align="right" bgcolor="#F7F7F7"><div align="left">&nbsp;&nbsp;<a href="bbs_lookbbs.php?id=<?php 
            echo $info2[id];
            ?>
" class="a1"><?php 
            include_once "function.php";
            echo unhtml($info2[title]);
            ?>
</a></div></td>
        <td height="23" bgcolor="#F7F7F7"><div align="center"><a href="http://www.mingrisoft.com" target="_blank"></a><?php 
            echo $info3[usernc];
            ?>
</div></td>
        <td height="23" bgcolor="#F7F7F7"><div align="center">
            <?php 
            $sql4 = mysql_query("select count(*) as totalreply from tb_reply where bbsid='" . $info2[id] . "'", $conn);
            $info4 = mysql_fetch_array($sql4);
            echo $info4[totalreply];
            ?>
        </div></td>
        <td height="23" bgcolor="#F7F7F7"><div align="center"><?php 
            echo $info2[createtime];
开发者ID:noikiy,项目名称:web,代码行数:31,代码来源:bbs_find.php

示例15: number_format

            ?>
                         </td>
                        </tr>
                        <tr>
                          <td><div align="center">价&nbsp;&nbsp;&nbsp;&nbsp;格:</div></td>
                          <td>
                            <?php 
            echo number_format($info["price"], 2) . "&nbsp;元";
            ?>
                          </td>
                        </tr>
                        <tr>
                          <td><div align="center">版&nbsp;&nbsp;&nbsp;&nbsp;权:</div></td>
                          <td>
                            <?php 
            echo unhtml($info["owner"]);
            ?>
                         </td>
                        </tr>
                        <tr>
                          <td colspan="2"><a href="bccdinfo.php?id=<?php 
            echo $info[id];
            ?>
"><img src="images/bg_14(3).jpg" border="0" width="69" height="20" /></a>&nbsp;<a href="shopping_cart_first.php?id=<?php 
            echo $info[id];
            ?>
"><img src="images/bg_14(4).jpg" width="69" height="20" border="0" /></a>&nbsp;<a href="shopping_cart.php"><img src="images/bg_14(16).jpg" border="0" width="80" height="22" /></a></td>
                          </tr>
                    </table></td>
                </tr>
            </table></td>
开发者ID:noikiy,项目名称:web,代码行数:31,代码来源:morebccd.php


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