获取所选行数AJAX-ZEND

获取所选行数AJAX-ZEND,ajax,row,selected,Ajax,Row,Selected,实际上,我有下面的代码在工作,但它总是固定第一条记录[0]:echo$this->bills[0]['id'];,我如何更改它以通过双击选择记录 下面是zend中view对象的代码: echo '<table id="tabla_listado_cuentas">'; echo '<thead>'; echo '<tr>'; echo "<th><a href=''>Id Factura</a></th&g

实际上,我有下面的代码在工作,但它总是固定第一条记录[0]:echo$this->bills[0]['id'];,我如何更改它以通过双击选择记录

下面是zend中view对象的代码:

echo '<table id="tabla_listado_cuentas">';
  echo '<thead>';
  echo '<tr>';
  echo "<th><a href=''>Id Factura</a></th>";
  echo "<th><a href=''>Estado Factura</a></th>";
  echo '</tr>';
  echo '</thead>';
  echo '<tbody>';
  echo '<td id="ident">'.$bill['id'].'</td>';
  echo '<td id="td_con_separacion" class="estado">'.$bill['estado']."</td>";
  echo "</tr>";
  echo '</tbody>';
  echo '</table>';
  echo '</form>';
  ?>
  <script>
     $(".estado").editable("<?php echo $this->baseUrl().'/bills/update-Ajax'?>", {
     indicator : "Guardando...",
     tooltip   : 'Click para editar',
     data   : "  {'payed':'Pagada','acepted':'Aceptada','pending':'Pendiente','denied':'Deniegada'}",
      type: 'select',
      submit: 'Ok',
      event : "dblclick",
      placeholder : '...',
      submitdata : function(value, settings) {
         return {column: "estado", estado: "<?php echo $this->bills[0]['estado']; ?>", bill: "<?php echo $this->bills[0]['id'];?>"};
          }
});
</script>
echo';
回声';
回声';
回声“;
回声“;
回声';
回声';
回声';
回音“.$bill['id']”;
回音“.$bill['estado']”;
回声“;
回声';
回声';
回声';
?>
$(“.estado”)。可编辑(“{
指标:“Guardando…”,
工具提示:“单击段落编辑器”,
数据:“{'payed':'Pagada','acepted':'Aceptada','pending':'Pendiente','Deniegada'”,
键入:“选择”,
提交:“Ok”,
事件:“dblclick”,
占位符:“…”,
submitdata:功能(值、设置){
返回{列:“estado”,estado:,bill:};
}
});
提前多谢