zoukankan      html  css  js  c++  java
  • gridview全选操作

    简介:这是gridview全选操作的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。

    class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=341058' scrolling='no'>
    'columns'=>array(
    array(
    'class'=>'CCheckBoxColumn',
    //'header'=>'全选',
    //'value'=>'$data->id',
    //'checked'=>'true',
    'htmlOptions'=>array(
    'width'=>'30',
    'style'=>'text-align:center',
    ),
    ),

      

    <div id="btn" style="100%; text-align:right; padding-top:20px"><?php echo CHtml::ajaxLink('批量更新', array('link/dels'), array(
    'type'=>'POST',
    'timeout'=>'30000',
    'data'=>'js:{ids:jQuery("input[name=\'link-grid_c0\[\]\']:checked").map(function(){ return $(this).val(); }).get()}',
    'beforeSend'=>'function(){ $("#btn").hide(); $("#load").show(); }',
    'success'=>'function(html){ alert(html); }',
    'complete'=>'function(){ $("#btn").show(); $("#load").hide(); }',
    'error'=>'function(a,b,c){ if(b=="timeout") { alert("本次执行过程超过30秒,请分批更新!"); }}',
    ));?></div>
    <div id="load" style="display: none; text-align:right; 100%; padding-top:20px">正在更新,请稍后......</div>
    <script>
    var ids=jQuery("input[name='link-grid_c0[]']:checked").map(function(){ return $(this).val(); });
    //alert(ids.length);
    </script>

      

    爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具

    http://biancheng.dnbcw.info/php/341058.html pageNo:7
  • 相关阅读:
    Mysql数据库相关流程图/原理图
    【nginx】配置Nginx实现负载均衡
    数据库设计——评论回复功能
    html生成pdf
    cmd下载echarts包
    windows安装cnpm步骤
    你不在,是一年一年,你在,是春夏秋冬
    聚合
    Beyond compare4密钥
    ExtJs目录说明
  • 原文地址:https://www.cnblogs.com/ooooo/p/2245218.html
Copyright © 2011-2022 走看看