cvs: pearweb /templates/notes note-manage-admin.tpl.php
| From: | David Coallier | Date: | Tue, 24 Apr 2007 15:24:07 +0000 |
| Subject: | cvs: pearweb /templates/notes note-manage-admin.tpl.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-46128@lists.php.net to get a copy of this message | ||
davidc Tue Apr 24 15:24:07 2007 UTC
Modified files:
/pearweb/templates/notes note-manage-admin.tpl.php
Log:
- Request #10826, ability to Select All boxes (Untested in IE) but should work.. rather simple.
http://cvs.php.net/viewvc.cgi/pearweb/templates/notes/note-manage-admin.tpl.php?r1=1.19&r2=1.20&diff_format=u
Index: pearweb/templates/notes/note-manage-admin.tpl.php
diff -u pearweb/templates/notes/note-manage-admin.tpl.php:1.19
pearweb/templates/notes/note-manage-admin.tpl.php:1.20
--- pearweb/templates/notes/note-manage-admin.tpl.php:1.19 Fri Apr 6 05:05:55 2007
+++ pearweb/templates/notes/note-manage-admin.tpl.php Tue Apr 24 15:24:07 2007
@@ -2,7 +2,21 @@
<script src="/javascript/jquery.js"></script>
<script src="/javascript/thickbox.js"></script>
+<script language="javascript">
+function checkAll()
+{
+ $("input[@type='checkbox']").each(function() {
+ if (this.checked) {
+ this.checked = false;
+ $('input[@id=submitButton]').attr({'value': 'Select
All'});
+ return true;
+ }
+ $('input[@id=submitButton]').attr({'value': 'Deselect All'});
+ this.checked = true;
+ });
+}
+</script>
<style type="text/css">
@import "/css/thickbox.css";
</style>
@@ -67,15 +81,17 @@
</tr>
<?php endforeach; ?>
<tr>
- <th class="form-label_left"><?php echo $caption ?></th>
+ <th class="form-label_left">
+ <?php echo $caption ?></th>
<td class="form-input" colspan="4">
+ <input id="submitButton" type="button" onclick="checkAll()"
value="Select All" />
<input type="submit" name="<?php echo $name ?>"
value="<?php echo $button ?>" />
</td>
</tr>
<tr>
<th class="form-label_left">Delete Notes</th>
<td class="form-input" colspan="4">
- <div align="right"><input type="submit" name="delete"
value="Delete" /></div>
+ <div align="left"><input type="submit" name="delete"
value="Delete" /></div>
</td>
</tr>
</table>