Checkboxes in file user.php

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
User avatar
biologisch
Posts: 96
Joined: Fri Aug 24, 2007 10:37 am

Checkboxes in file user.php

Post by biologisch »

Hi!
I would like to change the monitor select list with checkboxes. So I found this
<option value="<?= $monitor['Id'] ?>"<?php if ( array_key_exists( $monitor['Id'], $monitorIds ) ) { ?> selected="selected"<?php } ?>><?= htmlentities($monitor['Name']) ?></option>
and changed it with that
<input type="checkbox" name="monitorIds[]" value="<?= $monitor['Id'] ?>"<?php if ( array_key_exists( $monitor['Id'], $monitorIds ) ) { ?> checked="checked"<?php } ?>>&nbsp;<?= htmlentities($monitor['Name']) ?><br>
And I comment out
<select name="monitorIds" size="4" multiple="multiple">
and
</select>
Is there a php guru who can help me please ? :?
ZM Versions = 1.36.33
zmeventnotification Version = "6.1.28"
Post Reply