?> </th> <th><?php echo $tinputtm; ?> </th> <th><?php echo $toperation; ?> </th> </tr> </thead> <tbody> <?php foreach ($arrayList as $row) { echo "<tr><td><input type='checkbox' name='tyChecks' value='" . $row["rep_id"] . "'/></td><td>" . $row["title"] . "</td><td>" . $row["usr_name"] . "</td><td>" . GBsubstr($row["rep_ctx"], 0, 41) . "</td><td>" . btime($row["input_tm"]) . "</td><td><a onclick=del(" . $row["rep_id"] . ")><i class='fa fa-fw fa-trash-o'></i></a> <a onclick=edit('" . $row["rep_id"] . "')><i class='fa fa-fw fa-eye'></i></a></td></tr>"; } ?> </tbody> </table> <?php $pager->getHtml(); ?> </div> </form> </div> </div> <!-- /.row --> </div>
/** * 清除所有HTML */ function ld_clearhtml($str, $len) { $str = eregi_replace("<\\/*[^<>]*>", '', $str); $str = str_replace(" ", '', $str); $str = str_replace("::", ':', $str); $str = str_replace(" ", '', $str); $str = str_replace("#p#", '', $str); $str = str_replace(" ", '', $str); $str = str_replace(" ", '', $str); $str = str_replace(" ", '', $str); $str = str_replace("“", '"', $str); $str = str_replace("”", '"', $str); $str = str_replace("—", '-', $str); $str = ereg_replace("\t", "", $str); $str = ereg_replace("\r\n", "", $str); $str = ereg_replace("\r", "", $str); $str = ereg_replace("\n", "", $str); $str = ereg_replace(" ", " ", $str); $str = ereg_replace("…", "", $str); $str = GBsubstr($str, 0, $len); return $str; }