| 1 | <?php |
|---|
| 2 | echo $html->addCrumb('Control Panel', '/admin/entries/start'); |
|---|
| 3 | echo $html->getCrumbs(' / '); |
|---|
| 4 | |
|---|
| 5 | echo $html->div('title_section', __('Newsletters', true)); |
|---|
| 6 | |
|---|
| 7 | echo $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))), '/admin/newsletters/add', null, false, false); |
|---|
| 8 | ?> |
|---|
| 9 | <table class="tbadmin"> |
|---|
| 10 | <?php |
|---|
| 11 | $th = array(__('Edit', true), __('Title', true), 'Status', __('Delivered', true), __('Public', true), __('Sent', true), __('Delete', true)); |
|---|
| 12 | echo $html->tableHeaders($th, array('style'=>'text-align:center')); |
|---|
| 13 | foreach ($data as $val): |
|---|
| 14 | $st = $gags->setStatus($val['Newsletter']['status']); |
|---|
| 15 | $pb = ($val['Newsletter']['public'] == 0) ? 'No' : __('Yes', true); |
|---|
| 16 | $delivered = ($val['Newsletter']['delivered'] == 0) ? 'No' : __('Yes', true); |
|---|
| 17 | $tr = array ( |
|---|
| 18 | $gags->sendEdit($val['Newsletter']['id'], 'newsletters'), |
|---|
| 19 | $val['Newsletter']['title'], |
|---|
| 20 | $html->link($st, '/admin/newsletters/change/'.$val['Newsletter']['id'].'/'.$val['Newsletter']['status']), |
|---|
| 21 | $delivered, |
|---|
| 22 | $html->link($pb, '/admin/newsletters/public/'.$val['Newsletter']['id'].'/'.$val['Newsletter']['public']), |
|---|
| 23 | $html->link($html->image('admin/send.gif', array('alt'=>__('Send', true), 'title'=>__('Send', true))), |
|---|
| 24 | '/admin/newsletters/send/'.$val['Newsletter']['id'], null, null, false), |
|---|
| 25 | $gags->confirmDel($val['Newsletter']['id'], 'newsletters') |
|---|
| 26 | ); |
|---|
| 27 | |
|---|
| 28 | echo $html->tableCells($tr, array("class"=>"altRow", "onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='altRow'"), |
|---|
| 29 | array('class'=>'evenRow',"onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='evenRow'")); |
|---|
| 30 | endforeach; |
|---|
| 31 | ?> |
|---|
| 32 | </table> |
|---|
| 33 | <?php |
|---|
| 34 | //echo $pagination; |
|---|
| 35 | ?> |
|---|