예제 #1
0
        <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
예제 #2
0
파일: excel.php 프로젝트: vtvmd2015/symtec
$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>';