Пример #1
0
        ?>
" alt="Event Image" width="100" height="100" />
                        <?php 
    } else {
        ?>
                            <img src="images/logo.png" alt="Logo" width="100" />
                        <?php 
    }
    ?>
                    </td>
                    <td><?php 
    echo arrIndex($item, 'name');
    ?>
</td>
                    <td><?php 
    echo substr(stripHTMLtags(arrIndex($item, 'description')), 0, 150) . "..";
    ?>
</td>
                    <td align="center">
                        <?php 
    //                        $this->load->model('eventmodel');
    //                        $user = $this->eventmodel->getAllApplied($item['id']);
    //                        e($user);
    ?>
                        <a href="<?php 
    echo createUrl('event/applied/') . arrIndex($item, 'id');
    ?>
"><i class="fa fa-users fa-2x"></i></a>
                    </td>
                    <td><a href="<?php 
    echo createUrl('event/edit/') . arrIndex($item, 'id');
                <?php 
}
?>
            </tr>
        </thead>
        <tbody>
            <?php 
foreach ($health_articles as $item) {
    ?>
                <tr>
                    <td><?php 
    echo arrIndex($item, 'title');
    ?>
</td>
                    <td><?php 
    echo substr(stripHTMLtags(arrIndex($item, 'healtharticles_desc')), 0, 150) . "..";
    ?>
</td>
                    <td><a href="<?php 
    echo createUrl('health_articles/edit/') . arrIndex($item, 'healtharticles_id');
    ?>
">Edit</a> | <a href="<?php 
    echo createUrl('health_articles/delete/') . arrIndex($item, 'healtharticles_id');
    ?>
" onclick="return confirm('Are you sure you want to delete this Health Article?');">Delete</a></td>
                </tr>
            <?php 
}
?>
        </tbody>
        <tfoot>
Пример #3
0
                <?php 
}
?>
            </tr>
        </thead>
        <tbody>
            <?php 
foreach ($therapies as $item) {
    ?>
                <tr>
                    <td><?php 
    echo arrIndex($item, 'title');
    ?>
</td>
                    <td><?php 
    echo substr(stripHTMLtags(arrIndex($item, 'therapy_desc')), 0, 100) . "..";
    ?>
</td>
                    <td><a href="<?php 
    echo createUrl('therapies/edit/') . arrIndex($item, 'therapies_id');
    ?>
">Edit</a> | <a href="<?php 
    echo createUrl('therapies/delete/') . arrIndex($item, 'therapies_id');
    ?>
" onclick="return confirm('Are you sure you want to delete this user?');">Delete</a></td>
                </tr>
            <?php 
}
?>
        </tbody>
        <tfoot>