Updated Table to use new css layout

This commit is contained in:
Deon George 2012-07-30 18:14:25 +10:00
parent 8f56da789e
commit e4d600b8d0
7 changed files with 11 additions and 13 deletions

View File

@ -19,11 +19,10 @@ class Controller_Affiliate_Account extends Controller_TemplateDefault_Affiliate
* Show a list of accounts
*/
public function action_list() {
Block::add(array(
'title'=>_('Customer List'),
'body'=>Table::display(
$this->filter(ORM::factory('account')->list_active(),$this->ao->affiliate->id,'sortkey(TRUE)');
$this->filter(ORM::factory('account')->list_active(),$this->ao->affiliate->id,'sortkey(TRUE)'),
25,
array(
'id'=>array('label'=>'ID','url'=>'user/account/view/'),

View File

@ -221,8 +221,7 @@ $(document).ready(function() {
$td[$col]['value'] = Table::resolve($do,$col);
$output .= View::factory($view.'_body')
->set('td',$td)
->set('trc',$i%2 ? 'odd' : 'even');
->set('td',$td);
} elseif (isset($option['show_other']) AND ($col=$option['show_other'])) {
$other += Table::resolve($do,$col);

View File

@ -1,4 +1,4 @@
<tr class="<?php echo $trc; ?>">
<tr class="list-data">
<?php foreach ($td as $col => $details) { ?>
<td class="<?php echo $details['class']; ?>">
<?php echo $details['url'] ? sprintf(HTML::anchor($details['url'].$details['value'],$details['value'])) : $details['value']; ?>

View File

@ -1,2 +1,2 @@
<table class="box-left" border="0" id="list-table">
<tr class="head"><td class="head"><?php echo implode('</td><td class="head">',$th); ?></td></tr>
<table class="list-box-left" border="0" id="list-table">
<tr class="list-head"><th><?php echo implode('</th><th>',$th); ?></th></tr>

View File

@ -1,4 +1,4 @@
<tr class="<?php echo $trc; ?>">
<tr class="list-data">
<td><?php echo Form::checkbox('id[]',$td['id']['value']); ?></td>
<?php foreach ($td as $col => $details) { ?>
<td class="<?php echo $details['class']; ?>">

View File

@ -2,7 +2,7 @@
<div style="text-align: center;" id="select-menu">
<br/>
<?php echo $button; ?>
<input type="button" name="Submit" value="Select All" class="form_button" id="all_on" />
<input type="button" name="Submit" value="Deselect All" class="form_button" id="all_off" />
<input type="button" name="Submit" value="Toggle Select" class="form_button" id="toggle" />
<button type="submit" name="Submit" class="form_button" id="all_on">Select All</button>
<button type="submit" name="Submit" class="form_button" id="all_off">Deselect All</button>
<button type="submit" name="Submit" class="form_button" id="toggle">Toggle Select</button>
</div>

View File

@ -1,2 +1,2 @@
<table class="box-full" border="0" id="select-table">
<tr class="head"><td style="width: 25px;">&nbsp;</td><td class="head"><?php echo implode('</td><td class="head">',$th); ?></td></tr>
<table class="list-box-left" border="0" id="select-table">
<tr class="list-head"><th>&nbsp;</th><th><?php echo implode('</th><th>',$th); ?></th></tr>