Example #1
0
 static function add_soundmanager($where = 'head', $debug = false)
 {
     css::add('#soundmanager-debug {position:absolute;right:0px;bottom:0px;width:50em;height:18em;overflow:auto;background:#fff;color:#000;margin:1em;padding:1em;border:1px solid #999;font-family:"lucida console",verdana,tahoma,"sans serif";font-size:x-small;line-height:1.5em;}');
     if ($debug) {
         self::add('js/soundmanager2.js', $where);
         self::add("soundManager.url = '/pics/soundmanager2.swf';", $where);
     } else {
         self::add('js/sm2.js', $where);
         self::add("soundManager.url = '/pics/soundmanager2.swf'; soundManager.debugMode = false;", $where);
     }
 }
Example #2
0
 public function page($pagenum)
 {
     css::add(array('media/css/fee.css'));
     javascript::add(array('media/js/ext-base.js', 'media/js/ext-all.js', 'media/js/app.js'));
     $this->template->content = new View('content/fees');
     $db = new Database('fees');
     $query = $db->query("SELECT co_name FROM feesNew");
     $this->pagination = new Pagination(array('uri_segment' => 'page', 'total_items' => $query->count(), 'items_per_page' => 28, 'style' => 'punbb'));
     $b = $this->pagination->items_per_page;
     $offset = ($pagenum - 1) * $b;
     $result = $db->query("SELECT co_name FROM feesNew ORDER BY co_name ASC LIMIT {$b} OFFSET {$offset}");
     $this->template->content->result = $result;
 }
 public function page($pagenum)
 {
     css::add(array('media/css/rating.css'));
     $this->template->content = new View('content/rating');
     $db = new Database();
     $query = $db->query("SELECT Company FROM ambestf");
     $this->pagination = new Pagination(array('directory' => 'pagination', 'style' => 'trinhall', 'uri_segment' => 3, 'query_string' => '', 'items_per_page' => 23, 'auto_hide' => FALSE, 'total_items' => $query->count()));
     $this->pagination->extras = array('hide_count' => TRUE);
     $b = $this->pagination->items_per_page;
     $offset = ($pagenum - 1) * $b;
     $result = $db->query("SELECT Company, Rating1, Rating2, Rating3, Rating4 FROM ambestf ORDER BY Company ASC LIMIT {$b} OFFSET {$offset}");
     $this->template->content->result = $result;
 }
 public function __construct()
 {
     parent::__construct();
     $menu = array(array('link' => 'home', 'text' => '<span>Home</span>', 'class' => ''), array('link' => 'rating', 'text' => '<span>Ratings</span>', 'class' => ''), array('link' => 'fees', 'text' => '<span>Filing Fees</span>', 'class' => ''), array('link' => 'liqfees', 'text' => '<span>Liquid Fees</span>', 'class' => ''), array('link' => 'liqajax', 'text' => '<span>Liquid Ajax</span>', 'class' => ''), array('link' => 'contact', 'text' => '<span>Contact</span>', 'class' => ''));
     css::add(array('media/css/screen.css', 'media/css/fancy-type/screen.css'));
     $tvalue = $this->uri->segment(1);
     if (empty($tvalue)) {
         $menu[0]['class'] = 'current';
     } else {
         for ($i = 0, $cnt = count($menu); $i < $cnt; $i++) {
             if ($menu[$i]['link'] == $tvalue) {
                 $menu[$i]['class'] = 'current';
             } else {
                 $menu[$i]['class'] = '';
             }
         }
     }
     $this->template->menu = $menu;
     $this->template->footer = '&#169; Public Regulation Commission';
 }
Example #5
0
 public function index()
 {
     css::add(array('media/css/home.css'));
     $this->template->content = new View('content/home');
 }
 public function index()
 {
     css::add(array('media/css/liqajax.css'));
     $this->template->content = new View('content/liqajax');
     javascript::add(array('media/js/ext-base.js', 'media/js/ext-all.js', 'media/js/liqajax.js'));
 }