Esempio n. 1
0
function zayavFilter($v)
{
    $default = array('page' => 1, 'limit' => 20, 'client_id' => 0, 'find' => '', 'sort' => 1, 'desc' => 0, 'status' => 0);
    $filter = array('page' => _num(@$v['page']) ? $v['page'] : 1, 'limit' => _num(@$v['limit']) ? $v['limit'] : 20, 'client_id' => _num(@$v['client_id']), 'find' => trim(@$v['find']), 'sort' => _num(@$v['sort']), 'desc' => _bool(@$v['desc']), 'status' => _num(@$v['status']), 'clear' => '');
    foreach ($default as $k => $r) {
        if ($r != $filter[$k]) {
            $filter['clear'] = '<a class="clear">Очистить фильтр</a>';
            break;
        }
    }
    return $filter;
}
Esempio n. 2
0
        ?>
                <tr class="gradeX">
                    <td class="text-center"><?php 
        echo _h($value['grade']);
        ?>
</td>
                    <td class="text-center"><?php 
        echo _h($value['percent']);
        ?>
</td>
                    <td class="text-center"><?php 
        echo _h($value['points']);
        ?>
</td>
                    <td class="text-center"><?php 
        echo _bool(_h($value['status']));
        ?>
</td>
                    <td class="center">
                        <a href="<?php 
        echo get_base_url();
        ?>
form/grade-scale/<?php 
        echo _h($value['ID']);
        ?>
/<?php 
        echo bm();
        ?>
" title="View" class="btn btn-default"><i class="fa fa-eye"></i></a>
                    </td>
                </tr>
Esempio n. 3
0
        ?>
</td>
                    <td class="text-center"><?php 
        echo _h($value['max_cred']);
        ?>
</td>
                    <td class="text-center"><?php 
        echo _h($value['term']);
        ?>
</td>
                    <td class="text-center"><?php 
        echo _h($value['acadLevelCode']);
        ?>
</td>
                    <td class="text-center"><?php 
        echo _bool(_h($value['active']));
        ?>
</td>
                    <td class="text-center">
                    	<div class="btn-group dropup">
                            <button class="btn btn-default btn-xs" type="button"><?php 
        echo _t('Actions');
        ?>
</button>
                            <button data-toggle="dropdown" class="btn btn-xs btn-primary dropdown-toggle" type="button">
                                <span class="caret"></span>
                                <span class="sr-only"><?php 
        echo _t('Toggle Dropdown');
        ?>
</span>
                            </button>