echo '<tr>'; echo '<td><input type="checkbox" name="ids[' . $row->id . ']"' . ((isset($_GET['ids'][$row->id]) and $_GET['ids'][$row->id] == 'on') ? ' checked="checked"' : '') . '/></td>'; foreach ($columns as $column => $name) { echo '<td onclick="document.location = \'' . Router::createUrl(array('id' => $row->id)) . '\'">' . $row->{$column} . '</td>'; } echo '</tr>'; } ?> </table> <?php if ($countAll > 0) { ?> <a href="javascript:document.getElementById('crud-form').submit()"><?php echo Dict::word('delete marked'); ?> </a> | <?php } echo Dict::word('total'), ': ', $countAll, ' '; ?> <?php if ($countAll > 0) { ?> | <?php echo $pagination; } ?> </div> </form>
<form method="post" action=""> <div> <label for="name"><?php echo Dict::word('Name'); ?> :</label><br/> <input type="text" class="wide" value="" name="name"/> <br/> <br/> <textarea name="body" id="static-body" class="static-body"> </textarea> <script type="text/javascript" src="<?php echo Router::baseUrl(); ?> public/ckeditor/ckeditor.js"></script> <script type="text/javascript"> CKEDITOR.replaceAll('static-body'); </script> <div class="right"> <input type="submit" class="submit" value="<?php echo Dict::word('Save'); ?> "/> </div> </div> </form>
echo $total_pages; ?> </a> <?php } ?> <?php if ($next_page) { ?> <a href="<?php echo str_replace('{page}', $next_page, $url); ?> "><?php echo Dict::word('next'); ?> »</a> <?php } else { ?> <?php echo Dict::word('next'); ?> » <?php } ?> </span>