Esempio n. 1
0
">
            <?php 
        foreach ($columns as $column) {
            ?>
            <td width='<?php 
            echo $column_width;
            ?>
%' class='<?php 
            if (isset($order_by[0]) && $column->field_name == $order_by[0]) {
                ?>
sorted<?php 
            }
            ?>
'>
                <div class='text-left'><?php 
            echo $row->{$column->field_name} != '' ? _escape_template($row->{$column->field_name}) : '&nbsp;';
            ?>
</div>
            </td>
            <?php 
        }
        ?>
            <?php 
        if (!$unset_delete || !$unset_edit || !$unset_read || !empty($actions)) {
            ?>
            <td align="left" width='20%'>
                <div class='tools'>
                    <?php 
            if (!empty($row->action_urls)) {
                foreach ($row->action_urls as $action_unique_id => $action_url) {
                    $action = $actions[$action_unique_id];
Esempio n. 2
0
                </th>
                <?php }?>
            </tr>
        </thead>
        <tbody>
<?php foreach($list as $num_row => $row){ ?>
        <?php
        $temp_string = $row->delete_url;
        $temp_string = explode("/", $temp_string);
        $row_num = sizeof($temp_string)-1;
        $rowId = $temp_string[$row_num];
        ?>
        <tr rowId="<?php echo $rowId; ?>">
            <?php foreach($columns as $column){?>
            <td width='<?php echo $column_width?>%' class='<?php if(isset($order_by[0]) &&  $column->field_name == $order_by[0]){?>sorted<?php }?>'>
                <div class='text-left'><?php echo $row->{$column->field_name} != '' ? _escape_template($row->{$column->field_name}) : '&nbsp;' ; ?></div>
            </td>
            <?php }?>
            <?php if(!$unset_delete || !$unset_edit || !$unset_read || !empty($actions)){?>
            <td align="left" width='20%'>
                <div class='tools'>
                    <?php
                    if(!empty($row->action_urls)){
                        foreach($row->action_urls as $action_unique_id => $action_url){
                            $action = $actions[$action_unique_id];
                    ?>
                            <a href="<?php echo $action_url; ?>" class="<?php echo $action->css_class; ?> crud-action" title="<?php echo $action->label?>"><?php
                                if(!empty($action->image_url))
                                {
                                    if(strpos($action->image_url, 'glyphicon glyphicon-') == 0){
                                        ?><i class="<?php echo $action->image_url; ?>"></i>&nbsp;<?php