my code is:
<div class="input-group select-all" >
<span class="input-group-addon disabled">
<input type="checkbox" <?php if($pagetitle=="Trash") echo "disabled"?>>
</span>
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle <?php if($pagetitle=="Trash") echo "disabled"?>" data-toggle="dropdown" tabindex="-1">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Delete</a></li>
</ul>
</div>
</div><!-- /input-group -->
when we checked in checkbox then all the data in a table must be selected.. i need that type of operation.
<div class="mails">
<table class="table table-hover table-condensed">
<?php
if(count($inMessages)>0)
foreach($inMessages as $m):
?>
<tr data-id="<?php echo $m->sn?>" <?php if($m->flag==1) echo "class=\"read\""?><?php if($m->flag==0) echo "class=\"unread\""?>>
<td><?php if($pagetitle!="Trash"):?><i class="fa fa-check-square-o fa-square-o disabled" data-id="<?php echo $m->sn?>"></i><?php endif?></td>
<td class="subject"><?php echo $m->subject?></td>
<td class="body"><?php echo $m->message?></td>
<td>
<?php echo $m->address?>
<BR/><?php echo $m->io?>
</td>
<td class="time"><?php echo $m->mdate?> <?php echo $m->mtime?></td>
</tr>
<?php
endforeach
?>
</table>
</div>
</div><!-- /Right Side mail bar -->
manuall check box works properly, but i need check all option.how can i do in this code??? please help me.
Aucun commentaire:
Enregistrer un commentaire