快速的jQuery插件和PHP表格生成器 Watajax

码农软件 · 软件分类 · jQuery表格插件 · 2019-12-29 06:27:58

软件介绍

Watajax 是一个PHP和jQuery结合起来用来快速生成网页表格数据的解决方案。

示例代码:

PHP:
<?php
  // Connect to the database first if you plan on using the Sql version of Watajax.

  require_once("lib/Watajax.class.php");
  $Watajax = new WatajaxSql();
  $Watajax->columns = array(
    "id" => array("name" => "#", "sort_type" => "numeric", "hide" => true),
    "firstname" => array("name" => "First name", "transform" => '<img src="'.URI.'/images/icons/vcard.png" valign="absmiddle" /> !firstname'),
    "lastname" => array("name" => "Last name"),
    "email" => array("name" => "E-mail adress", "transform" => '<a target="_blank" rel="nofollow" href="show_reciptient.php?id=!id">!email</a>'),
    "tools" => array("name" => "", "virtual" => true, "transform" => '<a target="_blank" rel="nofollow" href="edit.php?id=!id">edit</a>'));
  $Watajax->run();
?>

jQuery:
<script type="text/javascript">
  $(document).ready(function() {
    $("#watajax_table").watajax({ajax_connector:"ajax.php", table_id: "contacts"});
  })
</script>

本文地址:https://codercto.com/soft/d/22182.html

如何求解问题

如何求解问题

Zbigniew Michalewicz、David B.Fogel / 曹宏庆 / 中国水利水电出版社 / 2003-2-1 / 35.00元

《如何求解问题:现代启发式方法》通过一系列贯穿于章节间的有趣难题,《如何求解问题:现代启发式方法》深入浅出地阐述了如何利用计算机来求解问题的一些现代启发式方法。全书包括两部分,共分15章。一起来看看 《如何求解问题》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具