code
stringlengths
1
2.01M
language
stringclasses
1 value
<? $attributes = array('class' => 'email', 'id' => 'checknew'); echo form_open('town/dels', $attributes); ?> <table class="admindata"> <thead> <tr> <th colspan="4"> <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="<?=lang('delete');?>"> ...
PHP
<?=form_open(uri_string());?> <table class="form"> <tr> <td class="w150 required label">Tỉnh thành</td> <td><input type="text" name="town_name" id="town_name" style="width: 400px;" value=""></td> </tr> <tr> <td class="w150 required label">Thứ tự</td> <td><input type="...
PHP
<?=form_open(uri_string());?> <table class="form"> <tr> <td class="w150 required label">Tỉnh thành</td> <td><input type="text" name="town_name" id="town_name" style="width: 400px;" value="<?=$rs->town_name;?>"></td> </tr> <tr> <td class="w150 required label">Thứ tự</td> ...
PHP
<? $attributes = array('class' => 'email', 'id' => 'checknew'); echo form_open('admin/dels', $attributes); ?> <input type="hidden" name="page" value="<?=(int)$this->uri->segment('3')?>"> <table class="admindata"> <thead> <tr> <th colspan="6"> <i...
PHP
<?=form_open(uri_string());?> <table class="form"> <tr> <td class="w150 required label">Tên Modules</td> <td> <select name="permission_id" style="width: 400px;"> <?foreach($list as $val):?> <option value="<?=$val->permission_id?>" <?=($val->permission_id == $this->uri->segment(3))?'selected="sele...
PHP
<?=form_open(uri_string());?> <table class="form"> <tr> <td class="w150 required label">Tên Modules</td> <td> <select name="permission_id" style="width: 400px;"> <?foreach($list as $val):?> <option value="<?=$val->permission_id?>" <?=($val->permission_id == $this->uri->segment(3))?'selected="sele...
PHP
<? $attributes = array('class' => 'email', 'id' => 'checknew'); echo form_open('admin/dels', $attributes); ?> <input type="hidden" name="page" value="<?=(int)$this->uri->segment('3')?>"> <table class="admindata"> <thead> <tr> <th colspan="5"> <i...
PHP
<?=form_open(uri_string());?> <table class="form"> <tr> <td class="w150 required label">Tên Modules</td> <td><input type="text" name="permission_name" class="w300" value="<?=set_value('permission_name')?>"></td> </tr> <tr> <td class="required label">Ghi chú</td> <td> <textarea style="width: 400p...
PHP
<?=form_open(uri_string());?> <table class="form"> <tr> <td class="w150 required label">Tên Modules</td> <td><input type="text" name="permission_name" class="w300" value="<?=$rs->permission_name?>"></td> </tr> <tr> <td class="required label">Ghi chú</td> <td> <input type="text" name="permission_...
PHP
<div class="box-white"><?=$title?></div> <div class="box-content"> <?=form_open('admin/add',array('id'=>'checknew'));?> <table> <tr> <td> <table class="form"> <tr> <td class="w150 label">Tên đăng nhập</td> <td><input ty...
PHP
<?=form_open(uri_string());?> <table width="100%"> <tr> <td> <table width="100%" border="0" cellpadding="5" cellspacing="0" class="form"> <tr> <td class="label">Mật khẩu hiện tại</td> <td><input type="password" name="oldpass" class="w200" value=""></td> </tr> <tr> <td class...
PHP
<div class="box-white"><?=$title?></div> <div class="box-content"> <div> </div>
PHP
<? $attributes = array('class' => 'email', 'id' => 'checknew'); echo form_open('admin/dels', $attributes); ?> <input type="hidden" name="page" value="<?=(int)$this->uri->segment('3')?>"> <table class="admindata"> <thead> <tr> <th colspan="4"> <input type="submit" onclick="return veri...
PHP
<?=form_open(uri_string(),array('id'=>'checknew'));?> <table> <tr> <td> <input type="hidden" name="AdminID" value="<?=$admin_id?>"> <table class="form"> <tr> <td class="w150 label">Tên đăng nhập</td> <td><input type=...
PHP
<script type="text/javascript"> function insert(file) { $("#<?php echo $this->uri->segment(3)?>", top.document).val(file); parent.$.fn.colorbox.close(); } </script> <? $seg2 = $this->uri->segment(2); ?> <div class="media-upload-header"> <ul id="menu"> <li><a href="<?php echo base_url()?>i...
PHP
<style type="text/css"> ul.site li { float:left; margin:5px; width:80px; height:80px; overflow:hidden; border:1px solid #CCC; } div.pages { clear:both; height:20px; padding:5px; } </style> <script type="text/javascript"> function insert(file) { $("#<?php echo $this->uri->segment(3)?>", top.d...
PHP
<div id="c_left" style="width: 50%"> <div class="box-content"> <div id="cpanel"> <div class="icon"><a href="<?=url?>siteconfig"> <img src="<?=url?>templates/images/header/icon-48-config.png" alt="" /><span>Cấu hình</span></a></div> <div class="icon"><a href="<?=url?>news_category"...
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="description" content=""> <meta name="keywords" content=""> <title><?=lang('login');?></title>...
PHP
<?php function searchBar($class=array(),$option,$url_search) { $CI =& get_instance(); $search_bar = isset($class['search_bar'])?$class['search_bar']:'search_bar'; $key_search = isset($class['key_search'])?$class['key_search']:'key_search'; $field_search = isset($class['field_search'])?$class['fiel...
PHP
<?php function datevn($day=''){ if(empty($day)) return ''; return strftime("%d/%m/%Y", strtotime($day)); } function format_date_show($date) { //ngay thang xem d/m/Y if(empty($date)) return ''; $arr = explode(' ',$date); $arr_date =explode('-',$arr[0]); return $arr_date[2].'/'.$arr_date[1].'/'.$arr_...
PHP
<?php function fn_resize_image($src, $dest, $new_width = 0, $new_height = 0, $make_box = true, $bg_color = '#ffffff', $save_original = false) { static $notification_set = false; static $gd_settings = array(); if(file_exists($dest)){ unlink($dest); } if (file_exists($src) && !empty($des...
PHP
<?php function icon_edit($link){ return '<a href="'.site_url($link).'" title="'.lang('update').'"><img src="'.base_url().'templates/icon/edit.gif"></a>'; } function icon_active($table,$field,$id,$status){ if($status==1){ $rep ='un_'; }else{ $rep =''; } return '<a hre...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); if ( ! function_exists('base_url')) { function base_url() { $CI =& get_instance(); return $CI->config->slash_item('base_url'); } } if ( ! function_exists('base_url_site')) { function base_url_sit...
PHP
<?php function str_limit($str, $n = 300) { if (strlen($str) <= $n) { return $str; } $limit = strpos($str,' ', $n) ; while($limit==false&&$n>1) { $n--; $limit = strpos($str,' ', $n) ; } $limit = $limit ? $limit : $n ; $out = substr($str, 0, $limit) ...
PHP
<!DOCTYPE html> <html lang="en"> <head> <title>Database Error</title> <style type="text/css"> ::selection{ background-color: #E13300; color: white; } ::moz-selection{ background-color: #E13300; color: white; } ::webkit-selection{ background-color: #E13300; color: white; } body { background-color: #fff; margin: 40px...
PHP
<!DOCTYPE html> <html lang="en"> <head> <title>404 Page Not Found</title> <style type="text/css"> ::selection{ background-color: #E13300; color: white; } ::moz-selection{ background-color: #E13300; color: white; } ::webkit-selection{ background-color: #E13300; color: white; } body { background-color: #fff; margin: ...
PHP
<!DOCTYPE html> <html lang="en"> <head> <title>Error</title> <style type="text/css"> ::selection{ background-color: #E13300; color: white; } ::moz-selection{ background-color: #E13300; color: white; } ::webkit-selection{ background-color: #E13300; color: white; } body { background-color: #fff; margin: 40px; font: ...
PHP
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;"> <h4>A PHP Error was encountered</h4> <p>Severity: <?php echo $severity; ?></p> <p>Message: <?php echo $message; ?></p> <p>Filename: <?php echo $filepath; ?></p> <p>Line Number: <?php echo $line; ?></p> </div>
PHP
<?php class CI_Upload { // thu muc upload goc private $_root_upload_dir; // thu muc upload theo Nam/Thang/Ngay private $_current_upload_dir; // duong dan upload private $_upload_path; // loai file cho phep private $_allow_type = array('image/gif','image/jpeg','image/jpg','image/png' ); // dung lu...
PHP
<?php # ========================================================================# # # Author: Rajani .B # Version: 1.0 # Date: 07-July-2010 # Purpose: Resizes and saves image # Requires : Requires PHP5, GD library. # Usage Example: # include("cl...
PHP
<?php class editor_library{ function __construct(){ $this->CI = get_instance(); } function editor_advanced($name,$value,$error){ $data ='<script type="text/javascript" src="'.base_url().'templates/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>'; $data .='<scrip...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class upload_library { function __construct() { $this->CI = get_instance(); } /* * @method: uploadfile * @param : string $path * @date : 06/04/2013 * @desc : upload hinh anh * @email : tritigi@gmail.com *...
PHP
<?php class image_library { function move_file($from, $to) { $upload_mode = (@ini_get('open_basedir') || @ini_get('safe_mode') || strtolower(@ini_get('safe_mode')) == 'on') ? 'move' : 'copy'; switch ($upload_mode) { case 'copy': if (!@copy($from, $to)) { if (!@move_uploaded_file($from, $to)) ...
PHP
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class site { // Public properties public $settings = array(); // Protected or private properties protected $_table; // Constructor public function __construct() { if (!isset($this->CI)) ...
PHP
<?php /** *This is a class that can process an image on the fly by either generate a thumbnail, apply an watermark to the image, or resize it. * * The processed image can either be displayed in a page, saved to a file, or returned to a variable. * It requires the PHP with support for GD library extension in either...
PHP
<?php class pagination_library{ function __construct(){ $this->CI = get_instance(); } function pagination($num,$offset,$limit,$url){ //$id_blog = $this->input->post('id_blog'); $page = $offset; $adjacents = 2; if($page) ...
PHP
<?php class string_library{ function stringchange($str) { $str = strip_tags($str); $str = mb_strtolower($str,'utf-8'); $str = preg_replace("/(à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ)/", 'a', $str); //|á|à|ả|ã|ạ|ấ|ầ|ẩ|ẫ|ậ|ắ|ằ|ẳ|ẵ|ặ $str = preg_replace("/(è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ)/", 'e', $str); $str = preg_r...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class icon_library { public function __construct() { $this->CI = &get_instance(); } function publish($table,$field,$id,$status) { if($status==0){ $rep ='_x'; }else{ $rep =''; } return '<a href="javascript:;" o...
PHP
<?php class permit_library { function __construct() { $this->CI =& get_instance(); //$this->check_permit(); } function check_permit() { $module = $this->CI->uri->segment(1); $func = $this->CI->uri->segment(2); $this->CI->db->select('sys_permission_detail.*'); $this->CI->db->where('s...
PHP
<?php class editor_model extends CI_Model { function __construct() { parent::__construct(); } function getAllFile($num,$offset) { $ar_img = array('gif','png','jpg','jpeg'); $this->db->where_in('ext',$ar_img); $this->db->order_by('img_id','DESC'); $query = $this->db->get('sys...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Admin_Model extends CI_Model { function __construct() { parent::__construct(); } function getAllAdmin($num,$offset) { $query = $this->db->get('sys_admin',$num,$offset); return $query->r...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Login_Model extends CI_Model { function __construct() { parent::__construct(); } function get_admin($user_name,$password) { $this->db->where('login_name',$user_name); $this->db->wher...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Permission_Model extends CI_Model { function __construct() { parent::__construct(); } function get_all_permission() { return $this->db->get('sys_permission')->result(); } function get_permission_by_id() { ...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class AdminCP_Model extends CI_Model { function __construct() { parent::__construct(); } } ?>
PHP
<?php if (! defined('BASEPATH')) exit('No direct script access allowed'); class Town_model extends CI_Model { function __construct(){ parent::__construct(); } function get_all($num,$offset) { $this->db->order_by('sort_no','ASC'); $this->db->order_by('town_id','ASC'); return $this->db->get...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Func_Permit_Model extends CI_Model { function __construct() { parent::__construct(); } function get_list_func_by_permit($permission_id) { if($permission_id!=0){ $this->db->where('permission_id',$permission_id); }...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Logs_Model extends CI_Model { function __construct() { parent::__construct(); } function get_all_log($admin_id,$num,$offset) { $this->db->where('admin_id',$admin_id); $this->db->order_by('date_log','DESC'); ...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class ajax_model extends CI_Model { function __construct() { parent::__construct(); } function get_last_order(){ $this->db->order_by('CartID','DESC'); $this->db->where('Status !=','Status'); $this->db->where('IsDele...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class filemanager_model extends CI_Model { function __construct() { parent::__construct(); } function getAllFile($num=30,$offset=0) { $this->db->order_by('img_id','DESC'); $query = $this->db->get('sys_images...
PHP
<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); /* load the MX_Router class */ require APPPATH."third_party/MX/Router.php"; class MY_Router extends MX_Router {}
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); // CodeIgniter i18n library by Jérôme Jaglale // http://maestric.com/en/doc/php/codeigniter_i18n // version 10 - May 10, 2012 class MY_Config extends CI_Config { function site_url($uri = '') { if (is_array($uri)) { $uri = implode('...
PHP
<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); /* load the MX_Loader class */ require APPPATH."third_party/MX/Loader.php"; class MY_Loader extends MX_Loader {}
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); // CodeIgniter i18n library by Jérôme Jaglale // http://maestric.com/en/doc/php/codeigniter_i18n // version 10 - May 10, 2012 class MY_Lang extends CI_Lang { /************************************************** configuration ***...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class ajax extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('ajax_model','ajax'); $this->load->helper('img_helper'); } function orderlast() { $data['list'] = $thi...
PHP
<? class editor extends CI_Controller { protected $_templates; public function __construct() { parent::__construct(); $this->load->model('editor_model','editor'); } function index() { $data['title'] = ''; $config['base_url'] = base_url().'editor/inde...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Admin extends CI_Controller { protected $_templates; function __construct() { parent::__construct(); $this->pre_message = ""; $this->load->model('admin_model','admin'); $this->load->librar...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class AdminCP extends CI_Controller { protected $_templates; function __construct() { parent::__construct(); $this->load->model('admincp_model','admincp'); } function index() { $data['title'] = 'Control Panel'; ...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Permission extends CI_Controller { protected $_templates; function __construct() { parent::__construct(); $this->pre_message =""; $this->load->model('permission_model','permission'); /*$this->permit_library->...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Login extends CI_Controller { protected $_templates; public function __construct() { parent::__construct(); $this->load->model('login_model','login'); } public function index() { ...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Func_Permit extends CI_Controller { protected $_templates; function __construct() { parent::__construct(); $this->pre_message = ""; $this->load->model('func_permit_model','func_permit'); $this->permit_library-...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class logs extends CI_Controller { protected $_templates; function __construct() { parent::__construct(); $this->load->model('logs_model','logs'); $this->permit_library->check_permit(); $this->session->set_userdata(array...
PHP
<?php class Town extends CI_Controller { function __construct() { parent::__construct(); $this->permit_library->check_permit(); $this->session->set_userdata(array('Url'=>uri_string())); $this->load->model('town_model','town'); } function index() { $data = array(); $data['title'] =...
PHP
<?php class filemanager extends CI_Controller { protected $_templates; public function __construct() { parent::__construct(); $this->load->model('filemanager_model','filemanager'); $this->load->library('icon_library') ; } function index() { $data['title'] = ''; $config['base...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class hoidonghuong_category extends CI_Controller { protected $_templates; function __construct() { parent::__construct(); $this->pre_message = ""; /*$this->permit_library->check_permit(); $this->session->set_us...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Welcome extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | Foreign Characters | ------------------------------------------------------------------- | This file contains an array of foreign characters for transliteration | conver...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | URI ROUTING | ------------------------------------------------------------------------- | This file lets you re-map URI requests to specific controller functi...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | USER AGENT TYPES | ------------------------------------------------------------------- | This file contains four arrays of user agent data. It is used by the | User Age...
PHP
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Enable/Disable Migrations |-------------------------------------------------------------------------- | | Migrations are disabled by default but should be enabled ...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | Hooks | ------------------------------------------------------------------------- | This file lets you define "hooks" to extend CI without hacking the core | files...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $_doctypes = array( 'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">', 'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | SMILEYS | ------------------------------------------------------------------- | This file contains an array of smileys for use with the emoticon helper. | Individual ima...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | MIME TYPES | ------------------------------------------------------------------- | This file contains an array of mime types. It is used by the | Upload class to help i...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | File and Directory Modes |-------------------------------------------------------------------------- | | These prefs are used when checking and setting modes when...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS | ------------------------------------------------------------------- | This file will contain the settings needed to access your dat...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | AUTO-LOADER | ------------------------------------------------------------------- | This file specifies which systems should be loaded by default. | | In order to...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | Profiler Sections | ------------------------------------------------------------------------- | This file lets you determine whether or not various sections of Pro...
PHP
<?php $config['contact'][0]='-- Chưa chọn --'; $config['contact'][TYPE_TIN]='Tin tức'; $config['contact'][TYPE_VIDEO]='Video';
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your bas...
PHP
<?php /* *--------------------------------------------------------------- * APPLICATION ENVIRONMENT *--------------------------------------------------------------- * * You can load different configurations depending on your * current environment. Setting the environment also influences * things like l...
PHP
<?php /* *--------------------------------------------------------------- * APPLICATION ENVIRONMENT *--------------------------------------------------------------- * * You can load different configurations depending on your * current environment. Setting the environment also influences * things like l...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | URI ROUTING | ------------------------------------------------------------------------- | This file lets you re-map URI requests to specific controller functi...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* DATETIME CONSTANTS */ $datetime = date('Y-m-d H:i:s') ; $file_name_date = date("M_d_Y"); define('NOW', $datetime); define('FILE_DATE',$file_name_date); /* |-------------------------------------------------------------------------- | File an...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, ...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | AUTO-LOADER | ------------------------------------------------------------------- | This file specifies which systems should be loaded by default. | | In order to keep t...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | MIME TYPES | ------------------------------------------------------------------- | This file contains an array of mime types. It is used by the | Upload class to help i...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | Foreign Characters | ------------------------------------------------------------------- | This file contains an array of foreign characters for transliteration | conver...
PHP
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Enable/Disable Migrations |-------------------------------------------------------------------------- | | Migrations are disabled by default but should be enabled | whe...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS | ------------------------------------------------------------------- | This file will contain the settings needed to access your database...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | USER AGENT TYPES | ------------------------------------------------------------------- | This file contains four arrays of user agent data. It is used by the | User Age...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); //For view all the languages go to the folder assets/grocery_crud/languages/ $config['grocery_crud_default_language'] = 'english'; // There are only three choices: "uk-date" (dd/mm/yyyy), "us-date" (mm/dd/yyyy) or "sql-date" (yyyy-mm-dd) $...
PHP
<?php $config = array( 'for_applicant' => array( array( 'field' => 'level_id', 'label' => 'Grade Level', 'rules' => 'required|numeric|trim|htmlspecialchars' ), array( 'field' => 'school_year', 'label' => 'School Year', 'rules' => 'required|trim|htmlspecialchars' ), array( 'field' => 'child_fname',...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | Hooks | ------------------------------------------------------------------------- | This file lets you define "hooks" to extend CI without hacking the core | files...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | Profiler Sections | ------------------------------------------------------------------------- | This file lets you determine whether or not various sections of Pro...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $_doctypes = array( 'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">', 'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/...
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | SMILEYS | ------------------------------------------------------------------- | This file contains an array of smileys for use with the emoticon helper. | Individual ima...
PHP
<style> div.enrollment-menu { padding:20px; border:2px dashed #c0c0c0; } div.option{ margin:20px 5px; } </style> <div class="row"> <div class="large-3 columns">&nbsp;</div> <div class="large-6 columns enrollment-menu"> <div> <h1><?=$message->heading;?></h1> </div> <div class="alert"> <?=$me...
PHP
<?php $this->load->view('enrollment/enrollment_modal'); $genderAttrib = array('' => 'Select Gender...', 'male' => 'Male', 'female' => 'Female' ); $child_birth_position = array('first'=>'First','Second'=>'Second','third'=>'Third','fourth'=>'Fourth','fifth'=>'Fifth','sixth'=>'Sixth','youngest'=>'youngest','only'=>'Only...
PHP
<style> div.enrollment-menu { padding:20px; } div.option{ margin:20px 5px; } ul li{ list-style:none; } textarea{ width:90%; min-height:150px; max-height:150px } span{ padding:0px; margin:0px; font-size:15px; color: #4d4d4d; } form.custom .custom.checkbox.checked:before { content: "\2...
PHP
<?php if(isset($system_message)) echo $system_message;?> <style> div.enrollment-menu { padding:20px; <!--border:2px dashed #c0c0c0;--> } div.option{ margin:20px 5px; } </style> <div class="row"> <div class="large-3 columns">&nbsp;</div> <div class="large-6 columns enrollment-menu content-views"> <di...
PHP