| <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); |
| * An open source application development framework for PHP 4.3.2 or newer |
| * @copyright Copyright (c) 2006, pMachine, Inc. |
| * @license http://www.codeignitor.com/user_guide/license.html |
| * @link http://www.codeigniter.com |
| // ------------------------------------------------------------------------ |
| * Code Igniter HTML Helpers |
| * @link http://www.codeigniter.com/user_guide/helpers/html_helper.html |
| // ------------------------------------------------------------------------ |
| * Generates an HTML heading tag. First param is the data. |
| * Second param is the size of the heading tag. |
| function heading($data = '', $h = '1') |
| return "<h".$h.">".$data."</h".$h.">"; |
| // ------------------------------------------------------------------------ |
| * Generates HTML BR tags based on number supplied |
| return str_repeat("<br />", $num); |
| // ------------------------------------------------------------------------ |
| * Generates non-breaking space entities based on number supplied |
| return str_repeat(" ", $num); |