src='/bweb/zoom.png'>
<input type="image" name='action' value='group_stats' title='Estadísticas del groups' src='/bweb/chart.png'>
</form>
+ <form action='?' method='get'>
+ <input type='hidden' name='action' value='client'>
+ <input type="image" name='notingroup' value='yes' title='View non-members'
+ src='/bweb/zoom.png'>
+ </form>
</div>
<script type="text/javascript" language="JavaScript">
src='/bweb/zoom.png'>
<input type="image" name='action' value='group_stats' title='Statistiques sur le groupe' src='/bweb/chart.png'>
</form>
+ <form action='?' method='get'>
+ <input type='hidden' name='action' value='client'>
+ <input type="image" name='notingroup' value='yes' title='Voir les clients sans groupe'
+ src='/bweb/zoom.png'>
+ </form>
</div>
<script type="text/javascript" language="JavaScript">
my ($self) = @_;
my $where='';
- my $arg = $self->get_form("client", "qre_client", "jclient_groups");
+ my $arg = $self->get_form("client", "qre_client", "jclient_groups", "qnotingroup");
if ($arg->{qre_client}) {
$where = "WHERE Name $self->{sql}->{MATCH} $arg->{qre_client} ";
$where = "JOIN client_group_member ON (Client.ClientId = client_group_member.clientid)
JOIN client_group USING (client_group_id)
WHERE client_group_name IN ($arg->{jclient_groups})";
+ } elsif ($arg->{qnotingroup}) {
+ $where = "
+ WHERE NOT EXISTS
+ (SELECT 1 FROM client_group_member
+ WHERE Client.ClientId = client_group_member.ClientId
+ )
+";
+
}
my $query = "
src='/bweb/zoom.png'>
<input type="image" name='action' value='group_stats' title='Statistics' src='/bweb/chart.png'>
</form>
+ <form action='?' method='get'>
+ <input type='hidden' name='action' value='client'>
+ <input type="image" name='notingroup' value='yes' title='View non-members'
+ src='/bweb/zoom.png'>
+ </form>
</div>
<script type="text/javascript" language="JavaScript">