echo __('List Name'); ?> </th> <th><?php echo __('Created'); ?> </th> <th><?php echo __('Last Updated'); ?> </th> </tr> </thead> <tbody> <?php foreach (DynamicList::objects()->order_by('-type', 'name')->limit($pageNav->getLimit())->offset($pageNav->getStart()) as $list) { $sel = false; if ($ids && in_array($form->get('id'), $ids)) { $sel = true; } ?> <tr> <td> <?php if ($list->isDeleteable()) { ?> <input width="7" type="checkbox" class="ckb" name="ids[]" value="<?php echo $list->getId(); ?> "
static function getSelections() { $selections = array(); foreach (DynamicList::objects() as $list) { $selections['list-' . $list->id] = array($list->getPluralName(), SelectionField, $list->get('id')); } return $selections; }
<form action="lists.php" method="POST" name="lists"> <?php csrf_token(); ?> <input type="hidden" name="do" value="mass_process" > <input type="hidden" id="action" name="a" value="" > <table class="list" border="0" cellspacing="1" cellpadding="0" width="940"> <caption>Custom Lists</caption> <thead> <tr> <th width="7"> </th> <th><?php echo __('List Name'); ?></th> <th><?php echo __('Created') ?></th> <th><?php echo __('Last Updated'); ?></th> </tr> </thead> <tbody> <?php foreach (DynamicList::objects()->order_by('-type', 'name') ->limit($pageNav->getLimit()) ->offset($pageNav->getStart()) as $list) { $sel = false; if ($ids && in_array($form->get('id'),$ids)) $sel = true; ?> <tr> <td> <?php if ($list->isDeleteable()) { ?> <input width="7" type="checkbox" class="ckb" name="ids[]" value="<?php echo $list->getId(); ?>" <?php echo $sel?'checked="checked"':''; ?>> <?php } else { echo ' ';