Updated Table to use new css layout
This commit is contained in:
parent
8f56da789e
commit
e4d600b8d0
@ -19,11 +19,10 @@ class Controller_Affiliate_Account extends Controller_TemplateDefault_Affiliate
|
|||||||
* Show a list of accounts
|
* Show a list of accounts
|
||||||
*/
|
*/
|
||||||
public function action_list() {
|
public function action_list() {
|
||||||
|
|
||||||
Block::add(array(
|
Block::add(array(
|
||||||
'title'=>_('Customer List'),
|
'title'=>_('Customer List'),
|
||||||
'body'=>Table::display(
|
'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,
|
25,
|
||||||
array(
|
array(
|
||||||
'id'=>array('label'=>'ID','url'=>'user/account/view/'),
|
'id'=>array('label'=>'ID','url'=>'user/account/view/'),
|
||||||
|
@ -221,8 +221,7 @@ $(document).ready(function() {
|
|||||||
$td[$col]['value'] = Table::resolve($do,$col);
|
$td[$col]['value'] = Table::resolve($do,$col);
|
||||||
|
|
||||||
$output .= View::factory($view.'_body')
|
$output .= View::factory($view.'_body')
|
||||||
->set('td',$td)
|
->set('td',$td);
|
||||||
->set('trc',$i%2 ? 'odd' : 'even');
|
|
||||||
|
|
||||||
} elseif (isset($option['show_other']) AND ($col=$option['show_other'])) {
|
} elseif (isset($option['show_other']) AND ($col=$option['show_other'])) {
|
||||||
$other += Table::resolve($do,$col);
|
$other += Table::resolve($do,$col);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<tr class="<?php echo $trc; ?>">
|
<tr class="list-data">
|
||||||
<?php foreach ($td as $col => $details) { ?>
|
<?php foreach ($td as $col => $details) { ?>
|
||||||
<td class="<?php echo $details['class']; ?>">
|
<td class="<?php echo $details['class']; ?>">
|
||||||
<?php echo $details['url'] ? sprintf(HTML::anchor($details['url'].$details['value'],$details['value'])) : $details['value']; ?>
|
<?php echo $details['url'] ? sprintf(HTML::anchor($details['url'].$details['value'],$details['value'])) : $details['value']; ?>
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
<table class="box-left" border="0" id="list-table">
|
<table class="list-box-left" border="0" id="list-table">
|
||||||
<tr class="head"><td class="head"><?php echo implode('</td><td class="head">',$th); ?></td></tr>
|
<tr class="list-head"><th><?php echo implode('</th><th>',$th); ?></th></tr>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<tr class="<?php echo $trc; ?>">
|
<tr class="list-data">
|
||||||
<td><?php echo Form::checkbox('id[]',$td['id']['value']); ?></td>
|
<td><?php echo Form::checkbox('id[]',$td['id']['value']); ?></td>
|
||||||
<?php foreach ($td as $col => $details) { ?>
|
<?php foreach ($td as $col => $details) { ?>
|
||||||
<td class="<?php echo $details['class']; ?>">
|
<td class="<?php echo $details['class']; ?>">
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div style="text-align: center;" id="select-menu">
|
<div style="text-align: center;" id="select-menu">
|
||||||
<br/>
|
<br/>
|
||||||
<?php echo $button; ?>
|
<?php echo $button; ?>
|
||||||
<input type="button" name="Submit" value="Select All" class="form_button" id="all_on" />
|
<button type="submit" name="Submit" class="form_button" id="all_on">Select All</button>
|
||||||
<input type="button" name="Submit" value="Deselect All" class="form_button" id="all_off" />
|
<button type="submit" name="Submit" class="form_button" id="all_off">Deselect All</button>
|
||||||
<input type="button" name="Submit" value="Toggle Select" class="form_button" id="toggle" />
|
<button type="submit" name="Submit" class="form_button" id="toggle">Toggle Select</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
<table class="box-full" border="0" id="select-table">
|
<table class="list-box-left" border="0" id="select-table">
|
||||||
<tr class="head"><td style="width: 25px;"> </td><td class="head"><?php echo implode('</td><td class="head">',$th); ?></td></tr>
|
<tr class="list-head"><th> </th><th><?php echo implode('</th><th>',$th); ?></th></tr>
|
||||||
|
Reference in New Issue
Block a user