public function getShow($id = null) { if ($this->access['is_detail'] == 0) { return Redirect::to('dashboard')->with('messagetext', Lang::get('core.note_restric'))->with('msgstatus', 'error'); } $row = $this->model->getRow($id); if ($row) { $this->data['row'] = $row; } else { $this->data['row'] = $this->model->getColumnTable('tb_weight_pricing'); } $this->data['id'] = $id; $this->data['access'] = $this->access; $this->data['setting'] = $this->info['setting']; $this->data['fields'] = \AjaxHelpers::fieldLang($this->info['config']['forms']); return view('weightbasedpricing.view', $this->data); }
<tbody> @foreach ($rowData as $row) <tr> <td width="30"> {{ ++$i }} </td> <td width="50"><input type="checkbox" class="ids" name="ids[]" value="{{ $row->currecncy_id }}" /> </td> @foreach ($tableGrid as $field) @if($field['view'] =='1') <?php $limited = isset($field['limited']) ? $field['limited'] : ''; ?> @if(SiteHelpers::filterColumn($limited )) <?php $conn = isset($field['conn']) ? $field['conn'] : array(); $value = AjaxHelpers::gridFormater($row->{$field}['field'], $row, $field['attribute'], $conn); ?> <td align="<?php echo $field['align']; ?> " data-values="{{ $row->$field['field'] }}" data-field="{{ $field['field'] }}" data-format="{{ htmlentities($value) }}"> {!! $value !!} </td> @endif @endif @endforeach <td> @if($access['is_detail'] ==1) <a href="{{ URL::to('currencyentry/show/'.$row->currecncy_id.'?return='.$return)}}" class="tips btn btn-xs btn-primary" title="{{ Lang::get('core.btn_view') }}"><i class="fa fa-search "></i></a> @endif
$content = $title; $content .= '<table border="1">'; $content .= '<tr>'; foreach ($fields as $f) { if ($f['download'] == '1') { $content .= '<th style="background:#f9f9f9;">' . $f['label'] . '</th>'; } } $content .= '</tr>'; foreach ($rows as $row) { $content .= '<tr>'; foreach ($fields as $f) { if ($f['download'] == '1') { $conn = isset($f['conn']) ? $f['conn'] : array(); $content .= '<td> ' . AjaxHelpers::gridFormater($row->{$f}['field'], $row, $f['attribute'], $conn) . '</td>'; } } $content .= '</tr>'; } $content .= '</table>'; @header('Content-Type: application/ms-excel'); @header('Content-Length: ' . strlen($content)); @header('Content-disposition: inline; filename="' . $title . ' ' . date("d/m/Y") . '.xls"'); echo $content; exit; /* $content = $title; $content .= '<table border="1">'; $content .= '<tr>';
$('input[type="checkbox"],input[type="radio"]').iCheck({ checkboxClass: 'icheckbox_square-green', radioClass: 'iradio_square-green', }); $('#{{ $pageModule }}Table .checkall').on('ifChecked',function(){ $('#{{ $pageModule }}Table input[type="checkbox"]').iCheck('check'); }); $('#{{ $pageModule }}Table .checkall').on('ifUnchecked',function(){ $('#{{ $pageModule }}Table input[type="checkbox"]').iCheck('uncheck'); }); $('#{{ $pageModule }}Paginate .pagination li a').click(function() { var url = $(this).attr('href'); reloadData('#{{ $pageModule }}',url); return false ; }); <?php if ($setting['view-method'] == 'expand') { echo AjaxHelpers::htmlExpandGrid(); } ?> }); </script> <style> .table th.right { text-align:right !important;} .table th.center { text-align:center !important;} </style>
public function getShow($id = null) { if ($this->access['is_detail'] == 0) { return Redirect::to('dashboard')->with('messagetext', \Lang::get('core.note_restric'))->with('msgstatus', 'error'); } $row = $this->model->getRow($id); if ($row) { $this->data['row'] = $row; } else { $this->data['row'] = $this->model->getColumnTable('tax_groups_header_t'); } $this->data['fields'] = \AjaxHelpers::fieldLang($this->info['config']['forms']); $this->data['subgrid'] = $this->detailview($this->modelview, $this->data['subgrid'], $id); $this->data['id'] = $id; $this->data['access'] = $this->access; return view('taxgroupsheaders.view', $this->data); }