code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
<?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_url'] = base_url().'filemanager/index/'.$this->uri->segment(3);
$data['total'] = $this->filemanager->getNumFile();
$config['total_rows'] = $data['total'];
$config['per_page'] = '10';
$config['uri_segment'] = 4;
$this->pagination->initialize($config);
$data['list'] = $this->filemanager->getAllFile($config['per_page'],(int)$this->uri->segment('4'));
$data['pagination'] = $this->pagination->create_links();
$this->_templates['page'] = 'filemanager/index';
$this->site->load($this->_templates['page'],$data,'basic');
}
function upload()
{
$data['title'] = '';
$this->_templates['page'] = 'filemanager/upload';
$this->form_validation->set_rules('id','','');
if($this->form_validation->run())
{
$file = $this->filemanager->upload();
$data['file'] = $file;
}
$this->site->load($this->_templates['page'],$data,'basic');
}
}
?>
| 123gosaigon | trunk/ 123gosaigon/webadmin/controllers/filemanager.php | PHP | asf20 | 1,256 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | 123gosaigon | trunk/ 123gosaigon/webadmin/controllers/index.html | HTML | asf20 | 114 |
<?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_userdata(array('Url'=>uri_string()));*/
//load language
$this->load->helper('search') ;
$this->lang->load('hoidonghuong');
$this->load->library('string_library');
$this->load->model('hoidonghuong_category_model','hoidonghuong_category');
}
function index()
{
/*Begin search*/
$type = $this->input->post('type');
$data['search_bar']= searchBar(array(),array('catname'=>'Category Name'),'hoidonghuong_category/index/');
if($type=='ajax')
{
$arr_search['key_search'] = $this->input->post('key_search');
$arr_search['field_search'] = $this->input->post('field_search');
$this->session->set_userdata('key_search',$arr_search['key_search']);
$this->session->set_userdata('field_search',$arr_search['field_search']);
}
else
{
$arr_search['key_search']=$this->session->userdata('key_search');
$arr_search['field_search']=$this->session->userdata('field_search');
}
/*End search*/
$data['title'] = 'Danh sách hội đồng hương';
$data['add'] = 'hoidonghuong_category/add';
$config['base_url'] = base_url().'hoidonghuong_category/index/'.(int)$this->uri->segment(3);
$data['num'] = $this->hoidonghuong_category->get_num_data($arr_search);
$config['total_rows'] = $data['num'];
$config['per_page'] = 10;
$config['uri_segment'] = 4;
$this->pagination->initialize($config);
$data['list'] = $this->hoidonghuong_category->get_all_data($config['per_page'],(int)$this->uri->segment(4),$arr_search);
$data['pagination'] = $this->pagination->create_links();
$data['page'] = 'hoidonghuong/category/showlist' ;
$this->load->view('layout/skin', $data);
}
function add()
{
$data['title'] = lang('title_add');
$data['option_pid'] = $this->hoidonghuong_category->getCategory();
if(isset($_POST['bt_submit']))
{
$this->form_validation->set_rules('name_vn',lang('dsq_category_name'),'trim|required');
if($this->form_validation->run() == FALSE){
$this->pre_message = validation_errors();
}else{
$data = $this->build_data();
if($this->hoidonghuong_category->save($data)){
$this->session->set_flashdata('message','Lưu thành công');
redirect('hoidonghuong_category/index');
}else{
$this->pre_message = 'Lưu không thành công';
redirect('hoidonghuong_category/add');
}
}
}
$data['message'] = $this->pre_message;
$this->_templates['page'] = 'hoidonghuong/category/add';
$this->site->load($this->_templates['page'],$data);
}
function edit($id)
{
$data['title'] = lang('title_edit');
$data['rs'] = $this->hoidonghuong_category->get_object($id);
$data['option_pid'] = $this->hoidonghuong_category->getCategory($data['rs']->parentid);
if(isset($_POST['bt_submit']))
{
$this->form_validation->set_rules('name_vn',lang('dsq_category_name'),'trim|required');
if($this->form_validation->run() == FALSE){
$this->pre_message = validation_errors();
}else{
$data = $this->build_data();
if($this->hoidonghuong_category->save($data,$id)){
$this->session->set_flashdata('message','Lưu thành công');
redirect('hoidonghuong_category/index');
}else{
$this->pre_message = 'Lưu không thành công';
redirect('hoidonghuong_category/edit');
}
}
}
$data['message'] = $this->pre_message;
$this->_templates['page'] = 'hoidonghuong/category/edit';
$this->site->load($this->_templates['page'],$data);
}
function del()
{
$id = $this->uri->segment(3);
$page = $this->uri->segment(4);
if($this->hoidonghuong_category->deleted($id))
$this->session->set_flashdata('message','Đã xóa thành công');
else $this->session->set_flashdata('message','Xóa không thành công');
redirect('news_category/index/'.$page);
}
function dels()
{
if(!empty($_POST['ar_id']))
{
$page = (int)$this->input->post('page');
$ar_id = $this->input->post('ar_id');
if(!empty($_POST['btn_submit']))
{
for($i = 0; $i < sizeof($ar_id); $i ++) {
if ($ar_id[$i]){
if($this->hoidonghuong_category->deleted($ar_id[$i]))
$this->session->set_flashdata('message','Đã xóa thành công');
else $this->session->set_flashdata('message','Xóa không thành công');
}
}
}
}
redirect('news_category/index/'.$page);
}
function build_data($flag=1)
{
$req["parentid"] = $this->input->post("parentid",0);
$req["catname"] = $this->input->post("name_vn");
// get image
/*$catlogo = $_FILES['logo'];
if($catlogo['error']==0){
$this->load->library('upload',DAISUQUAN);
$strimage=$this->upload->do_upload($catlogo);
// resize
$name=$this->upload->getName($strimage);
$this->upload->resize($strimage,DAISUQUAN_SMALL.'/'.$name,'landscape',30);
}
$image=$this->input->post("editlogo",'');
$req["catlogo"]=!empty($strimage)?$strimage:$image;*/
$req["order"] = $this->input->post("nb_order");
$req["bl_active"] = (int) $this->input->post("bl_active");
$req["create"] = date('Y-m-d');
//upload hinh anh
$img = $this->input->post("catlogo");
$img_name = end(explode('/', $img)) ;
if($img)
{
if(file_exists('../uploads/hoidonghuong/'.$img_name))
{
unlink('../uploads/hoidonghuong/'.$img_name);
}
fn_resize_image('../uploads/'.$img,'../uploads/hoidonghuong/'.$img_name, 90, 90);
$req["catlogo"] = $img_name;
}
return $req;
}
}
?>
| 123gosaigon | trunk/ 123gosaigon/webadmin/controllers/hoidonghuong_category.php | PHP | asf20 | 5,905 |
<?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 controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/welcome/<method_name>
* @see http://codeigniter.com/user_guide/general/urls.html
*/
public function index()
{
$this->load->view('welcome_message');
}
}
/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */ | 123gosaigon | trunk/ 123gosaigon/webadmin/controllers/welcome.php | PHP | asf20 | 770 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| Foreign Characters
| -------------------------------------------------------------------
| This file contains an array of foreign characters for transliteration
| conversion used by the Text helper
|
*/
$foreign_characters = array(
'/ä|æ|ǽ/' => 'ae',
'/ö|œ/' => 'oe',
'/ü/' => 'ue',
'/Ä/' => 'Ae',
'/Ü/' => 'Ue',
'/Ö/' => 'Oe',
'/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ/' => 'A',
'/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª/' => 'a',
'/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
'/ç|ć|ĉ|ċ|č/' => 'c',
'/Ð|Ď|Đ/' => 'D',
'/ð|ď|đ/' => 'd',
'/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě/' => 'E',
'/è|é|ê|ë|ē|ĕ|ė|ę|ě/' => 'e',
'/Ĝ|Ğ|Ġ|Ģ/' => 'G',
'/ĝ|ğ|ġ|ģ/' => 'g',
'/Ĥ|Ħ/' => 'H',
'/ĥ|ħ/' => 'h',
'/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ/' => 'I',
'/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı/' => 'i',
'/Ĵ/' => 'J',
'/ĵ/' => 'j',
'/Ķ/' => 'K',
'/ķ/' => 'k',
'/Ĺ|Ļ|Ľ|Ŀ|Ł/' => 'L',
'/ĺ|ļ|ľ|ŀ|ł/' => 'l',
'/Ñ|Ń|Ņ|Ň/' => 'N',
'/ñ|ń|ņ|ň|ʼn/' => 'n',
'/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ/' => 'O',
'/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º/' => 'o',
'/Ŕ|Ŗ|Ř/' => 'R',
'/ŕ|ŗ|ř/' => 'r',
'/Ś|Ŝ|Ş|Š/' => 'S',
'/ś|ŝ|ş|š|ſ/' => 's',
'/Ţ|Ť|Ŧ/' => 'T',
'/ţ|ť|ŧ/' => 't',
'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ/' => 'U',
'/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ/' => 'u',
'/Ý|Ÿ|Ŷ/' => 'Y',
'/ý|ÿ|ŷ/' => 'y',
'/Ŵ/' => 'W',
'/ŵ/' => 'w',
'/Ź|Ż|Ž/' => 'Z',
'/ź|ż|ž/' => 'z',
'/Æ|Ǽ/' => 'AE',
'/ß/'=> 'ss',
'/IJ/' => 'IJ',
'/ij/' => 'ij',
'/Œ/' => 'OE',
'/ƒ/' => 'f'
);
/* End of file foreign_chars.php */
/* Location: ./application/config/foreign_chars.php */ | 123gosaigon | trunk/ 123gosaigon/webadmin/config/foreign_chars.php | PHP | asf20 | 1,781 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
| http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
| $route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
| $route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/
$route['default_controller'] = "login";
$route['404_override'] = '';
//$route['banner'] = 'banner/banner/index';
/*$route['user/rao-vat/(:any)'] = 'user/raovat/$1';
$route['user/(:any)'] = 'home/$1';*/
/* End of file routes.php */
/* Location: ./application/config/routes.php */ | 123gosaigon | trunk/ 123gosaigon/webadmin/config/routes.php | PHP | asf20 | 1,722 |
<?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 Agent Class to help identify browser, platform, robot, and
| mobile device data. The array keys are used to identify the device
| and the array values are used to set the actual name of the item.
|
*/
$platforms = array (
'windows nt 6.0' => 'Windows Longhorn',
'windows nt 5.2' => 'Windows 2003',
'windows nt 5.0' => 'Windows 2000',
'windows nt 5.1' => 'Windows XP',
'windows nt 4.0' => 'Windows NT 4.0',
'winnt4.0' => 'Windows NT 4.0',
'winnt 4.0' => 'Windows NT',
'winnt' => 'Windows NT',
'windows 98' => 'Windows 98',
'win98' => 'Windows 98',
'windows 95' => 'Windows 95',
'win95' => 'Windows 95',
'windows' => 'Unknown Windows OS',
'os x' => 'Mac OS X',
'ppc mac' => 'Power PC Mac',
'freebsd' => 'FreeBSD',
'ppc' => 'Macintosh',
'linux' => 'Linux',
'debian' => 'Debian',
'sunos' => 'Sun Solaris',
'beos' => 'BeOS',
'apachebench' => 'ApacheBench',
'aix' => 'AIX',
'irix' => 'Irix',
'osf' => 'DEC OSF',
'hp-ux' => 'HP-UX',
'netbsd' => 'NetBSD',
'bsdi' => 'BSDi',
'openbsd' => 'OpenBSD',
'gnu' => 'GNU/Linux',
'unix' => 'Unknown Unix OS'
);
// The order of this array should NOT be changed. Many browsers return
// multiple browser types so we want to identify the sub-type first.
$browsers = array(
'Flock' => 'Flock',
'Chrome' => 'Chrome',
'Opera' => 'Opera',
'MSIE' => 'Internet Explorer',
'Internet Explorer' => 'Internet Explorer',
'Shiira' => 'Shiira',
'Firefox' => 'Firefox',
'Chimera' => 'Chimera',
'Phoenix' => 'Phoenix',
'Firebird' => 'Firebird',
'Camino' => 'Camino',
'Netscape' => 'Netscape',
'OmniWeb' => 'OmniWeb',
'Safari' => 'Safari',
'Mozilla' => 'Mozilla',
'Konqueror' => 'Konqueror',
'icab' => 'iCab',
'Lynx' => 'Lynx',
'Links' => 'Links',
'hotjava' => 'HotJava',
'amaya' => 'Amaya',
'IBrowse' => 'IBrowse'
);
$mobiles = array(
// legacy array, old values commented out
'mobileexplorer' => 'Mobile Explorer',
// 'openwave' => 'Open Wave',
// 'opera mini' => 'Opera Mini',
// 'operamini' => 'Opera Mini',
// 'elaine' => 'Palm',
'palmsource' => 'Palm',
// 'digital paths' => 'Palm',
// 'avantgo' => 'Avantgo',
// 'xiino' => 'Xiino',
'palmscape' => 'Palmscape',
// 'nokia' => 'Nokia',
// 'ericsson' => 'Ericsson',
// 'blackberry' => 'BlackBerry',
// 'motorola' => 'Motorola'
// Phones and Manufacturers
'motorola' => "Motorola",
'nokia' => "Nokia",
'palm' => "Palm",
'iphone' => "Apple iPhone",
'ipad' => "iPad",
'ipod' => "Apple iPod Touch",
'sony' => "Sony Ericsson",
'ericsson' => "Sony Ericsson",
'blackberry' => "BlackBerry",
'cocoon' => "O2 Cocoon",
'blazer' => "Treo",
'lg' => "LG",
'amoi' => "Amoi",
'xda' => "XDA",
'mda' => "MDA",
'vario' => "Vario",
'htc' => "HTC",
'samsung' => "Samsung",
'sharp' => "Sharp",
'sie-' => "Siemens",
'alcatel' => "Alcatel",
'benq' => "BenQ",
'ipaq' => "HP iPaq",
'mot-' => "Motorola",
'playstation portable' => "PlayStation Portable",
'hiptop' => "Danger Hiptop",
'nec-' => "NEC",
'panasonic' => "Panasonic",
'philips' => "Philips",
'sagem' => "Sagem",
'sanyo' => "Sanyo",
'spv' => "SPV",
'zte' => "ZTE",
'sendo' => "Sendo",
// Operating Systems
'symbian' => "Symbian",
'SymbianOS' => "SymbianOS",
'elaine' => "Palm",
'palm' => "Palm",
'series60' => "Symbian S60",
'windows ce' => "Windows CE",
// Browsers
'obigo' => "Obigo",
'netfront' => "Netfront Browser",
'openwave' => "Openwave Browser",
'mobilexplorer' => "Mobile Explorer",
'operamini' => "Opera Mini",
'opera mini' => "Opera Mini",
// Other
'digital paths' => "Digital Paths",
'avantgo' => "AvantGo",
'xiino' => "Xiino",
'novarra' => "Novarra Transcoder",
'vodafone' => "Vodafone",
'docomo' => "NTT DoCoMo",
'o2' => "O2",
// Fallback
'mobile' => "Generic Mobile",
'wireless' => "Generic Mobile",
'j2me' => "Generic Mobile",
'midp' => "Generic Mobile",
'cldc' => "Generic Mobile",
'up.link' => "Generic Mobile",
'up.browser' => "Generic Mobile",
'smartphone' => "Generic Mobile",
'cellphone' => "Generic Mobile"
);
// There are hundreds of bots but these are the most common.
$robots = array(
'googlebot' => 'Googlebot',
'msnbot' => 'MSNBot',
'slurp' => 'Inktomi Slurp',
'yahoo' => 'Yahoo',
'askjeeves' => 'AskJeeves',
'fastcrawler' => 'FastCrawler',
'infoseek' => 'InfoSeek Robot 1.0',
'lycos' => 'Lycos'
);
/* End of file user_agents.php */
/* Location: ./application/config/user_agents.php */ | 123gosaigon | trunk/ 123gosaigon/webadmin/config/user_agents.php | PHP | asf20 | 5,589 |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Enable/Disable Migrations
|--------------------------------------------------------------------------
|
| Migrations are disabled by default but should be enabled
| whenever you intend to do a schema migration.
|
*/
$config['migration_enabled'] = FALSE;
/*
|--------------------------------------------------------------------------
| Migrations version
|--------------------------------------------------------------------------
|
| This is used to set migration version that the file system should be on.
| If you run $this->migration->latest() this is the version that schema will
| be upgraded / downgraded to.
|
*/
$config['migration_version'] = 0;
/*
|--------------------------------------------------------------------------
| Migrations Path
|--------------------------------------------------------------------------
|
| Path to your migrations folder.
| Typically, it will be within your application path.
| Also, writing permission is required within the migrations path.
|
*/
$config['migration_path'] = APPPATH . 'migrations/';
/* End of file migration.php */
/* Location: ./application/config/migration.php */ | 123gosaigon | trunk/ 123gosaigon/webadmin/config/migration.php | PHP | asf20 | 1,322 |
<?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. Please see the user guide for info:
|
| http://codeigniter.com/user_guide/general/hooks.html
|
*/
/* End of file hooks.php */
/* Location: ./application/config/hooks.php */ | 123gosaigon | trunk/ 123gosaigon/webadmin/config/hooks.php | PHP | asf20 | 498 |
<?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/xhtml1/DTD/xhtml1-strict.dtd">',
'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
'html5' => '<!DOCTYPE html>',
'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'
);
/* End of file doctypes.php */
/* Location: ./application/config/doctypes.php */ | 123gosaigon | trunk/ 123gosaigon/webadmin/config/doctypes.php | PHP | asf20 | 1,138 |
<?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 images can be used to replace multiple simileys. For example:
| :-) and :) use the same image replacement.
|
| Please see user guide for more info:
| http://codeigniter.com/user_guide/helpers/smiley_helper.html
|
*/
$smileys = array(
// smiley image name width height alt
':-)' => array('grin.gif', '19', '19', 'grin'),
':lol:' => array('lol.gif', '19', '19', 'LOL'),
':cheese:' => array('cheese.gif', '19', '19', 'cheese'),
':)' => array('smile.gif', '19', '19', 'smile'),
';-)' => array('wink.gif', '19', '19', 'wink'),
';)' => array('wink.gif', '19', '19', 'wink'),
':smirk:' => array('smirk.gif', '19', '19', 'smirk'),
':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'),
':-S' => array('confused.gif', '19', '19', 'confused'),
':wow:' => array('surprise.gif', '19', '19', 'surprised'),
':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'),
':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
'%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'),
':P' => array('raspberry.gif', '19', '19', 'raspberry'),
':blank:' => array('blank.gif', '19', '19', 'blank stare'),
':long:' => array('longface.gif', '19', '19', 'long face'),
':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
'8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
':down:' => array('downer.gif', '19', '19', 'downer'),
':red:' => array('embarrassed.gif', '19', '19', 'red face'),
':sick:' => array('sick.gif', '19', '19', 'sick'),
':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
':-/' => array('hmm.gif', '19', '19', 'hmmm'),
'>:(' => array('mad.gif', '19', '19', 'mad'),
':mad:' => array('mad.gif', '19', '19', 'mad'),
'>:-(' => array('angry.gif', '19', '19', 'angry'),
':angry:' => array('angry.gif', '19', '19', 'angry'),
':zip:' => array('zip.gif', '19', '19', 'zipper'),
':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
':ahhh:' => array('shock.gif', '19', '19', 'shock'),
':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
':snake:' => array('snake.gif', '19', '19', 'snake'),
':exclaim:' => array('exclaim.gif', '19', '19', 'excaim'),
':question:' => array('question.gif', '19', '19', 'question') // no comma after last item
);
/* End of file smileys.php */
/* Location: ./application/config/smileys.php */ | 123gosaigon | trunk/ 123gosaigon/webadmin/config/smileys.php | PHP | asf20 | 3,295 |
<?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 identify allowed file types.
|
*/
$mimes = array( 'hqx' => 'application/mac-binhex40',
'cpt' => 'application/mac-compactpro',
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'),
'bin' => 'application/macbinary',
'dms' => 'application/octet-stream',
'lha' => 'application/octet-stream',
'lzh' => 'application/octet-stream',
'exe' => array('application/octet-stream', 'application/x-msdownload'),
'class' => 'application/octet-stream',
'psd' => 'application/x-photoshop',
'so' => 'application/octet-stream',
'sea' => 'application/octet-stream',
'dll' => 'application/octet-stream',
'oda' => 'application/oda',
'pdf' => array('application/pdf', 'application/x-download'),
'ai' => 'application/postscript',
'eps' => 'application/postscript',
'ps' => 'application/postscript',
'smi' => 'application/smil',
'smil' => 'application/smil',
'mif' => 'application/vnd.mif',
'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'),
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint'),
'wbxml' => 'application/wbxml',
'wmlc' => 'application/wmlc',
'dcr' => 'application/x-director',
'dir' => 'application/x-director',
'dxr' => 'application/x-director',
'dvi' => 'application/x-dvi',
'gtar' => 'application/x-gtar',
'gz' => 'application/x-gzip',
'php' => 'application/x-httpd-php',
'php4' => 'application/x-httpd-php',
'php3' => 'application/x-httpd-php',
'phtml' => 'application/x-httpd-php',
'phps' => 'application/x-httpd-php-source',
'js' => 'application/x-javascript',
'swf' => 'application/x-shockwave-flash',
'sit' => 'application/x-stuffit',
'tar' => 'application/x-tar',
'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
'xhtml' => 'application/xhtml+xml',
'xht' => 'application/xhtml+xml',
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'),
'mid' => 'audio/midi',
'midi' => 'audio/midi',
'mpga' => 'audio/mpeg',
'mp2' => 'audio/mpeg',
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
'aif' => 'audio/x-aiff',
'aiff' => 'audio/x-aiff',
'aifc' => 'audio/x-aiff',
'ram' => 'audio/x-pn-realaudio',
'rm' => 'audio/x-pn-realaudio',
'rpm' => 'audio/x-pn-realaudio-plugin',
'ra' => 'audio/x-realaudio',
'rv' => 'video/vnd.rn-realvideo',
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
'bmp' => array('image/bmp', 'image/x-windows-bmp'),
'gif' => 'image/gif',
'jpeg' => array('image/jpeg', 'image/pjpeg'),
'jpg' => array('image/jpeg', 'image/pjpeg'),
'jpe' => array('image/jpeg', 'image/pjpeg'),
'png' => array('image/png', 'image/x-png'),
'tiff' => 'image/tiff',
'tif' => 'image/tiff',
'css' => 'text/css',
'html' => 'text/html',
'htm' => 'text/html',
'shtml' => 'text/html',
'txt' => 'text/plain',
'text' => 'text/plain',
'log' => array('text/plain', 'text/x-log'),
'rtx' => 'text/richtext',
'rtf' => 'text/rtf',
'xml' => 'text/xml',
'xsl' => 'text/xml',
'mpeg' => 'video/mpeg',
'mpg' => 'video/mpeg',
'mpe' => 'video/mpeg',
'qt' => 'video/quicktime',
'mov' => 'video/quicktime',
'avi' => 'video/x-msvideo',
'movie' => 'video/x-sgi-movie',
'doc' => 'application/msword',
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip'),
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip'),
'word' => array('application/msword', 'application/octet-stream'),
'xl' => 'application/excel',
'eml' => 'message/rfc822',
'json' => array('application/json', 'text/json')
);
/* End of file mimes.php */
/* Location: ./application/config/mimes.php */
| 123gosaigon | trunk/ 123gosaigon/webadmin/config/mimes.php | PHP | asf20 | 4,453 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system. The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);
/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/
define('FOPEN_READ', 'rb');
define('FOPEN_READ_WRITE', 'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE', 'ab');
define('FOPEN_READ_WRITE_CREATE', 'a+b');
define('FOPEN_WRITE_CREATE_STRICT', 'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
/* End of file constants.php */
/* Location: ./application/config/constants.php */ | 123gosaigon | trunk/ 123gosaigon/webadmin/config/constants.php | PHP | asf20 | 1,558 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
| For complete instructions please consult the 'Database Connection'
| page of the User Guide.
|
| -------------------------------------------------------------------
| EXPLANATION OF VARIABLES
| -------------------------------------------------------------------
|
| ['hostname'] The hostname of your database server.
| ['username'] The username used to connect to the database
| ['password'] The password used to connect to the database
| ['database'] The name of the database you want to connect to
| ['dbdriver'] The database type. ie: mysql. Currently supported:
mysql, mysqli, postgre, odbc, mssql, sqlite, oci8
| ['dbprefix'] You can add an optional prefix, which will be added
| to the table name when using the Active Record class
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
| ['cachedir'] The path to the folder where cache files should be stored
| ['char_set'] The character set used in communicating with the database
| ['dbcollat'] The character collation used in communicating with the database
| NOTE: For MySQL and MySQLi databases, this setting is only used
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
| (and in table creation queries made with DB Forge).
| There is an incompatibility in PHP with mysql_real_escape_string() which
| can make your site vulnerable to SQL injection if you are using a
| multi-byte character set and are running versions lower than these.
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
| ['autoinit'] Whether or not to automatically initialize the database.
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
| - good for ensuring strict SQL while developing
|
| The $active_group variable lets you choose which connection group to
| make active. By default there is only one group (the 'default' group).
|
| The $active_record variables lets you determine whether or not to load
| the active record class
*/
$active_group = 'default';
$active_record = TRUE;
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'root';
$db['default']['password'] = '';
$db['default']['database'] = 'mtw_news';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_unicode_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
/* End of file database.php */
/* Location: ./application/config/database.php */ | 123gosaigon | trunk/ 123gosaigon/webadmin/config/database.php | PHP | asf20 | 3,293 |
<?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 the framework as light-weight as possible only the
| absolute minimal resources are loaded by default. For example,
| the database is not connected to automatically since no assumption
| is made regarding whether you intend to use it. This file lets
| you globally define which systems you would like loaded with every
| request.
|
| -------------------------------------------------------------------
| Instructions
| -------------------------------------------------------------------
|
| These are the things you can load automatically:
|
| 1. Packages
| 2. Libraries
| 3. Helper files
| 4. Custom config files
| 5. Language files
| 6. Models
|
*/
/*
| -------------------------------------------------------------------
| Auto-load Packges
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
*/
$autoload['packages'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in the system/libraries folder
| or in your application/libraries folder.
|
| Prototype:
|
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
*/
$autoload['libraries'] = array('database', 'session','form_validation','site','pagination','permit_library');
/*
| -------------------------------------------------------------------
| Auto-load Helper Files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['helper'] = array('url', 'file');
*/
$autoload['helper'] = array('language','url', 'file','icon','img');
/*
| -------------------------------------------------------------------
| Auto-load Config files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['config'] = array('config1', 'config2');
|
| NOTE: This item is intended for use ONLY if you have created custom
| config files. Otherwise, leave it blank.
|
*/
$autoload['config'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Language files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['language'] = array('lang1', 'lang2');
|
| NOTE: Do not include the "_lang" part of your file. For example
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
*/
$autoload['language'] = array('admin');
/*
| -------------------------------------------------------------------
| Auto-load Models
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['model'] = array('model1', 'model2');
|
*/
$autoload['model'] = array();
/* End of file autoload.php */
/* Location: ./application/config/autoload.php */ | 123gosaigon | trunk/ 123gosaigon/webadmin/config/autoload.php | PHP | asf20 | 3,323 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Profiler Sections
| -------------------------------------------------------------------------
| This file lets you determine whether or not various sections of Profiler
| data are displayed when the Profiler is enabled.
| Please see the user guide for info:
|
| http://codeigniter.com/user_guide/general/profiling.html
|
*/
/* End of file profiler.php */
/* Location: ./application/config/profiler.php */ | 123gosaigon | trunk/ 123gosaigon/webadmin/config/profiler.php | PHP | asf20 | 564 |
<?php
$config['contact'][0]='-- Chưa chọn --';
$config['contact'][TYPE_TIN]='Tin tức';
$config['contact'][TYPE_VIDEO]='Video'; | 123gosaigon | trunk/ 123gosaigon/webadmin/config/config_contact.php | PHP | asf20 | 134 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | 123gosaigon | trunk/ 123gosaigon/webadmin/config/index.html | HTML | asf20 | 114 |
<?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,
| WITH a trailing slash:
|
| http://example.com/
|
| If this is not set then CodeIgniter will guess the protocol, domain and
| path to your installation.
|
*/
$config['base_url'] = "http://".$_SERVER['HTTP_HOST']."/webadmin/";
$config['base_url_site'] = "http://".$_SERVER['HTTP_HOST']."/";
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = '';
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string. The default setting of 'AUTO' works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO' Default - auto detects
| 'PATH_INFO' Uses the PATH_INFO
| 'QUERY_STRING' Uses the QUERY_STRING
| 'REQUEST_URI' Uses the REQUEST_URI
| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
|
*/
$config['uri_protocol'] = 'AUTO';
/*
|--------------------------------------------------------------------------
| URL suffix
|--------------------------------------------------------------------------
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
| For more information please see the user guide:
|
| http://codeigniter.com/user_guide/general/urls.html
*/
$config['url_suffix'] = '';
/*
|--------------------------------------------------------------------------
| Default Language
|--------------------------------------------------------------------------
|
| This determines which set of language files should be used. Make sure
| there is an available translation if you intend to use something other
| than english.
|
*/
$config['language'] = 'vn';
/*
|--------------------------------------------------------------------------
| Default Character Set
|--------------------------------------------------------------------------
|
| This determines which character set is used by default in various methods
| that require a character set to be provided.
|
*/
$config['charset'] = 'UTF-8';
/*
|--------------------------------------------------------------------------
| Enable/Disable System Hooks
|--------------------------------------------------------------------------
|
| If you would like to use the 'hooks' feature you must enable it by
| setting this variable to TRUE (boolean). See the user guide for details.
|
*/
$config['enable_hooks'] = FALSE;
/*
|--------------------------------------------------------------------------
| Class Extension Prefix
|--------------------------------------------------------------------------
|
| This item allows you to set the filename/classname prefix when extending
| native libraries. For more information please see the user guide:
|
| http://codeigniter.com/user_guide/general/core_classes.html
| http://codeigniter.com/user_guide/general/creating_libraries.html
|
*/
$config['subclass_prefix'] = 'MY_';
/*
|--------------------------------------------------------------------------
| Allowed URL Characters
|--------------------------------------------------------------------------
|
| This lets you specify with a regular expression which characters are permitted
| within your URLs. When someone tries to submit a URL with disallowed
| characters they will get a warning message.
|
| As a security measure you are STRONGLY encouraged to restrict URLs to
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
| Leave blank to allow all characters -- but only if you are insane.
|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
/*
|--------------------------------------------------------------------------
| Enable Query Strings
|--------------------------------------------------------------------------
|
| By default CodeIgniter uses search-engine friendly segment based URLs:
| example.com/who/what/where/
|
| By default CodeIgniter enables access to the $_GET array. If for some
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
| You can optionally enable standard query string based URLs:
| example.com?who=me&what=something&where=here
|
| Options are: TRUE or FALSE (boolean)
|
| The other items let you set the query string 'words' that will
| invoke your controllers and its functions:
| example.com/index.php?c=controller&m=function
|
| Please note that some of the helpers won't work as expected when
| this feature is enabled, since CodeIgniter is designed primarily to
| use segment based URLs.
|
*/
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd'; // experimental not currently in use
/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| If you have enabled error logging, you can set an error threshold to
| determine what gets logged. Threshold options are:
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages
| 3 = Informational Messages
| 4 = All Messages
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
| your log files will fill up very fast.
|
*/
$config['log_threshold'] = 0;
/*
|--------------------------------------------------------------------------
| Error Logging Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/logs/ folder. Use a full server path with trailing slash.
|
*/
$config['log_path'] = '';
/*
|--------------------------------------------------------------------------
| Date Format for Logs
|--------------------------------------------------------------------------
|
| Each item that is logged has an associated date. You can use PHP date
| codes to set your own date formatting
|
*/
$config['log_date_format'] = 'Y-m-d H:i:s';
/*
|--------------------------------------------------------------------------
| Cache Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| system/cache/ folder. Use a full server path with trailing slash.
|
*/
$config['cache_path'] = '';
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class or the Session class you
| MUST set an encryption key. See the user guide for info.
|
*/
$config['encryption_key'] = 'xbKjXT56a9Fbqvfr4ztdF2gbQ7vM7zKhe4sGwZ6x';
/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'sess_cookie_name' = the name you want for the cookie
| 'sess_expiration' = the number of SECONDS you want the session to last.
| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
| 'sess_expire_on_close' = Whether to cause the session to expire automatically
| when the browser window is closed
| 'sess_encrypt_cookie' = Whether to encrypt the cookie
| 'sess_use_database' = Whether to save the session data to a database
| 'sess_table_name' = The name of the session database table
| 'sess_match_ip' = Whether to match the user's IP address when reading the session data
| 'sess_match_useragent' = Whether to match the User Agent when reading the session data
| 'sess_time_to_update' = how many seconds between CI refreshing Session Information
|
*/
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;
/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
|
| 'cookie_prefix' = Set a prefix if you need to avoid collisions
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
| 'cookie_path' = Typically will be a forward slash
| 'cookie_secure' = Cookies will only be set if a secure HTTPS connection exists.
|
*/
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path'] = "/";
$config['cookie_secure'] = FALSE;
/*
|--------------------------------------------------------------------------
| Global XSS Filtering
|--------------------------------------------------------------------------
|
| Determines whether the XSS filter is always active when GET, POST or
| COOKIE data is encountered
|
*/
$config['global_xss_filtering'] = FALSE;
/*
|--------------------------------------------------------------------------
| Cross Site Request Forgery
|--------------------------------------------------------------------------
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
| checked on a submitted form. If you are accepting user data, it is strongly
| recommended CSRF protection be enabled.
|
| 'csrf_token_name' = The token name
| 'csrf_cookie_name' = The cookie name
| 'csrf_expire' = The number in seconds the token should expire.
*/
$config['csrf_protection'] = FALSE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
/*
|--------------------------------------------------------------------------
| Output Compression
|--------------------------------------------------------------------------
|
| Enables Gzip output compression for faster page loads. When enabled,
| the output class will test whether your server supports Gzip.
| Even if it does, however, not all browsers support compression
| so enable only if you are reasonably sure your visitors can handle it.
|
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
| means you are prematurely outputting something to your browser. It could
| even be a line of whitespace at the end of one of your scripts. For
| compression to work, nothing can be sent before the output buffer is called
| by the output class. Do not 'echo' any values with compression enabled.
|
*/
$config['compress_output'] = FALSE;
/*
|--------------------------------------------------------------------------
| Master Time Reference
|--------------------------------------------------------------------------
|
| Options are 'local' or 'gmt'. This pref tells the system whether to use
| your server's local time as the master 'now' reference, or convert it to
| GMT. See the 'date helper' page of the user guide for information
| regarding date handling.
|
*/
$config['time_reference'] = 'local';
/*
|--------------------------------------------------------------------------
| Rewrite PHP Short Tags
|--------------------------------------------------------------------------
|
| If your PHP installation does not have short tag support enabled CI
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
| in your view files. Options are TRUE or FALSE (boolean)
|
*/
$config['rewrite_short_tags'] = FALSE;
/*
|--------------------------------------------------------------------------
| Reverse Proxy IPs
|--------------------------------------------------------------------------
|
| If your server is behind a reverse proxy, you must whitelist the proxy IP
| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR
| header in order to properly identify the visitor's IP address.
| Comma-delimited, e.g. '10.0.1.200,10.0.1.201'
|
*/
$config['proxy_ips'] = '';
/* End of file config.php */
/* Location: ./application/config/config.php */
| 123gosaigon | trunk/ 123gosaigon/webadmin/config/config.php | PHP | asf20 | 13,301 |
<?php
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
* things like logging and error reporting.
*
* This can be set to anything, but default usage is:
*
* development
* testing
* production
*
* NOTE: If you change these, also change the error_reporting() code below
*
*/
date_default_timezone_set('Asia/Ho_Chi_Minh');
error_reporting(E_ALL);
define('ROOT', '../');
define('site', 'http://'.$_SERVER['HTTP_HOST'].'/webadmin/');
define('url', 'http://'.$_SERVER['HTTP_HOST'].'/webadmin/');
define('ENVIRONMENT', 'development');
/*
*---------------------------------------------------------------
* ERROR REPORTING
*---------------------------------------------------------------
*
* Different environments will require different levels of error reporting.
* By default development will show errors but testing and live will hide them.
*/
/*if (defined('ENVIRONMENT'))
{
switch (ENVIRONMENT)
{
case 'development':
error_reporting(E_ALL);
break;
case 'testing':
case 'production':
error_reporting(0);
break;
default:
exit('The application environment is not set correctly.');
}
}*/
/*
*---------------------------------------------------------------
* SYSTEM FOLDER NAME
*---------------------------------------------------------------
*
* This variable must contain the name of your "system" folder.
* Include the path if the folder is not in the same directory
* as this file.
*
*/
$system_path = ROOT.'system';
/*
*---------------------------------------------------------------
* APPLICATION FOLDER NAME
*---------------------------------------------------------------
*
* If you want this front controller to use a different "application"
* folder then the default one you can set its name here. The folder
* can also be renamed or relocated anywhere on your server. If
* you do, use a full server path. For more info please see the user guide:
* http://codeigniter.com/user_guide/general/managing_apps.html
*
* NO TRAILING SLASH!
*
*/
$application_folder = ROOT.'webadmin';
/*
* --------------------------------------------------------------------
* DEFAULT CONTROLLER
* --------------------------------------------------------------------
*
* Normally you will set your default controller in the routes.php file.
* You can, however, force a custom routing by hard-coding a
* specific controller class/function here. For most applications, you
* WILL NOT set your routing here, but it's an option for those
* special instances where you might want to override the standard
* routing in a specific front controller that shares a common CI installation.
*
* IMPORTANT: If you set the routing here, NO OTHER controller will be
* callable. In essence, this preference limits your application to ONE
* specific controller. Leave the function name blank if you need
* to call functions dynamically via the URI.
*
* Un-comment the $routing array below to use this feature
*
*/
// The directory name, relative to the "controllers" folder. Leave blank
// if your controller is not in a sub-folder within the "controllers" folder
// $routing['directory'] = '';
// The controller class file name. Example: Mycontroller
// $routing['controller'] = '';
// The controller function you wish to be called.
// $routing['function'] = '';
/*
* -------------------------------------------------------------------
* CUSTOM CONFIG VALUES
* -------------------------------------------------------------------
*
* The $assign_to_config array below will be passed dynamically to the
* config class when initialized. This allows you to set custom config
* items or override any default config values found in the config.php file.
* This can be handy as it permits you to share one application between
* multiple front controller files, with each file containing different
* config values.
*
* Un-comment the $assign_to_config array below to use this feature
*
*/
// $assign_to_config['name_of_config_item'] = 'value of config item';
// --------------------------------------------------------------------
// END OF USER CONFIGURABLE SETTINGS. DO NOT EDIT BELOW THIS LINE
// --------------------------------------------------------------------
/*
* ---------------------------------------------------------------
* Resolve the system path for increased reliability
* ---------------------------------------------------------------
*/
// Set the current directory correctly for CLI requests
if (defined('STDIN'))
{
chdir(dirname(__FILE__));
}
if (realpath($system_path) !== FALSE)
{
$system_path = realpath($system_path).'/';
}
// ensure there's a trailing slash
$system_path = rtrim($system_path, '/').'/';
// Is the system path correct?
if ( ! is_dir($system_path))
{
exit("Your system folder path does not appear to be set correctly. Please open the following file and correct this: ".pathinfo(__FILE__, PATHINFO_BASENAME));
}
/*
* -------------------------------------------------------------------
* Now that we know the path, set the main path constants
* -------------------------------------------------------------------
*/
// The name of THIS file
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
// The PHP file extension
// this global constant is deprecated.
define('EXT', '.php');
// Path to the system folder
define('BASEPATH', str_replace("\\", "/", $system_path));
// Path to the front controller (this file)
define('FCPATH', str_replace(SELF, '', __FILE__));
// Name of the "system folder"
define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));
// The path to the "application" folder
if (is_dir($application_folder))
{
define('APPPATH', $application_folder.'/');
}
else
{
if ( ! is_dir(BASEPATH.$application_folder.'/'))
{
exit("Your application folder path does not appear to be set correctly. Please open the following file and correct this: ".SELF);
}
define('APPPATH', BASEPATH.$application_folder.'/');
}
// define constant, host, redirect
include ROOT.'define.php';
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
* --------------------------------------------------------------------
*
* And away we go...
*
*/
require_once BASEPATH.'core/CodeIgniter.php';
/* End of file index.php */
/* Location: ./index.php */ | 123gosaigon | trunk/ 123gosaigon/webadmin/index.php | PHP | asf20 | 6,872 |
/// <reference path="Jssor.js" />
/*
* Jssor.Slider 18.0
* http://www.jssor.com/
*
* TERMS OF USE - Jssor.Slider
*
* Copyright 2014 Jssor
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
var $JssorSlider$;
var $JssorSlideshowFormations$ = window.$JssorSlideshowFormations$ = {};
var $JssorSlideshowRunner$;
new function () {
//Constants +++++++
var COLUMN_INCREASE = 0;
var COLUMN_DECREASE = 1;
var ROW_INCREASE = 2;
var ROW_DECREASE = 3;
var DIRECTION_HORIZONTAL = 0x0003;
var DIRECTION_VERTICAL = 0x000C;
var TO_LEFT = 0x0001;
var TO_RIGHT = 0x0002;
var TO_TOP = 0x0004;
var TO_BOTTOM = 0x0008;
var FROM_LEFT = 0x0100;
var FROM_TOP = 0x0200;
var FROM_RIGHT = 0x0400;
var FROM_BOTTOM = 0x0800;
var ASSEMBLY_BOTTOM_LEFT = FROM_BOTTOM + TO_LEFT;
var ASSEMBLY_BOTTOM_RIGHT = FROM_BOTTOM + TO_RIGHT;
var ASSEMBLY_TOP_LEFT = FROM_TOP + TO_LEFT;
var ASSEMBLY_TOP_RIGHT = FROM_TOP + TO_RIGHT;
var ASSEMBLY_LEFT_TOP = FROM_LEFT + TO_TOP;
var ASSEMBLY_LEFT_BOTTOM = FROM_LEFT + TO_BOTTOM;
var ASSEMBLY_RIGHT_TOP = FROM_RIGHT + TO_TOP;
var ASSEMBLY_RIGHT_BOTTOM = FROM_RIGHT + TO_BOTTOM;
//Constants -------
//Formation Definition +++++++
function isToLeft(roadValue) {
return (roadValue & TO_LEFT) == TO_LEFT;
}
function isToRight(roadValue) {
return (roadValue & TO_RIGHT) == TO_RIGHT;
}
function isToTop(roadValue) {
return (roadValue & TO_TOP) == TO_TOP;
}
function isToBottom(roadValue) {
return (roadValue & TO_BOTTOM) == TO_BOTTOM;
}
function PushFormationOrder(arr, order, formationItem) {
formationItem.push(order);
arr[order] = arr[order] || [];
arr[order].push(formationItem);
}
$JssorSlideshowFormations$.$FormationStraight = function (transition) {
var cols = transition.$Cols;
var rows = transition.$Rows;
var formationDirection = transition.$Assembly;
var count = transition.$Count;
var a = [];
var i = 0;
var col = 0;
var r = 0;
var cl = cols - 1;
var rl = rows - 1;
var il = count - 1;
var cr;
var order;
for (r = 0; r < rows; r++) {
for (col = 0; col < cols; col++) {
cr = r + ',' + col;
switch (formationDirection) {
case ASSEMBLY_BOTTOM_LEFT:
order = il - (col * rows + (rl - r));
break;
case ASSEMBLY_RIGHT_TOP:
order = il - (r * cols + (cl - col));
break;
case ASSEMBLY_TOP_LEFT:
order = il - (col * rows + r);
case ASSEMBLY_LEFT_TOP:
order = il - (r * cols + col);
break;
case ASSEMBLY_BOTTOM_RIGHT:
order = col * rows + r;
break;
case ASSEMBLY_LEFT_BOTTOM:
order = r * cols + (cl - col);
break;
case ASSEMBLY_TOP_RIGHT:
order = col * rows + (rl - r);
break;
default:
order = r * cols + col;
break; //ASSEMBLY_RIGHT_BOTTOM
}
PushFormationOrder(a, order, [r, col]);
}
}
return a;
};
$JssorSlideshowFormations$.$FormationSwirl = function (transition) {
var cols = transition.$Cols;
var rows = transition.$Rows;
var formationDirection = transition.$Assembly;
var count = transition.$Count;
var a = [];
var hit = [];
var i = 0;
var col = 0;
var r = 0;
var cl = cols - 1;
var rl = rows - 1;
var il = count - 1;
var cr;
var courses;
var course = 0;
switch (formationDirection) {
case ASSEMBLY_BOTTOM_LEFT:
col = cl;
r = 0;
courses = [ROW_INCREASE, COLUMN_DECREASE, ROW_DECREASE, COLUMN_INCREASE];
break;
case ASSEMBLY_RIGHT_TOP:
col = 0;
r = rl;
courses = [COLUMN_INCREASE, ROW_DECREASE, COLUMN_DECREASE, ROW_INCREASE];
break;
case ASSEMBLY_TOP_LEFT:
col = cl;
r = rl;
courses = [ROW_DECREASE, COLUMN_DECREASE, ROW_INCREASE, COLUMN_INCREASE];
break;
case ASSEMBLY_LEFT_TOP:
col = cl;
r = rl;
courses = [COLUMN_DECREASE, ROW_DECREASE, COLUMN_INCREASE, ROW_INCREASE];
break;
case ASSEMBLY_BOTTOM_RIGHT:
col = 0;
r = 0;
courses = [ROW_INCREASE, COLUMN_INCREASE, ROW_DECREASE, COLUMN_DECREASE];
break;
case ASSEMBLY_LEFT_BOTTOM:
col = cl;
r = 0;
courses = [COLUMN_DECREASE, ROW_INCREASE, COLUMN_INCREASE, ROW_DECREASE];
break;
case ASSEMBLY_TOP_RIGHT:
col = 0;
r = rl;
courses = [ROW_DECREASE, COLUMN_INCREASE, ROW_INCREASE, COLUMN_DECREASE];
break;
default:
col = 0;
r = 0;
courses = [COLUMN_INCREASE, ROW_INCREASE, COLUMN_DECREASE, ROW_DECREASE];
break; //ASSEMBLY_RIGHT_BOTTOM
}
i = 0;
while (i < count) {
cr = r + ',' + col;
if (col >= 0 && col < cols && r >= 0 && r < rows && !hit[cr]) {
//a[cr] = i++;
hit[cr] = true;
PushFormationOrder(a, i++, [r, col]);
}
else {
switch (courses[course++ % courses.length]) {
case COLUMN_INCREASE:
col--;
break;
case ROW_INCREASE:
r--;
break;
case COLUMN_DECREASE:
col++;
break;
case ROW_DECREASE:
r++;
break;
}
}
switch (courses[course % courses.length]) {
case COLUMN_INCREASE:
col++;
break;
case ROW_INCREASE:
r++;
break;
case COLUMN_DECREASE:
col--;
break;
case ROW_DECREASE:
r--;
break;
}
}
return a;
};
$JssorSlideshowFormations$.$FormationZigZag = function (transition) {
var cols = transition.$Cols;
var rows = transition.$Rows;
var formationDirection = transition.$Assembly;
var count = transition.$Count;
var a = [];
var i = 0;
var col = 0;
var r = 0;
var cl = cols - 1;
var rl = rows - 1;
var il = count - 1;
var cr;
var courses;
var course = 0;
switch (formationDirection) {
case ASSEMBLY_BOTTOM_LEFT:
col = cl;
r = 0;
courses = [ROW_INCREASE, COLUMN_DECREASE, ROW_DECREASE, COLUMN_DECREASE];
break;
case ASSEMBLY_RIGHT_TOP:
col = 0;
r = rl;
courses = [COLUMN_INCREASE, ROW_DECREASE, COLUMN_DECREASE, ROW_DECREASE];
break;
case ASSEMBLY_TOP_LEFT:
col = cl;
r = rl;
courses = [ROW_DECREASE, COLUMN_DECREASE, ROW_INCREASE, COLUMN_DECREASE];
break;
case ASSEMBLY_LEFT_TOP:
col = cl;
r = rl;
courses = [COLUMN_DECREASE, ROW_DECREASE, COLUMN_INCREASE, ROW_DECREASE];
break;
case ASSEMBLY_BOTTOM_RIGHT:
col = 0;
r = 0;
courses = [ROW_INCREASE, COLUMN_INCREASE, ROW_DECREASE, COLUMN_INCREASE];
break;
case ASSEMBLY_LEFT_BOTTOM:
col = cl;
r = 0;
courses = [COLUMN_DECREASE, ROW_INCREASE, COLUMN_INCREASE, ROW_INCREASE];
break;
case ASSEMBLY_TOP_RIGHT:
col = 0;
r = rl;
courses = [ROW_DECREASE, COLUMN_INCREASE, ROW_INCREASE, COLUMN_INCREASE];
break;
default:
col = 0;
r = 0;
courses = [COLUMN_INCREASE, ROW_INCREASE, COLUMN_DECREASE, ROW_INCREASE];
break; //ASSEMBLY_RIGHT_BOTTOM
}
i = 0;
while (i < count) {
cr = r + ',' + col;
if (col >= 0 && col < cols && r >= 0 && r < rows && typeof (a[cr]) == 'undefined') {
PushFormationOrder(a, i++, [r, col]);
//a[cr] = i++;
switch (courses[course % courses.length]) {
case COLUMN_INCREASE:
col++;
break;
case ROW_INCREASE:
r++;
break;
case COLUMN_DECREASE:
col--;
break;
case ROW_DECREASE:
r--;
break;
}
}
else {
switch (courses[course++ % courses.length]) {
case COLUMN_INCREASE:
col--;
break;
case ROW_INCREASE:
r--;
break;
case COLUMN_DECREASE:
col++;
break;
case ROW_DECREASE:
r++;
break;
}
switch (courses[course++ % courses.length]) {
case COLUMN_INCREASE:
col++;
break;
case ROW_INCREASE:
r++;
break;
case COLUMN_DECREASE:
col--;
break;
case ROW_DECREASE:
r--;
break;
}
}
}
return a;
};
$JssorSlideshowFormations$.$FormationStraightStairs = function (transition) {
var cols = transition.$Cols;
var rows = transition.$Rows;
var formationDirection = transition.$Assembly;
var count = transition.$Count;
var a = [];
var i = 0;
var col = 0;
var r = 0;
var cl = cols - 1;
var rl = rows - 1;
var il = count - 1;
var cr;
switch (formationDirection) {
case ASSEMBLY_BOTTOM_LEFT:
case ASSEMBLY_TOP_RIGHT:
case ASSEMBLY_TOP_LEFT:
case ASSEMBLY_BOTTOM_RIGHT:
var C = 0;
var R = 0;
break;
case ASSEMBLY_LEFT_BOTTOM:
case ASSEMBLY_RIGHT_TOP:
case ASSEMBLY_LEFT_TOP:
case ASSEMBLY_RIGHT_BOTTOM:
var C = cl;
var R = 0;
break;
default:
formationDirection = ASSEMBLY_RIGHT_BOTTOM;
var C = cl;
var R = 0;
break;
}
col = C;
r = R;
while (i < count) {
cr = r + ',' + col;
if (isToTop(formationDirection) || isToRight(formationDirection)) {
PushFormationOrder(a, il - i++, [r, col]);
//a[cr] = il - i++;
}
else {
PushFormationOrder(a, i++, [r, col]);
//a[cr] = i++;
}
switch (formationDirection) {
case ASSEMBLY_BOTTOM_LEFT:
case ASSEMBLY_TOP_RIGHT:
col--;
r++;
break;
case ASSEMBLY_TOP_LEFT:
case ASSEMBLY_BOTTOM_RIGHT:
col++;
r--;
break;
case ASSEMBLY_LEFT_BOTTOM:
case ASSEMBLY_RIGHT_TOP:
col--;
r--;
break;
case ASSEMBLY_RIGHT_BOTTOM:
case ASSEMBLY_LEFT_TOP:
default:
col++;
r++;
break;
}
if (col < 0 || r < 0 || col > cl || r > rl) {
switch (formationDirection) {
case ASSEMBLY_BOTTOM_LEFT:
case ASSEMBLY_TOP_RIGHT:
C++;
break;
case ASSEMBLY_LEFT_BOTTOM:
case ASSEMBLY_RIGHT_TOP:
case ASSEMBLY_TOP_LEFT:
case ASSEMBLY_BOTTOM_RIGHT:
R++;
break;
case ASSEMBLY_RIGHT_BOTTOM:
case ASSEMBLY_LEFT_TOP:
default:
C--;
break;
}
if (C < 0 || R < 0 || C > cl || R > rl) {
switch (formationDirection) {
case ASSEMBLY_BOTTOM_LEFT:
case ASSEMBLY_TOP_RIGHT:
C = cl;
R++;
break;
case ASSEMBLY_TOP_LEFT:
case ASSEMBLY_BOTTOM_RIGHT:
R = rl;
C++;
break;
case ASSEMBLY_LEFT_BOTTOM:
case ASSEMBLY_RIGHT_TOP: R = rl; C--;
break;
case ASSEMBLY_RIGHT_BOTTOM:
case ASSEMBLY_LEFT_TOP:
default:
C = 0;
R++;
break;
}
if (R > rl)
R = rl;
else if (R < 0)
R = 0;
else if (C > cl)
C = cl;
else if (C < 0)
C = 0;
}
r = R;
col = C;
}
}
return a;
};
$JssorSlideshowFormations$.$FormationSquare = function (transition) {
var cols = transition.$Cols || 1;
var rows = transition.$Rows || 1;
var arr = [];
var i = 0;
var col;
var r;
var dc;
var dr;
var cr;
dc = cols < rows ? (rows - cols) / 2 : 0;
dr = cols > rows ? (cols - rows) / 2 : 0;
cr = Math.round(Math.max(cols / 2, rows / 2)) + 1;
for (col = 0; col < cols; col++) {
for (r = 0; r < rows; r++)
PushFormationOrder(arr, cr - Math.min(col + 1 + dc, r + 1 + dr, cols - col + dc, rows - r + dr), [r, col]);
}
return arr;
};
$JssorSlideshowFormations$.$FormationRectangle = function (transition) {
var cols = transition.$Cols || 1;
var rows = transition.$Rows || 1;
var arr = [];
var i = 0;
var col;
var r;
var cr;
cr = Math.round(Math.min(cols / 2, rows / 2)) + 1;
for (col = 0; col < cols; col++) {
for (r = 0; r < rows; r++)
PushFormationOrder(arr, cr - Math.min(col + 1, r + 1, cols - col, rows - r), [r, col]);
}
return arr;
};
$JssorSlideshowFormations$.$FormationRandom = function (transition) {
var a = [];
var r, col, i;
for (r = 0; r < transition.$Rows; r++) {
for (col = 0; col < transition.$Cols; col++)
PushFormationOrder(a, Math.ceil(100000 * Math.random()) % 13, [r, col]);
}
return a;
};
$JssorSlideshowFormations$.$FormationCircle = function (transition) {
var cols = transition.$Cols || 1;
var rows = transition.$Rows || 1;
var arr = [];
var i = 0;
var col;
var r;
var hc = cols / 2 - 0.5;
var hr = rows / 2 - 0.5;
for (col = 0; col < cols; col++) {
for (r = 0; r < rows; r++)
PushFormationOrder(arr, Math.round(Math.sqrt(Math.pow(col - hc, 2) + Math.pow(r - hr, 2))), [r, col]);
}
return arr;
};
$JssorSlideshowFormations$.$FormationCross = function (transition) {
var cols = transition.$Cols || 1;
var rows = transition.$Rows || 1;
var arr = [];
var i = 0;
var col;
var r;
var hc = cols / 2 - 0.5;
var hr = rows / 2 - 0.5;
for (col = 0; col < cols; col++) {
for (r = 0; r < rows; r++)
PushFormationOrder(arr, Math.round(Math.min(Math.abs(col - hc), Math.abs(r - hr))), [r, col]);
}
return arr;
};
$JssorSlideshowFormations$.$FormationRectangleCross = function (transition) {
var cols = transition.$Cols || 1;
var rows = transition.$Rows || 1;
var arr = [];
var i = 0;
var col;
var r;
var hc = cols / 2 - 0.5;
var hr = rows / 2 - 0.5;
var cr = Math.max(hc, hr) + 1;
for (col = 0; col < cols; col++) {
for (r = 0; r < rows; r++)
PushFormationOrder(arr, Math.round(cr - Math.max(hc - Math.abs(col - hc), hr - Math.abs(r - hr))) - 1, [r, col]);
}
return arr;
};
function GetFormation(transition) {
var formationInstance = transition.$Formation(transition);
return transition.$Reverse ? formationInstance.reverse() : formationInstance;
} //GetFormation
//var _PrototypeTransitions = [];
function EnsureTransitionInstance(options, slideshowInterval) {
var _SlideshowTransition = {
$Interval: slideshowInterval, //Delay to play next frame
$Duration: 1, //Duration to finish the entire transition
$Delay: 0, //Delay to assembly blocks
$Cols: 1, //Number of columns
$Rows: 1, //Number of rows
$Opacity: 0, //Fade block or not
$Zoom: 0, //Zoom block or not
$Clip: 0, //Clip block or not
$Move: false, //Move block or not
$SlideOut: false, //Slide the previous slide out to display next slide instead
//$FlyDirection: 0, //Specify fly transform with direction
$Reverse: false, //Reverse the assembly or not
$Formation: $JssorSlideshowFormations$.$FormationRandom, //Shape that assembly blocks as
$Assembly: ASSEMBLY_RIGHT_BOTTOM, //The way to assembly blocks
$ChessMode: { $Column: 0, $Row: 0 }, //Chess move or fly direction
$Easing: $JssorEasing$.$EaseSwing, //Specify variation of speed during transition
$Round: {},
$Blocks: [],
$During: {}
};
$Jssor$.$Extend(_SlideshowTransition, options);
_SlideshowTransition.$Count = _SlideshowTransition.$Cols * _SlideshowTransition.$Rows;
if ($Jssor$.$IsFunction(_SlideshowTransition.$Easing))
_SlideshowTransition.$Easing = { $Default: _SlideshowTransition.$Easing };
_SlideshowTransition.$FramesCount = Math.ceil(_SlideshowTransition.$Duration / _SlideshowTransition.$Interval);
_SlideshowTransition.$EasingInstance = GetEasing(_SlideshowTransition);
_SlideshowTransition.$GetBlocks = function (width, height) {
width /= _SlideshowTransition.$Cols;
height /= _SlideshowTransition.$Rows;
var wh = width + 'x' + height;
if (!_SlideshowTransition.$Blocks[wh]) {
_SlideshowTransition.$Blocks[wh] = { $Width: width, $Height: height };
for (var col = 0; col < _SlideshowTransition.$Cols; col++) {
for (var r = 0; r < _SlideshowTransition.$Rows; r++)
_SlideshowTransition.$Blocks[wh][r + ',' + col] = { $Top: r * height, $Right: col * width + width, $Bottom: r * height + height, $Left: col * width };
}
}
return _SlideshowTransition.$Blocks[wh];
};
if (_SlideshowTransition.$Brother) {
_SlideshowTransition.$Brother = EnsureTransitionInstance(_SlideshowTransition.$Brother, slideshowInterval);
_SlideshowTransition.$SlideOut = true;
}
return _SlideshowTransition;
}
function GetEasing(transition) {
var easing = transition.$Easing;
if (!easing.$Default)
easing.$Default = $JssorEasing$.$EaseSwing;
var duration = transition.$FramesCount;
var cache = easing.$Cache;
if (!cache) {
var enumerator = $Jssor$.$Extend({}, transition.$Easing, transition.$Round);
cache = easing.$Cache = {};
$Jssor$.$Each(enumerator, function (v, easingName) {
var easingFunction = easing[easingName] || easing.$Default;
var round = transition.$Round[easingName] || 1;
if (!$Jssor$.$IsArray(easingFunction.$Cache))
easingFunction.$Cache = [];
var easingFunctionCache = easingFunction.$Cache[duration] = easingFunction.$Cache[duration] || [];
if (!easingFunctionCache[round]) {
easingFunctionCache[round] = [0];
for (var t = 1; t <= duration; t++) {
var tRound = t / duration * round;
var tRoundFloor = Math.floor(tRound);
if (tRound != tRoundFloor)
tRound -= tRoundFloor;
easingFunctionCache[round][t] = easingFunction(tRound);
}
}
cache[easingName] = easingFunctionCache;
});
}
return cache;
} //GetEasing
//Formation Definition -------
function JssorSlideshowPlayer(slideContainer, slideElement, slideTransition, beginTime, slideContainerWidth, slideContainerHeight) {
var _Self = this;
var _Block;
var _StartStylesArr = {};
var _AnimationStylesArrs = {};
var _AnimationBlockItems = [];
var _StyleStart;
var _StyleEnd;
var _StyleDif;
var _ChessModeColumn = slideTransition.$ChessMode.$Column || 0;
var _ChessModeRow = slideTransition.$ChessMode.$Row || 0;
var _Blocks = slideTransition.$GetBlocks(slideContainerWidth, slideContainerHeight);
var _FormationInstance = GetFormation(slideTransition);
var _MaxOrder = _FormationInstance.length - 1;
var _Period = slideTransition.$Duration + slideTransition.$Delay * _MaxOrder;
var _EndTime = beginTime + _Period;
var _SlideOut = slideTransition.$SlideOut;
var _IsIn;
_EndTime += $Jssor$.$IsBrowserChrome() ? 260 : 50;
_Self.$EndTime = _EndTime;
_Self.$ShowFrame = function (time) {
time -= beginTime;
var isIn = time < _Period;
if (isIn || _IsIn) {
_IsIn = isIn;
if (!_SlideOut)
time = _Period - time;
var frameIndex = Math.ceil(time / slideTransition.$Interval);
$Jssor$.$Each(_AnimationStylesArrs, function (value, index) {
var itemFrameIndex = Math.max(frameIndex, value.$Min);
itemFrameIndex = Math.min(itemFrameIndex, value.length - 1);
if (value.$LastFrameIndex != itemFrameIndex) {
if (!value.$LastFrameIndex && !_SlideOut) {
$Jssor$.$ShowElement(_AnimationBlockItems[index]);
}
else if (itemFrameIndex == value.$Max && _SlideOut) {
$Jssor$.$HideElement(_AnimationBlockItems[index]);
}
value.$LastFrameIndex = itemFrameIndex;
$Jssor$.$SetStylesEx(_AnimationBlockItems[index], value[itemFrameIndex]);
}
});
}
};
function DisableHWA(elmt) {
$Jssor$.$DisableHWA(elmt);
var children = $Jssor$.$Children(elmt);
$Jssor$.$Each(children, function (child) {
DisableHWA(child);
});
}
//constructor
{
slideElement = $Jssor$.$CloneNode(slideElement);
DisableHWA(slideElement);
if ($Jssor$.$IsBrowserIe9Earlier()) {
var hasImage = !slideElement["no-image"];
var slideChildElements = $Jssor$.$FindChildrenByTag(slideElement);
$Jssor$.$Each(slideChildElements, function (slideChildElement) {
if (hasImage || slideChildElement["jssor-slider"])
$Jssor$.$CssOpacity(slideChildElement, $Jssor$.$CssOpacity(slideChildElement), true);
});
}
$Jssor$.$Each(_FormationInstance, function (formationItems, order) {
$Jssor$.$Each(formationItems, function (formationItem) {
var row = formationItem[0];
var col = formationItem[1];
{
var columnRow = row + ',' + col;
var chessHorizontal = false;
var chessVertical = false;
var chessRotate = false;
if (_ChessModeColumn && col % 2) {
if ($JssorDirection$.$IsHorizontal(_ChessModeColumn)) {
chessHorizontal = !chessHorizontal;
}
if ($JssorDirection$.$IsVertical(_ChessModeColumn)) {
chessVertical = !chessVertical;
}
if (_ChessModeColumn & 16)
chessRotate = !chessRotate;
}
if (_ChessModeRow && row % 2) {
if ($JssorDirection$.$IsHorizontal(_ChessModeRow)) {
chessHorizontal = !chessHorizontal;
}
if ($JssorDirection$.$IsVertical(_ChessModeRow)) {
chessVertical = !chessVertical;
}
if (_ChessModeRow & 16)
chessRotate = !chessRotate;
}
slideTransition.$Top = slideTransition.$Top || (slideTransition.$Clip & 4);
slideTransition.$Bottom = slideTransition.$Bottom || (slideTransition.$Clip & 8);
slideTransition.$Left = slideTransition.$Left || (slideTransition.$Clip & 1);
slideTransition.$Right = slideTransition.$Right || (slideTransition.$Clip & 2);
var topBenchmark = chessVertical ? slideTransition.$Bottom : slideTransition.$Top;
var bottomBenchmark = chessVertical ? slideTransition.$Top : slideTransition.$Bottom;
var leftBenchmark = chessHorizontal ? slideTransition.$Right : slideTransition.$Left;
var rightBenchmark = chessHorizontal ? slideTransition.$Left : slideTransition.$Right;
//$JssorDebug$.$Execute(function () {
// topBenchmark = bottomBenchmark = leftBenchmark = rightBenchmark = false;
//});
slideTransition.$Clip = topBenchmark || bottomBenchmark || leftBenchmark || rightBenchmark;
_StyleDif = {};
_StyleEnd = { $Top: 0, $Left: 0, $Opacity: 1, $Width: slideContainerWidth, $Height: slideContainerHeight };
_StyleStart = $Jssor$.$Extend({}, _StyleEnd);
_Block = $Jssor$.$Extend({}, _Blocks[columnRow]);
if (slideTransition.$Opacity) {
_StyleEnd.$Opacity = 2 - slideTransition.$Opacity;
}
if (slideTransition.$ZIndex) {
_StyleEnd.$ZIndex = slideTransition.$ZIndex;
_StyleStart.$ZIndex = 0;
}
var allowClip = slideTransition.$Cols * slideTransition.$Rows > 1 || slideTransition.$Clip;
if (slideTransition.$Zoom || slideTransition.$Rotate) {
var allowRotate = true;
if ($Jssor$.$IsBrowserIE() && $Jssor$.$BrowserEngineVersion() < 9) {
if (slideTransition.$Cols * slideTransition.$Rows > 1)
allowRotate = false;
else
allowClip = false;
}
if (allowRotate) {
_StyleEnd.$Zoom = slideTransition.$Zoom ? slideTransition.$Zoom - 1 : 1;
_StyleStart.$Zoom = 1;
if ($Jssor$.$IsBrowserIe9Earlier() || $Jssor$.$IsBrowserOpera())
_StyleEnd.$Zoom = Math.min(_StyleEnd.$Zoom, 2);
var rotate = slideTransition.$Rotate;
_StyleEnd.$Rotate = rotate * 360 * ((chessRotate) ? -1 : 1);
_StyleStart.$Rotate = 0;
}
}
if (allowClip) {
if (slideTransition.$Clip) {
var clipScale = slideTransition.$ScaleClip || 1;
var blockOffset = _Block.$Offset = {};
if (topBenchmark && bottomBenchmark) {
blockOffset.$Top = _Blocks.$Height / 2 * clipScale;
blockOffset.$Bottom = -blockOffset.$Top;
}
else if (topBenchmark) {
blockOffset.$Bottom = -_Blocks.$Height * clipScale;
}
else if (bottomBenchmark) {
blockOffset.$Top = _Blocks.$Height * clipScale;
}
if (leftBenchmark && rightBenchmark) {
blockOffset.$Left = _Blocks.$Width / 2 * clipScale;
blockOffset.$Right = -blockOffset.$Left;
}
else if (leftBenchmark) {
blockOffset.$Right = -_Blocks.$Width * clipScale;
}
else if (rightBenchmark) {
blockOffset.$Left = _Blocks.$Width * clipScale;
}
}
_StyleDif.$Clip = _Block;
_StyleStart.$Clip = _Blocks[columnRow];
}
//fly
{
var chessHor = chessHorizontal ? 1 : -1;
var chessVer = chessVertical ? 1 : -1;
if (slideTransition.x)
_StyleEnd.$Left += slideContainerWidth * slideTransition.x * chessHor;
if (slideTransition.y)
_StyleEnd.$Top += slideContainerHeight * slideTransition.y * chessVer;
}
$Jssor$.$Each(_StyleEnd, function (propertyEnd, property) {
if ($Jssor$.$IsNumeric(propertyEnd)) {
if (propertyEnd != _StyleStart[property]) {
_StyleDif[property] = propertyEnd - _StyleStart[property];
}
}
});
_StartStylesArr[columnRow] = _SlideOut ? _StyleStart : _StyleEnd;
var animationStylesArr = [];
var virtualFrameCount = Math.round(order * slideTransition.$Delay / slideTransition.$Interval);
_AnimationStylesArrs[columnRow] = new Array(virtualFrameCount);
_AnimationStylesArrs[columnRow].$Min = virtualFrameCount;
var framesCount = slideTransition.$FramesCount;
for (var frameN = 0; frameN <= framesCount; frameN++) {
var styleFrameN = {};
$Jssor$.$Each(_StyleDif, function (propertyDiff, property) {
var propertyEasings = slideTransition.$EasingInstance[property] || slideTransition.$EasingInstance.$Default;
var propertyEasingArray = propertyEasings[slideTransition.$Round[property] || 1];
var propertyDuring = slideTransition.$During[property] || [0, 1];
var propertyFrameN = (frameN / framesCount - propertyDuring[0]) / propertyDuring[1] * framesCount;
propertyFrameN = Math.round(Math.min(framesCount, Math.max(propertyFrameN, 0)));
var propertyEasingValue = propertyEasingArray[propertyFrameN];
if ($Jssor$.$IsNumeric(propertyDiff)) {
styleFrameN[property] = _StyleStart[property] + propertyDiff * propertyEasingValue;
}
else {
var value = styleFrameN[property] = $Jssor$.$Extend({}, _StyleStart[property]);
value.$Offset = [];
$Jssor$.$Each(propertyDiff.$Offset, function (rectX, n) {
var offsetValue = rectX * propertyEasingValue;
value.$Offset[n] = offsetValue;
value[n] += offsetValue;
});
}
});
if (_StyleStart.$Zoom) {
styleFrameN.$Transform = { $Rotate: styleFrameN.$Rotate || 0, $Scale: styleFrameN.$Zoom, $OriginalWidth: slideContainerWidth, $OriginalHeight: slideContainerHeight };
}
if (styleFrameN.$Clip && slideTransition.$Move) {
var styleFrameNClipOffset = styleFrameN.$Clip.$Offset;
var offsetY = (styleFrameNClipOffset.$Top || 0) + (styleFrameNClipOffset.$Bottom || 0);
var offsetX = (styleFrameNClipOffset.$Left || 0) + (styleFrameNClipOffset.$Right || 0);
styleFrameN.$Left = (styleFrameN.$Left || 0) + offsetX;
styleFrameN.$Top = (styleFrameN.$Top || 0) + offsetY;
styleFrameN.$Clip.$Left -= offsetX;
styleFrameN.$Clip.$Right -= offsetX;
styleFrameN.$Clip.$Top -= offsetY;
styleFrameN.$Clip.$Bottom -= offsetY;
}
styleFrameN.$ZIndex = styleFrameN.$ZIndex || 1;
_AnimationStylesArrs[columnRow].push(styleFrameN);
}
} //for
});
});
_FormationInstance.reverse();
$Jssor$.$Each(_FormationInstance, function (formationItems) {
$Jssor$.$Each(formationItems, function (formationItem) {
var row = formationItem[0];
var col = formationItem[1];
var columnRow = row + ',' + col;
var image = slideElement;
if (col || row)
image = $Jssor$.$CloneNode(slideElement);
$Jssor$.$SetStyles(image, _StartStylesArr[columnRow]);
$Jssor$.$CssOverflow(image, "hidden");
$Jssor$.$CssPosition(image, "absolute");
slideContainer.$AddClipElement(image);
_AnimationBlockItems[columnRow] = image;
$Jssor$.$ShowElement(image, !_SlideOut);
});
});
}
}
//JssorSlideshowRunner++++++++
var _SlideshowRunnerCount = 1;
$JssorSlideshowRunner$ = window.$JssorSlideshowRunner$ = function (slideContainer, slideContainerWidth, slideContainerHeight, slideshowOptions, handleTouchEventOnly) {
var _SelfSlideshowRunner = this;
//var _State = 0; //-1 fullfill, 0 clean, 1 initializing, 2 stay, 3 playing
var _EndTime;
var _SliderFrameCount;
var _SlideshowPlayerBelow;
var _SlideshowPlayerAbove;
var _PrevItem;
var _SlideItem;
var _TransitionIndex = 0;
var _TransitionsOrder = slideshowOptions.$TransitionsOrder;
var _SlideshowTransition;
var _SlideshowPerformance = 8;
function SlideshowProcessor() {
var _SelfSlideshowProcessor = this;
var _CurrentTime = 0;
$JssorAnimator$.call(_SelfSlideshowProcessor, 0, _EndTime);
_SelfSlideshowProcessor.$OnPositionChange = function (oldPosition, newPosition) {
if ((newPosition - _CurrentTime) > _SlideshowPerformance) {
_CurrentTime = newPosition;
_SlideshowPlayerAbove && _SlideshowPlayerAbove.$ShowFrame(newPosition);
_SlideshowPlayerBelow && _SlideshowPlayerBelow.$ShowFrame(newPosition);
}
};
_SelfSlideshowProcessor.$Transition = _SlideshowTransition;
}
//member functions
_SelfSlideshowRunner.$GetTransition = function (slideCount) {
var n = 0;
var transitions = slideshowOptions.$Transitions;
var transitionCount = transitions.length;
if (_TransitionsOrder) { /*Sequence*/
//if (transitionCount > slideCount && ($Jssor$.$IsBrowserChrome() || $Jssor$.$IsBrowserSafari() || $Jssor$.$IsBrowserFireFox())) {
// transitionCount -= transitionCount % slideCount;
//}
n = _TransitionIndex++ % transitionCount;
}
else { /*Random*/
n = Math.floor(Math.random() * transitionCount);
}
transitions[n] && (transitions[n].$Index = n);
return transitions[n];
};
_SelfSlideshowRunner.$Initialize = function (slideIndex, prevIndex, slideItem, prevItem, slideshowTransition) {
$JssorDebug$.$Execute(function () {
if (_SlideshowPlayerBelow) {
$JssorDebug$.$Fail("slideshow runner has not been cleared.");
}
});
_SlideshowTransition = slideshowTransition;
slideshowTransition = EnsureTransitionInstance(slideshowTransition, _SlideshowPerformance);
_SlideItem = slideItem;
_PrevItem = prevItem;
var prevSlideElement = prevItem.$Item;
var currentSlideElement = slideItem.$Item;
prevSlideElement["no-image"] = !prevItem.$Image;
currentSlideElement["no-image"] = !slideItem.$Image;
var slideElementAbove = prevSlideElement;
var slideElementBelow = currentSlideElement;
var slideTransitionAbove = slideshowTransition;
var slideTransitionBelow = slideshowTransition.$Brother || EnsureTransitionInstance({}, _SlideshowPerformance);
if (!slideshowTransition.$SlideOut) {
slideElementAbove = currentSlideElement;
slideElementBelow = prevSlideElement;
}
var shift = slideTransitionBelow.$Shift || 0;
_SlideshowPlayerBelow = new JssorSlideshowPlayer(slideContainer, slideElementBelow, slideTransitionBelow, Math.max(shift - slideTransitionBelow.$Interval, 0), slideContainerWidth, slideContainerHeight);
_SlideshowPlayerAbove = new JssorSlideshowPlayer(slideContainer, slideElementAbove, slideTransitionAbove, Math.max(slideTransitionBelow.$Interval - shift, 0), slideContainerWidth, slideContainerHeight);
_SlideshowPlayerBelow.$ShowFrame(0);
_SlideshowPlayerAbove.$ShowFrame(0);
_EndTime = Math.max(_SlideshowPlayerBelow.$EndTime, _SlideshowPlayerAbove.$EndTime);
_SelfSlideshowRunner.$Index = slideIndex;
};
_SelfSlideshowRunner.$Clear = function () {
slideContainer.$Clear();
_SlideshowPlayerBelow = null;
_SlideshowPlayerAbove = null;
};
_SelfSlideshowRunner.$GetProcessor = function () {
var slideshowProcessor = null;
if (_SlideshowPlayerAbove)
slideshowProcessor = new SlideshowProcessor();
return slideshowProcessor;
};
//Constructor
{
if ($Jssor$.$IsBrowserIe9Earlier() || $Jssor$.$IsBrowserOpera() || (handleTouchEventOnly && $Jssor$.$WebKitVersion() < 537)) {
_SlideshowPerformance = 16;
}
$JssorObject$.call(_SelfSlideshowRunner);
$JssorAnimator$.call(_SelfSlideshowRunner, -10000000, 10000000);
$JssorDebug$.$LiveStamp(_SelfSlideshowRunner, "slideshow_runner_" + _SlideshowRunnerCount++);
}
};
//JssorSlideshowRunner--------
//JssorSlider
function JssorSlider(elmt, options) {
var _SelfSlider = this;
//private classes
function Conveyor() {
var _SelfConveyor = this;
$JssorAnimator$.call(_SelfConveyor, -100000000, 200000000);
_SelfConveyor.$GetCurrentSlideInfo = function () {
var positionDisplay = _SelfConveyor.$GetPosition_Display();
var virtualIndex = Math.floor(positionDisplay);
var slideIndex = GetRealIndex(virtualIndex);
var slidePosition = positionDisplay - Math.floor(positionDisplay);
return { $Index: slideIndex, $VirtualIndex: virtualIndex, $Position: slidePosition };
};
_SelfConveyor.$OnPositionChange = function (oldPosition, newPosition) {
var index = Math.floor(newPosition);
if (index != newPosition && newPosition > oldPosition)
index++;
ResetNavigator(index, true);
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_POSITION_CHANGE, GetRealIndex(newPosition), GetRealIndex(oldPosition), newPosition, oldPosition);
};
}
//Carousel
function Carousel() {
var _SelfCarousel = this;
$JssorAnimator$.call(_SelfCarousel, 0, 0, { $LoopLength: _SlideCount });
//Carousel Constructor
{
$Jssor$.$Each(_SlideItems, function (slideItem) {
(_Loop & 1) && slideItem.$SetLoopLength(_SlideCount);
_SelfCarousel.$Chain(slideItem);
slideItem.$Shift(_ParkingPosition / _StepLength);
});
}
}
//Carousel
//Slideshow
function Slideshow() {
var _SelfSlideshow = this;
var _Wrapper = _SlideContainer.$Elmt;
$JssorAnimator$.call(_SelfSlideshow, -1, 2, { $Easing: $JssorEasing$.$EaseLinear, $Setter: { $Position: SetPosition }, $LoopLength: _SlideCount }, _Wrapper, { $Position: 1 }, { $Position: -1 });
_SelfSlideshow.$Wrapper = _Wrapper;
//Slideshow Constructor
{
$JssorDebug$.$Execute(function () {
$Jssor$.$Attribute(_SlideContainer.$Elmt, "debug-id", "slide_container");
});
}
}
//Slideshow
//CarouselPlayer
function CarouselPlayer(carousel, slideshow) {
var _SelfCarouselPlayer = this;
var _FromPosition;
var _ToPosition;
var _Duration;
var _StandBy;
var _StandByPosition;
$JssorAnimator$.call(_SelfCarouselPlayer, -100000000, 200000000, { $IntervalMax: 100 });
_SelfCarouselPlayer.$OnStart = function () {
_IsSliding = true;
_LoadingTicket = null;
//EVT_SWIPE_START
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_SWIPE_START, GetRealIndex(_Conveyor.$GetPosition()), _Conveyor.$GetPosition());
};
_SelfCarouselPlayer.$OnStop = function () {
_IsSliding = false;
_StandBy = false;
var currentSlideInfo = _Conveyor.$GetCurrentSlideInfo();
//EVT_SWIPE_END
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_SWIPE_END, GetRealIndex(_Conveyor.$GetPosition()), _Conveyor.$GetPosition());
if (!currentSlideInfo.$Position) {
OnPark(currentSlideInfo.$VirtualIndex, _CurrentSlideIndex);
}
};
_SelfCarouselPlayer.$OnPositionChange = function (oldPosition, newPosition) {
var toPosition;
if (_StandBy)
toPosition = _StandByPosition;
else {
toPosition = _ToPosition;
if (_Duration) {
var interPosition = newPosition / _Duration;
//if ($Jssor$.$IsBrowserChrome() || $Jssor$.$IsBrowserFireFox()) {
// Math.round(interPosition * 8 / _Duration) / 8 * _Duration;
// if ($Jssor$.$BrowserVersion() < 38)
// interPosition = parseFloat(interPosition.toFixed(4));
//}
toPosition = _Options.$SlideEasing(interPosition) * (_ToPosition - _FromPosition) + _FromPosition;
}
}
_Conveyor.$GoToPosition(toPosition);
};
_SelfCarouselPlayer.$PlayCarousel = function (fromPosition, toPosition, duration, callback) {
$JssorDebug$.$Execute(function () {
if (_SelfCarouselPlayer.$IsPlaying())
$JssorDebug$.$Fail("The carousel is already playing.");
});
_FromPosition = fromPosition;
_ToPosition = toPosition;
_Duration = duration;
_Conveyor.$GoToPosition(fromPosition);
_SelfCarouselPlayer.$GoToPosition(0);
_SelfCarouselPlayer.$PlayToPosition(duration, callback);
};
_SelfCarouselPlayer.$StandBy = function (standByPosition) {
_StandBy = true;
_StandByPosition = standByPosition;
_SelfCarouselPlayer.$Play(standByPosition, null, true);
};
_SelfCarouselPlayer.$SetStandByPosition = function (standByPosition) {
_StandByPosition = standByPosition;
};
_SelfCarouselPlayer.$MoveCarouselTo = function (position) {
_Conveyor.$GoToPosition(position);
};
//CarouselPlayer Constructor
{
_Conveyor = new Conveyor();
_Conveyor.$Combine(carousel);
_Conveyor.$Combine(slideshow);
}
}
//CarouselPlayer
//SlideContainer
function SlideContainer() {
var _Self = this;
var elmt = CreatePanel();
$Jssor$.$CssZIndex(elmt, 0);
$Jssor$.$Css(elmt, "pointerEvents", "none");
_Self.$Elmt = elmt;
_Self.$AddClipElement = function (clipElement) {
$Jssor$.$AppendChild(elmt, clipElement);
$Jssor$.$ShowElement(elmt);
};
_Self.$Clear = function () {
$Jssor$.$HideElement(elmt);
$Jssor$.$ClearInnerHtml(elmt);
};
}
//SlideContainer
//SlideItem
function SlideItem(slideElmt, slideIndex) {
var _SelfSlideItem = this;
var _CaptionSliderIn;
var _CaptionSliderOut;
var _CaptionSliderCurrent;
var _IsCaptionSliderPlayingWhenDragStart;
var _Wrapper;
var _BaseElement = slideElmt;
var _LoadingScreen;
var _ImageItem;
var _ImageElmts = [];
var _LinkItemOrigin;
var _LinkItem;
var _ImageLoading;
var _ImageLoaded;
var _ImageLazyLoading;
var _ContentRefreshed;
var _Processor;
var _PlayerInstanceElement;
var _PlayerInstance;
var _SequenceNumber; //for debug only
$JssorAnimator$.call(_SelfSlideItem, -_DisplayPieces, _DisplayPieces + 1, { $SlideItemAnimator: true });
function ResetCaptionSlider(fresh) {
_CaptionSliderOut && _CaptionSliderOut.$Revert();
_CaptionSliderIn && _CaptionSliderIn.$Revert();
RefreshContent(slideElmt, fresh);
_ContentRefreshed = true;
_CaptionSliderIn = new _CaptionSliderOptions.$Class(slideElmt, _CaptionSliderOptions, 1);
$JssorDebug$.$LiveStamp(_CaptionSliderIn, "caption_slider_" + _CaptionSliderCount + "_in");
_CaptionSliderOut = new _CaptionSliderOptions.$Class(slideElmt, _CaptionSliderOptions);
$JssorDebug$.$LiveStamp(_CaptionSliderOut, "caption_slider_" + _CaptionSliderCount + "_out");
$JssorDebug$.$Execute(function () {
_CaptionSliderCount++;
});
_CaptionSliderOut.$GoToBegin();
_CaptionSliderIn.$GoToBegin();
}
function EnsureCaptionSliderVersion() {
if (_CaptionSliderIn.$Version < _CaptionSliderOptions.$Version) {
ResetCaptionSlider();
}
}
//event handling begin
function LoadImageCompleteEventHandler(completeCallback, loadingScreen, image) {
if (!_ImageLoaded) {
_ImageLoaded = true;
if (_ImageItem && image) {
var imageWidth = image.width;
var imageHeight = image.height;
var fillWidth = imageWidth;
var fillHeight = imageHeight;
if (imageWidth && imageHeight && _Options.$FillMode) {
//0 stretch, 1 contain (keep aspect ratio and put all inside slide), 2 cover (keep aspect ratio and cover whole slide), 4 actual size, 5 contain for large image, actual size for small image, default value is 0
if (_Options.$FillMode & 3 && (!(_Options.$FillMode & 4) || imageWidth > _SlideWidth || imageHeight > _SlideHeight)) {
var fitHeight = false;
var ratio = _SlideWidth / _SlideHeight * imageHeight / imageWidth;
if (_Options.$FillMode & 1) {
fitHeight = (ratio > 1);
}
else if (_Options.$FillMode & 2) {
fitHeight = (ratio < 1);
}
fillWidth = fitHeight ? imageWidth * _SlideHeight / imageHeight : _SlideWidth;
fillHeight = fitHeight ? _SlideHeight : imageHeight * _SlideWidth / imageWidth;
}
$Jssor$.$CssWidth(_ImageItem, fillWidth);
$Jssor$.$CssHeight(_ImageItem, fillHeight);
$Jssor$.$CssTop(_ImageItem, (_SlideHeight - fillHeight) / 2);
$Jssor$.$CssLeft(_ImageItem, (_SlideWidth - fillWidth) / 2);
}
$Jssor$.$CssPosition(_ImageItem, "absolute");
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_LOAD_END, slideItem);
}
}
$Jssor$.$HideElement(loadingScreen);
completeCallback && completeCallback(_SelfSlideItem);
}
function LoadSlideshowImageCompleteEventHandler(nextIndex, nextItem, slideshowTransition, loadingTicket) {
if (loadingTicket == _LoadingTicket && _CurrentSlideIndex == slideIndex && _AutoPlay) {
if (!_Frozen) {
var nextRealIndex = GetRealIndex(nextIndex);
_SlideshowRunner.$Initialize(nextRealIndex, slideIndex, nextItem, _SelfSlideItem, slideshowTransition);
nextItem.$HideContentForSlideshow();
_Slideshow.$Locate(nextRealIndex, 1);
_Slideshow.$GoToPosition(nextRealIndex);
_CarouselPlayer.$PlayCarousel(nextIndex, nextIndex, 0);
}
}
}
function SlideReadyEventHandler(loadingTicket) {
if (loadingTicket == _LoadingTicket && _CurrentSlideIndex == slideIndex) {
if (!_Processor) {
var slideshowProcessor = null;
if (_SlideshowRunner) {
if (_SlideshowRunner.$Index == slideIndex)
slideshowProcessor = _SlideshowRunner.$GetProcessor();
else
_SlideshowRunner.$Clear();
}
EnsureCaptionSliderVersion();
_Processor = new Processor(slideIndex, slideshowProcessor, _SelfSlideItem.$GetCaptionSliderIn(), _SelfSlideItem.$GetCaptionSliderOut());
_Processor.$SetPlayer(_PlayerInstance);
}
!_Processor.$IsPlaying() && _Processor.$Replay();
}
}
function ParkEventHandler(currentIndex, previousIndex) {
if (currentIndex == slideIndex) {
if (currentIndex != previousIndex)
_SlideItems[previousIndex] && _SlideItems[previousIndex].$ParkOut();
else
_Processor && _Processor.$AdjustIdleOnPark();
_PlayerInstance && _PlayerInstance.$Enable();
//park in
var loadingTicket = _LoadingTicket = $Jssor$.$GetNow();
_SelfSlideItem.$LoadImage($Jssor$.$CreateCallback(null, SlideReadyEventHandler, loadingTicket));
}
else {
var distance = Math.abs(slideIndex - currentIndex);
var loadRange = _DisplayPieces + _Options.$LazyLoading;
if (!_ImageLazyLoading || distance <= loadRange || _SlideCount - distance <= loadRange) {
_SelfSlideItem.$LoadImage();
}
}
}
function SwipeStartEventHandler() {
if (_CurrentSlideIndex == slideIndex && _Processor) {
_Processor.$Stop();
_PlayerInstance && _PlayerInstance.$Quit();
_PlayerInstance && _PlayerInstance.$Disable();
_Processor.$OpenSlideshowPanel();
}
}
function FreezeEventHandler() {
if (_CurrentSlideIndex == slideIndex && _Processor) {
_Processor.$Stop();
}
}
function LinkClickEventHandler(event) {
if (_LastDragSucceded) {
$Jssor$.$CancelEvent(event);
}
else {
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_CLICK, slideIndex, event);
}
}
function PlayerAvailableEventHandler() {
_PlayerInstance = _PlayerInstanceElement.pInstance;
_Processor && _Processor.$SetPlayer(_PlayerInstance);
}
_SelfSlideItem.$LoadImage = function (completeCallback, loadingScreen) {
loadingScreen = loadingScreen || _LoadingScreen;
if (_ImageElmts.length && !_ImageLoaded) {
$Jssor$.$ShowElement(loadingScreen);
if (!_ImageLoading) {
_ImageLoading = true;
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_LOAD_START);
$Jssor$.$Each(_ImageElmts, function (imageElmt) {
if (!imageElmt.src) {
imageElmt.src = $Jssor$.$AttributeEx(imageElmt, "src2");
$Jssor$.$CssDisplay(imageElmt, imageElmt["display-origin"]);
}
});
}
$Jssor$.$LoadImages(_ImageElmts, _ImageItem, $Jssor$.$CreateCallback(null, LoadImageCompleteEventHandler, completeCallback, loadingScreen));
}
else {
LoadImageCompleteEventHandler(completeCallback, loadingScreen);
}
};
_SelfSlideItem.$GoForNextSlide = function () {
if (_SlideshowRunner) {
var slideshowTransition = _SlideshowRunner.$GetTransition(_SlideCount);
if (slideshowTransition) {
var loadingTicket = _LoadingTicket = $Jssor$.$GetNow();
var nextIndex = slideIndex + _PlayReverse;
var nextItem = _SlideItems[GetRealIndex(nextIndex)];
return nextItem.$LoadImage($Jssor$.$CreateCallback(null, LoadSlideshowImageCompleteEventHandler, nextIndex, nextItem, slideshowTransition, loadingTicket), _LoadingScreen);
}
}
PlayTo(_CurrentSlideIndex + _Options.$AutoPlaySteps * _PlayReverse);
};
_SelfSlideItem.$TryActivate = function () {
ParkEventHandler(slideIndex, slideIndex);
};
_SelfSlideItem.$ParkOut = function () {
//park out
_PlayerInstance && _PlayerInstance.$Quit();
_PlayerInstance && _PlayerInstance.$Disable();
_SelfSlideItem.$UnhideContentForSlideshow();
_Processor && _Processor.$Abort();
_Processor = null;
ResetCaptionSlider();
};
//for debug only
_SelfSlideItem.$StampSlideItemElements = function (stamp) {
stamp = _SequenceNumber + "_" + stamp;
$JssorDebug$.$Execute(function () {
if (_ImageItem)
$Jssor$.$Attribute(_ImageItem, "debug-id", stamp + "_slide_item_image_id");
$Jssor$.$Attribute(slideElmt, "debug-id", stamp + "_slide_item_item_id");
});
$JssorDebug$.$Execute(function () {
$Jssor$.$Attribute(_Wrapper, "debug-id", stamp + "_slide_item_wrapper_id");
});
$JssorDebug$.$Execute(function () {
$Jssor$.$Attribute(_LoadingScreen, "debug-id", stamp + "_loading_container_id");
});
};
_SelfSlideItem.$HideContentForSlideshow = function () {
$Jssor$.$HideElement(slideElmt);
};
_SelfSlideItem.$UnhideContentForSlideshow = function () {
$Jssor$.$ShowElement(slideElmt);
};
_SelfSlideItem.$EnablePlayer = function () {
_PlayerInstance && _PlayerInstance.$Enable();
};
function RefreshContent(elmt, fresh, level) {
if (elmt["jssor-slider"])
return;
level = level || 0;
if (!_ContentRefreshed) {
if (elmt.tagName == "IMG") {
_ImageElmts.push(elmt);
if (!elmt.src) {
_ImageLazyLoading = true;
elmt["display-origin"] = $Jssor$.$CssDisplay(elmt);
$Jssor$.$HideElement(elmt);
}
}
if ($Jssor$.$IsBrowserIe9Earlier()) {
$Jssor$.$CssZIndex(elmt, ($Jssor$.$CssZIndex(elmt) || 0) + 1);
}
if (_Options.$HWA && $Jssor$.$WebKitVersion()) {
if (!_HandleTouchEventOnly || $Jssor$.$WebKitVersion() < 534 || (!_SlideshowEnabled && !$Jssor$.$IsBrowserChrome())) {
$Jssor$.$EnableHWA(elmt);
}
}
}
var childElements = $Jssor$.$Children(elmt);
$Jssor$.$Each(childElements, function (childElement, i) {
var uAttribute = $Jssor$.$AttributeEx(childElement, "u");
if (uAttribute == "player" && !_PlayerInstanceElement) {
_PlayerInstanceElement = childElement;
if (_PlayerInstanceElement.pInstance) {
PlayerAvailableEventHandler();
}
else {
$Jssor$.$AddEvent(_PlayerInstanceElement, "dataavailable", PlayerAvailableEventHandler);
}
}
if (uAttribute == "caption") {
if (!$Jssor$.$IsBrowserIE() && !fresh) {
var captionElement = $Jssor$.$CloneNode(childElement);
$Jssor$.$InsertBefore(elmt, captionElement, childElement);
$Jssor$.$RemoveChild(elmt, childElement);
childElement = captionElement;
fresh = true;
}
}
else if (!_ContentRefreshed && !level && !_ImageItem && $Jssor$.$AttributeEx(childElement, "u") == "image") {
_ImageItem = childElement;
if (_ImageItem) {
if (_ImageItem.tagName == "A") {
_LinkItemOrigin = _ImageItem;
$Jssor$.$SetStyles(_LinkItemOrigin, _StyleDef);
_LinkItem = $Jssor$.$CloneNode(_ImageItem, true);
//cancel click event on <A> element when a drag of slide succeeded
$Jssor$.$AddEvent(_LinkItem, "click", LinkClickEventHandler);
$Jssor$.$SetStyles(_LinkItem, _StyleDef);
$Jssor$.$CssDisplay(_LinkItem, "block");
$Jssor$.$CssOpacity(_LinkItem, 0);
$Jssor$.$Css(_LinkItem, "backgroundColor", "#000");
_ImageItem = $Jssor$.$FindChildByTag(_ImageItem, "IMG");
$JssorDebug$.$Execute(function () {
if (!_ImageItem) {
$JssorDebug$.$Error("slide html code definition error, no 'IMG' found in a 'image with link' slide.\r\n" + elmt.outerHTML);
}
});
}
_ImageItem.border = 0;
$Jssor$.$SetStyles(_ImageItem, _StyleDef);
}
}
RefreshContent(childElement, fresh, level + 1);
});
}
_SelfSlideItem.$OnInnerOffsetChange = function (oldOffset, newOffset) {
var slidePosition = _DisplayPieces - newOffset;
SetPosition(_Wrapper, slidePosition);
//following lines are for future usage, not ready yet
//if (!_IsDragging || !_IsCaptionSliderPlayingWhenDragStart) {
// var _DealWithParallax;
// if (IsCurrentSlideIndex(slideIndex)) {
// if (_CaptionSliderOptions.$PlayOutMode == 2)
// _DealWithParallax = true;
// }
// else {
// if (!_CaptionSliderOptions.$PlayInMode) {
// //PlayInMode: 0 none
// _CaptionSliderIn.$GoToEnd();
// }
// //else if (_CaptionSliderOptions.$PlayInMode == 1) {
// // //PlayInMode: 1 chain
// // _CaptionSliderIn.$GoToBegin();
// //}
// else if (_CaptionSliderOptions.$PlayInMode == 2) {
// //PlayInMode: 2 parallel
// _DealWithParallax = true;
// }
// }
// if (_DealWithParallax) {
// _CaptionSliderIn.$GoToPosition((_CaptionSliderIn.$GetPosition_OuterEnd() - _CaptionSliderIn.$GetPosition_OuterBegin()) * Math.abs(newOffset - 1) * .8 + _CaptionSliderIn.$GetPosition_OuterBegin());
// }
//}
};
_SelfSlideItem.$GetCaptionSliderIn = function () {
return _CaptionSliderIn;
};
_SelfSlideItem.$GetCaptionSliderOut = function () {
return _CaptionSliderOut;
};
_SelfSlideItem.$Index = slideIndex;
$JssorObject$.call(_SelfSlideItem);
//SlideItem Constructor
{
var thumb = $Jssor$.$FindChild(slideElmt, "thumb", true);
if (thumb) {
_SelfSlideItem.$Thumb = $Jssor$.$CloneNode(thumb);
$Jssor$.$RemoveAttribute(thumb, "id");
$Jssor$.$HideElement(thumb);
}
$Jssor$.$ShowElement(slideElmt);
_LoadingScreen = $Jssor$.$CloneNode(_LoadingContainer);
$Jssor$.$CssZIndex(_LoadingScreen, 1000);
//cancel click event on <A> element when a drag of slide succeeded
$Jssor$.$AddEvent(slideElmt, "click", LinkClickEventHandler);
ResetCaptionSlider(true);
_SelfSlideItem.$Image = _ImageItem;
_SelfSlideItem.$Link = _LinkItem;
_SelfSlideItem.$Item = slideElmt;
_SelfSlideItem.$Wrapper = _Wrapper = slideElmt;
$Jssor$.$AppendChild(_Wrapper, _LoadingScreen);
_SelfSlider.$On(203, ParkEventHandler);
_SelfSlider.$On(28, FreezeEventHandler);
_SelfSlider.$On(24, SwipeStartEventHandler);
$JssorDebug$.$Execute(function () {
_SequenceNumber = _SlideItemCreatedCount++;
});
$JssorDebug$.$Execute(function () {
$Jssor$.$Attribute(_Wrapper, "debug-id", "slide-" + slideIndex);
});
}
}
//SlideItem
//Processor
function Processor(slideIndex, slideshowProcessor, captionSliderIn, captionSliderOut) {
var _SelfProcessor = this;
var _ProgressBegin = 0;
var _SlideshowBegin = 0;
var _SlideshowEnd;
var _CaptionInBegin;
var _IdleBegin;
var _IdleEnd;
var _ProgressEnd;
var _IsSlideshowRunning;
var _IsRollingBack;
var _PlayerInstance;
var _IsPlayerOnService;
var slideItem = _SlideItems[slideIndex];
$JssorAnimator$.call(_SelfProcessor, 0, 0);
function UpdateLink() {
$Jssor$.$ClearChildren(_LinkContainer);
if (_ShowLink && _IsSlideshowRunning && slideItem.$Link) {
$Jssor$.$AppendChild(_LinkContainer, slideItem.$Link);
}
$Jssor$.$ShowElement(_LinkContainer, !_IsSlideshowRunning && slideItem.$Image);
}
function ProcessCompleteEventHandler() {
if (_IsRollingBack) {
_IsRollingBack = false;
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_ROLLBACK_END, slideIndex, _IdleEnd, _ProgressBegin, _IdleBegin, _IdleEnd, _ProgressEnd);
_SelfProcessor.$GoToPosition(_IdleBegin);
}
_SelfProcessor.$Replay();
}
function PlayerSwitchEventHandler(isOnService) {
_IsPlayerOnService = isOnService;
_SelfProcessor.$Stop();
_SelfProcessor.$Replay();
}
_SelfProcessor.$Replay = function () {
var currentPosition = _SelfProcessor.$GetPosition_Display();
if (!_IsDragging && !_IsSliding && !_IsPlayerOnService && _CurrentSlideIndex == slideIndex) {
if (!currentPosition) {
if (_SlideshowEnd && !_IsSlideshowRunning) {
_IsSlideshowRunning = true;
_SelfProcessor.$OpenSlideshowPanel(true);
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_SLIDESHOW_START, slideIndex, _ProgressBegin, _SlideshowBegin, _SlideshowEnd, _ProgressEnd);
}
UpdateLink();
}
var toPosition;
var stateEvent = JssorSlider.$EVT_STATE_CHANGE;
if (currentPosition != _ProgressEnd) {
if (currentPosition == _IdleEnd) {
toPosition = _ProgressEnd;
}
else if (currentPosition == _IdleBegin) {
toPosition = _IdleEnd;
}
else if (!currentPosition) {
toPosition = _IdleBegin;
}
else if (currentPosition > _IdleEnd) {
_IsRollingBack = true;
toPosition = _IdleEnd;
stateEvent = JssorSlider.$EVT_ROLLBACK_START;
}
else {
//continue from break (by drag or lock)
toPosition = _SelfProcessor.$GetPlayToPosition();
}
}
_SelfSlider.$TriggerEvent(stateEvent, slideIndex, currentPosition, _ProgressBegin, _IdleBegin, _IdleEnd, _ProgressEnd);
var allowAutoPlay = _AutoPlay && (!_HoverToPause || _HoverStatus);
if (currentPosition == _ProgressEnd) {
allowAutoPlay && slideItem.$GoForNextSlide();
}
else if (allowAutoPlay || currentPosition != _IdleEnd) {
_SelfProcessor.$PlayToPosition(toPosition, ProcessCompleteEventHandler);
}
}
};
_SelfProcessor.$AdjustIdleOnPark = function () {
if (_IdleEnd == _ProgressEnd && _IdleEnd == _SelfProcessor.$GetPosition_Display())
_SelfProcessor.$GoToPosition(_IdleBegin);
};
_SelfProcessor.$Abort = function () {
_SlideshowRunner && _SlideshowRunner.$Index == slideIndex && _SlideshowRunner.$Clear();
var currentPosition = _SelfProcessor.$GetPosition_Display();
if (currentPosition < _ProgressEnd) {
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_STATE_CHANGE, slideIndex, -currentPosition -1, _ProgressBegin, _IdleBegin, _IdleEnd, _ProgressEnd);
}
};
_SelfProcessor.$OpenSlideshowPanel = function (open) {
if (slideshowProcessor) {
$Jssor$.$CssOverflow(_SlideshowPanel, open && slideshowProcessor.$Transition.$Outside ? "" : "hidden");
}
};
_SelfProcessor.$OnInnerOffsetChange = function (oldPosition, newPosition) {
if (_IsSlideshowRunning && newPosition >= _SlideshowEnd) {
_IsSlideshowRunning = false;
UpdateLink();
slideItem.$UnhideContentForSlideshow();
_SlideshowRunner.$Clear();
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_SLIDESHOW_END, slideIndex, _ProgressBegin, _SlideshowBegin, _SlideshowEnd, _ProgressEnd);
}
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_PROGRESS_CHANGE, slideIndex, newPosition, _ProgressBegin, _IdleBegin, _IdleEnd, _ProgressEnd);
};
_SelfProcessor.$SetPlayer = function (playerInstance) {
if (playerInstance && !_PlayerInstance) {
_PlayerInstance = playerInstance;
playerInstance.$On($JssorPlayer$.$EVT_SWITCH, PlayerSwitchEventHandler);
}
};
//Processor Constructor
{
if (slideshowProcessor) {
_SelfProcessor.$Chain(slideshowProcessor);
}
_SlideshowEnd = _SelfProcessor.$GetPosition_OuterEnd();
_CaptionInBegin = _SelfProcessor.$GetPosition_OuterEnd();
_SelfProcessor.$Chain(captionSliderIn);
_IdleBegin = captionSliderIn.$GetPosition_OuterEnd();
_IdleEnd = _IdleBegin + _Options.$AutoPlayInterval;
captionSliderOut.$Shift(_IdleEnd);
_SelfProcessor.$Combine(captionSliderOut);
_ProgressEnd = _SelfProcessor.$GetPosition_OuterEnd();
}
}
//Processor
//private classes
function SetPosition(elmt, position) {
var orientation = _DragOrientation > 0 ? _DragOrientation : _PlayOrientation;
var x = _StepLengthX * position * (orientation & 1);
var y = _StepLengthY * position * ((orientation >> 1) & 1);
if ($Jssor$.$IsBrowserChrome() && $Jssor$.$BrowserVersion() < 38) {
x = x.toFixed(3);
y = y.toFixed(3);
}
else {
x = Math.round(x);
y = Math.round(y);
}
if ($Jssor$.$IsBrowserIE() && $Jssor$.$BrowserVersion() >= 10 && $Jssor$.$BrowserVersion() < 11) {
elmt.style.msTransform = "translate(" + x + "px, " + y + "px)";
}
else if ($Jssor$.$IsBrowserChrome() && $Jssor$.$BrowserVersion() >= 30 && $Jssor$.$BrowserVersion() < 34) {
elmt.style.WebkitTransition = "transform 0s";
elmt.style.WebkitTransform = "translate3d(" + x + "px, " + y + "px, 0px) perspective(2000px)";
}
else {
$Jssor$.$CssLeft(elmt, x);
$Jssor$.$CssTop(elmt, y);
}
}
//Event handling begin
function OnMouseDown(event) {
var tagName = $Jssor$.$EventSrc(event).tagName;
if (!_DragOrientationRegistered && tagName != "INPUT" && tagName != "TEXTAREA" && tagName != "SELECT" && RegisterDrag()) {
OnDragStart(event);
}
}
function Freeze() {
_CarouselPlaying_OnFreeze = _IsSliding;
_PlayToPosition_OnFreeze = _CarouselPlayer.$GetPlayToPosition();
_Position_OnFreeze = _Conveyor.$GetPosition();
if (_IsDragging || !_HoverStatus && (_HoverToPause & 12)) {
_CarouselPlayer.$Stop();
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_FREEZE);
}
}
function Unfreeze(byDrag) {
if (!_IsDragging && (_HoverStatus || !(_HoverToPause & 12)) && !_CarouselPlayer.$IsPlaying()) {
var currentPosition = _Conveyor.$GetPosition();
var toPosition = Math.ceil(_Position_OnFreeze);
if (byDrag && Math.abs(_DragOffsetTotal) >= _Options.$MinDragOffsetToSlide) {
toPosition = Math.ceil(currentPosition);
toPosition += _DragIndexAdjust;
}
if (!(_Loop & 1)) {
toPosition = Math.min(_SlideCount - _DisplayPieces, Math.max(toPosition, 0));
}
var t = Math.abs(toPosition - currentPosition);
t = 1 - Math.pow(1 - t, 5);
if (!_LastDragSucceded && _CarouselPlaying_OnFreeze) {
_CarouselPlayer.$Continue(_PlayToPosition_OnFreeze);
}
else if (currentPosition == toPosition) {
_CurrentSlideItem.$EnablePlayer();
_CurrentSlideItem.$TryActivate();
}
else {
_CarouselPlayer.$PlayCarousel(currentPosition, toPosition, t * _SlideDuration);
}
}
}
function OnDragStart(event) {
_IsDragging = true;
_DragInvalid = false;
_LoadingTicket = null;
$Jssor$.$AddEvent(document, _MoveEvent, OnDragMove);
_LastTimeMoveByDrag = $Jssor$.$GetNow() - 50;
_LastDragSucceded = 0;
Freeze();
if (!_CarouselPlaying_OnFreeze)
_DragOrientation = 0;
if (_HandleTouchEventOnly) {
var touchPoint = event.touches[0];
_DragStartMouseX = touchPoint.clientX;
_DragStartMouseY = touchPoint.clientY;
}
else {
var mousePoint = $Jssor$.$MousePosition(event);
_DragStartMouseX = mousePoint.x;
_DragStartMouseY = mousePoint.y;
$Jssor$.$CancelEvent(event);
}
_DragOffsetTotal = 0;
_DragOffsetLastTime = 0;
_DragIndexAdjust = 0;
//Trigger EVT_DRAGSTART
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_DRAG_START, GetRealIndex(_Position_OnFreeze), _Position_OnFreeze, event);
}
function OnDragMove(event) {
if (_IsDragging && (!$Jssor$.$IsBrowserIe9Earlier() || event.button)) {
var actionPoint;
if (_HandleTouchEventOnly) {
var touches = event.touches;
if (touches && touches.length > 0) {
actionPoint = { x: touches[0].clientX, y: touches[0].clientY };
}
}
else {
actionPoint = $Jssor$.$MousePosition(event);
}
if (actionPoint) {
var distanceX = actionPoint.x - _DragStartMouseX;
var distanceY = actionPoint.y - _DragStartMouseY;
if (Math.floor(_Position_OnFreeze) != _Position_OnFreeze)
_DragOrientation = _DragOrientation || (_PlayOrientation & _DragOrientationRegistered);
if ((distanceX || distanceY) && !_DragOrientation) {
if (_DragOrientationRegistered == 3) {
if (Math.abs(distanceY) > Math.abs(distanceX)) {
_DragOrientation = 2;
}
else
_DragOrientation = 1;
}
else {
_DragOrientation = _DragOrientationRegistered;
}
if (_HandleTouchEventOnly && _DragOrientation == 1 && Math.abs(distanceY) - Math.abs(distanceX) > 3) {
_DragInvalid = true;
}
}
if (_DragOrientation) {
var distance = distanceY;
var stepLength = _StepLengthY;
if (_DragOrientation == 1) {
distance = distanceX;
stepLength = _StepLengthX;
}
if (!(_Loop & 1)) {
if (distance > 0) {
var normalDistance = stepLength * _CurrentSlideIndex;
var sqrtDistance = distance - normalDistance;
if (sqrtDistance > 0) {
distance = normalDistance + Math.sqrt(sqrtDistance) * 5;
}
}
if (distance < 0) {
var normalDistance = stepLength * (_SlideCount - _DisplayPieces - _CurrentSlideIndex);
var sqrtDistance = -distance - normalDistance;
if (sqrtDistance > 0) {
distance = -normalDistance - Math.sqrt(sqrtDistance) * 5;
}
}
}
if (_DragOffsetTotal - _DragOffsetLastTime < -2) {
_DragIndexAdjust = 0;
}
else if (_DragOffsetTotal - _DragOffsetLastTime > 2) {
_DragIndexAdjust = -1;
}
_DragOffsetLastTime = _DragOffsetTotal;
_DragOffsetTotal = distance;
_PositionToGoByDrag = _Position_OnFreeze - _DragOffsetTotal / stepLength / (_ScaleRatio || 1);
if (_DragOffsetTotal && _DragOrientation && !_DragInvalid) {
$Jssor$.$CancelEvent(event);
if (!_IsSliding) {
_CarouselPlayer.$StandBy(_PositionToGoByDrag);
}
else
_CarouselPlayer.$SetStandByPosition(_PositionToGoByDrag);
}
else if ($Jssor$.$IsBrowserIe9Earlier()) {
$Jssor$.$CancelEvent(event);
}
}
}
}
else {
OnDragEnd(event);
}
}
function OnDragEnd(event) {
UnregisterDrag();
if (_IsDragging) {
_IsDragging = false;
_LastTimeMoveByDrag = $Jssor$.$GetNow();
$Jssor$.$RemoveEvent(document, _MoveEvent, OnDragMove);
_LastDragSucceded = _DragOffsetTotal;
_LastDragSucceded && $Jssor$.$CancelEvent(event);
_CarouselPlayer.$Stop();
var currentPosition = _Conveyor.$GetPosition();
//Trigger EVT_DRAG_END
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_DRAG_END, GetRealIndex(currentPosition), currentPosition, GetRealIndex(_Position_OnFreeze), _Position_OnFreeze, event);
Unfreeze(true);
Freeze();
}
}
//Event handling end
function SetCurrentSlideIndex(index) {
_PrevSlideItem = _SlideItems[_CurrentSlideIndex];
_PreviousSlideIndex = _CurrentSlideIndex;
_CurrentSlideIndex = GetRealIndex(index);
_CurrentSlideItem = _SlideItems[_CurrentSlideIndex];
ResetNavigator(index);
return _CurrentSlideIndex;
}
function OnPark(slideIndex, prevIndex) {
_DragOrientation = 0;
SetCurrentSlideIndex(slideIndex);
//Trigger EVT_PARK
_SelfSlider.$TriggerEvent(JssorSlider.$EVT_PARK, GetRealIndex(slideIndex), prevIndex);
}
function ResetNavigator(index, temp) {
_TempSlideIndex = index;
$Jssor$.$Each(_Navigators, function (navigator) {
navigator.$SetCurrentIndex(GetRealIndex(index), index, temp);
});
}
function RegisterDrag() {
var dragRegistry = JssorSlider.$DragRegistry || 0;
var dragOrientation = _DragEnabled;
if (_HandleTouchEventOnly)
(dragOrientation & 1) && (dragOrientation &= 1);
JssorSlider.$DragRegistry |= dragOrientation;
return (_DragOrientationRegistered = dragOrientation & ~dragRegistry);
}
function UnregisterDrag() {
if (_DragOrientationRegistered) {
JssorSlider.$DragRegistry &= ~_DragEnabled;
_DragOrientationRegistered = 0;
}
}
function CreatePanel() {
var div = $Jssor$.$CreateDiv();
$Jssor$.$SetStyles(div, _StyleDef);
$Jssor$.$CssPosition(div, "absolute");
return div;
}
function GetRealIndex(index) {
return (index % _SlideCount + _SlideCount) % _SlideCount;
}
function IsCurrentSlideIndex(index) {
return GetRealIndex(index) == _CurrentSlideIndex;
}
function IsPreviousSlideIndex(index) {
return GetRealIndex(index) == _PreviousSlideIndex;
}
//Navigation Request Handler
function NavigationClickHandler(index, relative) {
if (relative) {
if (!_Loop) {
//Stop at threshold
index = Math.min(Math.max(index + _TempSlideIndex, 0), _SlideCount - _DisplayPieces);
relative = false;
}
else if (_Loop & 2) {
//Rewind
index = GetRealIndex(index + _TempSlideIndex);
relative = false;
}
}
PlayTo(index, _Options.$SlideDuration, relative);
}
function ShowNavigators() {
$Jssor$.$Each(_Navigators, function (navigator) {
navigator.$Show(navigator.$Options.$ChanceToShow <= _HoverStatus);
});
}
function MainContainerMouseLeaveEventHandler() {
if (!_HoverStatus) {
//$JssorDebug$.$Log("mouseleave");
_HoverStatus = 1;
ShowNavigators();
if (!_IsDragging) {
(_HoverToPause & 12) && Unfreeze();
(_HoverToPause & 3) && _SlideItems[_CurrentSlideIndex].$TryActivate();
}
}
}
function MainContainerMouseEnterEventHandler() {
if (_HoverStatus) {
//$JssorDebug$.$Log("mouseenter");
_HoverStatus = 0;
ShowNavigators();
_IsDragging || !(_HoverToPause & 12) || Freeze();
}
}
function AdjustSlidesContainerSize() {
_StyleDef = { $Width: _SlideWidth, $Height: _SlideHeight, $Top: 0, $Left: 0 };
$Jssor$.$Each(_SlideElmts, function (slideElmt, i) {
$Jssor$.$SetStyles(slideElmt, _StyleDef);
$Jssor$.$CssPosition(slideElmt, "absolute");
$Jssor$.$CssOverflow(slideElmt, "hidden");
$Jssor$.$HideElement(slideElmt);
});
$Jssor$.$SetStyles(_LoadingContainer, _StyleDef);
}
function PlayToOffset(offset, slideDuration) {
PlayTo(offset, slideDuration, true);
}
function PlayTo(slideIndex, slideDuration, relative) {
/// <summary>
/// PlayTo( slideIndex [, slideDuration] ); //Play slider to position 'slideIndex' within a period calculated base on 'slideDuration'.
/// </summary>
/// <param name="slideIndex" type="Number">
/// slide slideIndex or position will be playing to
/// </param>
/// <param name="slideDuration" type="Number" optional="true">
/// base slide duration in milliseconds to calculate the whole duration to complete this play request.
/// default value is '$SlideDuration' value which is specified when initialize the slider.
/// </param>
/// http://msdn.microsoft.com/en-us/library/vstudio/bb385682.aspx
/// http://msdn.microsoft.com/en-us/library/vstudio/hh542720.aspx
if (_CarouselEnabled && (!_IsDragging || _Options.$NaviQuitDrag)) {
_IsSliding = true;
_IsDragging = false;
_CarouselPlayer.$Stop();
{
//Slide Duration
if (slideDuration == undefined)
slideDuration = _SlideDuration;
var positionDisplay = _Carousel.$GetPosition_Display();
var positionTo = slideIndex;
if (relative) {
positionTo = positionDisplay + slideIndex;
if (slideIndex > 0)
positionTo = Math.ceil(positionTo);
else
positionTo = Math.floor(positionTo);
}
if (!(_Loop & 1)) {
positionTo = GetRealIndex(positionTo);
positionTo = Math.max(0, Math.min(positionTo, _SlideCount - _DisplayPieces));
}
var positionOffset = (positionTo - positionDisplay) % _SlideCount;
positionTo = positionDisplay + positionOffset;
var duration = positionDisplay == positionTo ? 0 : slideDuration * Math.abs(positionOffset);
duration = Math.min(duration, slideDuration * _DisplayPieces * 1.5);
_CarouselPlayer.$PlayCarousel(positionDisplay, positionTo, duration || 1);
}
}
}
//private functions
//member functions
_SelfSlider.$PlayTo = PlayTo;
_SelfSlider.$GoTo = function (slideIndex) {
/// <summary>
/// instance.$GoTo( slideIndex ); //Go to the specifed slide immediately with no play.
/// </summary>
PlayTo(slideIndex, 1);
};
_SelfSlider.$Next = function () {
/// <summary>
/// instance.$Next(); //Play the slider to next slide.
/// </summary>
PlayToOffset(1);
};
_SelfSlider.$Prev = function () {
/// <summary>
/// instance.$Prev(); //Play the slider to previous slide.
/// </summary>
PlayToOffset(-1);
};
_SelfSlider.$Pause = function () {
/// <summary>
/// instance.$Pause(); //Pause the slider, prevent it from auto playing.
/// </summary>
_AutoPlay = false;
};
_SelfSlider.$Play = function () {
/// <summary>
/// instance.$Play(); //Start auto play if the slider is currently paused.
/// </summary>
if (!_AutoPlay) {
_AutoPlay = true;
_SlideItems[_CurrentSlideIndex] && _SlideItems[_CurrentSlideIndex].$TryActivate();
}
};
_SelfSlider.$SetSlideshowTransitions = function (transitions) {
/// <summary>
/// instance.$SetSlideshowTransitions( transitions ); //Reset slideshow transitions for the slider.
/// </summary>
$JssorDebug$.$Execute(function () {
if (!transitions || !transitions.length) {
$JssorDebug$.$Error("Can not set slideshow transitions, no transitions specified.");
}
});
$Jssor$.$TranslateTransitions(transitions); //for old transition compatibility
_Options.$SlideshowOptions.$Transitions = transitions;
};
_SelfSlider.$SetCaptionTransitions = function (transitions) {
/// <summary>
/// instance.$SetCaptionTransitions( transitions ); //Reset caption transitions for the slider.
/// </summary>
$JssorDebug$.$Execute(function () {
if (!transitions || !transitions.length) {
$JssorDebug$.$Error("Can not set caption transitions, no transitions specified");
}
});
$Jssor$.$TranslateTransitions(transitions); //for old transition compatibility
_CaptionSliderOptions.$CaptionTransitions = transitions;
_CaptionSliderOptions.$Version = $Jssor$.$GetNow();
};
_SelfSlider.$SlidesCount = function () {
/// <summary>
/// instance.$SlidesCount(); //Retrieve slides count of the slider.
/// </summary>
return _SlideElmts.length;
};
_SelfSlider.$CurrentIndex = function () {
/// <summary>
/// instance.$CurrentIndex(); //Retrieve current slide index of the slider.
/// </summary>
return _CurrentSlideIndex;
};
_SelfSlider.$IsAutoPlaying = function () {
/// <summary>
/// instance.$IsAutoPlaying(); //Retrieve auto play status of the slider.
/// </summary>
return _AutoPlay;
};
_SelfSlider.$IsDragging = function () {
/// <summary>
/// instance.$IsDragging(); //Retrieve drag status of the slider.
/// </summary>
return _IsDragging;
};
_SelfSlider.$IsSliding = function () {
/// <summary>
/// instance.$IsSliding(); //Retrieve right<-->left sliding status of the slider.
/// </summary>
return _IsSliding;
};
_SelfSlider.$IsMouseOver = function () {
/// <summary>
/// instance.$IsMouseOver(); //Retrieve mouse over status of the slider.
/// </summary>
return !_HoverStatus;
};
_SelfSlider.$LastDragSucceded = function () {
/// <summary>
/// instance.$IsLastDragSucceded(); //Retrieve last drag succeded status, returns 0 if failed, returns drag offset if succeded
/// </summary>
return _LastDragSucceded;
};
function OriginalWidth() {
/// <summary>
/// instance.$OriginalWidth(); //Retrieve original width of the slider.
/// </summary>
return $Jssor$.$CssWidth(_ScaleWrapper || elmt);
}
function OriginalHeight() {
/// <summary>
/// instance.$OriginalHeight(); //Retrieve original height of the slider.
/// </summary>
return $Jssor$.$CssHeight(_ScaleWrapper || elmt);
}
_SelfSlider.$OriginalWidth = _SelfSlider.$GetOriginalWidth = OriginalWidth;
_SelfSlider.$OriginalHeight = _SelfSlider.$GetOriginalHeight = OriginalHeight;
function Scale(dimension, isHeight) {
/// <summary>
/// instance.$ScaleWidth(); //Retrieve scaled dimension the slider currently displays.
/// instance.$ScaleWidth( dimension ); //Scale the slider to new width and keep aspect ratio.
/// </summary>
if (dimension == undefined)
return $Jssor$.$CssWidth(elmt);
$JssorDebug$.$Execute(function () {
if (!dimension || dimension < 0) {
$JssorDebug$.$Fail("'$ScaleWidth' error, 'dimension' should be positive value.");
}
});
if (!_ScaleWrapper) {
$JssorDebug$.$Execute(function () {
var originalWidthStr = $Jssor$.$Css(elmt, "width");
var originalHeightStr = $Jssor$.$Css(elmt, "height");
var originalWidth = $Jssor$.$CssP(elmt, "width");
var originalHeight = $Jssor$.$CssP(elmt, "height");
if (!originalWidthStr) {
$JssorDebug$.$Fail("Cannot scale jssor slider, 'dimension' of 'outer container' not specified. Please specify 'dimension' in pixel. e.g. 'dimension: 600px;'");
}
if (!originalHeightStr) {
$JssorDebug$.$Fail("Cannot scale jssor slider, 'height' of 'outer container' not specified. Please specify 'height' in pixel. e.g. 'height: 300px;'");
}
if (originalWidthStr.indexOf('%') != -1) {
$JssorDebug$.$Fail("Cannot scale jssor slider, 'dimension' of 'outer container' not valid. Please specify 'dimension' in pixel. e.g. 'dimension: 600px;'");
}
if (originalHeightStr.indexOf('%') != -1) {
$JssorDebug$.$Fail("Cannot scale jssor slider, 'height' of 'outer container' not valid. Please specify 'height' in pixel. e.g. 'height: 300px;'");
}
if (!originalWidth) {
$JssorDebug$.$Fail("Cannot scale jssor slider, 'dimension' of 'outer container' not valid. 'dimension' of 'outer container' should be positive number. e.g. 'dimension: 600px;'");
}
if (!originalHeight) {
$JssorDebug$.$Fail("Cannot scale jssor slider, 'height' of 'outer container' not valid. 'height' of 'outer container' should be positive number. e.g. 'height: 300px;'");
}
});
var innerWrapper = $Jssor$.$CreateDiv(document);
$Jssor$.$CssCssText(innerWrapper, $Jssor$.$CssCssText(elmt));
$Jssor$.$ClassName(innerWrapper, $Jssor$.$ClassName(elmt));
$Jssor$.$CssPosition(innerWrapper, "relative");
$Jssor$.$CssTop(innerWrapper, 0);
$Jssor$.$CssLeft(innerWrapper, 0);
$Jssor$.$CssOverflow(innerWrapper, "visible");
_ScaleWrapper = $Jssor$.$CreateDiv(document);
$Jssor$.$CssPosition(_ScaleWrapper, "absolute");
$Jssor$.$CssTop(_ScaleWrapper, 0);
$Jssor$.$CssLeft(_ScaleWrapper, 0);
$Jssor$.$CssWidth(_ScaleWrapper, $Jssor$.$CssWidth(elmt));
$Jssor$.$CssHeight(_ScaleWrapper, $Jssor$.$CssHeight(elmt));
$Jssor$.$SetStyleTransformOrigin(_ScaleWrapper, "0 0");
$Jssor$.$AppendChild(_ScaleWrapper, innerWrapper);
var children = $Jssor$.$Children(elmt);
$Jssor$.$AppendChild(elmt, _ScaleWrapper);
$Jssor$.$Css(elmt, "backgroundImage", "");
var noMoveElmts = {
"navigator": _BulletNavigatorOptions && _BulletNavigatorOptions.$Scale == false,
"arrowleft": _ArrowNavigatorOptions && _ArrowNavigatorOptions.$Scale == false,
"arrowright": _ArrowNavigatorOptions && _ArrowNavigatorOptions.$Scale == false,
"thumbnavigator": _ThumbnailNavigatorOptions && _ThumbnailNavigatorOptions.$Scale == false,
"thumbwrapper": _ThumbnailNavigatorOptions && _ThumbnailNavigatorOptions.$Scale == false
};
$Jssor$.$Each(children, function (child) {
$Jssor$.$AppendChild(noMoveElmts[$Jssor$.$AttributeEx(child, "u")] ? elmt : innerWrapper, child);
});
$Jssor$.$ShowElement(innerWrapper);
$Jssor$.$ShowElement(_ScaleWrapper);
}
$JssorDebug$.$Execute(function () {
if (!_InitialScrollWidth) {
_InitialScrollWidth = _SelfSlider.$Elmt.scrollWidth;
}
});
_ScaleRatio = dimension / (isHeight? $Jssor$.$CssHeight : $Jssor$.$CssWidth)(_ScaleWrapper);
$Jssor$.$CssScale(_ScaleWrapper, _ScaleRatio);
$Jssor$.$CssWidth(elmt, isHeight ? (_ScaleRatio * OriginalWidth()) : dimension);
$Jssor$.$CssHeight(elmt, isHeight ? dimension : (_ScaleRatio * OriginalHeight()));
$Jssor$.$Each(_Navigators, function (navigator) {
navigator.$Relocate();
});
}
_SelfSlider.$ScaleHeight = _SelfSlider.$GetScaleHeight = function (height) {
/// <summary>
/// instance.$ScaleHeight(); //Retrieve scaled height the slider currently displays.
/// instance.$ScaleHeight( dimension ); //Scale the slider to new height and keep aspect ratio.
/// </summary>
if (height == undefined)
return $Jssor$.$CssHeight(elmt);
Scale(height, true);
};
_SelfSlider.$ScaleWidth = _SelfSlider.$SetScaleWidth = _SelfSlider.$GetScaleWidth = Scale;
_SelfSlider.$GetVirtualIndex = function (index) {
var parkingIndex = Math.ceil(GetRealIndex(_ParkingPosition / _StepLength));
var displayIndex = GetRealIndex(index - _CurrentSlideIndex + parkingIndex);
if (displayIndex > _DisplayPieces) {
if (index - _CurrentSlideIndex > _SlideCount / 2)
index -= _SlideCount;
else if (index - _CurrentSlideIndex <= -_SlideCount / 2)
index += _SlideCount;
}
else {
index = _CurrentSlideIndex + displayIndex - parkingIndex;
}
return index;
};
//member functions
$JssorObject$.call(_SelfSlider);
$JssorDebug$.$Execute(function () {
var outerContainerElmt = $Jssor$.$GetElement(elmt);
if (!outerContainerElmt)
$JssorDebug$.$Fail("Outer container '" + elmt + "' not found.");
});
//initialize member variables
_SelfSlider.$Elmt = elmt = $Jssor$.$GetElement(elmt);
//initialize member variables
var _InitialScrollWidth; //for debug only
var _CaptionSliderCount = 1; //for debug only
var _Options = $Jssor$.$Extend({
$FillMode: 0, //[Optional] The way to fill image in slide, 0 stretch, 1 contain (keep aspect ratio and put all inside slide), 2 cover (keep aspect ratio and cover whole slide), 4 actual size, 5 contain for large image, actual size for small image, default value is 0
$LazyLoading: 1, //[Optional] For image with lazy loading format (<IMG src2="url" .../>), by default it will be loaded only when the slide comes.
//But an integer value (maybe 0, 1, 2 or 3) indicates that how far of nearby slides should be loaded immediately as well, default value is 1.
$StartIndex: 0, //[Optional] Index of slide to display when initialize, default value is 0
$AutoPlay: false, //[Optional] Whether to auto play, default value is false
$Loop: 1, //[Optional] Enable loop(circular) of carousel or not, 0: stop, 1: loop, 2 rewind, default value is 1
$HWA: true, //[Optional] Enable hardware acceleration or not, default value is true
$NaviQuitDrag: true,
$AutoPlaySteps: 1, //[Optional] Steps to go of every play (this options applys only when slideshow disabled), default value is 1
$AutoPlayInterval: 3000, //[Optional] Interval to play next slide since the previous stopped if a slideshow is auto playing, default value is 3000
$PauseOnHover: 1, //[Optional] Whether to pause when mouse over if a slider is auto playing, 0 no pause, 1 pause for desktop, 2 pause for touch device, 3 pause for desktop and touch device, 4 freeze for desktop, 8 freeze for touch device, 12 freeze for desktop and touch device, default value is 1
$SlideDuration: 500, //[Optional] Specifies default duration (swipe) for slide in milliseconds, default value is 400
$SlideEasing: $JssorEasing$.$EaseOutQuad, //[Optional] Specifies easing for right to left animation, default value is $JssorEasing$.$EaseOutQuad
$MinDragOffsetToSlide: 20, //[Optional] Minimum drag offset that trigger slide, default value is 20
$SlideSpacing: 0, //[Optional] Space between each slide in pixels, default value is 0
$DisplayPieces: 1, //[Optional] Number of pieces to display (the slideshow would be disabled if the value is set to greater than 1), default value is 1
$ParkingPosition: 0, //[Optional] The offset position to park slide (this options applys only when slideshow disabled), default value is 0.
$UISearchMode: 1, //[Optional] The way (0 parellel, 1 recursive, default value is recursive) to search UI components (slides container, loading screen, navigator container, arrow navigator container, thumbnail navigator container etc.
$PlayOrientation: 1, //[Optional] Orientation to play slide (for auto play, navigation), 1 horizental, 2 vertical, 5 horizental reverse, 6 vertical reverse, default value is 1
$DragOrientation: 1 //[Optional] Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 both, default value is 1 (Note that the $DragOrientation should be the same as $PlayOrientation when $DisplayPieces is greater than 1, or parking position is not 0)
}, options);
//Sodo statement for development time intellisence only
$JssorDebug$.$Execute(function () {
_Options = $Jssor$.$Extend({
$ArrowKeyNavigation: undefined,
$SlideWidth: undefined,
$SlideHeight: undefined,
$SlideshowOptions: undefined,
$CaptionSliderOptions: undefined,
$BulletNavigatorOptions: undefined,
$ArrowNavigatorOptions: undefined,
$ThumbnailNavigatorOptions: undefined
},
_Options);
});
var _PlayOrientation = _Options.$PlayOrientation & 3;
var _PlayReverse = (_Options.$PlayOrientation & 4) / -4 || 1;
var _SlideshowOptions = _Options.$SlideshowOptions;
var _CaptionSliderOptions = $Jssor$.$Extend({ $Class: $JssorCaptionSliderBase$, $PlayInMode: 1, $PlayOutMode: 1 }, _Options.$CaptionSliderOptions);
$Jssor$.$TranslateTransitions(_CaptionSliderOptions.$CaptionTransitions); //for old transition compatibility
var _BulletNavigatorOptions = _Options.$BulletNavigatorOptions;
var _ArrowNavigatorOptions = _Options.$ArrowNavigatorOptions;
var _ThumbnailNavigatorOptions = _Options.$ThumbnailNavigatorOptions;
$JssorDebug$.$Execute(function () {
if (_SlideshowOptions && !_SlideshowOptions.$Class) {
$JssorDebug$.$Fail("Option $SlideshowOptions error, class not specified.");
}
});
$JssorDebug$.$Execute(function () {
if (_Options.$CaptionSliderOptions && !_Options.$CaptionSliderOptions.$Class) {
$JssorDebug$.$Fail("Option $CaptionSliderOptions error, class not specified.");
}
});
$JssorDebug$.$Execute(function () {
if (_BulletNavigatorOptions && !_BulletNavigatorOptions.$Class) {
$JssorDebug$.$Fail("Option $BulletNavigatorOptions error, class not specified.");
}
});
$JssorDebug$.$Execute(function () {
if (_ArrowNavigatorOptions && !_ArrowNavigatorOptions.$Class) {
$JssorDebug$.$Fail("Option $ArrowNavigatorOptions error, class not specified.");
}
});
$JssorDebug$.$Execute(function () {
if (_ThumbnailNavigatorOptions && !_ThumbnailNavigatorOptions.$Class) {
$JssorDebug$.$Fail("Option $ThumbnailNavigatorOptions error, class not specified.");
}
});
var _UISearchNoDeep = !_Options.$UISearchMode;
var _ScaleWrapper;
var _SlidesContainer = $Jssor$.$FindChild(elmt, "slides", _UISearchNoDeep);
var _LoadingContainer = $Jssor$.$FindChild(elmt, "loading", _UISearchNoDeep) || $Jssor$.$CreateDiv(document);
var _BulletNavigatorContainer = $Jssor$.$FindChild(elmt, "navigator", _UISearchNoDeep);
var _ArrowLeft = $Jssor$.$FindChild(elmt, "arrowleft", _UISearchNoDeep);
var _ArrowRight = $Jssor$.$FindChild(elmt, "arrowright", _UISearchNoDeep);
var _ThumbnailNavigatorContainer = $Jssor$.$FindChild(elmt, "thumbnavigator", _UISearchNoDeep);
$JssorDebug$.$Execute(function () {
//if (_BulletNavigatorOptions && !_BulletNavigatorContainer) {
// throw new Error("$BulletNavigatorOptions specified but bullet navigator container (<div u=\"navigator\" ...) not defined.");
//}
if (_BulletNavigatorContainer && !_BulletNavigatorOptions) {
throw new Error("Bullet navigator container defined but $BulletNavigatorOptions not specified.");
}
//if (_ArrowNavigatorOptions) {
// if (!_ArrowLeft) {
// throw new Error("$ArrowNavigatorOptions specified, but arrowleft (<span u=\"arrowleft\" ...) not defined.");
// }
// if (!_ArrowRight) {
// throw new Error("$ArrowNavigatorOptions specified, but arrowright (<span u=\"arrowright\" ...) not defined.");
// }
//}
if ((_ArrowLeft || _ArrowRight) && !_ArrowNavigatorOptions) {
throw new Error("arrowleft or arrowright defined, but $ArrowNavigatorOptions not specified.");
}
//if (_ThumbnailNavigatorOptions && !_ThumbnailNavigatorContainer) {
// throw new Error("$ThumbnailNavigatorOptions specified, but thumbnail navigator container (<div u=\"thumbnavigator\" ...) not defined.");
//}
if (_ThumbnailNavigatorContainer && !_ThumbnailNavigatorOptions) {
throw new Error("Thumbnail navigator container defined, but $ThumbnailNavigatorOptions not specified.");
}
});
var _SlidesContainerWidth = $Jssor$.$CssWidth(_SlidesContainer);
var _SlidesContainerHeight = $Jssor$.$CssHeight(_SlidesContainer);
$JssorDebug$.$Execute(function () {
if (isNaN(_SlidesContainerWidth))
$JssorDebug$.$Fail("Width of slides container wrong specification, it should be specified in pixel (like style='width: 600px;').");
if (_SlidesContainerWidth == undefined)
$JssorDebug$.$Fail("Width of slides container not specified, it should be specified in pixel (like style='width: 600px;').");
if (isNaN(_SlidesContainerHeight))
$JssorDebug$.$Fail("Height of slides container wrong specification, it should be specified in pixel (like style='height: 300px;').");
if (_SlidesContainerHeight == undefined)
$JssorDebug$.$Fail("Height of slides container not specified, it should be specified in pixel (like style='height: 300px;').");
var slidesContainerOverflow = $Jssor$.$CssOverflow(_SlidesContainer);
var slidesContainerOverflowX = $Jssor$.$Css(_SlidesContainer, "overflowX");
var slidesContainerOverflowY = $Jssor$.$Css(_SlidesContainer, "overflowY");
if (slidesContainerOverflow != "hidden" && (slidesContainerOverflowX != "hidden" || slidesContainerOverflowY != "hidden"))
$JssorDebug$.$Fail("Overflow of slides container wrong specification, it should be specified as 'hidden' (style='overflow:hidden;').");
//var slidesContainerTop = $Jssor$.$CssTop(_SlidesContainer);
//var slidesContainerLeft = $Jssor$.$CssLeft(_SlidesContainer);
//if (isNaN(slidesContainerTop))
// $JssorDebug$.$Fail("Top of slides container wrong specification, it should be specified in pixel (like style='top: 0px;').");
//if (slidesContainerTop == undefined)
// $JssorDebug$.$Fail("Top of slides container not specified, it should be specified in pixel (like style='top: 0px;').");
//if (isNaN(slidesContainerLeft))
// $JssorDebug$.$Fail("Left of slides container wrong specification, it should be specified in pixel (like style='left: 0px;').");
//if (slidesContainerLeft == undefined)
// $JssorDebug$.$Fail("Left of slides container not specified, it should be specified in pixel (like style='left: 0px;').");
});
$JssorDebug$.$Execute(function () {
if (!$Jssor$.$IsNumeric(_Options.$DisplayPieces))
$JssorDebug$.$Fail("Option $DisplayPieces error, it should be a numeric value and greater than or equal to 1.");
if (_Options.$DisplayPieces < 1)
$JssorDebug$.$Fail("Option $DisplayPieces error, it should be greater than or equal to 1.");
if (_Options.$DisplayPieces > 1 && _Options.$DragOrientation && _Options.$DragOrientation != _PlayOrientation)
$JssorDebug$.$Fail("Option $DragOrientation error, it should be 0 or the same of $PlayOrientation when $DisplayPieces is greater than 1.");
if (!$Jssor$.$IsNumeric(_Options.$ParkingPosition))
$JssorDebug$.$Fail("Option $ParkingPosition error, it should be a numeric value.");
if (_Options.$ParkingPosition && _Options.$DragOrientation && _Options.$DragOrientation != _PlayOrientation)
$JssorDebug$.$Fail("Option $DragOrientation error, it should be 0 or the same of $PlayOrientation when $ParkingPosition is not equal to 0.");
});
var _StyleDef;
var _SlideElmts = [];
{
var slideElmts = $Jssor$.$Children(_SlidesContainer);
$Jssor$.$Each(slideElmts, function (slideElmt) {
if (slideElmt.tagName == "DIV" && !$Jssor$.$AttributeEx(slideElmt, "u")) {
_SlideElmts.push(slideElmt);
}
});
}
$JssorDebug$.$Execute(function () {
if (_SlideElmts.length < 1) {
$JssorDebug$.$Error("Slides html code definition error, there must be at least 1 slide to initialize a slider.");
}
});
var _SlideItemCreatedCount = 0; //for debug only
var _SlideItemReleasedCount = 0; //for debug only
var _PreviousSlideIndex;
var _CurrentSlideIndex = -1;
var _TempSlideIndex;
var _PrevSlideItem;
var _CurrentSlideItem;
var _SlideCount = _SlideElmts.length;
var _SlideWidth = _Options.$SlideWidth || _SlidesContainerWidth;
var _SlideHeight = _Options.$SlideHeight || _SlidesContainerHeight;
var _SlideSpacing = _Options.$SlideSpacing;
var _StepLengthX = _SlideWidth + _SlideSpacing;
var _StepLengthY = _SlideHeight + _SlideSpacing;
var _StepLength = (_PlayOrientation & 1) ? _StepLengthX : _StepLengthY;
var _DisplayPieces = Math.min(_Options.$DisplayPieces, _SlideCount);
var _SlideshowPanel;
var _CurrentBoardIndex = 0;
var _DragOrientation;
var _DragOrientationRegistered;
var _DragInvalid;
var _HandleTouchEventOnly;
var _Navigators = [];
var _BulletNavigator;
var _ArrowNavigator;
var _ThumbnailNavigator;
var _ShowLink;
var _Frozen;
var _AutoPlay;
var _AutoPlaySteps = _Options.$AutoPlaySteps;
var _HoverToPause = _Options.$PauseOnHover;
var _AutoPlayInterval = _Options.$AutoPlayInterval;
var _SlideDuration = _Options.$SlideDuration;
var _SlideshowRunnerClass;
var _TransitionsOrder;
var _SlideshowEnabled;
var _ParkingPosition;
var _CarouselEnabled = _DisplayPieces < _SlideCount;
var _Loop = _CarouselEnabled ? _Options.$Loop : 0;
var _DragEnabled;
var _LastDragSucceded;
var _HoverStatus = 1; //0 Hovering, 1 Not hovering
//Variable Definition
var _IsSliding;
var _IsDragging;
var _LoadingTicket;
//The X position of mouse/touch when a drag start
var _DragStartMouseX = 0;
//The Y position of mouse/touch when a drag start
var _DragStartMouseY = 0;
var _DragOffsetTotal;
var _DragOffsetLastTime;
var _DragIndexAdjust;
var _Carousel;
var _Conveyor;
var _Slideshow;
var _CarouselPlayer;
var _SlideContainer = new SlideContainer();
var _ScaleRatio;
//$JssorSlider$ Constructor
{
_AutoPlay = _Options.$AutoPlay;
_SelfSlider.$Options = options;
AdjustSlidesContainerSize();
elmt["jssor-slider"] = true;
//_SlideshowPanel = CreatePanel();
//$Jssor$.$CssZIndex(elmt, $Jssor$.$CssZIndex(elmt));
//$Jssor$.$CssLeft(_SlideshowPanel, $Jssor$.$CssLeft(_SlidesContainer));
//$Jssor$.$CssZIndex(_SlidesContainer, $Jssor$.$CssZIndex(_SlidesContainer));
//$Jssor$.$CssTop(_SlideshowPanel, $Jssor$.$CssTop(_SlidesContainer));
$Jssor$.$CssZIndex(_SlidesContainer, $Jssor$.$CssZIndex(_SlidesContainer) || 0);
$Jssor$.$CssPosition(_SlidesContainer, "absolute");
_SlideshowPanel = $Jssor$.$CloneNode(_SlidesContainer);
$Jssor$.$InsertBefore($Jssor$.$ParentNode(_SlidesContainer), _SlideshowPanel, _SlidesContainer);
if (_SlideshowOptions) {
_ShowLink = _SlideshowOptions.$ShowLink;
_SlideshowRunnerClass = _SlideshowOptions.$Class;
$JssorDebug$.$Execute(function () {
if (!_SlideshowOptions.$Transitions || !_SlideshowOptions.$Transitions.length) {
$JssorDebug$.$Error("Invalid '$SlideshowOptions', no '$Transitions' specified.");
}
});
$Jssor$.$TranslateTransitions(_SlideshowOptions.$Transitions); //for old transition compatibility
_SlideshowEnabled = _DisplayPieces == 1 && _SlideCount > 1 && _SlideshowRunnerClass && (!$Jssor$.$IsBrowserIE() || $Jssor$.$BrowserVersion() >= 8);
}
_ParkingPosition = (_SlideshowEnabled || _DisplayPieces >= _SlideCount || !(_Loop & 1)) ? 0 : _Options.$ParkingPosition;
_DragEnabled = ((_DisplayPieces > 1 || _ParkingPosition) ? _PlayOrientation : -1) & _Options.$DragOrientation;
//SlideBoard
var _SlideboardElmt = _SlidesContainer;
var _SlideItems = [];
var _SlideshowRunner;
var _LinkContainer;
var _DownEvent = "mousedown";
var _MoveEvent = "mousemove";
var _UpEvent = "mouseup";
var _CancelEvent;
var _LastTimeMoveByDrag;
var _Position_OnFreeze;
var _CarouselPlaying_OnFreeze;
var _PlayToPosition_OnFreeze;
var _PositionToGoByDrag;
//SlideBoard Constructor
{
var msPrefix;
if (window.navigator.pointerEnabled || (msPrefix = window.navigator.msPointerEnabled)) {
_DownEvent = msPrefix ? "MSPointerDown" : "pointerdown";
_MoveEvent = msPrefix ? "MSPointerMove" : "pointermove";
_UpEvent = msPrefix ? "MSPointerUp" : "pointerup";
_CancelEvent = msPrefix ? "MSPointerCancel" : "pointercancel";
if (_DragEnabled) {
var touchAction = "none";
if (_DragEnabled == 1) {
touchAction = "pan-y";
}
else if (_DragEnabled == 2) {
touchAction = "pan-x";
}
$Jssor$.$Css(_SlideboardElmt, msPrefix ? "msTouchAction" : "touchAction", touchAction);
}
}
else if ("ontouchstart" in window || "createTouch" in document) {
_HandleTouchEventOnly = true;
_DownEvent = "touchstart";
_MoveEvent = "touchmove";
_UpEvent = "touchend";
_CancelEvent = "touchcancel";
}
_Slideshow = new Slideshow();
if (_SlideshowEnabled)
_SlideshowRunner = new _SlideshowRunnerClass(_SlideContainer, _SlideWidth, _SlideHeight, _SlideshowOptions, _HandleTouchEventOnly);
$Jssor$.$AppendChild(_SlideshowPanel, _Slideshow.$Wrapper);
$Jssor$.$CssOverflow(_SlidesContainer, "hidden");
//link container
{
_LinkContainer = CreatePanel();
$Jssor$.$Css(_LinkContainer, "backgroundColor", "#000");
$Jssor$.$CssOpacity(_LinkContainer, 0);
$Jssor$.$InsertBefore(_SlideboardElmt, _LinkContainer, _SlideboardElmt.firstChild);
}
for (var i = 0; i < _SlideElmts.length; i++) {
var slideElmt = _SlideElmts[i];
var slideItem = new SlideItem(slideElmt, i);
_SlideItems.push(slideItem);
}
$Jssor$.$HideElement(_LoadingContainer);
$JssorDebug$.$Execute(function () {
$Jssor$.$Attribute(_LoadingContainer, "debug-id", "loading-container");
});
_Carousel = new Carousel()
_CarouselPlayer = new CarouselPlayer(_Carousel, _Slideshow);
$JssorDebug$.$Execute(function () {
$Jssor$.$Attribute(_SlideboardElmt, "debug-id", "slide-board");
});
if (_DragEnabled) {
$Jssor$.$AddEvent(_SlidesContainer, _DownEvent, OnMouseDown);
$Jssor$.$AddEvent(document, _UpEvent, OnDragEnd);
_CancelEvent && $Jssor$.$AddEvent(document, _CancelEvent, OnDragEnd);
}
}
//SlideBoard
_HoverToPause &= (_HandleTouchEventOnly ? 10 : 5);
//Bullet Navigator
if (_BulletNavigatorContainer && _BulletNavigatorOptions) {
_BulletNavigator = new _BulletNavigatorOptions.$Class(_BulletNavigatorContainer, _BulletNavigatorOptions, OriginalWidth(), OriginalHeight());
_Navigators.push(_BulletNavigator);
}
//Arrow Navigator
if (_ArrowNavigatorOptions && _ArrowLeft && _ArrowRight) {
_ArrowNavigator = new _ArrowNavigatorOptions.$Class(_ArrowLeft, _ArrowRight, _ArrowNavigatorOptions, OriginalWidth(), OriginalHeight());
_Navigators.push(_ArrowNavigator);
}
//Thumbnail Navigator
if (_ThumbnailNavigatorContainer && _ThumbnailNavigatorOptions) {
_ThumbnailNavigatorOptions.$StartIndex = _Options.$StartIndex;
_ThumbnailNavigator = new _ThumbnailNavigatorOptions.$Class(_ThumbnailNavigatorContainer, _ThumbnailNavigatorOptions);
_Navigators.push(_ThumbnailNavigator);
}
$Jssor$.$Each(_Navigators, function (navigator) {
navigator.$Reset(_SlideCount, _SlideItems, _LoadingContainer);
navigator.$On($JssorNavigatorEvents$.$NAVIGATIONREQUEST, NavigationClickHandler);
});
Scale(OriginalWidth());
$Jssor$.$AddEvent(elmt, "mouseout", $Jssor$.$MouseOverOutFilter(MainContainerMouseLeaveEventHandler, elmt));
$Jssor$.$AddEvent(elmt, "mouseover", $Jssor$.$MouseOverOutFilter(MainContainerMouseEnterEventHandler, elmt));
ShowNavigators();
//Keyboard Navigation
if (_Options.$ArrowKeyNavigation) {
$Jssor$.$AddEvent(document, "keydown", function (e) {
if (e.keyCode == $JssorKeyCode$.$LEFT) {
//Arrow Left
PlayToOffset(-1);
}
else if (e.keyCode == $JssorKeyCode$.$RIGHT) {
//Arrow Right
PlayToOffset(1);
}
});
}
var startPosition = _Options.$StartIndex;
if (!(_Loop & 1)) {
startPosition = Math.max(0, Math.min(startPosition, _SlideCount - _DisplayPieces));
}
_CarouselPlayer.$PlayCarousel(startPosition, startPosition, 0);
}
}
//Jssor Slider
//JssorSlider.$ASSEMBLY_BOTTOM_LEFT = ASSEMBLY_BOTTOM_LEFT;
//JssorSlider.$ASSEMBLY_BOTTOM_RIGHT = ASSEMBLY_BOTTOM_RIGHT;
//JssorSlider.$ASSEMBLY_TOP_LEFT = ASSEMBLY_TOP_LEFT;
//JssorSlider.$ASSEMBLY_TOP_RIGHT = ASSEMBLY_TOP_RIGHT;
//JssorSlider.$ASSEMBLY_LEFT_TOP = ASSEMBLY_LEFT_TOP;
//JssorSlider.$ASSEMBLY_LEFT_BOTTOM = ASSEMBLY_LEFT_BOTTOM;
//JssorSlider.$ASSEMBLY_RIGHT_TOP = ASSEMBLY_RIGHT_TOP;
//JssorSlider.$ASSEMBLY_RIGHT_BOTTOM = ASSEMBLY_RIGHT_BOTTOM;
JssorSlider.$EVT_CLICK = 21;
JssorSlider.$EVT_DRAG_START = 22;
JssorSlider.$EVT_DRAG_END = 23;
JssorSlider.$EVT_SWIPE_START = 24;
JssorSlider.$EVT_SWIPE_END = 25;
JssorSlider.$EVT_LOAD_START = 26;
JssorSlider.$EVT_LOAD_END = 27;
JssorSlider.$EVT_FREEZE = 28;
JssorSlider.$EVT_POSITION_CHANGE = 202;
JssorSlider.$EVT_PARK = 203;
JssorSlider.$EVT_SLIDESHOW_START = 206;
JssorSlider.$EVT_SLIDESHOW_END = 207;
JssorSlider.$EVT_PROGRESS_CHANGE = 208;
JssorSlider.$EVT_STATE_CHANGE = 209;
JssorSlider.$EVT_ROLLBACK_START = 210;
JssorSlider.$EVT_ROLLBACK_END = 211;
window.$JssorSlider$ = $JssorSlider$ = JssorSlider;
//(function ($) {
// jQuery.fn.jssorSlider = function (options) {
// return this.each(function () {
// return $(this).data('jssorSlider') || $(this).data('jssorSlider', new JssorSlider(this, options));
// });
// };
//})(jQuery);
//window.jQuery && (jQuery.fn.jssorSlider = function (options) {
// return this.each(function () {
// return jQuery(this).data('jssorSlider') || jQuery(this).data('jssorSlider', new JssorSlider(this, options));
// });
//});
};
//$JssorBulletNavigator$
var $JssorNavigatorEvents$ = {
$NAVIGATIONREQUEST: 1,
$INDEXCHANGE: 2,
$RESET: 3
};
var $JssorBulletNavigator$ = window.$JssorBulletNavigator$ = function (elmt, options, containerWidth, containerHeight) {
var self = this;
$JssorObject$.call(self);
elmt = $Jssor$.$GetElement(elmt);
var _Count;
var _Length;
var _Width;
var _Height;
var _CurrentIndex;
var _CurrentInnerIndex = 0;
var _Options;
var _Steps;
var _Lanes;
var _SpacingX;
var _SpacingY;
var _Orientation;
var _ItemPrototype;
var _PrototypeWidth;
var _PrototypeHeight;
var _ButtonElements = [];
var _Buttons = [];
function Highlight(index) {
if (index != -1)
_Buttons[index].$Activate(index == _CurrentInnerIndex);
}
function OnNavigationRequest(index) {
self.$TriggerEvent($JssorNavigatorEvents$.$NAVIGATIONREQUEST, index * _Steps);
}
self.$Elmt = elmt;
self.$GetCurrentIndex = function () {
return _CurrentIndex;
};
self.$SetCurrentIndex = function (index) {
if (index != _CurrentIndex) {
var lastInnerIndex = _CurrentInnerIndex;
var innerIndex = Math.floor(index / _Steps);
_CurrentInnerIndex = innerIndex;
_CurrentIndex = index;
Highlight(lastInnerIndex);
Highlight(innerIndex);
//self.$TriggerEvent($JssorNavigatorEvents$.$INDEXCHANGE, index);
}
};
self.$Show = function (hide) {
$Jssor$.$ShowElement(elmt, hide);
};
var _Located;
self.$Relocate = function (force) {
if (!_Located || _Options.$Scale == false) {
if (_Options.$AutoCenter & 1) {
$Jssor$.$CssLeft(elmt, (containerWidth - _Width) / 2);
}
if (_Options.$AutoCenter & 2) {
$Jssor$.$CssTop(elmt, (containerHeight - _Height) / 2);
}
_Located = true;
}
};
var _Initialized;
self.$Reset = function (length) {
if (!_Initialized) {
_Length = length;
_Count = Math.ceil(length / _Steps);
_CurrentInnerIndex = 0;
var itemOffsetX = _PrototypeWidth + _SpacingX;
var itemOffsetY = _PrototypeHeight + _SpacingY;
var maxIndex = Math.ceil(_Count / _Lanes) - 1;
_Width = _PrototypeWidth + itemOffsetX * (!_Orientation ? maxIndex : _Lanes - 1);
_Height = _PrototypeHeight + itemOffsetY * (_Orientation ? maxIndex : _Lanes - 1);
$Jssor$.$CssWidth(elmt, _Width);
$Jssor$.$CssHeight(elmt, _Height);
//self.$Relocate(true);
for (var buttonIndex = 0; buttonIndex < _Count; buttonIndex++) {
var numberDiv = $Jssor$.$CreateSpan();
$Jssor$.$InnerText(numberDiv, buttonIndex + 1);
var div = $Jssor$.$BuildElement(_ItemPrototype, "NumberTemplate", numberDiv, true);
$Jssor$.$CssPosition(div, "absolute");
var columnIndex = buttonIndex % (maxIndex + 1);
$Jssor$.$CssLeft(div, !_Orientation ? itemOffsetX * columnIndex : buttonIndex % _Lanes * itemOffsetX);
$Jssor$.$CssTop(div, _Orientation ? itemOffsetY * columnIndex : Math.floor(buttonIndex / (maxIndex + 1)) * itemOffsetY);
$Jssor$.$AppendChild(elmt, div);
_ButtonElements[buttonIndex] = div;
if (_Options.$ActionMode & 1)
$Jssor$.$AddEvent(div, "click", $Jssor$.$CreateCallback(null, OnNavigationRequest, buttonIndex));
if (_Options.$ActionMode & 2)
$Jssor$.$AddEvent(div, "mouseover", $Jssor$.$MouseOverOutFilter($Jssor$.$CreateCallback(null, OnNavigationRequest, buttonIndex), div));
_Buttons[buttonIndex] = $Jssor$.$Buttonize(div);
}
//self.$TriggerEvent($JssorNavigatorEvents$.$RESET);
_Initialized = true;
}
};
//JssorBulletNavigator Constructor
{
self.$Options = _Options = $Jssor$.$Extend({
$SpacingX: 0,
$SpacingY: 0,
$Orientation: 1,
$ActionMode: 1
}, options);
//Sodo statement for development time intellisence only
$JssorDebug$.$Execute(function () {
_Options = $Jssor$.$Extend({
$Steps: undefined,
$Lanes: undefined
}, _Options);
});
_ItemPrototype = $Jssor$.$FindChild(elmt, "prototype");
$JssorDebug$.$Execute(function () {
if (!_ItemPrototype)
$JssorDebug$.$Fail("Navigator item prototype not defined.");
if (isNaN($Jssor$.$CssWidth(_ItemPrototype))) {
$JssorDebug$.$Fail("Width of 'navigator item prototype' not specified.");
}
if (isNaN($Jssor$.$CssHeight(_ItemPrototype))) {
$JssorDebug$.$Fail("Height of 'navigator item prototype' not specified.");
}
});
_PrototypeWidth = $Jssor$.$CssWidth(_ItemPrototype);
_PrototypeHeight = $Jssor$.$CssHeight(_ItemPrototype);
$Jssor$.$RemoveChild(elmt, _ItemPrototype);
_Steps = _Options.$Steps || 1;
_Lanes = _Options.$Lanes || 1;
_SpacingX = _Options.$SpacingX;
_SpacingY = _Options.$SpacingY;
_Orientation = _Options.$Orientation - 1;
}
};
var $JssorArrowNavigator$ = window.$JssorArrowNavigator$ = function (arrowLeft, arrowRight, options, containerWidth, containerHeight) {
var self = this;
$JssorObject$.call(self);
$JssorDebug$.$Execute(function () {
if (!arrowLeft)
$JssorDebug$.$Fail("Option '$ArrowNavigatorOptions' spepcified, but UI 'arrowleft' not defined. Define 'arrowleft' to enable direct navigation, or remove option '$ArrowNavigatorOptions' to disable direct navigation.");
if (!arrowRight)
$JssorDebug$.$Fail("Option '$ArrowNavigatorOptions' spepcified, but UI 'arrowright' not defined. Define 'arrowright' to enable direct navigation, or remove option '$ArrowNavigatorOptions' to disable direct navigation.");
if (isNaN($Jssor$.$CssWidth(arrowLeft))) {
$JssorDebug$.$Fail("Width of 'arrow left' not specified.");
}
if (isNaN($Jssor$.$CssWidth(arrowRight))) {
$JssorDebug$.$Fail("Width of 'arrow right' not specified.");
}
if (isNaN($Jssor$.$CssHeight(arrowLeft))) {
$JssorDebug$.$Fail("Height of 'arrow left' not specified.");
}
if (isNaN($Jssor$.$CssHeight(arrowRight))) {
$JssorDebug$.$Fail("Height of 'arrow right' not specified.");
}
});
var _Length;
var _CurrentIndex;
var _Options;
var _Steps;
var _ArrowWidth = $Jssor$.$CssWidth(arrowLeft);
var _ArrowHeight = $Jssor$.$CssHeight(arrowLeft);
function OnNavigationRequest(steps) {
self.$TriggerEvent($JssorNavigatorEvents$.$NAVIGATIONREQUEST, steps, true);
}
self.$GetCurrentIndex = function () {
return _CurrentIndex;
};
self.$SetCurrentIndex = function (index, virtualIndex, temp) {
if (temp) {
_CurrentIndex = virtualIndex;
}
else {
_CurrentIndex = index;
}
//self.$TriggerEvent($JssorNavigatorEvents$.$INDEXCHANGE, index);
};
self.$Show = function (hide) {
$Jssor$.$ShowElement(arrowLeft, hide);
$Jssor$.$ShowElement(arrowRight, hide);
};
var _Located;
self.$Relocate = function (force) {
if (!_Located || _Options.$Scale == false) {
if (_Options.$AutoCenter & 1) {
$Jssor$.$CssLeft(arrowLeft, (containerWidth - _ArrowWidth) / 2);
$Jssor$.$CssLeft(arrowRight, (containerWidth - _ArrowWidth) / 2);
}
if (_Options.$AutoCenter & 2) {
$Jssor$.$CssTop(arrowLeft, (containerHeight - _ArrowHeight) / 2);
$Jssor$.$CssTop(arrowRight, (containerHeight - _ArrowHeight) / 2);
}
_Located = true;
}
};
var _Initialized;
self.$Reset = function (length) {
_Length = length;
_CurrentIndex = 0;
if (!_Initialized) {
//self.$Relocate(true);
$Jssor$.$AddEvent(arrowLeft, "click", $Jssor$.$CreateCallback(null, OnNavigationRequest, -_Steps));
$Jssor$.$AddEvent(arrowRight, "click", $Jssor$.$CreateCallback(null, OnNavigationRequest, _Steps));
$Jssor$.$Buttonize(arrowLeft);
$Jssor$.$Buttonize(arrowRight);
_Initialized = true;
}
//self.$TriggerEvent($JssorNavigatorEvents$.$RESET);
};
//JssorArrowNavigator Constructor
{
self.$Options = _Options = $Jssor$.$Extend({
$Steps: 1
}, options);
_Steps = _Options.$Steps;
}
};
//$JssorThumbnailNavigator$
var $JssorThumbnailNavigator$ = window.$JssorThumbnailNavigator$ = function (elmt, options) {
var _Self = this;
var _Length;
var _Count;
var _CurrentIndex;
var _Options;
var _NavigationItems = [];
var _Width;
var _Height;
var _Lanes;
var _SpacingX;
var _SpacingY;
var _PrototypeWidth;
var _PrototypeHeight;
var _DisplayPieces;
var _Slider;
var _CurrentMouseOverIndex = -1;
var _SlidesContainer;
var _ThumbnailPrototype;
$JssorObject$.call(_Self);
elmt = $Jssor$.$GetElement(elmt);
function NavigationItem(item, index) {
var self = this;
var _Wrapper;
var _Button;
var _Thumbnail;
function Highlight(mouseStatus) {
_Button.$Activate(_CurrentIndex == index);
}
function OnNavigationRequest(event) {
if (!_Slider.$LastDragSucceded()) {
var tail = _Lanes - index % _Lanes;
var slideVirtualIndex = _Slider.$GetVirtualIndex((index + tail) / _Lanes - 1);
var itemVirtualIndex = slideVirtualIndex * _Lanes + _Lanes - tail;
_Self.$TriggerEvent($JssorNavigatorEvents$.$NAVIGATIONREQUEST, itemVirtualIndex);
}
//$JssorDebug$.$Log("navigation request");
}
$JssorDebug$.$Execute(function () {
self.$Wrapper = undefined;
});
self.$Index = index;
self.$Highlight = Highlight;
//NavigationItem Constructor
{
_Thumbnail = item.$Thumb || item.$Image || $Jssor$.$CreateDiv();
self.$Wrapper = _Wrapper = $Jssor$.$BuildElement(_ThumbnailPrototype, "ThumbnailTemplate", _Thumbnail, true);
_Button = $Jssor$.$Buttonize(_Wrapper);
if (_Options.$ActionMode & 1)
$Jssor$.$AddEvent(_Wrapper, "click", OnNavigationRequest);
if (_Options.$ActionMode & 2)
$Jssor$.$AddEvent(_Wrapper, "mouseover", $Jssor$.$MouseOverOutFilter(OnNavigationRequest, _Wrapper));
}
}
_Self.$GetCurrentIndex = function () {
return _CurrentIndex;
};
_Self.$SetCurrentIndex = function (index, virtualIndex, temp) {
var oldIndex = _CurrentIndex;
_CurrentIndex = index;
if (oldIndex != -1)
_NavigationItems[oldIndex].$Highlight();
_NavigationItems[index].$Highlight();
if (!temp) {
_Slider.$PlayTo(_Slider.$GetVirtualIndex(Math.floor(virtualIndex / _Lanes)));
}
};
_Self.$Show = function (hide) {
$Jssor$.$ShowElement(elmt, hide);
};
_Self.$Relocate = $Jssor$.$EmptyFunction;
var _Initialized;
_Self.$Reset = function (length, items, loadingContainer) {
if (!_Initialized) {
_Length = length;
_Count = Math.ceil(_Length / _Lanes);
_CurrentIndex = -1;
_DisplayPieces = Math.min(_DisplayPieces, items.length);
var horizontal = _Options.$Orientation & 1;
var slideWidth = _PrototypeWidth + (_PrototypeWidth + _SpacingX) * (_Lanes - 1) * (1 - horizontal);
var slideHeight = _PrototypeHeight + (_PrototypeHeight + _SpacingY) * (_Lanes - 1) * horizontal;
var slidesContainerWidth = slideWidth + (slideWidth + _SpacingX) * (_DisplayPieces - 1) * horizontal;
var slidesContainerHeight = slideHeight + (slideHeight + _SpacingY) * (_DisplayPieces - 1) * (1 - horizontal);
$Jssor$.$CssPosition(_SlidesContainer, "absolute");
$Jssor$.$CssOverflow(_SlidesContainer, "hidden");
if (_Options.$AutoCenter & 1) {
$Jssor$.$CssLeft(_SlidesContainer, (_Width - slidesContainerWidth) / 2);
}
if (_Options.$AutoCenter & 2) {
$Jssor$.$CssTop(_SlidesContainer, (_Height - slidesContainerHeight) / 2);
}
//$JssorDebug$.$Execute(function () {
// if (!_Options.$AutoCenter) {
// var slidesContainerTop = $Jssor$.$CssTop(_SlidesContainer);
// var slidesContainerLeft = $Jssor$.$CssLeft(_SlidesContainer);
// if (isNaN(slidesContainerTop)) {
// $JssorDebug$.$Fail("Position 'top' wrong specification of thumbnail navigator slides container (<div u=\"thumbnavigator\">...<div u=\"slides\">), \r\nwhen option $ThumbnailNavigatorOptions.$AutoCenter set to 0, it should be specified in pixel (like <div u=\"slides\" style=\"top: 0px;\">)");
// }
// if (isNaN(slidesContainerLeft)) {
// $JssorDebug$.$Fail("Position 'left' wrong specification of thumbnail navigator slides container (<div u=\"thumbnavigator\">...<div u=\"slides\">), \r\nwhen option $ThumbnailNavigatorOptions.$AutoCenter set to 0, it should be specified in pixel (like <div u=\"slides\" style=\"left: 0px;\">)");
// }
// }
//});
$Jssor$.$CssWidth(_SlidesContainer, slidesContainerWidth);
$Jssor$.$CssHeight(_SlidesContainer, slidesContainerHeight);
var slideItemElmts = [];
$Jssor$.$Each(items, function (item, index) {
var navigationItem = new NavigationItem(item, index);
var navigationItemWrapper = navigationItem.$Wrapper;
var columnIndex = Math.floor(index / _Lanes);
var laneIndex = index % _Lanes;
$Jssor$.$CssLeft(navigationItemWrapper, (_PrototypeWidth + _SpacingX) * laneIndex * (1 - horizontal));
$Jssor$.$CssTop(navigationItemWrapper, (_PrototypeHeight + _SpacingY) * laneIndex * horizontal);
if (!slideItemElmts[columnIndex]) {
slideItemElmts[columnIndex] = $Jssor$.$CreateDiv();
$Jssor$.$AppendChild(_SlidesContainer, slideItemElmts[columnIndex]);
}
$Jssor$.$AppendChild(slideItemElmts[columnIndex], navigationItemWrapper);
_NavigationItems.push(navigationItem);
});
var thumbnailSliderOptions = $Jssor$.$Extend({
$AutoPlay: false,
$NaviQuitDrag: false,
$SlideWidth: slideWidth,
$SlideHeight: slideHeight,
$SlideSpacing: _SpacingX * horizontal + _SpacingY * (1 - horizontal),
$MinDragOffsetToSlide: 12,
$SlideDuration: 200,
$PauseOnHover: 1,
$PlayOrientation: _Options.$Orientation,
$DragOrientation: _Options.$DisableDrag ? 0 : _Options.$Orientation
}, _Options);
_Slider = new $JssorSlider$(elmt, thumbnailSliderOptions);
_Initialized = true;
}
//_Self.$TriggerEvent($JssorNavigatorEvents$.$RESET);
};
//JssorThumbnailNavigator Constructor
{
_Self.$Options = _Options = $Jssor$.$Extend({
$SpacingX: 3,
$SpacingY: 3,
$DisplayPieces: 1,
$Orientation: 1,
$AutoCenter: 3,
$ActionMode: 1
}, options);
//Sodo statement for development time intellisence only
$JssorDebug$.$Execute(function () {
_Options = $Jssor$.$Extend({
$Lanes: undefined,
$Width: undefined,
$Height: undefined
}, _Options);
});
_Width = $Jssor$.$CssWidth(elmt);
_Height = $Jssor$.$CssHeight(elmt);
$JssorDebug$.$Execute(function () {
if (!_Width)
$JssorDebug$.$Fail("width of 'thumbnavigator' container not specified.");
if (!_Height)
$JssorDebug$.$Fail("height of 'thumbnavigator' container not specified.");
});
_SlidesContainer = $Jssor$.$FindChild(elmt, "slides", true);
_ThumbnailPrototype = $Jssor$.$FindChild(_SlidesContainer, "prototype");
$JssorDebug$.$Execute(function () {
if (!_ThumbnailPrototype)
$JssorDebug$.$Fail("prototype of 'thumbnavigator' not defined.");
});
_PrototypeWidth = $Jssor$.$CssWidth(_ThumbnailPrototype);
_PrototypeHeight = $Jssor$.$CssHeight(_ThumbnailPrototype);
$Jssor$.$RemoveChild(_SlidesContainer, _ThumbnailPrototype);
_Lanes = _Options.$Lanes || 1;
_SpacingX = _Options.$SpacingX;
_SpacingY = _Options.$SpacingY;
_DisplayPieces = _Options.$DisplayPieces;
}
};
//$JssorCaptionSliderBase$
function $JssorCaptionSliderBase$() {
$JssorAnimator$.call(this, 0, 0);
this.$Revert = $Jssor$.$EmptyFunction;
}
var $JssorCaptionSlider$ = window.$JssorCaptionSlider$ = function (container, captionSlideOptions, playIn) {
$JssorDebug$.$Execute(function () {
if (!captionSlideOptions.$CaptionTransitions) {
$JssorDebug$.$Error("'$CaptionSliderOptions' option error, '$CaptionSliderOptions.$CaptionTransitions' not specified.");
}
//else if (!$Jssor$.$IsArray(captionSlideOptions.$CaptionTransitions)) {
// $JssorDebug$.$Error("'$CaptionSliderOptions' option error, '$CaptionSliderOptions.$CaptionTransitions' is not an array.");
//}
});
var _Self = this;
var _ImmediateOutCaptionHanger;
var _PlayMode = playIn ? captionSlideOptions.$PlayInMode : captionSlideOptions.$PlayOutMode;
var _CaptionTransitions = captionSlideOptions.$CaptionTransitions;
var _CaptionTuningFetcher = { $Transition: "t", $Delay: "d", $Duration: "du", x: "x", y: "y", $Rotate: "r", $Zoom: "z", $Opacity: "f", $BeginTime: "b" };
var _CaptionTuningTransfer = {
$Default: function (value, tuningValue) {
if (!isNaN(tuningValue.$Value))
value = tuningValue.$Value;
else
value *= tuningValue.$Percent;
return value;
},
$Opacity: function (value, tuningValue) {
return this.$Default(value - 1, tuningValue);
}
};
_CaptionTuningTransfer.$Zoom = _CaptionTuningTransfer.$Opacity;
$JssorAnimator$.call(_Self, 0, 0);
function GetCaptionItems(element, level) {
var itemsToPlay = [];
var lastTransitionName;
var namedTransitions = [];
var namedTransitionOrders = [];
//$JssorDebug$.$Execute(function () {
// var debugInfoElement = $Jssor$.$GetElement("debugInfo");
// if (debugInfoElement && playIn) {
// var text = $Jssor.$InnerHtml(debugInfoElement) + "<br>";
// $Jssor$.$InnerHtml(debugInfoElement, text);
// }
//});
function FetchRawTransition(captionElmt, index) {
var rawTransition = {};
$Jssor$.$Each(_CaptionTuningFetcher, function (fetchAttribute, fetchProperty) {
var attributeValue = $Jssor$.$AttributeEx(captionElmt, fetchAttribute + (index || ""));
if (attributeValue) {
var propertyValue = {};
if (fetchAttribute == "t") {
//if (($Jssor$.$IsBrowserChrome() || $Jssor$.$IsBrowserSafari() || $Jssor$.$IsBrowserFireFox()) && attributeValue == "*") {
// attributeValue = Math.floor(Math.random() * captionSlideOptions.$CaptionTransitions.length);
// $Jssor$.$Attribute(captionElmt, fetchAttribute + (index || ""), attributeValue);
//}
propertyValue.$Value = attributeValue;
}
else if (attributeValue.indexOf("%") + 1)
propertyValue.$Percent = $Jssor$.$ParseFloat(attributeValue) / 100;
else
propertyValue.$Value = $Jssor$.$ParseFloat(attributeValue);
rawTransition[fetchProperty] = propertyValue;
}
});
return rawTransition;
}
function GetRandomTransition() {
return _CaptionTransitions[Math.floor(Math.random() * _CaptionTransitions.length)];
}
function EvaluateCaptionTransition(transitionName) {
var transition;
if (transitionName == "*") {
transition = GetRandomTransition();
}
else if (transitionName) {
//indexed transition allowed, just the same as named transition
var tempTransition = _CaptionTransitions[$Jssor$.$ParseInt(transitionName)] || _CaptionTransitions[transitionName];
if ($Jssor$.$IsArray(tempTransition)) {
if (transitionName != lastTransitionName) {
lastTransitionName = transitionName;
namedTransitionOrders[transitionName] = 0;
namedTransitions[transitionName] = tempTransition[Math.floor(Math.random() * tempTransition.length)];
}
else {
namedTransitionOrders[transitionName]++;
}
tempTransition = namedTransitions[transitionName];
if ($Jssor$.$IsArray(tempTransition)) {
tempTransition = tempTransition.length && tempTransition[namedTransitionOrders[transitionName] % tempTransition.length];
if ($Jssor$.$IsArray(tempTransition)) {
//got transition from array level 3, random for all captions
tempTransition = tempTransition[Math.floor(Math.random() * tempTransition.length)];
}
//else {
// //got transition from array level 2, in sequence for all adjacent captions with same name specified
// transition = tempTransition;
//}
}
//else {
// //got transition from array level 1, random but same for all adjacent captions with same name specified
// transition = tempTransition;
//}
}
//else {
// //got transition directly from a simple transition object
// transition = tempTransition;
//}
transition = tempTransition;
if ($Jssor$.$IsString(transition))
transition = EvaluateCaptionTransition(transition);
}
return transition;
}
var captionElmts = $Jssor$.$Children(element);
$Jssor$.$Each(captionElmts, function (captionElmt, i) {
var transitionsWithTuning = [];
transitionsWithTuning.$Elmt = captionElmt;
var isCaption = $Jssor$.$AttributeEx(captionElmt, "u") == "caption";
$Jssor$.$Each(playIn ? [0, 3] : [2], function (j, k) {
if (isCaption) {
var transition;
var rawTransition;
if (j != 2 || !$Jssor$.$AttributeEx(captionElmt, "t3")) {
rawTransition = FetchRawTransition(captionElmt, j);
if (j == 2 && !rawTransition.$Transition) {
rawTransition.$Delay = rawTransition.$Delay || { $Value: 0 };
rawTransition = $Jssor$.$Extend(FetchRawTransition(captionElmt, 0), rawTransition);
}
}
if (rawTransition && rawTransition.$Transition) {
transition = EvaluateCaptionTransition(rawTransition.$Transition.$Value);
if (transition) {
//var transitionWithTuning = $Jssor$.$Extend({ $Delay: 0, $ScaleHorizontal: 1, $ScaleVertical: 1 }, transition);
var transitionWithTuning = $Jssor$.$Extend({ $Delay: 0 }, transition);
$Jssor$.$Each(rawTransition, function (rawPropertyValue, propertyName) {
var tuningPropertyValue = (_CaptionTuningTransfer[propertyName] || _CaptionTuningTransfer.$Default).apply(_CaptionTuningTransfer, [transitionWithTuning[propertyName], rawTransition[propertyName]]);
if (!isNaN(tuningPropertyValue))
transitionWithTuning[propertyName] = tuningPropertyValue;
});
if (!k) {
if (rawTransition.$BeginTime)
transitionWithTuning.$BeginTime = rawTransition.$BeginTime.$Value || 0;
else if ((_PlayMode) & 2)
transitionWithTuning.$BeginTime = 0;
}
}
}
transitionsWithTuning.push(transitionWithTuning);
}
if ((level % 2) && !k) {
//transitionsWithTuning.$Children = GetCaptionItems(captionElmt, lastTransitionName, [].concat(namedTransitions), [].concat(namedTransitionOrders), level + 1);
transitionsWithTuning.$Children = GetCaptionItems(captionElmt, level + 1);
}
});
itemsToPlay.push(transitionsWithTuning);
});
return itemsToPlay;
}
function CreateAnimator(item, transition, immediateOut) {
var animatorOptions = {
$Easing: transition.$Easing,
$Round: transition.$Round,
$During: transition.$During,
$Reverse: playIn && !immediateOut,
$Optimize: true
};
$JssorDebug$.$Execute(function () {
animatorOptions.$CaptionAnimator = true;
});
var captionItem = item;
var captionParent = $Jssor$.$ParentNode(item);
var captionItemWidth = $Jssor$.$CssWidth(captionItem);
var captionItemHeight = $Jssor$.$CssHeight(captionItem);
var captionParentWidth = $Jssor$.$CssWidth(captionParent);
var captionParentHeight = $Jssor$.$CssHeight(captionParent);
var toStyles = {};
var fromStyles = {};
var scaleClip = transition.$ScaleClip || 1;
//Opacity
if (transition.$Opacity) {
toStyles.$Opacity = 2 - transition.$Opacity;
}
animatorOptions.$OriginalWidth = captionItemWidth;
animatorOptions.$OriginalHeight = captionItemHeight;
//Transform
if (transition.$Zoom || transition.$Rotate) {
toStyles.$Zoom = transition.$Zoom ? transition.$Zoom - 1 : 1;
if ($Jssor$.$IsBrowserIe9Earlier() || $Jssor$.$IsBrowserOpera())
toStyles.$Zoom = Math.min(toStyles.$Zoom, 2);
fromStyles.$Zoom = 1;
var rotate = transition.$Rotate || 0;
toStyles.$Rotate = rotate * 360;
fromStyles.$Rotate = 0;
}
//Clip
else if (transition.$Clip) {
var fromStyleClip = { $Top: 0, $Right: captionItemWidth, $Bottom: captionItemHeight, $Left: 0 };
var toStyleClip = $Jssor$.$Extend({}, fromStyleClip);
var blockOffset = toStyleClip.$Offset = {};
var topBenchmark = transition.$Clip & 4;
var bottomBenchmark = transition.$Clip & 8;
var leftBenchmark = transition.$Clip & 1;
var rightBenchmark = transition.$Clip & 2;
if (topBenchmark && bottomBenchmark) {
blockOffset.$Top = captionItemHeight / 2 * scaleClip;
blockOffset.$Bottom = -blockOffset.$Top;
}
else if (topBenchmark)
blockOffset.$Bottom = -captionItemHeight * scaleClip;
else if (bottomBenchmark)
blockOffset.$Top = captionItemHeight * scaleClip;
if (leftBenchmark && rightBenchmark) {
blockOffset.$Left = captionItemWidth / 2 * scaleClip;
blockOffset.$Right = -blockOffset.$Left;
}
else if (leftBenchmark)
blockOffset.$Right = -captionItemWidth * scaleClip;
else if (rightBenchmark)
blockOffset.$Left = captionItemWidth * scaleClip;
animatorOptions.$Move = transition.$Move;
toStyles.$Clip = toStyleClip;
fromStyles.$Clip = fromStyleClip;
}
//Fly
{
var toLeft = 0;
var toTop = 0;
if (transition.x)
toLeft -= captionParentWidth * transition.x;
if (transition.y)
toTop -= captionParentHeight * transition.y;
if (toLeft || toTop || animatorOptions.$Move) {
toStyles.$Left = toLeft + $Jssor$.$CssLeft(captionItem);
toStyles.$Top = toTop + $Jssor$.$CssTop(captionItem);
}
}
//duration
var duration = transition.$Duration;
fromStyles = $Jssor$.$Extend(fromStyles, $Jssor$.$GetStyles(captionItem, toStyles));
animatorOptions.$Setter = $Jssor$.$StyleSetterEx();
return new $JssorAnimator$(transition.$Delay, duration, animatorOptions, captionItem, fromStyles, toStyles);
}
function CreateAnimators(streamLineLength, captionItems) {
$Jssor$.$Each(captionItems, function (captionItem, i) {
$JssorDebug$.$Execute(function () {
if (captionItem.length) {
var top = $Jssor$.$CssTop(captionItem.$Elmt);
var left = $Jssor$.$CssLeft(captionItem.$Elmt);
var width = $Jssor$.$CssWidth(captionItem.$Elmt);
var height = $Jssor$.$CssHeight(captionItem.$Elmt);
var error = null;
if (isNaN(top))
error = "Style 'top' for caption not specified. Please always specify caption like 'position: absolute; top: ...px; left: ...px; width: ...px; height: ...px;'.";
else if (isNaN(left))
error = "Style 'left' not specified. Please always specify caption like 'position: absolute; top: ...px; left: ...px; width: ...px; height: ...px;'.";
else if (isNaN(width))
error = "Style 'width' not specified. Please always specify caption like 'position: absolute; top: ...px; left: ...px; width: ...px; height: ...px;'.";
else if (isNaN(height))
error = "Style 'height' not specified. Please always specify caption like 'position: absolute; top: ...px; left: ...px; width: ...px; height: ...px;'.";
if (error)
$JssorDebug$.$Error("Caption " + (i + 1) + " definition error, \r\n" + error + "\r\n" + captionItem.$Elmt.outerHTML);
}
});
var animator;
var captionElmt = captionItem.$Elmt;
var transition = captionItem[0];
var transition3 = captionItem[1];
if (transition) {
animator = CreateAnimator(captionElmt, transition);
streamLineLength = animator.$Locate(transition.$BeginTime == undefined ? streamLineLength : transition.$BeginTime, 1);
}
streamLineLength = CreateAnimators(streamLineLength, captionItem.$Children);
if (transition3) {
var animator3 = CreateAnimator(captionElmt, transition3, 1);
animator3.$Locate(streamLineLength, 1);
_Self.$Combine(animator3);
_ImmediateOutCaptionHanger.$Combine(animator3);
}
if (animator)
_Self.$Combine(animator);
});
return streamLineLength;
}
_Self.$Revert = function () {
_Self.$GoToPosition(_Self.$GetPosition_OuterEnd() * (playIn || 0));
_ImmediateOutCaptionHanger.$GoToBegin();
};
//Constructor
{
_ImmediateOutCaptionHanger = new $JssorAnimator$(0, 0);
//var streamLineLength = 0;
//var captionItems = GetCaptionItems(container, null, [], [], 1);
CreateAnimators(0, _PlayMode ? GetCaptionItems(container, 1) : []);
}
};
//Event Table
//$EVT_CLICK = 21; function(slideIndex[, event])
//$EVT_DRAG_START = 22; function(position[, virtualPosition, event])
//$EVT_DRAG_END = 23; function(position, startPosition[, virtualPosition, virtualStartPosition, event])
//$EVT_SWIPE_START = 24; function(position[, virtualPosition])
//$EVT_SWIPE_END = 25; function(position[, virtualPosition])
//$EVT_LOAD_START = 26; function(slideIndex)
//$EVT_LOAD_END = 27; function(slideIndex)
//$EVT_POSITION_CHANGE = 202; function(position, fromPosition[, virtualPosition, virtualFromPosition])
//$EVT_PARK = 203; function(slideIndex, fromIndex)
//$EVT_PROGRESS_CHANGE = 208; function(slideIndex, progress[, progressBegin, idleBegin, idleEnd, progressEnd])
//$EVT_STATE_CHANGE = 209; function(slideIndex, progress[, progressBegin, idleBegin, idleEnd, progressEnd])
//$EVT_ROLLBACK_START = 210; function(slideIndex, progress[, progressBegin, idleBegin, idleEnd, progressEnd])
//$EVT_ROLLBACK_END = 211; function(slideIndex, progress[, progressBegin, idleBegin, idleEnd, progressEnd])
//$EVT_SLIDESHOW_START = 206; function(slideIndex[, progressBegin, slideshowBegin, slideshowEnd, progressEnd])
//$EVT_SLIDESHOW_END = 207; function(slideIndex[, progressBegin, slideshowBegin, slideshowEnd, progressEnd])
//http://www.jssor.com/development/reference-api.html
| 123gosaigon | trunk/ 123gosaigon/templates/js/jssor.slider.js | JavaScript | asf20 | 165,080 |
Calendar.LANG("ro", "Română", {
fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc.
goToday: "Astăzi",
today: "Astăzi", // appears in bottom bar
wk: "săp.",
weekend: "0,6", // 0 = Sunday, 1 = Monday, etc.
AM: "am",
PM: "pm",
mn : [ "Ianuarie",
"Februarie",
"Martie",
"Aprilie",
"Mai",
"Iunie",
"Iulie",
"August",
"Septembrie",
"Octombrie",
"Noiembrie",
"Decembrie" ],
smn : [ "Ian",
"Feb",
"Mar",
"Apr",
"Mai",
"Iun",
"Iul",
"Aug",
"Sep",
"Oct",
"Noi",
"Dec" ],
dn : [ "Duminică",
"Luni",
"Marţi",
"Miercuri",
"Joi",
"Vineri",
"Sâmbătă",
"Duminică" ],
sdn : [ "Du",
"Lu",
"Ma",
"Mi",
"Jo",
"Vi",
"Sâ",
"Du" ]
});
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/js/lang/ro.js | JavaScript | asf20 | 1,338 |
Calendar.LANG("cn", "中文", {
fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc.
goToday: "今天",
today: "今天", // appears in bottom bar
wk: "周",
weekend: "0,6", // 0 = Sunday, 1 = Monday, etc.
AM: "AM",
PM: "PM",
mn : [ "一月",
"二月",
"三月",
"四月",
"五月",
"六月",
"七月",
"八月",
"九月",
"十月",
"十一月",
"十二月"],
smn : [ "一月",
"二月",
"三月",
"四月",
"五月",
"六月",
"七月",
"八月",
"九月",
"十月",
"十一月",
"十二月"],
dn : [ "日",
"一",
"二",
"三",
"四",
"五",
"六",
"日" ],
sdn : [ "日",
"一",
"二",
"三",
"四",
"五",
"六",
"日" ]
});
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/js/lang/cn.js | JavaScript | asf20 | 1,316 |
Calendar.LANG("ru", "русский", {
fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc.
goToday: "Сегодня",
today: "Сегодня", // appears in bottom bar
wk: "нед",
weekend: "0,6", // 0 = Sunday, 1 = Monday, etc.
AM: "am",
PM: "pm",
mn : [ "январь",
"февраль",
"март",
"апрель",
"май",
"июнь",
"июль",
"август",
"сентябрь",
"октябрь",
"ноябрь",
"декабрь" ],
smn : [ "янв",
"фев",
"мар",
"апр",
"май",
"июн",
"июл",
"авг",
"сен",
"окт",
"ноя",
"дек" ],
dn : [ "воскресенье",
"понедельник",
"вторник",
"среда",
"четверг",
"пятница",
"суббота",
"воскресенье" ],
sdn : [ "вск",
"пон",
"втр",
"срд",
"чет",
"пят",
"суб",
"вск" ]
});
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/js/lang/ru.js | JavaScript | asf20 | 1,553 |
Calendar.LANG("fr", "Français", {
fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc.
goToday : "Aujourd'hui",
today: "Aujourd'hui", // appears in bottom bar
wk: "sm.",
weekend: "0,6", // 0 = Sunday, 1 = Monday, etc.
AM: "am",
PM: "pm",
mn : [ "Janvier",
"Février",
"Mars",
"Avril",
"Mai",
"Juin",
"Juillet",
"Août",
"Septembre",
"Octobre",
"Novembre",
"Décembre" ],
smn : [ "Jan",
"Fév",
"Mar",
"Avr",
"Mai",
"Juin",
"Juil",
"Aou",
"Sep",
"Oct",
"Nov",
"Déc" ],
dn : [ "Dimanche",
"Lundi",
"Mardi",
"Mercredi",
"Jeudi",
"Vendredi",
"Samedi",
"Dimanche" ],
sdn : [ "Di",
"Lu",
"Ma",
"Me",
"Je",
"Ve",
"Sa",
"Di" ]
});
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/js/lang/fr.js | JavaScript | asf20 | 1,337 |
Calendar.LANG("pt", "Portuguese", {
fdow: 1, // primeiro dia da semana para esse local; 0 = Domingo, 1 = Segunda, etc.
goToday: "Dia de Hoje",
today: "Hoje",
wk: "sm",
weekend: "0,6", // 0 = Domingo, 1 = Segunda, etc.
AM: "am",
PM: "pm",
mn : [ "Janeiro",
"Fevereiro",
"Março",
"Abril",
"Maio",
"Junho",
"Julho",
"Agosto",
"Setembro",
"Outubro",
"Novembro",
"Dezembro" ],
smn : [ "Jan",
"Fev",
"Mar",
"Abr",
"Mai",
"Jun",
"Jul",
"Ago",
"Set",
"Out",
"Nov",
"Dez" ],
dn : [ "Domingo",
"Segunda",
"Terça",
"Quarta",
"Quinta",
"Sexta",
"Sábado",
"Domingo" ],
sdn : [ "Dom",
"Seg",
"Ter",
"Qua",
"Qui",
"Sex",
"Sab",
"Dom" ]
});
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/js/lang/pt.js | JavaScript | asf20 | 1,309 |
Calendar.LANG("cz", "Czech", {
fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc.
goToday: "Ukaž dnešek",
today: "Dnes", // appears in bottom bar
wk: "týd",
weekend: "0,6", // 0 = Sunday, 1 = Monday, etc.
AM: "am",
PM: "pm",
mn : [ "Leden",
"Únor",
"Březen",
"Duben",
"Květen",
"Červen",
"Červenec",
"Srpen",
"Září",
"Říjen",
"Listopad",
"Prosinec" ],
smn : [ "Led",
"Úno",
"Bře",
"Dub",
"Kvě",
"Črn",
"Črc",
"Srp",
"Zář",
"Říj",
"Lis",
"Pro" ],
dn : [ "Neděle",
"Pondělí",
"Úterý",
"Středa",
"Čtvrtek",
"Pátek",
"Sobota",
"Neděle" ],
sdn : [ "Ne",
"Po",
"Út",
"St",
"Čt",
"Pá",
"So",
"Ne" ]
});
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/js/lang/cz.js | JavaScript | asf20 | 1,344 |
Calendar.LANG("de", "Deutsch", {
fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc.
goToday : "Heute ausw\u00e4hlen",
today: "Heute", // appears in bottom bar
wk: "wk",
weekend: "0,6", // 0 = Sunday, 1 = Monday, etc.
AM: "am",
PM: "pm",
mn : [ "Januar",
"Februar",
"M\u00e4rz",
"April",
"Mai",
"Juni",
"Juli",
"August",
"September",
"Oktober",
"November",
"Dezember" ],
smn : [ "Jan",
"Feb",
"M\u00e4r",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Okt",
"Nov",
"Dez" ],
dn : [ "Sonntag",
"Montag",
"Dienstag",
"Mittwoch",
"Donnerstag",
"Freitag",
"Samstag",
"Sonntag" ],
sdn : [ "So",
"Mo",
"Di",
"Mi",
"Do",
"Fr",
"Sa",
"So" ]
});
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/js/lang/de.js | JavaScript | asf20 | 1,345 |
Calendar.LANG("jp", "Japanese", {
fdow: 1, // 地元の週の初めの日; 0 = 日曜日, 1 = 月曜日, 等.
goToday: "本日へ",
today: "本日", // ボットンバーに表示
wk: "週",
weekend: "0,6", // 0 = 日曜日, 1 = 月曜日, 等.
AM: "am",
PM: "pm",
mn : [ "1月",
"2月",
"3月",
"4月",
"5月",
"6月",
"7月",
"8月",
"9月",
"10月",
"11月",
"12月" ],
smn : [ "1月",
"2月",
"3月",
"4月",
"5月",
"6月",
"7月",
"8月",
"9月",
"10月",
"11月",
"12月" ],
dn : [ "日曜日",
"月曜日",
"火曜日",
"水曜日",
"木曜日",
"金曜日",
"土曜日",
"日曜日" ],
sdn : [ "日",
"月",
"火",
"水",
"木",
"金",
"土",
"日" ]
});
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/js/lang/jp.js | JavaScript | asf20 | 1,353 |
Calendar.LANG("it", "Italiano", {
fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc.
goToday: "Vai a oggi",
today: "Oggi", // appears in bottom bar
wk: "set",
weekend: "0,6", // 0 = Sunday, 1 = Monday, etc.
AM: "am",
PM: "pm",
mn : [ "Gennaio",
"Febbraio",
"Marzo",
"Aprile",
"Maggio",
"Giugno",
"Luglio",
"Agosto",
"Settembre",
"Ottobre",
"Novembre",
"Dicembre" ],
smn : [ "Gen",
"Feb",
"Mar",
"Apr",
"Mag",
"Giu",
"Lug",
"Ago",
"Set",
"Ott",
"Nov",
"Dic" ],
dn : [ "Domenica",
"Lunedì",
"Martedì",
"Mercoledì",
"Giovedi",
"Venerdì",
"Sabato",
"Domenica" ],
sdn : [ "Do",
"Lu",
"Ma",
"Me",
"Gi",
"Ve",
"Sa",
"Do" ]
});
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/js/lang/it.js | JavaScript | asf20 | 1,338 |
Calendar.LANG("es", "Español", {
fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc.
goToday: "Ir a Hoy",
today: "Hoy", // appears in bottom bar
wk: "sem",
weekend: "0,6", // 0 = Sunday, 1 = Monday, etc.
AM: "am",
PM: "pm",
mn : [ "Enero",
"Febrero",
"Marzo",
"Abril",
"Mayo",
"Junio",
"Julio",
"Agosto",
"Septiembre",
"Octubre",
"Noviembre",
"Diciembre" ],
smn : [ "Ene",
"Feb",
"Mar",
"Abr",
"May",
"Jun",
"Jul",
"Ago",
"Sep",
"Oct",
"Nov",
"Dic" ],
dn : [ "Domingo",
"Lunes",
"Martes",
"Miercoles",
"Jueves",
"Viernes",
"Sabado",
"Domingo" ],
sdn : [ "Do",
"Lu",
"Ma",
"Mi",
"Ju",
"Vi",
"Sa",
"Do" ]
});
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/js/lang/es.js | JavaScript | asf20 | 1,321 |
// autor: Piotr kwiatkowski
// www: http://pasjonata.net
Calendar.LANG("pl", "Polish", {
fdow: 1, // pierwszy dzień tygodnia; 0 = Niedziela, 1 = Poniedziałek, itd.
goToday: "Idzie Dzisiaj",
today: "Dziś",
wk: "wk",
weekend: "0,6", // 0 = Niedziela, 1 = Poniedziałek, itd.
AM: "am",
PM: "pm",
mn : [ "Styczeń",
"Luty",
"Marzec",
"Kwiecień",
"Maj",
"Czerwiec",
"Lipiec",
"Sierpień",
"Wrzesień",
"Październik",
"Listopad",
"Grudzień" ],
smn : [ "Sty",
"Lut",
"Mar",
"Kwi",
"Maj",
"Cze",
"Lip",
"Sie",
"Wrz",
"Paź",
"Lis",
"Gru" ],
dn : [ "Niedziela",
"Poniedziałek",
"Wtorek",
"Środa",
"Czwartek",
"Piątek",
"Sobota",
"Niedziela" ],
sdn : [ "Ni",
"Po",
"Wt",
"Śr",
"Cz",
"Pi",
"So",
"Ni" ]
});
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/js/lang/pl.js | JavaScript | asf20 | 1,397 |
Calendar.LANG("en", "English", {
fdow: 1, // first day of week for this locale; 0 = Sunday, 1 = Monday, etc.
goToday: "Go Today",
today: "Today", // appears in bottom bar
wk: "wk",
weekend: "0,6", // 0 = Sunday, 1 = Monday, etc.
AM: "am",
PM: "pm",
mn : [ "January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December" ],
smn : [ "Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec" ],
dn : [ "Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday" ],
sdn : [ "Su",
"Mo",
"Tu",
"We",
"Th",
"Fr",
"Sa",
"Su" ]
});
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/js/lang/en.js | JavaScript | asf20 | 1,321 |
.DynarchCalendar, .DynarchCalendar-focused {
background-color: #d4d0c8;
}
.DynarchCalendar-topBar,
.DynarchCalendar-bottomBar,
.DynarchCalendar-focused .DynarchCalendar-topBar,
.DynarchCalendar-focused .DynarchCalendar-bottomBar {
background-color: #848078;
color: #fff;
}
.DynarchCalendar-title div { color: #fff; }
.DynarchCalendar-dayNames { background-color: #f4f0e8; }
.DynarchCalendar-hover-navBtn div,
.DynarchCalendar-hover-title div,
.DynarchCalendar-hover-bottomBar-today {
border-color: #f4f0e8 #444038 #444038 #f4f0e8;
background-color: #d4d0c8;
color: #000;
}
.DynarchCalendar-menu table td div.DynarchCalendar-hover-navBtn {
border-color: #f4f0e8 #444038 #444038 #f4f0e8;
background-color: #e4e0d8;
color: #000;
}
.DynarchCalendar-pressed-navBtn div,
.DynarchCalendar-pressed-title div,
.DynarchCalendar-pressed-bottomBar-today,
.DynarchCalendar-menu table td div.DynarchCalendar-pressed-navBtn {
border-color: #444038 #f4f0e8 #f4f0e8 #444038;
background-color: #646058;
color: #fff;
}
.DynarchCalendar-hover-date {
border-color: #f4f0e8 #444038 #444038 #f4f0e8;
background-color: #e4e0d8;
}
.DynarchCalendar-day {
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
}
.DynarchCalendar-day-disabled {
background: #c4c0b8;
}
.DynarchCalendar-hover-week { background-color: #e4e0d8 !important; }
.DynarchCalendar-day-selected {
background-color: #e4e0d8;
border: 1px solid;
border-color: #444038 #f4f0e8 #f4f0e8 #444038;
margin: 0;
}
.DynarchCalendar-day-today.DynarchCalendar-day-selected { background-color: #e4e0d8; }
.DynarchCalendar-menu {
background-color: #d4d0c8;
}
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/css/win2k/win2k.css | CSS | asf20 | 1,658 |
/* This is for Gecko-based browsers */
.DynarchCalendar {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.DynarchCalendar-title, .DynarchCalendar-title div {
-moz-border-radius: 0 0 4px 4px;
-webkit-border-radius: 0 0 4px 4px;
border-radius: 0 0 4px 4px;
}
.DynarchCalendar-topBar {
-moz-border-radius: 4px 4px 0 0;
-webkit-border-radius: 4px;
border-radius: 4px 4px 0 0;
}
.DynarchCalendar-bottomBar {
-moz-border-radius: 0 0 4px 4px;
-webkit-border-radius: 0 0 4px 4px;
border-radius: 0 0 4px 4px;
}
.DynarchCalendar-bottomBar-today {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
}
.DynarchCalendar-navBtn, .DynarchCalendar-navBtn div {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
}
.DynarchCalendar-menu {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.DynarchCalendar-menu table td div {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
}
.DynarchCalendar-weekNumber {
-moz-border-radius: 4px 0 0 4px;
-webkit-border-radius: 4px 0 0 4px;
border-radius: 4px 0 0 4px;
}
.DynarchCalendar-day {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
}
.DynarchCalendar-day-disabled {
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
}
.DynarchCalendar-tooltipCont {
-moz-border-radius: 0 0 5px 5px;
-webkit-border-radius: 5px;
}
.DynarchCalendar-time-hour, .DynarchCalendar-time-minute {
-moz-border-radius: 3px 0 0 3px;
-webkit-border-radius: 3px;
}
.DynarchCalendar-time-am {
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/css/border-radius.css | CSS | asf20 | 1,699 |
.DynarchCalendar-focused {
background-color: #fff;
}
.DynarchCalendar-topBar {
background: url("brushed-steel.jpg") no-repeat 50% -50px;
}
.DynarchCalendar-bottomBar {
background: url("brushed-steel.jpg") no-repeat 50% -80px;
}
.DynarchCalendar-menu {
background-color: #fed;
}
.DynarchCalendar-hover-title,
.DynarchCalendar-hover-navBtn,
.DynarchCalendar-hover-bottomBar-today,
.DynarchCalendar-menu table td div.DynarchCalendar-hover-navBtn {
background: transparent url("coolbg.png") repeat-x 0 50%;
}
.DynarchCalendar-hover-title div,
.DynarchCalendar-hover-navBtn div { background-color: transparent; }
.DynarchCalendar-pressed-title,
.DynarchCalendar-pressed-navBtn,
.DynarchCalendar-pressed-bottomBar-today,
.DynarchCalendar-menu table td div.DynarchCalendar-pressed-navBtn {
background: #db2 url("coolbg.png") repeat-x 0 50%;
color: #000 !important;
}
.DynarchCalendar-pressed-title div,
.DynarchCalendar-pressed-navBtn div { background-color: transparent; color: #000; }
.DynarchCalendar-hover-week,
.DynarchCalendar-focused .DynarchCalendar-hover-week {
background: transparent url("coolbg.png") repeat-x 0 50%;
}
.DynarchCalendar {
background: url("gold.jpg") no-repeat 50% 30px;
}
.DynarchCalendar-weekNumber {
border-right: 1px solid #f92;
}
.DynarchCalendar-hover-date {
background-image: url("coolbg.png");
background-position: 0 50%;
background-repeat: repeat-x;
border-color: #f92;
}
.DynarchCalendar-day-selected {
background-color: #f92;
color: #000 !important;
background-image: url("coolbg.png");
background-position: 0 50%;
background-repeat: repeat-x;
}
.DynarchCalendar-day-today.DynarchCalendar-day-selected {
background-color: #f92;
color: #00f !important;
}
.DynarchCalendar-tooltipCont,
.DynarchCalendar-focused .DynarchCalendar-tooltipCont {
background: #db2 url("brushed-steel.jpg") no-repeat 50% -100px;
}
.DynarchCalendar-focused .DynarchCalendar-body {
background: url("../shadow-b.png") repeat-x 0 0;
}
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/css/gold/gold.css | CSS | asf20 | 1,998 |
.DynarchCalendar-focused {
background-color: #fff;
}
.DynarchCalendar-topBar {
background: url("brushed-steel.jpg") no-repeat 50% 0;
}
.DynarchCalendar-bottomBar {
background: url("brushed-steel.jpg") no-repeat 50% 50%;
}
.DynarchCalendar-hover-title,
.DynarchCalendar-hover-navBtn,
.DynarchCalendar-hover-bottomBar-today,
.DynarchCalendar-menu table td div.DynarchCalendar-hover-navBtn {
background: #dde url("coolbg.png") repeat-x 0 50%;
}
.DynarchCalendar-hover-title div,
.DynarchCalendar-hover-navBtn div { background-color: transparent; }
.DynarchCalendar-pressed-title,
.DynarchCalendar-pressed-navBtn,
.DynarchCalendar-pressed-bottomBar-today,
.DynarchCalendar-menu table td div.DynarchCalendar-pressed-navBtn {
background: #445 url("coolbg.png") repeat-x 0 50%;
}
.DynarchCalendar-pressed-title div,
.DynarchCalendar-pressed-navBtn div { background-color: transparent; }
.DynarchCalendar-hover-week,
.DynarchCalendar-focused .DynarchCalendar-hover-week {
background: #ddd url("coolbg.png") repeat-x 0 50%;
}
.DynarchCalendar {
background: url("steel.jpg") no-repeat 50% 30px;
}
.DynarchCalendar-day-selected {
background-color: #1864fc;
color: #fff !important;
background-image: url("coolbg.png");
background-position: 0 50%;
background-repeat: repeat-x;
}
.DynarchCalendar-day-today.DynarchCalendar-day-selected {
background-color: #1864fc;
color: #fff !important;
}
.DynarchCalendar-focused .DynarchCalendar-body {
background: url("../shadow-b.png") repeat-x 0 0;
}
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/css/steel/steel.css | CSS | asf20 | 1,522 |
.DynarchCalendar, .DynarchCalendar-focused {
background-color: #242;
}
.DynarchCalendar-focused { border-color: #0f0; }
.DynarchCalendar-topBar,
.DynarchCalendar-bottomBar {
background-color: #242;
color: #0f0;
border-color: #080;
}
.DynarchCalendar-focused .DynarchCalendar-topBar,
.DynarchCalendar-focused .DynarchCalendar-bottomBar {
background-color: #020;
color: #0f0;
border-color: #0f0;
}
.DynarchCalendar-title div {
color: #0f0;
text-shadow: 1px 1px 1px #fa0;
}
.DynarchCalendar-pressed-title div {
text-shadow: 1px 1px 1px #000;
}
.DynarchCalendar-dayNames div { color: #0f0; }
.DynarchCalendar-dayNames .DynarchCalendar-weekend { color: #fa0; }
.DynarchCalendar-hover-navBtn div,
.DynarchCalendar-hover-title div,
.DynarchCalendar-hover-bottomBar-today {
border-color: #0f0;
background-color: #000;
color: #fa0;
}
.DynarchCalendar-menu table td div.DynarchCalendar-hover-navBtn {
border-color: #0f0;
background-color: #000;
color: #fa0;
}
.DynarchCalendar-menu-year {
background-color: #000;
color: #0f0;
border: 1px solid #000;
}
.DynarchCalendar-pressed-navBtn div,
.DynarchCalendar-pressed-title div,
.DynarchCalendar-pressed-bottomBar-today,
.DynarchCalendar-menu table td div.DynarchCalendar-pressed-navBtn {
border-color: #000 #0c0 #0c0 #000;
background-color: #464;
color: #fff;
}
.DynarchCalendar-hover-date {
border-color: #070;
color: #0f0 !important;
background-color: #000;
}
.DynarchCalendar-day-othermonth.DynarchCalendar-hover-date { border-color: #040; color: #2a2; }
.DynarchCalendar-day {
-moz-border-radius: 0;
-webkit-border-radius: 0;
border-radius: 0;
}
.DynarchCalendar-day-disabled {}
.DynarchCalendar-hover-week { background-color: #131 !important; }
.DynarchCalendar-menu {
background-color: #040;
color: #8f8;
}
.DynarchCalendar-menu-sep {
border-color: #000;
background-color: #080;
}
.DynarchCalendar-day-selected {
background-color: #000;
border: 1px solid #a90;
margin: 0;
color: #8f4 !important;
}
.DynarchCalendar-weekNumber { border-color: #272; color: #0c0; }
.DynarchCalendar-day { color: #0c0; }
.DynarchCalendar-weekend { color: #fa0; }
.DynarchCalendar-day-othermonth { color: #070; }
.DynarchCalendar-day-othermonth.DynarchCalendar-weekend { color: #850; }
.DynarchCalendar-day-today { color: #ff0; }
.DynarchCalendar-day-today.DynarchCalendar-day-selected { background-color: #000; }
.DynarchCalendar-prevMonth div {
background-image: url("nav-left.gif");
}
.DynarchCalendar-nextMonth div {
background-image: url("nav-right.gif");
}
.DynarchCalendar-prevYear div {
background-image: url("nav-left-x2.gif");
}
.DynarchCalendar-nextYear div {
background-image: url("nav-right-x2.gif");
}
.DynarchCalendar-tooltipCont { background: #242; color: #9bf; }
.DynarchCalendar-focused .DynarchCalendar-tooltipCont { background: #020; }
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/css/matrix/matrix.css | CSS | asf20 | 2,876 |
/* CSS */
.DynarchCalendar {
border: 1px solid #aaa;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
background: #e8e8e8;
font: 11px "lucida grande",tahoma,verdana,sans-serif;
line-height: 14px;
position: relative;
cursor: default;
}
.DynarchCalendar table {
border-collapse: collapse;
font: 11px "lucida grande",tahoma,verdana,sans-serif;
line-height: 14px;
}
.DynarchCalendar-topBar {
border-bottom: 1px solid #aaa;
background: #ddd;
padding: 5px 0 0 0;
}
table.DynarchCalendar-titleCont {
font-size: 130%; font-weight: bold;
color: #444;
text-align: center;
z-index: 9;
position: relative;
margin-top: -6px;
}
.DynarchCalendar-title div {
padding: 5px 17px;
text-shadow: 1px 1px 1px #777;
}
.DynarchCalendar-hover-title div {
background-color: #fff;
border: 1px solid #000;
padding: 4px 16px;
background-image: url("img/drop-down.gif");
background-repeat: no-repeat;
background-position: 100% 50%;
}
.DynarchCalendar-pressed-title div {
border: 1px solid #000;
padding: 4px 16px;
background-color: #777;
color: #fff;
background-image: url("img/drop-up.gif");
background-repeat: no-repeat;
background-position: 100% 50%;
}
.DynarchCalendar-bottomBar {
border-top: 1px solid #aaa;
background: #ddd;
padding: 2px;
position: relative;
text-align: center;
}
.DynarchCalendar-bottomBar-today {
padding: 2px 15px;
}
.DynarchCalendar-hover-bottomBar-today {
border: 1px solid #000;
background-color: #fff;
padding: 1px 14px;
}
.DynarchCalendar-pressed-bottomBar-today {
border: 1px solid #000;
background-color: #777;
color: #fff;
padding: 1px 14px;
}
.DynarchCalendar-body {
position: relative;
overflow: hidden;
padding-top: 5px;
padding-bottom: 5px;
}
.DynarchCalendar-first-col { padding-left: 5px; }
.DynarchCalendar-last-col { padding-right: 5px; }
.DynarchCalendar-animBody-backYear {
position: absolute;
top: -100%;
left: 0;
}
.DynarchCalendar-animBody-back {
position: absolute;
top: 5px;
left: -100%;
}
.DynarchCalendar-animBody-fwd {
position: absolute;
top: 5px;
left: 100%;
}
.DynarchCalendar-animBody-now {
position: absolute;
top: 5px;
left: 0;
}
.DynarchCalendar-animBody-fwdYear {
position: absolute;
top: 100%;
left: 0;
}
.DynarchCalendar-dayNames {
padding-left: 5px;
padding-right: 5px;
}
.DynarchCalendar-dayNames div { font-weight: bold; color: #444; text-shadow: 1px 1px 1px #777; }
.DynarchCalendar-navBtn {
position: absolute;
top: 5px;
z-index: 10;
}
.DynarchCalendar-navBtn div {
background-repeat: no-repeat;
background-position: 50% 50%;
height: 15px;
width: 16px;
padding: 1px;
}
.DynarchCalendar-hover-navBtn div {
border: 1px solid #000;
padding: 0;
background-color: #fff;
}
.DynarchCalendar-navDisabled {
opacity: 0.3;
filter: alpha(opacity=30);
}
.DynarchCalendar-pressed-navBtn div {
border: 1px solid #000;
padding: 0;
background-color: #777;
color: #fff;
}
.DynarchCalendar-prevMonth {
left: 25px;
}
.DynarchCalendar-nextMonth {
left: 100%;
margin-left: -43px;
}
.DynarchCalendar-prevYear {
left: 5px;
}
.DynarchCalendar-nextYear {
left: 100%;
margin-left: -23px;
}
.DynarchCalendar-prevMonth div {
background-image: url("img/nav-left.gif");
}
.DynarchCalendar-nextMonth div {
background-image: url("img/nav-right.gif");
}
.DynarchCalendar-prevYear div {
background-image: url("img/nav-left-x2.gif");
}
.DynarchCalendar-nextYear div {
background-image: url("img/nav-right-x2.gif");
}
.DynarchCalendar-menu {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: #ddd;
overflow: hidden;
opacity: 0.85;
filter: alpha(opacity=85);
}
.DynarchCalendar-menu table td div {
text-align: center;
font-weight: bold;
padding: 3px 5px;
}
.DynarchCalendar-menu table td div.DynarchCalendar-menu-month {
width: 4em;
text-align: center;
}
.DynarchCalendar-menu table td div.DynarchCalendar-hover-navBtn {
border: 1px solid #000;
padding: 2px 4px;
background-color: #fff;
color: #000;
}
.DynarchCalendar-menu table td div.DynarchCalendar-pressed-navBtn {
border: 1px solid #000;
padding: 2px 4px;
background-color: #777;
color: #fff !important;
}
.DynarchCalendar-menu-year {
text-align: center;
font: 16px "lucida grande",tahoma,verdana,sans-serif;
font-weight: bold;
}
.DynarchCalendar-menu-sep {
height: 1px; font-size: 1px; line-height: 1px;
overflow: hidden;
border-top: 1px solid #888;
background: #fff;
margin-top: 4px; margin-bottom: 3px;
}
.DynarchCalendar-time td { font-weight: bold; font-size: 120%; }
.DynarchCalendar-time-hour, .DynarchCalendar-time-minute { padding: 1px 3px; }
.DynarchCalendar-time-down { background: url("img/time-down.png") no-repeat 50% 50%; width: 11px; height: 8px; opacity: 0.5; }
.DynarchCalendar-time-up { background: url("img/time-up.png") no-repeat 50% 50%; width: 11px; height: 8px; opacity: 0.5; }
.DynarchCalendar-time-sep { padding: 0 2px; }
.DynarchCalendar-hover-time { background-color: #444; color: #fff; opacity: 1; }
.DynarchCalendar-pressed-time { background-color: #000; color: #fff; opacity: 1; }
.DynarchCalendar-time-am { padding: 1px; width: 2.5em; text-align: center; }
/* body */
.DynarchCalendar-hover-week { background-color: #ddd; }
.DynarchCalendar-dayNames div, .DynarchCalendar-day, .DynarchCalendar-weekNumber {
width: 1.7em;
padding: 3px 4px;
text-align: center;
}
.DynarchCalendar-weekNumber {
border-right: 1px solid #aaa;
margin-right: 4px;
width: 2em !important;
padding-right: 8px !important;
}
.DynarchCalendar-day {
text-align: right; color: #222;
}
.DynarchCalendar-day-othermonth { color: #888; }
.DynarchCalendar-weekend { color: #c22; }
.DynarchCalendar-day-today { color: #00f; font-weight: bold; }
.DynarchCalendar-day-disabled {
opacity: 0.5;
text-shadow: 2px 1px 1px #fff;
}
.DynarchCalendar-hover-date {
padding: 2px 3px;
background-color: #eef;
border: 1px solid #88c;
margin: 0 !important;
color: #000;
}
.DynarchCalendar-day-othermonth.DynarchCalendar-hover-date { border-color: #aaa; color: #888; }
.DynarchCalendar-dayNames .DynarchCalendar-weekend { color: #c22; }
.DynarchCalendar-day-othermonth.DynarchCalendar-weekend { color: #d88; }
.DynarchCalendar-day-selected {
padding: 2px 3px;
margin: 1px;
background-color: #aaa;
color: #000 !important;
}
.DynarchCalendar-day-today.DynarchCalendar-day-selected { background-color: #999; }
/* focus */
.DynarchCalendar-focusLink {
position: absolute;
opacity: 0;
filter: alpha(opacity=0);
}
.DynarchCalendar-focused {
border-color: #000;
}
.DynarchCalendar-focused .DynarchCalendar-topBar, .DynarchCalendar-focused .DynarchCalendar-bottomBar {
background-color: #ccc;
border-color: #336;
}
.DynarchCalendar-focused .DynarchCalendar-hover-week {
background-color: #ccc;
}
.DynarchCalendar-tooltip {
position: absolute;
top: 100%;
width: 100%;
}
.DynarchCalendar-tooltipCont {
margin: 0 5px 0 5px;
border: 1px solid #aaa;
border-top: 0;
padding: 3px 6px;
background: #ddd;
}
.DynarchCalendar-focused .DynarchCalendar-tooltipCont {
background: #ccc;
border-color: #000;
}
@media print {
.DynarchCalendar-day-selected {
padding: 2px 3px;
border: 1px solid #000;
margin: 0 !important;
}
}
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/css/jscal2.css | CSS | asf20 | 7,385 |
.DynarchCalendar, .DynarchCalendar table {
font-size: 10px;
}
.DynarchCalendar-dayNames { padding: 0; }
.DynarchCalendar-body { padding: 0; }
.DynarchCalendar-animBody-back { top: 0; }
.DynarchCalendar-animBody-fwd { top: 0; }
.DynarchCalendar-animBody-now { top: 0; }
.DynarchCalendar-first-col { padding-left: 0; }
.DynarchCalendar-last-col { padding-right: 0; }
.DynarchCalendar-weekNumber {
margin-right: 0;
padding-right: 4px !important;
}
.DynarchCalendar-dayNames div, .DynarchCalendar-day, .DynarchCalendar-weekNumber {
padding: 1px 2px;
}
.DynarchCalendar-menu-year { font-size: 12px; }
.DynarchCalendar-hover-date {
padding: 0px 1px;
}
.DynarchCalendar-day-selected {
padding: 0px 1px;
}
.DynarchCalendar-menu table td div {
padding: 2px 4px;
}
.DynarchCalendar-menu table td div.DynarchCalendar-hover-navBtn {
padding: 1px 3px;
}
| 123gosaigon | trunk/ 123gosaigon/templates/js/JSCal2-1.7/src/css/reduce-spacing.css | CSS | asf20 | 858 |
/**
*
* MD5 (Message-Digest Algorithm)
* http://www.webtoolkit.info/
*
**/
var MD5 = function (string) {
function RotateLeft(lValue, iShiftBits) {
return (lValue<<iShiftBits) | (lValue>>>(32-iShiftBits));
}
function AddUnsigned(lX,lY) {
var lX4,lY4,lX8,lY8,lResult;
lX8 = (lX & 0x80000000);
lY8 = (lY & 0x80000000);
lX4 = (lX & 0x40000000);
lY4 = (lY & 0x40000000);
lResult = (lX & 0x3FFFFFFF)+(lY & 0x3FFFFFFF);
if (lX4 & lY4) {
return (lResult ^ 0x80000000 ^ lX8 ^ lY8);
}
if (lX4 | lY4) {
if (lResult & 0x40000000) {
return (lResult ^ 0xC0000000 ^ lX8 ^ lY8);
} else {
return (lResult ^ 0x40000000 ^ lX8 ^ lY8);
}
} else {
return (lResult ^ lX8 ^ lY8);
}
}
function F(x,y,z) { return (x & y) | ((~x) & z); }
function G(x,y,z) { return (x & z) | (y & (~z)); }
function H(x,y,z) { return (x ^ y ^ z); }
function I(x,y,z) { return (y ^ (x | (~z))); }
function FF(a,b,c,d,x,s,ac) {
a = AddUnsigned(a, AddUnsigned(AddUnsigned(F(b, c, d), x), ac));
return AddUnsigned(RotateLeft(a, s), b);
};
function GG(a,b,c,d,x,s,ac) {
a = AddUnsigned(a, AddUnsigned(AddUnsigned(G(b, c, d), x), ac));
return AddUnsigned(RotateLeft(a, s), b);
};
function HH(a,b,c,d,x,s,ac) {
a = AddUnsigned(a, AddUnsigned(AddUnsigned(H(b, c, d), x), ac));
return AddUnsigned(RotateLeft(a, s), b);
};
function II(a,b,c,d,x,s,ac) {
a = AddUnsigned(a, AddUnsigned(AddUnsigned(I(b, c, d), x), ac));
return AddUnsigned(RotateLeft(a, s), b);
};
function ConvertToWordArray(string) {
var lWordCount;
var lMessageLength = string.length;
var lNumberOfWords_temp1=lMessageLength + 8;
var lNumberOfWords_temp2=(lNumberOfWords_temp1-(lNumberOfWords_temp1 % 64))/64;
var lNumberOfWords = (lNumberOfWords_temp2+1)*16;
var lWordArray=Array(lNumberOfWords-1);
var lBytePosition = 0;
var lByteCount = 0;
while ( lByteCount < lMessageLength ) {
lWordCount = (lByteCount-(lByteCount % 4))/4;
lBytePosition = (lByteCount % 4)*8;
lWordArray[lWordCount] = (lWordArray[lWordCount] | (string.charCodeAt(lByteCount)<<lBytePosition));
lByteCount++;
}
lWordCount = (lByteCount-(lByteCount % 4))/4;
lBytePosition = (lByteCount % 4)*8;
lWordArray[lWordCount] = lWordArray[lWordCount] | (0x80<<lBytePosition);
lWordArray[lNumberOfWords-2] = lMessageLength<<3;
lWordArray[lNumberOfWords-1] = lMessageLength>>>29;
return lWordArray;
};
function WordToHex(lValue) {
var WordToHexValue="",WordToHexValue_temp="",lByte,lCount;
for (lCount = 0;lCount<=3;lCount++) {
lByte = (lValue>>>(lCount*8)) & 255;
WordToHexValue_temp = "0" + lByte.toString(16);
WordToHexValue = WordToHexValue + WordToHexValue_temp.substr(WordToHexValue_temp.length-2,2);
}
return WordToHexValue;
};
function Utf8Encode(string) {
string = string.replace(/\r\n/g,"\n");
var utftext = "";
for (var n = 0; n < string.length; n++) {
var c = string.charCodeAt(n);
if (c < 128) {
utftext += String.fromCharCode(c);
}
else if((c > 127) && (c < 2048)) {
utftext += String.fromCharCode((c >> 6) | 192);
utftext += String.fromCharCode((c & 63) | 128);
}
else {
utftext += String.fromCharCode((c >> 12) | 224);
utftext += String.fromCharCode(((c >> 6) & 63) | 128);
utftext += String.fromCharCode((c & 63) | 128);
}
}
return utftext;
};
var x=Array();
var k,AA,BB,CC,DD,a,b,c,d;
var S11=7, S12=12, S13=17, S14=22;
var S21=5, S22=9 , S23=14, S24=20;
var S31=4, S32=11, S33=16, S34=23;
var S41=6, S42=10, S43=15, S44=21;
string = Utf8Encode(string);
x = ConvertToWordArray(string);
a = 0x67452301; b = 0xEFCDAB89; c = 0x98BADCFE; d = 0x10325476;
for (k=0;k<x.length;k+=16) {
AA=a; BB=b; CC=c; DD=d;
a=FF(a,b,c,d,x[k+0], S11,0xD76AA478);
d=FF(d,a,b,c,x[k+1], S12,0xE8C7B756);
c=FF(c,d,a,b,x[k+2], S13,0x242070DB);
b=FF(b,c,d,a,x[k+3], S14,0xC1BDCEEE);
a=FF(a,b,c,d,x[k+4], S11,0xF57C0FAF);
d=FF(d,a,b,c,x[k+5], S12,0x4787C62A);
c=FF(c,d,a,b,x[k+6], S13,0xA8304613);
b=FF(b,c,d,a,x[k+7], S14,0xFD469501);
a=FF(a,b,c,d,x[k+8], S11,0x698098D8);
d=FF(d,a,b,c,x[k+9], S12,0x8B44F7AF);
c=FF(c,d,a,b,x[k+10],S13,0xFFFF5BB1);
b=FF(b,c,d,a,x[k+11],S14,0x895CD7BE);
a=FF(a,b,c,d,x[k+12],S11,0x6B901122);
d=FF(d,a,b,c,x[k+13],S12,0xFD987193);
c=FF(c,d,a,b,x[k+14],S13,0xA679438E);
b=FF(b,c,d,a,x[k+15],S14,0x49B40821);
a=GG(a,b,c,d,x[k+1], S21,0xF61E2562);
d=GG(d,a,b,c,x[k+6], S22,0xC040B340);
c=GG(c,d,a,b,x[k+11],S23,0x265E5A51);
b=GG(b,c,d,a,x[k+0], S24,0xE9B6C7AA);
a=GG(a,b,c,d,x[k+5], S21,0xD62F105D);
d=GG(d,a,b,c,x[k+10],S22,0x2441453);
c=GG(c,d,a,b,x[k+15],S23,0xD8A1E681);
b=GG(b,c,d,a,x[k+4], S24,0xE7D3FBC8);
a=GG(a,b,c,d,x[k+9], S21,0x21E1CDE6);
d=GG(d,a,b,c,x[k+14],S22,0xC33707D6);
c=GG(c,d,a,b,x[k+3], S23,0xF4D50D87);
b=GG(b,c,d,a,x[k+8], S24,0x455A14ED);
a=GG(a,b,c,d,x[k+13],S21,0xA9E3E905);
d=GG(d,a,b,c,x[k+2], S22,0xFCEFA3F8);
c=GG(c,d,a,b,x[k+7], S23,0x676F02D9);
b=GG(b,c,d,a,x[k+12],S24,0x8D2A4C8A);
a=HH(a,b,c,d,x[k+5], S31,0xFFFA3942);
d=HH(d,a,b,c,x[k+8], S32,0x8771F681);
c=HH(c,d,a,b,x[k+11],S33,0x6D9D6122);
b=HH(b,c,d,a,x[k+14],S34,0xFDE5380C);
a=HH(a,b,c,d,x[k+1], S31,0xA4BEEA44);
d=HH(d,a,b,c,x[k+4], S32,0x4BDECFA9);
c=HH(c,d,a,b,x[k+7], S33,0xF6BB4B60);
b=HH(b,c,d,a,x[k+10],S34,0xBEBFBC70);
a=HH(a,b,c,d,x[k+13],S31,0x289B7EC6);
d=HH(d,a,b,c,x[k+0], S32,0xEAA127FA);
c=HH(c,d,a,b,x[k+3], S33,0xD4EF3085);
b=HH(b,c,d,a,x[k+6], S34,0x4881D05);
a=HH(a,b,c,d,x[k+9], S31,0xD9D4D039);
d=HH(d,a,b,c,x[k+12],S32,0xE6DB99E5);
c=HH(c,d,a,b,x[k+15],S33,0x1FA27CF8);
b=HH(b,c,d,a,x[k+2], S34,0xC4AC5665);
a=II(a,b,c,d,x[k+0], S41,0xF4292244);
d=II(d,a,b,c,x[k+7], S42,0x432AFF97);
c=II(c,d,a,b,x[k+14],S43,0xAB9423A7);
b=II(b,c,d,a,x[k+5], S44,0xFC93A039);
a=II(a,b,c,d,x[k+12],S41,0x655B59C3);
d=II(d,a,b,c,x[k+3], S42,0x8F0CCC92);
c=II(c,d,a,b,x[k+10],S43,0xFFEFF47D);
b=II(b,c,d,a,x[k+1], S44,0x85845DD1);
a=II(a,b,c,d,x[k+8], S41,0x6FA87E4F);
d=II(d,a,b,c,x[k+15],S42,0xFE2CE6E0);
c=II(c,d,a,b,x[k+6], S43,0xA3014314);
b=II(b,c,d,a,x[k+13],S44,0x4E0811A1);
a=II(a,b,c,d,x[k+4], S41,0xF7537E82);
d=II(d,a,b,c,x[k+11],S42,0xBD3AF235);
c=II(c,d,a,b,x[k+2], S43,0x2AD7D2BB);
b=II(b,c,d,a,x[k+9], S44,0xEB86D391);
a=AddUnsigned(a,AA);
b=AddUnsigned(b,BB);
c=AddUnsigned(c,CC);
d=AddUnsigned(d,DD);
}
var temp = WordToHex(a)+WordToHex(b)+WordToHex(c)+WordToHex(d);
return temp.toLowerCase();
}
/***/
var Base64 = {
// private property
_keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
// public method for encoding
encode : function (input) {
var output = "";
var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
var i = 0;
input = Base64._utf8_encode(input);
while (i < input.length) {
chr1 = input.charCodeAt(i++);
chr2 = input.charCodeAt(i++);
chr3 = input.charCodeAt(i++);
enc1 = chr1 >> 2;
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
enc4 = chr3 & 63;
if (isNaN(chr2)) {
enc3 = enc4 = 64;
} else if (isNaN(chr3)) {
enc4 = 64;
}
output = output +
this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) +
this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);
}
return output;
},
// public method for decoding
decode : function (input) {
var output = "";
var chr1, chr2, chr3;
var enc1, enc2, enc3, enc4;
var i = 0;
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
while (i < input.length) {
enc1 = this._keyStr.indexOf(input.charAt(i++));
enc2 = this._keyStr.indexOf(input.charAt(i++));
enc3 = this._keyStr.indexOf(input.charAt(i++));
enc4 = this._keyStr.indexOf(input.charAt(i++));
chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4;
output = output + String.fromCharCode(chr1);
if (enc3 != 64) {
output = output + String.fromCharCode(chr2);
}
if (enc4 != 64) {
output = output + String.fromCharCode(chr3);
}
}
output = Base64._utf8_decode(output);
return output;
},
// private method for UTF-8 encoding
_utf8_encode : function (string) {
string = string.replace(/\r\n/g,"\n");
var utftext = "";
for (var n = 0; n < string.length; n++) {
var c = string.charCodeAt(n);
if (c < 128) {
utftext += String.fromCharCode(c);
}
else if((c > 127) && (c < 2048)) {
utftext += String.fromCharCode((c >> 6) | 192);
utftext += String.fromCharCode((c & 63) | 128);
}
else {
utftext += String.fromCharCode((c >> 12) | 224);
utftext += String.fromCharCode(((c >> 6) & 63) | 128);
utftext += String.fromCharCode((c & 63) | 128);
}
}
return utftext;
},
// private method for UTF-8 decoding
_utf8_decode : function (utftext) {
var string = "";
var i = 0;
var c = c1 = c2 = 0;
while ( i < utftext.length ) {
c = utftext.charCodeAt(i);
if (c < 128) {
string += String.fromCharCode(c);
i++;
}
else if((c > 191) && (c < 224)) {
c2 = utftext.charCodeAt(i+1);
string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
i += 2;
}
else {
c2 = utftext.charCodeAt(i+1);
c3 = utftext.charCodeAt(i+2);
string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
i += 3;
}
}
return string;
}
}
| 123gosaigon | trunk/ 123gosaigon/templates/js/md5.js | JavaScript | asf20 | 9,772 |
jQuery(document).ready(function ($) {
var options = {
$AutoPlay: false, //[Optional] Whether to auto play, to enable slideshow, this option must be set to true, default value is false
$AutoPlaySteps: 4, //[Optional] Steps to go for each navigation request (this options applys only when slideshow disabled), the default value is 1
$AutoPlayInterval: 4000, //[Optional] Interval (in milliseconds) to go for next slide since the previous stopped if the slider is auto playing, default value is 3000
$PauseOnHover: 1, //[Optional] Whether to pause when mouse over if a slider is auto playing, 0 no pause, 1 pause for desktop, 2 pause for touch device, 3 pause for desktop and touch device, 4 freeze for desktop, 8 freeze for touch device, 12 freeze for desktop and touch device, default value is 1
$ArrowKeyNavigation: true, //[Optional] Allows keyboard (arrow key) navigation or not, default value is false
$SlideDuration: 160, //[Optional] Specifies default duration (swipe) for slide in milliseconds, default value is 500
$MinDragOffsetToSlide: 20, //[Optional] Minimum drag offset to trigger slide , default value is 20
$SlideWidth: 170, //[Optional] Width of every slide in pixels, default value is width of 'slides' container
//$SlideHeight: 150, //[Optional] Height of every slide in pixels, default value is height of 'slides' container
$SlideSpacing: 60, //[Optional] Space between each slide in pixels, default value is 0
$DisplayPieces: 4, //[Optional] Number of pieces to display (the slideshow would be disabled if the value is set to greater than 1), the default value is 1
$ParkingPosition: 0, //[Optional] The offset position to park slide (this options applys only when slideshow disabled), default value is 0.
$UISearchMode: 1, //[Optional] The way (0 parellel, 1 recursive, default value is 1) to search UI components (slides container, loading screen, navigator container, arrow navigator container, thumbnail navigator container etc).
$PlayOrientation: 1, //[Optional] Orientation to play slide (for auto play, navigation), 1 horizental, 2 vertical, 5 horizental reverse, 6 vertical reverse, default value is 1
$DragOrientation: 1, //[Optional] Orientation to drag slide, 0 no drag, 1 horizental, 2 vertical, 3 either, default value is 1 (Note that the $DragOrientation should be the same as $PlayOrientation when $DisplayPieces is greater than 1, or parking position is not 0)
$BulletNavigatorOptions: { //[Optional] Options to specify and enable navigator or not
$Class: $JssorBulletNavigator$, //[Required] Class to create navigator instance
$ChanceToShow: 2, //[Required] 0 Never, 1 Mouse Over, 2 Always
$AutoCenter: 0, //[Optional] Auto center navigator in parent container, 0 None, 1 Horizontal, 2 Vertical, 3 Both, default value is 0
$Steps: 1, //[Optional] Steps to go for each navigation request, default value is 1
$Lanes: 1, //[Optional] Specify lanes to arrange items, default value is 1
$SpacingX:0, //[Optional] Horizontal space between each item in pixel, default value is 0
$SpacingY:0, //[Optional] Vertical space between each item in pixel, default value is 0
$Orientation: 1 //[Optional] The orientation of the navigator, 1 horizontal, 2 vertical, default value is 1
},
$ArrowNavigatorOptions: {
$Class: $JssorArrowNavigator$, //[Requried] Class to create arrow navigator instance
$ChanceToShow: 2, //[Required] 0 Never, 1 Mouse Over, 2 Always
$AutoCenter: 0, //[Optional] Auto center navigator in parent container, 0 None, 1 Horizontal, 2 Vertical, 3 Both, default value is 0
$Steps: 4 //[Optional] Steps to go for each navigation request, default value is 1
}
};
function runSlider(id){
var jssor_slider1 = new $JssorSlider$(id, options);
var bodyWidth = document.body.clientWidth;
if (bodyWidth)
jssor_slider1.$ScaleWidth(Math.min(bodyWidth, 860));
else
window.setTimeout(runSlider, 30);
}
runSlider('slider1_container');
runSlider('slider2_container');
runSlider('slider3_container');
runSlider('slider4_container');
if (!navigator.userAgent.match(/(iPhone|iPod|iPad|BlackBerry|IEMobile)/)) {
$(window).bind('resize', runSlider);
}
//if (navigator.userAgent.match(/(iPhone|iPod|iPad)/)) {
// $(window).bind("orientationchange", ScaleSlider);
//}
//responsive code end
});
| 123gosaigon | trunk/ 123gosaigon/templates/js/customer_slidercarousel.js | JavaScript | asf20 | 5,246 |
/*
* Jssor 18.0
* http://www.jssor.com/
*
* TERMS OF USE - Jssor
*
* Copyright 2014 Jssor
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/*! Jssor */
//$JssorDebug$
var $JssorDebug$ = new function () {
this.$DebugMode = true;
// Methods
this.$Log = function (msg, important) {
var console = window.console || {};
var debug = this.$DebugMode;
if (debug && console.log) {
console.log(msg);
} else if (debug && important) {
alert(msg);
}
};
this.$Error = function (msg, e) {
var console = window.console || {};
var debug = this.$DebugMode;
if (debug && console.error) {
console.error(msg);
} else if (debug) {
alert(msg);
}
if (debug) {
// since we're debugging, fail fast by crashing
throw e || new Error(msg);
}
};
this.$Fail = function (msg) {
throw new Error(msg);
};
this.$Assert = function (value, msg) {
var debug = this.$DebugMode;
if (debug) {
if (!value)
throw new Error("Assert failed " + msg || "");
}
};
this.$Trace = function (msg) {
var console = window.console || {};
var debug = this.$DebugMode;
if (debug && console.log) {
console.log(msg);
}
};
this.$Execute = function (func) {
var debug = this.$DebugMode;
if (debug)
func();
};
this.$LiveStamp = function (obj, id) {
var debug = this.$DebugMode;
if (debug) {
var stamp = document.createElement("DIV");
stamp.setAttribute("id", id);
obj.$Live = stamp;
}
};
this.$C_AbstractMethod = function () {
/// <summary>
/// Tells compiler the method is abstract, it should be implemented by subclass.
/// </summary>
throw new Error("The method is abstract, it should be implemented by subclass.");
};
function C_AbstractClass (instance) {
/// <summary>
/// Tells compiler the class is abstract, it should be implemented by subclass.
/// </summary>
if(instance.constructor === C_AbstractClass.caller)
throw new Error("Cannot create instance of an abstract class.");
}
this.$C_AbstractClass = C_AbstractClass;
};
//$JssorEasing$
var $JssorEasing$ = window.$JssorEasing$ = {
$EaseLinear: function (t) {
return t;
},
$EaseGoBack: function (t) {
return 1 - Math.abs((t *= 2) - 1);
},
$EaseSwing: function (t) {
return -Math.cos(t * Math.PI) / 2 + .5;
},
$EaseInQuad: function (t) {
return t * t;
},
$EaseOutQuad: function (t) {
return -t * (t - 2);
},
$EaseInOutQuad: function (t) {
return (t *= 2) < 1 ? 1 / 2 * t * t : -1 / 2 * (--t * (t - 2) - 1);
},
$EaseInCubic: function (t) {
return t * t * t;
},
$EaseOutCubic: function (t) {
return (t -= 1) * t * t + 1;
},
$EaseInOutCubic: function (t) {
return (t *= 2) < 1 ? 1 / 2 * t * t * t : 1 / 2 * ((t -= 2) * t * t + 2);
},
$EaseInQuart: function (t) {
return t * t * t * t;
},
$EaseOutQuart: function (t) {
return -((t -= 1) * t * t * t - 1);
},
$EaseInOutQuart: function (t) {
return (t *= 2) < 1 ? 1 / 2 * t * t * t * t : -1 / 2 * ((t -= 2) * t * t * t - 2);
},
$EaseInQuint: function (t) {
return t * t * t * t * t;
},
$EaseOutQuint: function (t) {
return (t -= 1) * t * t * t * t + 1;
},
$EaseInOutQuint: function (t) {
return (t *= 2) < 1 ? 1 / 2 * t * t * t * t * t : 1 / 2 * ((t -= 2) * t * t * t * t + 2);
},
$EaseInSine: function (t) {
return 1 - Math.cos(t * Math.PI / 2);
},
$EaseOutSine: function (t) {
return Math.sin(t * Math.PI / 2);
},
$EaseInOutSine: function (t) {
return -1 / 2 * (Math.cos(Math.PI * t) - 1);
},
$EaseInExpo: function (t) {
return t == 0 ? 0 : Math.pow(2, 10 * (t - 1));
},
$EaseOutExpo: function (t) {
return t == 1 ? 1 : -Math.pow(2, -10 * t) + 1;
},
$EaseInOutExpo: function (t) {
return t == 0 || t == 1 ? t : (t *= 2) < 1 ? 1 / 2 * Math.pow(2, 10 * (t - 1)) : 1 / 2 * (-Math.pow(2, -10 * --t) + 2);
},
$EaseInCirc: function (t) {
return -(Math.sqrt(1 - t * t) - 1);
},
$EaseOutCirc: function (t) {
return Math.sqrt(1 - (t -= 1) * t);
},
$EaseInOutCirc: function (t) {
return (t *= 2) < 1 ? -1 / 2 * (Math.sqrt(1 - t * t) - 1) : 1 / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1);
},
$EaseInElastic: function (t) {
if (!t || t == 1)
return t;
var p = .3, s = .075;
return -(Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * 2 * Math.PI / p));
},
$EaseOutElastic: function (t) {
if (!t || t == 1)
return t;
var p = .3, s = .075;
return Math.pow(2, -10 * t) * Math.sin((t - s) * 2 * Math.PI / p) + 1;
},
$EaseInOutElastic: function (t) {
if (!t || t == 1)
return t;
var p = .45, s = .1125;
return (t *= 2) < 1 ? -.5 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * 2 * Math.PI / p) : Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * 2 * Math.PI / p) * .5 + 1;
},
$EaseInBack: function (t) {
var s = 1.70158;
return t * t * ((s + 1) * t - s);
},
$EaseOutBack: function (t) {
var s = 1.70158;
return (t -= 1) * t * ((s + 1) * t + s) + 1;
},
$EaseInOutBack: function (t) {
var s = 1.70158;
return (t *= 2) < 1 ? 1 / 2 * t * t * (((s *= 1.525) + 1) * t - s) : 1 / 2 * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2);
},
$EaseInBounce: function (t) {
return 1 - $JssorEasing$.$EaseOutBounce(1 - t)
},
$EaseOutBounce: function (t) {
return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375;
},
$EaseInOutBounce: function (t) {
return t < 1 / 2 ? $JssorEasing$.$EaseInBounce(t * 2) * .5 : $JssorEasing$.$EaseOutBounce(t * 2 - 1) * .5 + .5;
},
$EaseInWave: function (t) {
return 1 - Math.cos(t * Math.PI * 2)
},
$EaseOutWave: function (t) {
return Math.sin(t * Math.PI * 2);
},
$EaseOutJump: function (t) {
return 1 - (((t *= 2) < 1) ? (t = 1 - t) * t * t : (t -= 1) * t * t);
},
$EaseInJump: function (t) {
return ((t *= 2) < 1) ? t * t * t : (t = 2 - t) * t * t;
}
};
var $JssorDirection$ = window.$JssorDirection$ = {
$TO_LEFT: 0x0001,
$TO_RIGHT: 0x0002,
$TO_TOP: 0x0004,
$TO_BOTTOM: 0x0008,
$HORIZONTAL: 0x0003,
$VERTICAL: 0x000C,
$LEFTRIGHT: 0x0003,
$TOPBOTOM: 0x000C,
$TOPLEFT: 0x0005,
$TOPRIGHT: 0x0006,
$BOTTOMLEFT: 0x0009,
$BOTTOMRIGHT: 0x000A,
$AROUND: 0x000F,
$GetDirectionHorizontal: function (direction) {
return direction & 0x0003;
},
$GetDirectionVertical: function (direction) {
return direction & 0x000C;
},
$ChessHorizontal: function (direction) {
return (~direction & 0x0003) + (direction & 0x000C);
},
$ChessVertical: function (direction) {
return (~direction & 0x000C) + (direction & 0x0003);
},
$IsToLeft: function (direction) {
return (direction & 0x0003) == 0x0001;
},
$IsToRight: function (direction) {
return (direction & 0x0003) == 0x0002;
},
$IsToTop: function (direction) {
return (direction & 0x000C) == 0x0004;
},
$IsToBottom: function (direction) {
return (direction & 0x000C) == 0x0008;
},
$IsHorizontal: function (direction) {
return (direction & 0x0003) > 0;
},
$IsVertical: function (direction) {
return (direction & 0x000C) > 0;
}
};
var $JssorKeyCode$ = {
$BACKSPACE: 8,
$COMMA: 188,
$DELETE: 46,
$DOWN: 40,
$END: 35,
$ENTER: 13,
$ESCAPE: 27,
$HOME: 36,
$LEFT: 37,
$NUMPAD_ADD: 107,
$NUMPAD_DECIMAL: 110,
$NUMPAD_DIVIDE: 111,
$NUMPAD_ENTER: 108,
$NUMPAD_MULTIPLY: 106,
$NUMPAD_SUBTRACT: 109,
$PAGE_DOWN: 34,
$PAGE_UP: 33,
$PERIOD: 190,
$RIGHT: 39,
$SPACE: 32,
$TAB: 9,
$UP: 38
};
var $JssorAlignment$ = {
$TopLeft: 0x11,
$TopCenter: 0x12,
$TopRight: 0x14,
$MiddleLeft: 0x21,
$MiddleCenter: 0x22,
$MiddleRight: 0x24,
$BottomLeft: 0x41,
$BottomCenter: 0x42,
$BottomRight: 0x44,
$IsTop: function (aligment) {
return aligment & 0x10 > 0;
},
$IsMiddle: function (alignment) {
return alignment & 0x20 > 0;
},
$IsBottom: function (alignment) {
return alignment & 0x40 > 0;
},
$IsLeft: function (alignment) {
return alignment & 0x01 > 0;
},
$IsCenter: function (alignment) {
return alignment & 0x02 > 0;
},
$IsRight: function (alignment) {
return alignment & 0x04 > 0;
}
};
var $JssorMatrix$;
var $JssorAnimator$;
// $Jssor$ is a static class, so make it singleton instance
var $Jssor$ = window.$Jssor$ = new function () {
// Fields
var _This = this;
var REGEX_WHITESPACE_GLOBAL = /\S+/g;
var ROWSER_UNKNOWN = 0;
var BROWSER_IE = 1;
var BROWSER_FIREFOX = 2;
var BROWSER_FIREFOX = 3;
var BROWSER_CHROME = 4;
var BROWSER_OPERA = 5;
//var arrActiveX = ["Msxml2.XMLHTTP", "Msxml3.XMLHTTP", "Microsoft.XMLHTTP"];
var browser = 0;
var browserRuntimeVersion = 0;
var browserEngineVersion = 0;
var browserJavascriptVersion = 0;
var webkitVersion = 0;
var app = navigator.appName;
var ver = navigator.appVersion;
var ua = navigator.userAgent;
var _DocElmt = document.documentElement;
var _TransformProperty;
function DetectBrowser() {
if (!browser) {
if (app == "Microsoft Internet Explorer" &&
!!window.attachEvent && !!window.ActiveXObject) {
var ieOffset = ua.indexOf("MSIE");
browser = BROWSER_IE;
browserEngineVersion = ParseFloat(ua.substring(ieOffset + 5, ua.indexOf(";", ieOffset)));
//check IE javascript version
/*@cc_on
browserJavascriptVersion = @_jscript_version;
@*/
// update: for intranet sites and compat view list sites, IE sends
// an IE7 User-Agent to the server to be interoperable, and even if
// the page requests a later IE version, IE will still report the
// IE7 UA to JS. we should be robust to self
//var docMode = document.documentMode;
//if (typeof docMode !== "undefined") {
// browserRuntimeVersion = docMode;
//}
browserRuntimeVersion = document.documentMode || browserEngineVersion;
}
else if (app == "Netscape" && !!window.addEventListener) {
var ffOffset = ua.indexOf("Firefox");
var saOffset = ua.indexOf("Safari");
var chOffset = ua.indexOf("Chrome");
var webkitOffset = ua.indexOf("AppleWebKit");
if (ffOffset >= 0) {
browser = BROWSER_FIREFOX;
browserRuntimeVersion = ParseFloat(ua.substring(ffOffset + 8));
}
else if (saOffset >= 0) {
var slash = ua.substring(0, saOffset).lastIndexOf("/");
browser = (chOffset >= 0) ? BROWSER_CHROME : BROWSER_FIREFOX;
browserRuntimeVersion = ParseFloat(ua.substring(slash + 1, saOffset));
}
if (webkitOffset >= 0)
webkitVersion = ParseFloat(ua.substring(webkitOffset + 12));
}
else {
var match = /(opera)(?:.*version|)[ \/]([\w.]+)/i.exec(ua);
if (match) {
browser = BROWSER_OPERA;
browserRuntimeVersion = ParseFloat(match[2]);
}
}
}
}
function IsBrowserIE() {
DetectBrowser();
return browser == BROWSER_IE;
}
function IsBrowserIeQuirks() {
return IsBrowserIE() && (browserRuntimeVersion < 6 || document.compatMode == "BackCompat"); //Composite to "CSS1Compat"
}
function IsBrowserFireFox() {
DetectBrowser();
return browser == BROWSER_FIREFOX;
}
function IsBrowserSafari() {
DetectBrowser();
return browser == BROWSER_FIREFOX;
}
function IsBrowserChrome() {
DetectBrowser();
return browser == BROWSER_CHROME;
}
function IsBrowserOpera() {
DetectBrowser();
return browser == BROWSER_OPERA;
}
function IsBrowserBadTransform() {
return IsBrowserSafari() && (webkitVersion > 534) && (webkitVersion < 535);
}
function IsBrowserIe9Earlier() {
return IsBrowserIE() && browserRuntimeVersion < 9;
}
function GetTransformProperty(elmt) {
if (!_TransformProperty) {
// Note that in some versions of IE9 it is critical that
// msTransform appear in this list before MozTransform
each(['transform', 'WebkitTransform', 'msTransform', 'MozTransform', 'OTransform'], function (property) {
if (elmt.style[property] != undefined) {
_TransformProperty = property;
return true;
}
});
_TransformProperty = _TransformProperty || "transform";
}
return _TransformProperty;
}
// Helpers
function getOffsetParent(elmt, isFixed) {
// IE and Opera "fixed" position elements don't have offset parents.
// regardless, if it's fixed, its offset parent is the body.
if (isFixed && elmt != document.body) {
return document.body;
} else {
return elmt.offsetParent;
}
}
function toString(obj) {
return Object.prototype.toString.call(obj);
}
// [[Class]] -> type pairs
var class2type;
function each(object, callback) {
if (toString(object) == "[object Array]") {
for (var i = 0; i < object.length; i++) {
if (callback(object[i], i, object)) {
return true;
}
}
}
else {
for (var name in object) {
if (callback(object[name], name, object)) {
return true;
}
}
}
}
function GetClass2Type() {
if (!class2type) {
class2type = {};
each(["Boolean", "Number", "String", "Function", "Array", "Date", "RegExp", "Object"], function (name) {
class2type["[object " + name + "]"] = name.toLowerCase();
});
}
return class2type;
}
function type(obj) {
return obj == null ? String(obj) : GetClass2Type()[toString(obj)] || "object";
}
function isPlainObject(obj) {
// Must be an Object.
// Because of IE, we also have to check the presence of the constructor property.
// Make sure that DOM nodes and window objects don't pass through, as well
if (!obj || type(obj) !== "object" || obj.nodeType || _This.$IsWindow(obj)) {
return false;
}
var hasOwn = Object.prototype.hasOwnProperty;
try {
// Not own constructor property must be Object
if (obj.constructor &&
!hasOwn.call(obj, "constructor") &&
!hasOwn.call(obj.constructor.prototype, "isPrototypeOf")) {
return false;
}
} catch (e) {
// IE8,9 Will throw exceptions on certain host objects #9897
return false;
}
// Own properties are enumerated firstly, so to speed up,
// if last one is own, then all properties are own.
var key;
for (key in obj) { }
return key === undefined || hasOwn.call(obj, key);
}
function Point(x, y) {
return { x: x, y: y };
}
function Delay(code, delay) {
setTimeout(code, delay || 0);
}
function RemoveByReg(str, reg) {
var m = reg.exec(str);
if (m) {
var header = str.substr(0, m.index);
var tailer = str.substr(m.lastIndex + 1, str.length - (m.lastIndex + 1));
str = header + tailer;
}
return str;
}
function BuildNewCss(oldCss, removeRegs, replaceValue) {
var css = (!oldCss || oldCss == "inherit") ? "" : oldCss;
each(removeRegs, function (removeReg) {
var m = removeReg.exec(css);
if (m) {
var header = css.substr(0, m.index);
var tailer = css.substr(m.lastIndex + 1, css.length - (m.lastIndex + 1));
css = header + tailer;
}
});
css = replaceValue + (css.indexOf(" ") != 0 ? " " : "") + css;
return css;
}
function SetStyleFilterIE(elmt, value) {
if (browserRuntimeVersion < 9) {
elmt.style.filter = value;
}
}
function SetStyleMatrixIE(elmt, matrix, offset) {
//matrix is not for ie9+ running in ie8- mode
if (browserJavascriptVersion < 9) {
var oldFilterValue = elmt.style.filter;
var matrixReg = new RegExp(/[\s]*progid:DXImageTransform\.Microsoft\.Matrix\([^\)]*\)/g);
var matrixValue = matrix ? "progid:DXImageTransform.Microsoft.Matrix(" + "M11=" + matrix[0][0] + ", M12=" + matrix[0][1] + ", M21=" + matrix[1][0] + ", M22=" + matrix[1][1] + ", SizingMethod='auto expand')" : "";
var newFilterValue = BuildNewCss(oldFilterValue, [matrixReg], matrixValue);
SetStyleFilterIE(elmt, newFilterValue);
_This.$CssMarginTop(elmt, offset.y);
_This.$CssMarginLeft(elmt, offset.x);
}
}
// Methods
_This.$IsBrowserIE = IsBrowserIE;
_This.$IsBrowserIeQuirks = IsBrowserIeQuirks;
_This.$IsBrowserFireFox = IsBrowserFireFox;
_This.$IsBrowserSafari = IsBrowserSafari;
_This.$IsBrowserChrome = IsBrowserChrome;
_This.$IsBrowserOpera = IsBrowserOpera;
_This.$IsBrowserBadTransform = IsBrowserBadTransform;
_This.$IsBrowserIe9Earlier = IsBrowserIe9Earlier;
_This.$BrowserVersion = function () {
return browserRuntimeVersion;
};
_This.$BrowserEngineVersion = function () {
return browserEngineVersion || browserRuntimeVersion;
};
_This.$WebKitVersion = function () {
DetectBrowser();
return webkitVersion;
};
_This.$Delay = Delay;
_This.$Inherit = function (instance, baseClass) {
baseClass.apply(instance, [].slice.call(arguments, 2));
return Extend({}, instance);
};
function Construct(instance, constructor) {
instance.constructor === Construct.caller && instance.$Construct && instance.$Construct();
}
_This.$Construct = Construct;
_This.$GetElement = function (elmt) {
if (_This.$IsString(elmt)) {
elmt = document.getElementById(elmt);
}
return elmt;
};
function GetEvent(event) {
return event || window.event;
}
GetEvent = GetEvent;
_This.$EventSrc = function (event) {
event = GetEvent(event);
return event.target || event.srcElement || document;
};
_This.$EventDst = function (event) {
event = GetEvent(event);
return event.relatedTarget || event.toElement;
};
_This.$MousePosition = function (event) {
event = GetEvent(event);
var body = document.body;
return {
x: event.pageX || event.clientX + (_DocElmt.scrollLeft || body.scrollLeft || 0) - (_DocElmt.clientLeft || body.clientLeft || 0) || 0,
y: event.pageY || event.clientY + (_DocElmt.scrollTop || body.scrollTop || 0) - (_DocElmt.clientTop || body.clientTop || 0) || 0
};
};
_This.$PageScroll = function () {
var body = document.body;
return {
x: (window.pageXOffset || _DocElmt.scrollLeft || body.scrollLeft || 0) - (_DocElmt.clientLeft || body.clientLeft || 0),
y: (window.pageYOffset || _DocElmt.scrollTop || body.scrollTop || 0) - (_DocElmt.clientTop || body.clientTop || 0)
};
};
_This.$WindowSize = function () {
var body = document.body;
return {
x: body.clientWidth || _DocElmt.clientWidth,
y: body.clientHeight || _DocElmt.clientHeight
};
};
//_This.$GetElementPosition = function (elmt) {
// elmt = _This.$GetElement(elmt);
// var result = Point();
// // technique from:
// // http://www.quirksmode.org/js/findpos.html
// // with special check for "fixed" elements.
// while (elmt) {
// result.x += elmt.offsetLeft;
// result.y += elmt.offsetTop;
// var isFixed = _This.$GetElementStyle(elmt).position == "fixed";
// if (isFixed) {
// result = result.$Plus(_This.$PageScroll(window));
// }
// elmt = getOffsetParent(elmt, isFixed);
// }
// return result;
//};
//_This.$GetMouseScroll = function (event) {
// event = GetEvent(event);
// var delta = 0; // default value
// // technique from:
// // http://blog.paranoidferret.com/index.php/2007/10/31/javascript-tutorial-the-scroll-wheel/
// if (typeof (event.wheelDelta) == "number") {
// delta = event.wheelDelta;
// } else if (typeof (event.detail) == "number") {
// delta = event.detail * -1;
// } else {
// $JssorDebug$.$Fail("Unknown event mouse scroll, no known technique.");
// }
// // normalize value to [-1, 1]
// return delta ? delta / Math.abs(delta) : 0;
//};
//_This.$MakeAjaxRequest = function (url, callback) {
// var async = typeof (callback) == "function";
// var req = null;
// if (async) {
// var actual = callback;
// var callback = function () {
// Delay($Jssor$.$CreateCallback(null, actual, req), 1);
// };
// }
// if (window.ActiveXObject) {
// for (var i = 0; i < arrActiveX.length; i++) {
// try {
// req = new ActiveXObject(arrActiveX[i]);
// break;
// } catch (e) {
// continue;
// }
// }
// } else if (window.XMLHttpRequest) {
// req = new XMLHttpRequest();
// }
// if (!req) {
// $JssorDebug$.$Fail("Browser doesn't support XMLHttpRequest.");
// }
// if (async) {
// req.onreadystatechange = function () {
// if (req.readyState == 4) {
// // prevent memory leaks by breaking circular reference now
// req.onreadystatechange = new Function();
// callback();
// }
// };
// }
// try {
// req.open("GET", url, async);
// req.send(null);
// } catch (e) {
// $JssorDebug$.$Log(e.name + " while making AJAX request: " + e.message);
// req.onreadystatechange = null;
// req = null;
// if (async) {
// callback();
// }
// }
// return async ? null : req;
//};
//_This.$ParseXml = function (string) {
// var xmlDoc = null;
// if (window.ActiveXObject) {
// try {
// xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
// xmlDoc.async = false;
// xmlDoc.loadXML(string);
// } catch (e) {
// $JssorDebug$.$Log(e.name + " while parsing XML (ActiveX): " + e.message);
// }
// } else if (window.DOMParser) {
// try {
// var parser = new DOMParser();
// xmlDoc = parser.parseFromString(string, "text/xml");
// } catch (e) {
// $JssorDebug$.$Log(e.name + " while parsing XML (DOMParser): " + e.message);
// }
// } else {
// $JssorDebug$.$Fail("Browser doesn't support XML DOM.");
// }
// return xmlDoc;
//};
function Css(elmt, name, value) {
/// <summary>
/// access css
/// $Jssor$.$Css(elmt, name); //get css value
/// $Jssor$.$Css(elmt, name, value); //set css value
/// </summary>
/// <param name="elmt" type="HTMLElement">
/// the element to access css
/// </param>
/// <param name="name" type="String">
/// the name of css property
/// </param>
/// <param name="value" optional="true">
/// the value to set
/// </param>
if (value != undefined) {
elmt.style[name] = value;
}
else {
var style = elmt.currentStyle || elmt.style;
value = style[name];
if (value == "" && window.getComputedStyle) {
style = elmt.ownerDocument.defaultView.getComputedStyle(elmt, null);
style && (value = style.getPropertyValue(name) || style[name]);
}
return value;
}
}
function CssN(elmt, name, value, isDimensional) {
/// <summary>
/// access css as numeric
/// $Jssor$.$CssN(elmt, name); //get css value
/// $Jssor$.$CssN(elmt, name, value); //set css value
/// </summary>
/// <param name="elmt" type="HTMLElement">
/// the element to access css
/// </param>
/// <param name="name" type="String">
/// the name of css property
/// </param>
/// <param name="value" type="Number" optional="true">
/// the value to set
/// </param>
if (value != undefined) {
isDimensional && (value += "px");
Css(elmt, name, value);
}
else {
return ParseFloat(Css(elmt, name));
}
}
function CssP(elmt, name, value) {
/// <summary>
/// access css in pixel as numeric, like 'top', 'left', 'width', 'height'
/// $Jssor$.$CssP(elmt, name); //get css value
/// $Jssor$.$CssP(elmt, name, value); //set css value
/// </summary>
/// <param name="elmt" type="HTMLElement">
/// the element to access css
/// </param>
/// <param name="name" type="String">
/// the name of css property
/// </param>
/// <param name="value" type="Number" optional="true">
/// the value to set
/// </param>
return CssN(elmt, name, value, true);
}
function CssProxy(name, numericOrDimension) {
/// <summary>
/// create proxy to access css, CssProxy(name[, numericOrDimension]);
/// </summary>
/// <param name="elmt" type="HTMLElement">
/// the element to access css
/// </param>
/// <param name="numericOrDimension" type="Number" optional="true">
/// not set: access original css, 1: access css as numeric, 2: access css in pixel as numeric
/// </param>
var isDimensional = numericOrDimension & 2;
var cssAccessor = numericOrDimension ? CssN : Css;
return function (elmt, value) {
return cssAccessor(elmt, name, value, isDimensional);
};
}
function GetStyleOpacity(elmt) {
if (IsBrowserIE() && browserEngineVersion < 9) {
var match = /opacity=([^)]*)/.exec(elmt.style.filter || "");
return match ? (ParseFloat(match[1]) / 100) : 1;
}
else
return ParseFloat(elmt.style.opacity || "1");
}
function SetStyleOpacity(elmt, opacity, ie9EarlierForce) {
if (IsBrowserIE() && browserEngineVersion < 9) {
//var filterName = "filter"; // browserEngineVersion < 8 ? "filter" : "-ms-filter";
var finalFilter = elmt.style.filter || "";
// for CSS filter browsers (IE), remove alpha filter if it's unnecessary.
// update: doing _This always since IE9 beta seems to have broken the
// behavior if we rely on the programmatic filters collection.
var alphaReg = new RegExp(/[\s]*alpha\([^\)]*\)/g);
// important: note the lazy star! _This protects against
// multiple filters; we don't want to delete the other ones.
// update: also trimming extra whitespace around filter.
var ieOpacity = Math.round(100 * opacity);
var alphaFilter = "";
if (ieOpacity < 100 || ie9EarlierForce) {
alphaFilter = "alpha(opacity=" + ieOpacity + ") ";
//elmt.style["-ms-filter"] = "progid:DXImageTransform.Microsoft.Alpha(opacity=" + ieOpacity + ") ";
}
var newFilterValue = BuildNewCss(finalFilter, [alphaReg], alphaFilter);
SetStyleFilterIE(elmt, newFilterValue);
}
//if (!IsBrowserIE() || browserEngineVersion >= 9)
else {
elmt.style.opacity = opacity == 1 ? "" : Math.round(opacity * 100) / 100;
}
}
function SetStyleTransformInternal(elmt, transform) {
var rotate = transform.$Rotate || 0;
var scale = transform.$Scale == undefined ? 1 : transform.$Scale;
if (IsBrowserIe9Earlier()) {
var matrix = _This.$CreateMatrix(rotate / 180 * Math.PI, scale, scale);
SetStyleMatrixIE(elmt, (!rotate && scale == 1) ? null : matrix, _This.$GetMatrixOffset(matrix, transform.$OriginalWidth, transform.$OriginalHeight));
}
else {
//rotate(15deg) scale(.5) translateZ(0)
var transformProperty = GetTransformProperty(elmt);
if (transformProperty) {
var transformValue = "rotate(" + rotate % 360 + "deg) scale(" + scale + ")";
if (IsBrowserChrome() && webkitVersion > 535)
transformValue += " perspective(2000px)";
elmt.style[transformProperty] = transformValue;
}
}
}
_This.$SetStyleTransform = function (elmt, transform) {
if (IsBrowserBadTransform()) {
Delay(_This.$CreateCallback(null, SetStyleTransformInternal, elmt, transform));
}
else {
SetStyleTransformInternal(elmt, transform);
}
};
_This.$SetStyleTransformOrigin = function (elmt, transformOrigin) {
var transformProperty = GetTransformProperty(elmt);
if (transformProperty)
elmt.style[transformProperty + "Origin"] = transformOrigin;
};
_This.$CssScale = function (elmt, scale) {
if (IsBrowserIE() && browserEngineVersion < 9 || (browserEngineVersion < 10 && IsBrowserIeQuirks())) {
elmt.style.zoom = (scale == 1) ? "" : scale;
}
else {
var transformProperty = GetTransformProperty(elmt);
if (transformProperty) {
//rotate(15deg) scale(.5)
var transformValue = "scale(" + scale + ")";
var oldTransformValue = elmt.style[transformProperty];
var scaleReg = new RegExp(/[\s]*scale\(.*?\)/g);
var newTransformValue = BuildNewCss(oldTransformValue, [scaleReg], transformValue);
elmt.style[transformProperty] = newTransformValue;
}
}
};
_This.$EnableHWA = function (elmt) {
if (!elmt.style[GetTransformProperty(elmt)] || elmt.style[GetTransformProperty(elmt)] == "none")
elmt.style[GetTransformProperty(elmt)] = "perspective(2000px)";
};
_This.$DisableHWA = function (elmt) {
//if (force || elmt.style[GetTransformProperty(elmt)] == "perspective(2000px)")
elmt.style[GetTransformProperty(elmt)] = "none";
};
var ie8OffsetWidth = 0;
var ie8OffsetHeight = 0;
//var ie8WindowResizeCallbackHandlers;
//var ie8LastVerticalScrollbar;
//var toggleInfo = "";
//function Ie8WindowResizeFilter(window, handler) {
// var trigger = true;
// var checkElement = (IsBrowserIeQuirks() ? window.document.body : window.document.documentElement);
// if (checkElement) {
// //check vertical bar
// //var hasVerticalBar = checkElement.scrollHeight > checkElement.clientHeight;
// //var verticalBarToggle = hasVerticalBar != ie8LastVerticalScrollbar;
// //ie8LastVerticalScrollbar = hasVerticalBar;
// var widthChange = checkElement.offsetWidth - ie8OffsetWidth;
// var heightChange = checkElement.offsetHeight - ie8OffsetHeight;
// if (widthChange || heightChange) {
// ie8OffsetWidth += widthChange;
// ie8OffsetHeight += heightChange;
// }
// else
// trigger = false;
// }
// trigger && handler();
//}
//_This.$OnWindowResize = function (window, handler) {
// if (IsBrowserIE() && browserEngineVersion < 9) {
// if (!ie8WindowResizeCallbackHandlers) {
// ie8WindowResizeCallbackHandlers = [handler];
// handler = _This.$CreateCallback(null, Ie8WindowResizeFilter, window);
// }
// else {
// ie8WindowResizeCallbackHandlers.push(handler);
// return;
// }
// }
// _This.$AddEvent(window, "resize", handler);
//};
_This.$WindowResizeFilter = function (window, handler) {
return IsBrowserIe9Earlier() ? function () {
var trigger = true;
var checkElement = (IsBrowserIeQuirks() ? window.document.body : window.document.documentElement);
if (checkElement) {
//check vertical bar
//var hasVerticalBar = checkElement.scrollHeight > checkElement.clientHeight;
//var verticalBarToggle = hasVerticalBar != ie8LastVerticalScrollbar;
//ie8LastVerticalScrollbar = hasVerticalBar;
var widthChange = checkElement.offsetWidth - ie8OffsetWidth;
var heightChange = checkElement.offsetHeight - ie8OffsetHeight;
if (widthChange || heightChange) {
ie8OffsetWidth += widthChange;
ie8OffsetHeight += heightChange;
}
else
trigger = false;
}
trigger && handler();
} : handler;
};
_This.$MouseOverOutFilter = function (handler, target) {
/// <param name="target" type="HTMLDomElement">
/// The target element to detect mouse over/out events. (for ie < 9 compatibility)
/// </param>
$JssorDebug$.$Execute(function () {
if (!target) {
throw new Error("Null reference, parameter \"target\".");
}
});
return function (event) {
event = GetEvent(event);
var eventName = event.type;
var related = event.relatedTarget || (eventName == "mouseout" ? event.toElement : event.fromElement);
if (!related || (related !== target && !_This.$IsChild(target, related))) {
handler(event);
}
};
};
_This.$AddEvent = function (elmt, eventName, handler, useCapture) {
elmt = _This.$GetElement(elmt);
// technique from:
// http://blog.paranoidferret.com/index.php/2007/08/10/javascript-working-with-events/
if (elmt.addEventListener) {
if (eventName == "mousewheel") {
elmt.addEventListener("DOMMouseScroll", handler, useCapture);
}
// we are still going to add the mousewheel -- not a mistake!
// _This is for opera, since it uses onmousewheel but needs addEventListener.
elmt.addEventListener(eventName, handler, useCapture);
}
else if (elmt.attachEvent) {
elmt.attachEvent("on" + eventName, handler);
if (useCapture && elmt.setCapture) {
elmt.setCapture();
}
}
$JssorDebug$.$Execute(function () {
if (!elmt.addEventListener && !elmt.attachEvent) {
$JssorDebug$.$Fail("Unable to attach event handler, no known technique.");
}
});
};
_This.$RemoveEvent = function (elmt, eventName, handler, useCapture) {
elmt = _This.$GetElement(elmt);
// technique from:
// http://blog.paranoidferret.com/index.php/2007/08/10/javascript-working-with-events/
if (elmt.removeEventListener) {
if (eventName == "mousewheel") {
elmt.removeEventListener("DOMMouseScroll", handler, useCapture);
}
// we are still going to remove the mousewheel -- not a mistake!
// _This is for opera, since it uses onmousewheel but needs removeEventListener.
elmt.removeEventListener(eventName, handler, useCapture);
}
else if (elmt.detachEvent) {
elmt.detachEvent("on" + eventName, handler);
if (useCapture && elmt.releaseCapture) {
elmt.releaseCapture();
}
}
};
_This.$FireEvent = function (elmt, eventName) {
//var document = elmt.document;
$JssorDebug$.$Execute(function () {
if (!document.createEvent && !document.createEventObject) {
$JssorDebug$.$Fail("Unable to fire event, no known technique.");
}
if (!elmt.dispatchEvent && !elmt.fireEvent) {
$JssorDebug$.$Fail("Unable to fire event, no known technique.");
}
});
var evento;
if (document.createEvent) {
evento = document.createEvent("HTMLEvents");
evento.initEvent(eventName, false, false);
elmt.dispatchEvent(evento);
}
else {
var ieEventName = "on" + eventName;
evento = document.createEventObject();
//event.eventType = ieEventName;
//event.eventName = ieEventName;
elmt.fireEvent(ieEventName, evento);
}
};
_This.$AddEventBrowserMouseUp = function (handler, userCapture) {
_This.$AddEvent((IsBrowserIe9Earlier()) ? document : window, "mouseup", handler, userCapture);
};
_This.$RemoveEventBrowserMouseUp = function (handler, userCapture) {
_This.$RemoveEvent((IsBrowserIe9Earlier()) ? document : window, "mouseup", handler, userCapture);
};
//_This.$AddEventBrowserMouseDown = function (handler, userCapture) {
// _This.$AddEvent((IsBrowserIe9Earlier()) ? document : window, "mousedown", handler, userCapture);
//};
//_This.$RemoveEventBrowserMouseDown = function (handler, userCapture) {
// _This.$RemoveEvent((IsBrowserIe9Earlier()) ? document : window, "mousedown", handler, userCapture);
//};
_This.$CancelEvent = function (event) {
event = GetEvent(event);
// technique from:
// http://blog.paranoidferret.com/index.php/2007/08/10/javascript-working-with-events/
if (event.preventDefault) {
event.preventDefault(); // W3C for preventing default
}
event.cancel = true; // legacy for preventing default
event.returnValue = false; // IE for preventing default
};
_This.$StopEvent = function (event) {
event = GetEvent(event);
// technique from:
// http://blog.paranoidferret.com/index.php/2007/08/10/javascript-working-with-events/
if (event.stopPropagation) {
event.stopPropagation(); // W3C for stopping propagation
}
event.cancelBubble = true; // IE for stopping propagation
};
_This.$CreateCallback = function (object, method) {
// create callback args
var initialArgs = [].slice.call(arguments, 2);
// create closure to apply method
var callback = function () {
// concatenate new args, but make a copy of initialArgs first
var args = initialArgs.concat([].slice.call(arguments, 0));
return method.apply(object, args);
};
//$JssorDebug$.$LiveStamp(callback, "callback_" + ($Jssor$.$GetNow() & 0xFFFFFF));
return callback;
};
var _Freeer;
_This.$FreeElement = function (elmt) {
if (!_Freeer)
_Freeer = _This.$CreateDiv();
if (elmt) {
$Jssor$.$AppendChild(_Freeer, elmt);
$Jssor$.$ClearInnerHtml(_Freeer);
}
};
_This.$InnerText = function (elmt, text) {
if (text == undefined)
return elmt.textContent || elmt.innerText;
var textNode = document.createTextNode(text);
_This.$ClearInnerHtml(elmt);
elmt.appendChild(textNode);
};
_This.$InnerHtml = function (elmt, html) {
if (html == undefined)
return elmt.innerHTML;
elmt.innerHTML = html;
};
_This.$GetClientRect = function (elmt) {
var rect = elmt.getBoundingClientRect();
return { x: rect.left, y: rect.top, w: rect.right - rect.left, h: rect.bottom - rect.top };
};
_This.$ClearInnerHtml = function (elmt) {
elmt.innerHTML = "";
};
_This.$EncodeHtml = function (text) {
var div = _This.$CreateDiv();
_This.$InnerText(div, text);
return _This.$InnerHtml(div);
};
_This.$DecodeHtml = function (html) {
var div = _This.$CreateDiv();
_This.$InnerHtml(div, html);
return _This.$InnerText(div);
};
_This.$SelectElement = function (elmt) {
var userSelection;
if (window.getSelection) {
//W3C default
userSelection = window.getSelection();
}
var theRange = null;
if (document.createRange) {
theRange = document.createRange();
theRange.selectNode(elmt);
}
else {
theRange = document.body.createTextRange();
theRange.moveToElementText(elmt);
theRange.select();
}
//set user selection
if (userSelection)
userSelection.addRange(theRange);
};
_This.$DeselectElements = function () {
if (document.selection) {
document.selection.empty();
} else if (window.getSelection) {
window.getSelection().removeAllRanges();
}
};
_This.$Children = function (elmt) {
var children = [];
for (var tmpEl = elmt.firstChild; tmpEl; tmpEl = tmpEl.nextSibling) {
if (tmpEl.nodeType == 1) {
children.push(tmpEl);
}
}
return children;
};
function FindChild(elmt, attrValue, noDeep, attrName) {
attrName = attrName || "u";
for (elmt = elmt ? elmt.firstChild : null; elmt; elmt = elmt.nextSibling) {
if (elmt.nodeType == 1) {
if (AttributeEx(elmt, attrName) == attrValue)
return elmt;
if (!noDeep) {
var childRet = FindChild(elmt, attrValue, noDeep, attrName);
if (childRet)
return childRet;
}
}
}
}
_This.$FindChild = FindChild;
function FindChildren(elmt, attrValue, noDeep, attrName) {
attrName = attrName || "u";
var ret = [];
for (elmt = elmt ? elmt.firstChild : null; elmt; elmt = elmt.nextSibling) {
if (elmt.nodeType == 1) {
if (AttributeEx(elmt, attrName) == attrValue)
ret.push(elmt);
if (!noDeep) {
var childRet = FindChildren(elmt, attrValue, noDeep, attrName);
if (childRet.length)
ret = ret.concat(childRet);
}
}
}
return ret;
}
_This.$FindChildren = FindChildren;
function FindChildByTag(elmt, tagName, noDeep) {
for (elmt = elmt ? elmt.firstChild : null; elmt; elmt = elmt.nextSibling) {
if (elmt.nodeType == 1) {
if (elmt.tagName == tagName)
return elmt;
if (!noDeep) {
var childRet = FindChildByTag(elmt, tagName, noDeep);
if (childRet)
return childRet;
}
}
}
}
_This.$FindChildByTag = FindChildByTag;
function FindChildrenByTag(elmt, tagName, noDeep) {
var ret = [];
for (elmt = elmt ? elmt.firstChild : null; elmt; elmt = elmt.nextSibling) {
if (elmt.nodeType == 1) {
if (!tagName || elmt.tagName == tagName)
ret.push(elmt);
if (!noDeep) {
var childRet = FindChildrenByTag(elmt, tagName, noDeep);
if (childRet.length)
ret = ret.concat(childRet);
}
}
}
return ret;
}
_This.$FindChildrenByTag = FindChildrenByTag;
_This.$GetElementsByTag = function (elmt, tagName) {
return elmt.getElementsByTagName(tagName);
};
function Extend(target) {
for (var i = 1; i < arguments.length; i++) {
var options = arguments[i];
// Only deal with non-null/undefined values
if (options) {
// Extend the base object
for (var name in options) {
target[name] = options[name];
}
}
}
// Return the modified object
return target;
}
_This.$Extend = Extend;
function Unextend(target, options) {
$JssorDebug$.$Assert(options);
var unextended = {};
// Extend the base object
for (var name in target) {
if (target[name] != options[name]) {
unextended[name] = target[name];
}
}
// Return the modified object
return unextended;
}
_This.$Unextend = Unextend;
_This.$IsUndefined = function (obj) {
return type(obj) == "undefined";
};
_This.$IsFunction = function (obj) {
return type(obj) == "function";
};
_This.$IsArray = function (obj) {
return type(obj) == "array";
};
_This.$IsString = function (obj) {
return type(obj) == "string";
};
_This.$IsNumeric = function (obj) {
return !isNaN(ParseFloat(obj)) && isFinite(obj);
};
_This.$IsWindow = function (obj) {
return obj && obj == obj.window;
};
_This.$Type = type;
// args is for internal usage only
_This.$Each = each;
_This.$IsPlainObject = isPlainObject;
function CreateElement(tagName) {
return document.createElement(tagName);
}
_This.$CreateElement = CreateElement;
_This.$CreateDiv = function () {
return CreateElement("DIV", document);
};
_This.$CreateSpan = function () {
return CreateElement("SPAN", document);
};
_This.$EmptyFunction = function () { };
function Attribute(elmt, name, value) {
if (value == undefined)
return elmt.getAttribute(name);
elmt.setAttribute(name, value);
}
function AttributeEx(elmt, name) {
return Attribute(elmt, name) || Attribute(elmt, "data-" + name);
}
_This.$Attribute = Attribute;
_This.$AttributeEx = AttributeEx;
function ClassName(elmt, className) {
if (className == undefined)
return elmt.className;
elmt.className = className;
}
_This.$ClassName = ClassName;
function ToHash(array) {
var hash = {};
each(array, function (item) {
hash[item] = item;
});
return hash;
}
_This.$ToHash = ToHash;
function Join(separator, strings) {
/// <param name="separator" type="String">
/// The element to show the dialog around
/// </param>
/// <param name="strings" type="Array" value="['1']">
/// The element to show the dialog around
/// </param>
var joined = "";
each(strings, function (str) {
joined && (joined += separator);
joined += str;
});
return joined;
}
_This.$Join = Join;
_This.$AddClass = function (elmt, className) {
var newClassName = ClassName(elmt) + " " + className;
ClassName(elmt, Join(" ", ToHash(newClassName.match(REGEX_WHITESPACE_GLOBAL))));
};
_This.$RemoveClass = function (elmt, className) {
ClassName(elmt, Join(" ", _This.$Unextend(ToHash(ClassName(elmt).match(REGEX_WHITESPACE_GLOBAL)), ToHash(className.match(REGEX_WHITESPACE_GLOBAL)))));
};
_This.$ParentNode = function (elmt) {
return elmt.parentNode;
};
_This.$HideElement = function (elmt) {
_This.$CssDisplay(elmt, "none");
};
_This.$HideElements = function (elmts) {
for (var i = 0; i < elmts.length; i++) {
_This.$HideElement(elmts[i]);
}
};
_This.$ShowElement = function (elmt, hide) {
_This.$CssDisplay(elmt, hide ? "none" : "");
};
_This.$ShowElements = function (elmts, hide) {
for (var i = 0; i < elmts.length; i++) {
_This.$ShowElement(elmts[i], hide);
}
};
_This.$RemoveAttribute = function (elmt, attrbuteName) {
elmt.removeAttribute(attrbuteName);
};
_This.$CanClearClip = function () {
return IsBrowserIE() && browserRuntimeVersion < 10;
};
_This.$SetStyleClip = function (elmt, clip) {
if (clip) {
elmt.style.clip = "rect(" + Math.round(clip.$Top) + "px " + Math.round(clip.$Right) + "px " + Math.round(clip.$Bottom) + "px " + Math.round(clip.$Left) + "px)";
}
else {
var cssText = elmt.style.cssText;
var clipRegs = [
new RegExp(/[\s]*clip: rect\(.*?\)[;]?/i),
new RegExp(/[\s]*cliptop: .*?[;]?/i),
new RegExp(/[\s]*clipright: .*?[;]?/i),
new RegExp(/[\s]*clipbottom: .*?[;]?/i),
new RegExp(/[\s]*clipleft: .*?[;]?/i)
];
var newCssText = BuildNewCss(cssText, clipRegs, "");
$Jssor$.$CssCssText(elmt, newCssText);
}
};
_This.$GetNow = function () {
return new Date().getTime();
};
_This.$AppendChild = function (elmt, child) {
elmt.appendChild(child);
};
_This.$AppendChildren = function (elmt, children) {
each(children, function (child) {
_This.$AppendChild(elmt, child);
});
};
_This.$InsertBefore = function (elmt, child, refObject) {
elmt.insertBefore(child, refObject);
};
_This.$InsertAdjacentHtml = function (elmt, where, text) {
elmt.insertAdjacentHTML(where, text);
};
_This.$RemoveChild = function (elmt, child) {
elmt.removeChild(child);
};
_This.$RemoveChildren = function (elmt, children) {
each(children, function (child) {
_This.$RemoveChild(elmt, child);
});
};
_This.$ClearChildren = function (elmt) {
_This.$RemoveChildren(elmt, _This.$Children(elmt));
};
_This.$ParseInt = function (str, radix) {
return parseInt(str, radix || 10);
};
function ParseFloat(str) {
return parseFloat(str);
}
_This.$ParseFloat = ParseFloat;
_This.$IsChild = function (elmtA, elmtB) {
var body = document.body;
while (elmtB && elmtA != elmtB && body != elmtB) {
try {
elmtB = elmtB.parentNode;
} catch (e) {
// Firefox sometimes fires events for XUL elements, which throws
// a "permission denied" error. so this is not a child.
return false;
}
}
return elmtA == elmtB;
};
function CloneNode(elmt, noDeep) {
return elmt.cloneNode(!noDeep);
}
_This.$CloneNode = CloneNode;
function TranslateTransition(transition) {
if (transition) {
var flyDirection = transition.$FlyDirection;
if (flyDirection & 1) {
transition.x = transition.$ScaleHorizontal || 1;
}
if (flyDirection & 2) {
transition.x = -transition.$ScaleHorizontal || -1;
}
if (flyDirection & 4) {
transition.y = transition.$ScaleVertical || 1;
}
if (flyDirection & 8) {
transition.y = -transition.$ScaleVertical || -1;
}
if (transition.$Rotate == true)
transition.$Rotate = 1;
TranslateTransition(transition.$Brother);
}
}
_This.$TranslateTransitions = function (transitions) {
/// <summary>
/// For backward compatibility only.
/// </summary>
if (transitions) {
for (var i = 0; i < transitions.length; i++) {
TranslateTransition(transitions[i]);
}
for (var name in transitions) {
TranslateTransition(transitions[name]);
}
}
};
//function ImageLoader() {
// var _ThisImageLoader = this;
// var _BaseImageLoader = _This.$Inherit(_ThisImageLoader, $JssorObject$);
// var _ImageLoading = 1;
// var _MainImageSrc;
// var _MainImage;
// var _CompleteCallback;
// var _MainImageAbort;
// function LoadCompleteCallback(image, abort) {
// _ImageLoading--;
// if (image) {
// _This.$RemoveEvent(image, "load");
// _This.$RemoveEvent(image, "abort");
// _This.$RemoveEvent(image, "error");
// if (_MainImageSrc == image.src) {
// _MainImage = image;
// _MainImageAbort = abort;
// }
// }
// _CompleteCallback && _CompleteCallback(_MainImage, _MainImageAbort);
// }
// function LoadImage(src) {
// _ImageLoading++;
// if (IsBrowserOpera() && browserRuntimeVersion < 11.6 || !src) {
// LoadImageCallback(callback, null, !src);
// }
// else {
// var image = new Image();
// _This.$AddEvent(image, "load", _This.$CreateCallback(null, LoadImageCallback, image, false));
// var abortHandler = _This.$CreateCallback(null, LoadImageCallback, image, true);
// _This.$AddEvent(image, "abort", abortHandler);
// _This.$AddEvent(image, "error", abortHandler);
// image.src = src;
// }
// }
// _ThisImageLoader.$LoadImage = function (src, callback) {
// _MainImageSrc = src;
// _CompleteCallback = callback;
// LoadImage(src);
// LoadComplete();
// };
// _ThisImageLoader.$LoadImages = function (imageElmts, mainImageElmt, callback) {
// mainImageElmt && (_MainImageSrc = mainImageElmt.src);
// _CompleteCallback = callback;
// each(imageElmts, function (imageElmt) {
// LoadImage(imageElmt.src);
// });
// LoadComplete();
// };
//}
_This.$LoadImage = function (src, callback) {
var image = new Image();
function LoadImageCompleteHandler(abort) {
_This.$RemoveEvent(image, "load", LoadImageCompleteHandler);
_This.$RemoveEvent(image, "abort", ErrorOrAbortHandler);
_This.$RemoveEvent(image, "error", ErrorOrAbortHandler);
if (callback)
callback(image, abort);
}
function ErrorOrAbortHandler() {
LoadImageCompleteHandler(true);
}
if (IsBrowserOpera() && browserRuntimeVersion < 11.6 || !src) {
LoadImageCompleteHandler(!src);
}
else {
_This.$AddEvent(image, "load", LoadImageCompleteHandler);
_This.$AddEvent(image, "abort", ErrorOrAbortHandler);
_This.$AddEvent(image, "error", ErrorOrAbortHandler);
image.src = src;
}
};
_This.$LoadImages = function (imageElmts, mainImageElmt, callback) {
var _ImageLoading = imageElmts.length + 1;
function LoadImageCompleteEventHandler(image, abort) {
_ImageLoading--;
if (mainImageElmt && image && image.src == mainImageElmt.src)
mainImageElmt = image;
!_ImageLoading && callback && callback(mainImageElmt);
}
each(imageElmts, function (imageElmt) {
_This.$LoadImage(imageElmt.src, LoadImageCompleteEventHandler);
});
LoadImageCompleteEventHandler();
};
_This.$BuildElement = function (template, tagName, replacer, createCopy) {
if (createCopy)
template = CloneNode(template);
var templateHolders = $Jssor$.$GetElementsByTag(template, tagName);
for (var j = templateHolders.length -1; j > -1; j--) {
var templateHolder = templateHolders[j];
var replaceItem = CloneNode(replacer);
ClassName(replaceItem, ClassName(templateHolder));
$Jssor$.$CssCssText(replaceItem, templateHolder.style.cssText);
var thumbnailPlaceHolderParent = $Jssor$.$ParentNode(templateHolder);
$Jssor$.$InsertBefore(thumbnailPlaceHolderParent, replaceItem, templateHolder);
$Jssor$.$RemoveChild(thumbnailPlaceHolderParent, templateHolder);
}
return template;
};
var _MouseDownButtons;
function JssorButtonEx(elmt) {
var _Self = this;
var _OriginClassName;
var _IsMouseDown; //class name 'dn'
var _IsActive; //class name 'av'
var _IsDisabled; //class name 'ds'
function Highlight() {
var className = _OriginClassName;
if (_IsDisabled) {
className += 'ds';
}
else if (_IsMouseDown) {
className += 'dn';
}
else if (_IsActive) {
className += "av";
}
ClassName(elmt, className);
}
function OnMouseDown(event) {
if (_IsDisabled) {
_This.$CancelEvent(event);
}
else {
_MouseDownButtons.push(_Self);
_IsMouseDown = true;
Highlight();
}
}
_Self.$MouseUp = function () {
/// <summary>
/// Internal member function, do not use it.
/// </summary>
/// <private />
_IsMouseDown = false;
Highlight();
};
_Self.$Activate = function (activate) {
if (activate != undefined) {
_IsActive = activate;
Highlight();
}
else {
return _IsActive;
}
};
_Self.$Enable = function (enable) {
if (enable != undefined) {
_IsDisabled = !enable;
Highlight();
}
else {
return !_IsDisabled;
}
};
//JssorButtonEx Constructor
{
elmt = _This.$GetElement(elmt);
if (!_MouseDownButtons) {
_This.$AddEventBrowserMouseUp(function () {
var oldMouseDownButtons = _MouseDownButtons;
_MouseDownButtons = [];
each(oldMouseDownButtons, function (button) {
button.$MouseUp();
});
});
_MouseDownButtons = [];
}
_OriginClassName = ClassName(elmt);
$Jssor$.$AddEvent(elmt, "mousedown", OnMouseDown);
}
}
_This.$Buttonize = function (elmt) {
return new JssorButtonEx(elmt);
};
_This.$Css = Css;
_This.$CssN = CssN;
_This.$CssP = CssP;
_This.$CssOverflow = CssProxy("overflow");
_This.$CssTop = CssProxy("top", 2);
_This.$CssLeft = CssProxy("left", 2);
_This.$CssWidth = CssProxy("width", 2);
_This.$CssHeight = CssProxy("height", 2);
_This.$CssMarginLeft = CssProxy("marginLeft", 2);
_This.$CssMarginTop = CssProxy("marginTop", 2);
_This.$CssPosition = CssProxy("position");
_This.$CssDisplay = CssProxy("display");
_This.$CssZIndex = CssProxy("zIndex", 1);
_This.$CssFloat = function (elmt, float) {
return Css(elmt, IsBrowserIE() ? "styleFloat" : "cssFloat", float);
};
_This.$CssOpacity = function (elmt, opacity, ie9EarlierForce) {
if (opacity != undefined) {
SetStyleOpacity(elmt, opacity, ie9EarlierForce);
}
else {
return GetStyleOpacity(elmt);
}
};
_This.$CssCssText = function (elmt, text) {
if (text != undefined) {
elmt.style.cssText = text;
}
else {
return elmt.style.cssText;
}
};
var _StyleGetter = {
$Opacity: _This.$CssOpacity,
$Top: _This.$CssTop,
$Left: _This.$CssLeft,
$Width: _This.$CssWidth,
$Height: _This.$CssHeight,
$Position: _This.$CssPosition,
$Display: _This.$CssDisplay,
$ZIndex: _This.$CssZIndex
};
var _StyleSetterReserved;
function StyleSetter() {
if (!_StyleSetterReserved) {
_StyleSetterReserved = Extend({
$MarginTop: _This.$CssMarginTop,
$MarginLeft: _This.$CssMarginLeft,
$Clip: _This.$SetStyleClip,
$Transform: _This.$SetStyleTransform
}, _StyleGetter);
}
return _StyleSetterReserved;
}
function StyleSetterEx() {
StyleSetter();
//For Compression Only
_StyleSetterReserved.$Transform = _StyleSetterReserved.$Transform;
return _StyleSetterReserved;
}
_This.$StyleSetter = StyleSetter;
_This.$StyleSetterEx = StyleSetterEx;
_This.$GetStyles = function (elmt, originStyles) {
StyleSetter();
var styles = {};
each(originStyles, function (value, key) {
if (_StyleGetter[key]) {
styles[key] = _StyleGetter[key](elmt);
}
});
return styles;
};
_This.$SetStyles = function (elmt, styles) {
var styleSetter = StyleSetter();
each(styles, function (value, key) {
styleSetter[key] && styleSetter[key](elmt, value);
});
};
_This.$SetStylesEx = function (elmt, styles) {
StyleSetterEx();
_This.$SetStyles(elmt, styles);
};
$JssorMatrix$ = new function () {
var _ThisMatrix = this;
function Multiply(ma, mb) {
var acs = ma[0].length;
var rows = ma.length;
var cols = mb[0].length;
var matrix = [];
for (var r = 0; r < rows; r++) {
var row = matrix[r] = [];
for (var c = 0; c < cols; c++) {
var unitValue = 0;
for (var ac = 0; ac < acs; ac++) {
unitValue += ma[r][ac] * mb[ac][c];
}
row[c] = unitValue;
}
}
return matrix;
}
_ThisMatrix.$ScaleX = function (matrix, sx) {
return _ThisMatrix.$ScaleXY(matrix, sx, 0);
};
_ThisMatrix.$ScaleY = function (matrix, sy) {
return _ThisMatrix.$ScaleXY(matrix, 0, sy);
};
_ThisMatrix.$ScaleXY = function (matrix, sx, sy) {
return Multiply(matrix, [[sx, 0], [0, sy]]);
};
_ThisMatrix.$TransformPoint = function (matrix, p) {
var pMatrix = Multiply(matrix, [[p.x], [p.y]]);
return Point(pMatrix[0][0], pMatrix[1][0]);
};
};
_This.$CreateMatrix = function (alpha, scaleX, scaleY) {
var cos = Math.cos(alpha);
var sin = Math.sin(alpha);
//var r11 = cos;
//var r21 = sin;
//var r12 = -sin;
//var r22 = cos;
//var m11 = cos * scaleX;
//var m12 = -sin * scaleY;
//var m21 = sin * scaleX;
//var m22 = cos * scaleY;
return [[cos * scaleX, -sin * scaleY], [sin * scaleX, cos * scaleY]];
};
_This.$GetMatrixOffset = function (matrix, width, height) {
var p1 = $JssorMatrix$.$TransformPoint(matrix, Point(-width / 2, -height / 2));
var p2 = $JssorMatrix$.$TransformPoint(matrix, Point(width / 2, -height / 2));
var p3 = $JssorMatrix$.$TransformPoint(matrix, Point(width / 2, height / 2));
var p4 = $JssorMatrix$.$TransformPoint(matrix, Point(-width / 2, height / 2));
return Point(Math.min(p1.x, p2.x, p3.x, p4.x) + width / 2, Math.min(p1.y, p2.y, p3.y, p4.y) + height / 2);
};
_This.$Transform = function (fromStyles, toStyles, interPosition, easings, durings, rounds, options) {
var currentStyles = toStyles;
if (fromStyles) {
currentStyles = {};
for (var key in toStyles) {
var round = rounds[key] || 1;
var during = durings[key] || [0, 1];
var propertyInterPosition = (interPosition - during[0]) / during[1];
propertyInterPosition = Math.min(Math.max(propertyInterPosition, 0), 1);
propertyInterPosition = propertyInterPosition * round;
var floorPosition = Math.floor(propertyInterPosition);
if (propertyInterPosition != floorPosition)
propertyInterPosition -= floorPosition;
var easing = easings[key] || easings.$Default;
var easingValue = easing(propertyInterPosition);
var currentPropertyValue;
var value = fromStyles[key];
var toValue = toStyles[key];
if ($Jssor$.$IsNumeric(toValue)) {
currentPropertyValue = value + (toValue - value) * easingValue;
}
else {
currentPropertyValue = $Jssor$.$Extend({ $Offset: {} }, fromStyles[key]);
$Jssor$.$Each(toValue.$Offset, function (rectX, n) {
var offsetValue = rectX * easingValue;
currentPropertyValue.$Offset[n] = offsetValue;
currentPropertyValue[n] += offsetValue;
});
}
currentStyles[key] = currentPropertyValue;
}
if (fromStyles.$Zoom) {
currentStyles.$Transform = { $Rotate: currentStyles.$Rotate || 0, $Scale: currentStyles.$Zoom, $OriginalWidth: options.$OriginalWidth, $OriginalHeight: options.$OriginalHeight };
}
}
if (toStyles.$Clip && options.$Move) {
var styleFrameNClipOffset = currentStyles.$Clip.$Offset;
var offsetY = (styleFrameNClipOffset.$Top || 0) + (styleFrameNClipOffset.$Bottom || 0);
var offsetX = (styleFrameNClipOffset.$Left || 0) + (styleFrameNClipOffset.$Right || 0);
currentStyles.$Left = (currentStyles.$Left || 0) + offsetX;
currentStyles.$Top = (currentStyles.$Top || 0) + offsetY;
currentStyles.$Clip.$Left -= offsetX;
currentStyles.$Clip.$Right -= offsetX;
currentStyles.$Clip.$Top -= offsetY;
currentStyles.$Clip.$Bottom -= offsetY;
}
if (currentStyles.$Clip && $Jssor$.$CanClearClip() && !currentStyles.$Clip.$Top && !currentStyles.$Clip.$Left && (currentStyles.$Clip.$Right == options.$OriginalWidth) && (currentStyles.$Clip.$Bottom == options.$OriginalHeight))
currentStyles.$Clip = null;
return currentStyles;
};
};
//$JssorObject$
var $JssorObject$ = window.$JssorObject$ = function () {
var _ThisObject = this;
// Fields
var _Listeners = []; // dictionary of eventName --> array of handlers
var _Listenees = [];
// Private Methods
function AddListener(eventName, handler) {
$JssorDebug$.$Execute(function () {
if (eventName == undefined || eventName == null)
throw new Error("param 'eventName' is null or empty.");
if (typeof (handler) != "function") {
throw "param 'handler' must be a function.";
}
$Jssor$.$Each(_Listeners, function (listener) {
if (listener.$EventName == eventName && listener.$Handler === handler) {
throw new Error("The handler listened to the event already, cannot listen to the same event of the same object with the same handler twice.");
}
});
});
_Listeners.push({ $EventName: eventName, $Handler: handler });
}
function RemoveListener(eventName, handler) {
$JssorDebug$.$Execute(function () {
if (eventName == undefined || eventName == null)
throw new Error("param 'eventName' is null or empty.");
if (typeof (handler) != "function") {
throw "param 'handler' must be a function.";
}
});
$Jssor$.$Each(_Listeners, function (listener, index) {
if (listener.$EventName == eventName && listener.$Handler === handler) {
_Listeners.splice(index, 1);
}
});
}
function ClearListeners() {
_Listeners = [];
}
function ClearListenees() {
$Jssor$.$Each(_Listenees, function (listenee) {
$Jssor$.$RemoveEvent(listenee.$Obj, listenee.$EventName, listenee.$Handler);
});
_Listenees = [];
}
//Protected Methods
_ThisObject.$Listen = function (obj, eventName, handler, useCapture) {
$JssorDebug$.$Execute(function () {
if (!obj)
throw new Error("param 'obj' is null or empty.");
if (eventName == undefined || eventName == null)
throw new Error("param 'eventName' is null or empty.");
if (typeof (handler) != "function") {
throw "param 'handler' must be a function.";
}
$Jssor$.$Each(_Listenees, function (listenee) {
if (listenee.$Obj === obj && listenee.$EventName == eventName && listenee.$Handler === handler) {
throw new Error("The handler listened to the event already, cannot listen to the same event of the same object with the same handler twice.");
}
});
});
$Jssor$.$AddEvent(obj, eventName, handler, useCapture);
_Listenees.push({ $Obj: obj, $EventName: eventName, $Handler: handler });
};
_ThisObject.$Unlisten = function (obj, eventName, handler) {
$JssorDebug$.$Execute(function () {
if (!obj)
throw new Error("param 'obj' is null or empty.");
if (eventName == undefined || eventName == null)
throw new Error("param 'eventName' is null or empty.");
if (typeof (handler) != "function") {
throw "param 'handler' must be a function.";
}
});
$Jssor$.$Each(_Listenees, function (listenee, index) {
if (listenee.$Obj === obj && listenee.$EventName == eventName && listenee.$Handler === handler) {
$Jssor$.$RemoveEvent(obj, eventName, handler);
_Listenees.splice(index, 1);
}
});
};
_ThisObject.$UnlistenAll = ClearListenees;
// Public Methods
_ThisObject.$On = _ThisObject.addEventListener = AddListener;
_ThisObject.$Off = _ThisObject.removeEventListener = RemoveListener;
_ThisObject.$TriggerEvent = function (eventName) {
var args = [].slice.call(arguments, 1);
$Jssor$.$Each(_Listeners, function (listener) {
try {
listener.$EventName == eventName && listener.$Handler.apply(window, args);
} catch (e) {
// handler threw an error, ignore, go on to next one
$JssorDebug$.$Error(e.name + " while executing " + eventName +
" handler: " + e.message, e);
}
});
};
_ThisObject.$Destroy = function () {
ClearListenees();
ClearListeners();
for (var name in _ThisObject)
delete _ThisObject[name];
};
$JssorDebug$.$C_AbstractClass(_ThisObject);
};
$JssorAnimator$ = function (delay, duration, options, elmt, fromStyles, toStyles) {
delay = delay || 0;
var _ThisAnimator = this;
var _AutoPlay;
var _Hiden;
var _CombineMode;
var _PlayToPosition;
var _PlayDirection;
var _NoStop;
var _TimeStampLastFrame = 0;
var _SubEasings;
var _SubRounds;
var _SubDurings;
var _Callback;
var _Position_Current = 0;
var _Position_Display = 0;
var _Hooked;
var _Position_InnerBegin = delay;
var _Position_InnerEnd = delay + duration;
var _Position_OuterBegin;
var _Position_OuterEnd;
var _LoopLength;
var _NestedAnimators = [];
var _StyleSetter;
function GetPositionRange(position, begin, end) {
var range = 0;
if (position < begin)
range = -1;
else if (position > end)
range = 1;
return range;
}
function GetInnerPositionRange(position) {
return GetPositionRange(position, _Position_InnerBegin, _Position_InnerEnd);
}
function GetOuterPositionRange(position) {
return GetPositionRange(position, _Position_OuterBegin, _Position_OuterEnd);
}
function Shift(offset) {
_Position_OuterBegin += offset;
_Position_OuterEnd += offset;
_Position_InnerBegin += offset;
_Position_InnerEnd += offset;
_Position_Current += offset;
_Position_Display += offset;
$Jssor$.$Each(_NestedAnimators, function (animator) {
animator, animator.$Shift(offset);
});
}
function Locate(position, relative) {
var offset = position - _Position_OuterBegin + delay * relative;
Shift(offset);
//$JssorDebug$.$Execute(function () {
// _ThisAnimator.$Position_InnerBegin = _Position_InnerBegin;
// _ThisAnimator.$Position_InnerEnd = _Position_InnerEnd;
// _ThisAnimator.$Position_OuterBegin = _Position_OuterBegin;
// _ThisAnimator.$Position_OuterEnd = _Position_OuterEnd;
//});
return _Position_OuterEnd;
}
function GoToPosition(positionOuter, force) {
var trimedPositionOuter = positionOuter;
if (_LoopLength && (trimedPositionOuter >= _Position_OuterEnd || trimedPositionOuter <= _Position_OuterBegin)) {
trimedPositionOuter = ((trimedPositionOuter - _Position_OuterBegin) % _LoopLength + _LoopLength) % _LoopLength + _Position_OuterBegin;
}
if (!_Hooked || _NoStop || force || _Position_Current != trimedPositionOuter) {
var positionToDisplay = Math.min(trimedPositionOuter, _Position_OuterEnd);
positionToDisplay = Math.max(positionToDisplay, _Position_OuterBegin);
if (!_Hooked || _NoStop || force || positionToDisplay != _Position_Display) {
if (toStyles) {
var interPosition = (positionToDisplay - _Position_InnerBegin) / (duration || 1);
//if (options.$Optimize && $Jssor$.$IsBrowserChrome() && duration) {
// interPosition = Math.round(interPosition / 8 * duration) * 8 / duration;
//}
if (options.$Reverse)
interPosition = 1 - interPosition;
var currentStyles = $Jssor$.$Transform(fromStyles, toStyles, interPosition, _SubEasings, _SubDurings, _SubRounds, options);
$Jssor$.$Each(currentStyles, function (value, key) {
_StyleSetter[key] && _StyleSetter[key](elmt, value);
});
}
_ThisAnimator.$OnInnerOffsetChange(_Position_Display - _Position_InnerBegin, positionToDisplay - _Position_InnerBegin);
}
_Position_Display = positionToDisplay;
$Jssor$.$Each(_NestedAnimators, function (animator, i) {
var nestedAnimator = positionOuter < _Position_Current ? _NestedAnimators[_NestedAnimators.length - i - 1] : animator;
nestedAnimator.$GoToPosition(positionOuter, force);
});
var positionOld = _Position_Current;
var positionNew = positionOuter;
_Position_Current = trimedPositionOuter;
_Hooked = true;
_ThisAnimator.$OnPositionChange(positionOld, positionNew);
}
}
function Join(animator, combineMode) {
/// <summary>
/// Combine another animator as nested animator
/// </summary>
/// <param name="animator" type="$JssorAnimator$">
/// An instance of $JssorAnimator$
/// </param>
/// <param name="combineMode" type="int">
/// 0: parallel - place the animator parallel to this animator.
/// 1: chain - chain the animator at the _Position_InnerEnd of this animator.
/// </param>
$JssorDebug$.$Execute(function () {
if (combineMode !== 0 && combineMode !== 1)
$JssorDebug$.$Fail("Argument out of range, the value of 'combineMode' should be either 0 or 1.");
});
if (combineMode)
animator.$Locate(_Position_OuterEnd, 1);
_Position_OuterEnd = Math.max(_Position_OuterEnd, animator.$GetPosition_OuterEnd());
_NestedAnimators.push(animator);
}
var RequestAnimationFrame = window.requestAnimationFrame
|| window.webkitRequestAnimationFrame
|| window.mozRequestAnimationFrame
|| window.msRequestAnimationFrame;
if ($Jssor$.$IsBrowserSafari() && $Jssor$.$BrowserVersion() < 7) {
RequestAnimationFrame = null;
$JssorDebug$.$Log("Custom animation frame for safari before 7.");
}
RequestAnimationFrame = RequestAnimationFrame || function (callback) {
$Jssor$.$Delay(callback, options.$Interval);
};
function ShowFrame() {
if (_AutoPlay) {
var now = $Jssor$.$GetNow();
var timeOffset = Math.min(now - _TimeStampLastFrame, options.$IntervalMax);
var timePosition = _Position_Current + timeOffset * _PlayDirection;
_TimeStampLastFrame = now;
if (timePosition * _PlayDirection >= _PlayToPosition * _PlayDirection)
timePosition = _PlayToPosition;
GoToPosition(timePosition);
if (!_NoStop && timePosition * _PlayDirection >= _PlayToPosition * _PlayDirection) {
Stop(_Callback);
}
else {
RequestAnimationFrame(ShowFrame);
}
}
}
function PlayToPosition(toPosition, callback, noStop) {
if (!_AutoPlay) {
_AutoPlay = true;
_NoStop = noStop
_Callback = callback;
toPosition = Math.max(toPosition, _Position_OuterBegin);
toPosition = Math.min(toPosition, _Position_OuterEnd);
_PlayToPosition = toPosition;
_PlayDirection = _PlayToPosition < _Position_Current ? -1 : 1;
_ThisAnimator.$OnStart();
_TimeStampLastFrame = $Jssor$.$GetNow();
RequestAnimationFrame(ShowFrame);
}
}
function Stop(callback) {
if (_AutoPlay) {
_NoStop = _AutoPlay = _Callback = false;
_ThisAnimator.$OnStop();
if (callback)
callback();
}
}
_ThisAnimator.$Play = function (positionLength, callback, noStop) {
PlayToPosition(positionLength ? _Position_Current + positionLength : _Position_OuterEnd, callback, noStop);
};
_ThisAnimator.$PlayToPosition = PlayToPosition;
_ThisAnimator.$PlayToBegin = function (callback, noStop) {
PlayToPosition(_Position_OuterBegin, callback, noStop);
};
_ThisAnimator.$PlayToEnd = function (callback, noStop) {
PlayToPosition(_Position_OuterEnd, callback, noStop);
};
_ThisAnimator.$Stop = Stop;
_ThisAnimator.$Continue = function (toPosition) {
PlayToPosition(toPosition);
};
_ThisAnimator.$GetPosition = function () {
return _Position_Current;
};
_ThisAnimator.$GetPlayToPosition = function () {
return _PlayToPosition;
};
_ThisAnimator.$GetPosition_Display = function () {
return _Position_Display;
};
_ThisAnimator.$GoToPosition = GoToPosition;
_ThisAnimator.$GoToBegin = function () {
GoToPosition(_Position_OuterBegin, true);
};
_ThisAnimator.$GoToEnd = function () {
GoToPosition(_Position_OuterEnd, true);
};
_ThisAnimator.$Move = function (offset) {
GoToPosition(_Position_Current + offset);
};
_ThisAnimator.$CombineMode = function () {
return _CombineMode;
};
_ThisAnimator.$GetDuration = function () {
return duration;
};
_ThisAnimator.$IsPlaying = function () {
return _AutoPlay;
};
_ThisAnimator.$IsOnTheWay = function () {
return _Position_Current > _Position_InnerBegin && _Position_Current <= _Position_InnerEnd;
};
_ThisAnimator.$SetLoopLength = function (length) {
_LoopLength = length;
};
_ThisAnimator.$Locate = Locate;
_ThisAnimator.$Shift = Shift;
_ThisAnimator.$Join = Join;
_ThisAnimator.$Combine = function (animator) {
/// <summary>
/// Combine another animator parallel to this animator
/// </summary>
/// <param name="animator" type="$JssorAnimator$">
/// An instance of $JssorAnimator$
/// </param>
Join(animator, 0);
};
_ThisAnimator.$Chain = function (animator) {
/// <summary>
/// Chain another animator at the _Position_InnerEnd of this animator
/// </summary>
/// <param name="animator" type="$JssorAnimator$">
/// An instance of $JssorAnimator$
/// </param>
Join(animator, 1);
};
_ThisAnimator.$GetPosition_InnerBegin = function () {
/// <summary>
/// Internal member function, do not use it.
/// </summary>
/// <private />
/// <returns type="int" />
return _Position_InnerBegin;
};
_ThisAnimator.$GetPosition_InnerEnd = function () {
/// <summary>
/// Internal member function, do not use it.
/// </summary>
/// <private />
/// <returns type="int" />
return _Position_InnerEnd;
};
_ThisAnimator.$GetPosition_OuterBegin = function () {
/// <summary>
/// Internal member function, do not use it.
/// </summary>
/// <private />
/// <returns type="int" />
return _Position_OuterBegin;
};
_ThisAnimator.$GetPosition_OuterEnd = function () {
/// <summary>
/// Internal member function, do not use it.
/// </summary>
/// <private />
/// <returns type="int" />
return _Position_OuterEnd;
};
_ThisAnimator.$OnPositionChange = _ThisAnimator.$OnStart = _ThisAnimator.$OnStop = _ThisAnimator.$OnInnerOffsetChange = $Jssor$.$EmptyFunction;
_ThisAnimator.$Version = $Jssor$.$GetNow();
//Constructor 1
{
options = $Jssor$.$Extend({
$Interval: 16,
$IntervalMax: 50
}, options);
//Sodo statement, for development time intellisence only
$JssorDebug$.$Execute(function () {
options = $Jssor$.$Extend({
$LoopLength: undefined,
$Setter: undefined,
$Easing: undefined
}, options);
});
_LoopLength = options.$LoopLength;
_StyleSetter = $Jssor$.$Extend({}, $Jssor$.$StyleSetter(), options.$Setter);
_Position_OuterBegin = _Position_InnerBegin = delay;
_Position_OuterEnd = _Position_InnerEnd = delay + duration;
_SubRounds = options.$Round || {};
_SubDurings = options.$During || {};
_SubEasings = $Jssor$.$Extend({ $Default: $Jssor$.$IsFunction(options.$Easing) && options.$Easing || $JssorEasing$.$EaseSwing }, options.$Easing);
}
};
function $JssorPlayerClass$() {
var _ThisPlayer = this;
var _PlayerControllers = [];
function PlayerController(playerElement) {
var _SelfPlayerController = this;
var _PlayerInstance;
var _PlayerInstantces = [];
function OnPlayerInstanceDataAvailable(event) {
var srcElement = $Jssor$.$EventSrc(event);
_PlayerInstance = srcElement.pInstance;
$Jssor$.$RemoveEvent(srcElement, "dataavailable", OnPlayerInstanceDataAvailable);
$Jssor$.$Each(_PlayerInstantces, function (playerInstance) {
if (playerInstance != _PlayerInstance) {
playerInstance.$Remove();
}
});
playerElement.pTagName = _PlayerInstance.tagName;
_PlayerInstantces = null;
}
function HandlePlayerInstance(playerInstanceElement) {
var playerHandler;
if (!playerInstanceElement.pInstance) {
var playerHandlerAttribute = $Jssor$.$AttributeEx(playerInstanceElement, "pHandler");
if ($JssorPlayer$[playerHandlerAttribute]) {
$Jssor$.$AddEvent(playerInstanceElement, "dataavailable", OnPlayerInstanceDataAvailable);
playerHandler = new $JssorPlayer$[playerHandlerAttribute](playerElement, playerInstanceElement);
_PlayerInstantces.push(playerHandler);
$JssorDebug$.$Execute(function () {
if ($Jssor$.$Type(playerHandler.$Remove) != "function") {
$JssorDebug$.$Fail("'pRemove' interface not implemented for player handler '" + playerHandlerAttribute + "'.");
}
});
}
}
return playerHandler;
}
_SelfPlayerController.$InitPlayerController = function () {
if (!playerElement.pInstance && !HandlePlayerInstance(playerElement)) {
var playerInstanceElements = $Jssor$.$Children(playerElement);
$Jssor$.$Each(playerInstanceElements, function (playerInstanceElement) {
HandlePlayerInstance(playerInstanceElement);
});
}
};
}
_ThisPlayer.$EVT_SWITCH = 21;
_ThisPlayer.$FetchPlayers = function (elmt) {
elmt = elmt || document.body;
var playerElements = $Jssor$.$FindChildren(elmt, "player");
$Jssor$.$Each(playerElements, function (playerElement) {
if (!_PlayerControllers[playerElement.pId]) {
playerElement.pId = _PlayerControllers.length;
_PlayerControllers.push(new PlayerController(playerElement));
}
var playerController = _PlayerControllers[playerElement.pId];
playerController.$InitPlayerController();
});
};
} | 123gosaigon | trunk/ 123gosaigon/templates/js/jssor.js | JavaScript | asf20 | 89,724 |
.sp-banner {
margin: 0 10px;
padding: 15px 0 5px;
}
.namecard {
float: left;
}
.imgcard {
float: right;
}
.imgcard li {
float: left;
padding-left: 12px;
}
.sp {
margin: 0 10px;
}
.sp-left {
float: left;
margin-left: -10px;
}
.sp-left .promain{
width:180px;
margin: 0;
}
.sp .sp-right {
display: block;
float: right;
margin: 0 -15px;
width: 800px;
}
.sp .sp-right .block {
float: left;
}
.sp-right .block ul li{
width:170px;
padding: 0 15px 10px;
}
.sp-right .block ul li h2 {
color: #3861ea;
text-align: center;
} | 123gosaigon | trunk/ 123gosaigon/templates/css/sanpham.css | CSS | asf20 | 626 |
.block-main #slider1_container,.block-main #slider2_container,.block-main #slider3_container,.block-main #slider4_container {
margin:0 30px;
}
#slider1_container h2,#slider2_container h2,#slider3_container h2,#slider4_container h2 {
color: #3861ea;
text-align: center;
}
#slider1_container,#slider2_container,#slider3_container,#slider3_container{
overflow:visible;
}
| 123gosaigon | trunk/ 123gosaigon/templates/css/slider_carousel.css | CSS | asf20 | 394 |
.quitrinh {
padding: 10px 0;
}
.quitrinh .text {
color: #1c7fc3;
float: left;
font-size: 16px;
font-weight: bold;
width: 200px;
}
.quitrinh .search {
float: right;
width: 190px;
}
.quitrinh .txt-search {
float: left;
color:#afb1b4;
}
.quitrinh .drop-search {
float: right;
}
.quitrinh #drop_search {
padding: 2px;
width: 85px;
color: #afb1b4;
}
.slider-print {
margin: 0 -7px;
}
.slider-item h2{
color:#34b5f1;
font-size:14px;
}
.slider-item {
border: 1px solid #d8d9db;
padding: 10px 7px;
margin: 5px 7px;
width: 217px;
position:relative;
float:left;
}
.slider-item p {
padding: 5px 0;
line-height: 20px;
}
.slider-item .img_tem{
background:url(../images/img_tem.gif) no-repeat;
width:23px;
height:23px;
position:absolute;
right: -19px;
top: 50px;
}
.slider-item:last-child .img_tem{
background: none;
}
.hoadon {
padding: 5px 0;
}
.hoadon-title li {
color: #ec6400;
float: left;
font-weight: bold;
}
.hoadon-title {
margin: 0 -3px;
}
.line-hoadon {
border-bottom: 1px solid #ccc;
margin: 1px 0 10px;
}
.hoadon-title a {
color: #ec6400;
padding: 0 3px;
font-weight: bold;
}
.hoadon-main {
margin: 0 -10px;
}
.hoadon-block li {
float: left;
margin: 0 12px;
}
.hoadon-block img {
height: 175px;
width: 175px;
}
.hoadon-block h2 {
color: #3861ea;
text-align: center;
}
.hoadon-block h2 {
color: #3861ea;
text-align: center;
}
.quidinh_bottom {
padding: 10px;
} | 123gosaigon | trunk/ 123gosaigon/templates/css/quitrinh.css | CSS | asf20 | 1,631 |
@charset "utf-8";
/* CSS Document http://blog.mironabramson.com*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
margin:0;
padding:0;
border:0;
outline:0;
font-weight:inherit;
font-style:inherit;
font-size:100%;
font-family:inherit;
vertical-align:baseline;
}
body {
font-family:Verdana, Tahoma, Arial, sans-serif;
line-height: 1.3em;
font-size: 12px;
color:#444;
background-color:#d8d9db;
}
ol, ul {
list-style:none;
}
table {
border-collapse:separate;
border-spacing:0;
}
caption, th, td {
text-align:left;
font-weight:normal;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
/*color: #999;*/
}
a:hover {
text-decoration: none;
font-weight: 400;
color:#AC2B2B;
}
/*h2 {
font-size:12px;
margin:0 0 10px;
padding:7px 5px 0px 22px;
height:15px;
}*/
.wrapper {
margin:0 auto;
}
.wrap{
width:995px;
margin:0 auto;
}
.clear{
clear:both;
}
/*================= header =================*/
#header {
margin:0; padding:0;
background-color:#f7f7f7;
height:155px;
position:relative
}
#header .logo{
background:url(../images/logo.gif) no-repeat;
width:190px;
height:172px;
float:left;
position:absolute;
top:15px;
margin-left: 10px;
}
#header .banner{
background:url(../images/banner.jpg) no-repeat;
width:787px;
height:155px;
float:right;
}
/*================= bar =================*/
#bar {
background:url(../images/bg_mn.gif);
height:40px;
}
#bar .wrap ul li{
background: url("../images/mn_col.gif") no-repeat scroll right 11px rgba(0, 0, 0, 0);
display: block;
float: left;
height: 40px;
margin-top: -10px;
}
.flag {
float: right;
padding:10px 50px 0 0;
}
#bar .wrap ul{
margin-left:190px;
}
#bar .wrap ul li a{
color: #222;
display: block;
font-size: 14px;
font-weight: bold;
padding: 21px 30px 10px;
}
/*================= popup =================*/
.promain-row {
margin-top: -5px;
}
.popup .block{
padding-top: 10px;
background: none repeat scroll 0 0 #fff;
}
.promain{
background-color: #fff31c;
font-weight: bold;
width: 170px;
/*margin: 0 10px;*/
border-top-right-radius: 7px;
border-bottom-right-radius: 7px;
float:left;
}
.promain ul{
padding-bottom:5px;
}
.promain .promain-title{
padding:5px 0 0 15px;
}
.promain .line-pro{
background:url(../images/line-pro.gif) repeat-x;
height:10px;
}
.promain .promain-row ul li {
margin: 6px 0 5px 15px;
}
.promain .promain-row ul li img{
margin-right:5px;
}
.promain .promain-row ul li a{
font-weight:bold;
}
.prodetail {
float: left;
width: 800px;
margin-left: 5px;
}
.prodetail .item {
border-bottom: 1px solid #fff312;
border-right: 1px solid #fff312;
min-width: 138px;
padding: 0 10px 10px;
float: left;
}
.prodetail .item:nth-child(5){
border-right:none;
}
.prodetail .item:nth-child(6){
border-bottom:none;
}
.prodetail .item:nth-child(7){
border-bottom:none;
}
.prodetail .item:nth-child(8){
border-bottom:none;
}
.prodetail .item:nth-child(9){
border-bottom:none;
}
.prodetail .item:last-child{
border-right:none;
border-bottom:none;
}
.prodetail .item-title{
font-weight:bold;
}
.prodetail .item ul li a{
color: #222;
line-height: 18px;
}
.clear.line-popup {
border-bottom: 5px solid #fff42a;
padding-top: 10px;
}
/*================= main =================*/
#maincontent {
background-color:#fff;
padding: 0 10px;
width: 975px;
}
.cus-temp {
padding: 7px 0px;
}
.templates {
padding-bottom: 10px;
}
.cus-templeft {
width: 460px;
float: left;
}
.cus-templeft .templates .customer {
padding: 10px 0;
}
.cus-templeft .templates .note {
color: #f00;
padding-bottom: 20px;
}
.cus-templeft .templates img {
float: left;
margin-right:20px;
}
.cus-templeft .templates .templates-title a h2{
color: #1c7fc3;
font-size: 24px;
padding-top: 22px;
}
.cus-templeft .templates .notify{
padding: 25px 5px;
}
.cus-templeft .templates div span{
}
.line-templeft div{
border-bottom: 1px solid #ccc;
float: left;
margin-right: 10px;
margin-top: 12px;
text-align: right;
width: 370px;
}
.line-templeft > a {
color: #035b16;
}
.cus-tempright{
background:url(../images/hotline.jpg) no-repeat;
width:495px ;
height:300px;
float:right;
}
.area .block-nt{
position:relative;
}
.area .block-nt .block-main-none {
padding-top: 70px;
}
.area .block .block-nt .tag_lv{
background: url("../images/tag_lv.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
color: #fff;
font-size: 14px;
font-weight: bold;
height: 65px;
left: -28px;
padding-left: 30px;
padding-top: 8px;
position: absolute;
top: 5px;
width: 240px;
}
.area .block .block-nt .tag{
background: url("../images/tag.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
color: #fff;
font-size: 14px;
font-weight: bold;
height: 65px;
left: -28px;
padding-left: 30px;
padding-top: 8px;
position: absolute;
top: 5px;
width: 240px;
}
.block-main {
padding: 0 28px;
margin-left: 2px;
position:relative;
}
.block-main .row-left {
background: url("../images/dichuyen.gif") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
display: block;
height: 24px;
left: -25px;
position: absolute;
top: 65px;
width: 14px;
}
.block-main .row-right {
background: url("../images/dichuyen_right.gif") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
display: block;
height: 24px;
right: -25px;
position: absolute;
top: 65px;
width: 14px;
}
.block-main li {
float: left;
margin: 0 30px 15px;
}
.block-main ul li a h2{
color:#3861ea;
padding-top:3px;
text-align:center;
}
/*================= bottom =================*/
#bottom {
background-color:#fff;
}
#bottom li {
float: left;
}
.bottom-contact .ct_1 a{
color:#04a2ee;
font-size:18px;
}
.bottom-contact .ct_1 img{
}
#bottom .bottom-contact img {
float: left;
margin-top: -3px;
padding-right: 5px;
}
.bottom-contact {
border-bottom: 1px solid #ccc;
border-top: 1px solid #ccc;
padding: 6px 30px;
}
.bottom-contact li:nth-child(1){
width: 150px;
}
.bottom-contact li:nth-child(2){
width: 300px;
}
.bottom-contact li:nth-child(3){
width: 200px;
}
.bottom-contact li:nth-child(4){
padding-left: 145px;
width: 140px;
}
#bottom .madein{
text-align:right;
padding: 5px 20px;
}
#bottom .madein > a {
color: #2684ca;
} | 123gosaigon | trunk/ 123gosaigon/templates/css/template.css | CSS | asf20 | 7,005 |
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta content="n.trieuthang, tritigi@yahoo.com" name="author">
<meta name="robots" content="index, follow">
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<link rel="stylesheet" href="css/template.css" type="text/css">
</head>
<body>
<div class="wrapper">
<div id="header"></div>
<div id="bar"></div>
<div id="maincontent"></div>
<div id="bottom"></div>
</div>
</body>
</html> | 123gosaigon | trunk/ 123gosaigon/templates/index.htm | HTML | asf20 | 524 |
<?php
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
* things like logging and error reporting.
*
* This can be set to anything, but default usage is:
*
* development
* testing
* production
*
* NOTE: If you change these, also change the error_reporting() code below
*
*/
error_reporting(E_ALL);
@session_start();
@ob_start();
date_default_timezone_set('Asia/Ho_Chi_Minh');
define('ENVIRONMENT', 'development');
define('site', 'http://'.$_SERVER['HTTP_HOST'].'/');
define('url', 'http://'.$_SERVER['HTTP_HOST'].'/');
/*
*---------------------------------------------------------------
* ERROR REPORTING
*---------------------------------------------------------------
*
* Different environments will require different levels of error reporting.
* By default development will show errors but testing and live will hide them.
*/
/*
*---------------------------------------------------------------
* SYSTEM FOLDER NAME
*---------------------------------------------------------------
*
* This variable must contain the name of your "system" folder.
* Include the path if the folder is not in the same directory
* as this file.
*
*/
$system_path = 'system';
/*
*---------------------------------------------------------------
* APPLICATION FOLDER NAME
*---------------------------------------------------------------
*
* If you want this front controller to use a different "application"
* folder then the default one you can set its name here. The folder
* can also be renamed or relocated anywhere on your server. If
* you do, use a full server path. For more info please see the user guide:
* http://codeigniter.com/user_guide/general/managing_apps.html
*
* NO TRAILING SLASH!
*
*/
$application_folder = 'site';
/*
* --------------------------------------------------------------------
* DEFAULT CONTROLLER
* --------------------------------------------------------------------
*
* Normally you will set your default controller in the routes.php file.
* You can, however, force a custom routing by hard-coding a
* specific controller class/function here. For most applications, you
* WILL NOT set your routing here, but it's an option for those
* special instances where you might want to override the standard
* routing in a specific front controller that shares a common CI installation.
*
* IMPORTANT: If you set the routing here, NO OTHER controller will be
* callable. In essence, this preference limits your application to ONE
* specific controller. Leave the function name blank if you need
* to call functions dynamically via the URI.
*
* Un-comment the $routing array below to use this feature
*
*/
// The directory name, relative to the "controllers" folder. Leave blank
// if your controller is not in a sub-folder within the "controllers" folder
// $routing['directory'] = '';
// The controller class file name. Example: Mycontroller
// $routing['controller'] = '';
// The controller function you wish to be called.
// $routing['function'] = '';
/*
* -------------------------------------------------------------------
* CUSTOM CONFIG VALUES
* -------------------------------------------------------------------
*
* The $assign_to_config array below will be passed dynamically to the
* config class when initialized. This allows you to set custom config
* items or override any default config values found in the config.php file.
* This can be handy as it permits you to share one application between
* multiple front controller files, with each file containing different
* config values.
*
* Un-comment the $assign_to_config array below to use this feature
*
*/
// $assign_to_config['name_of_config_item'] = 'value of config item';
// --------------------------------------------------------------------
// END OF USER CONFIGURABLE SETTINGS. DO NOT EDIT BELOW THIS LINE
// --------------------------------------------------------------------
/*
* ---------------------------------------------------------------
* Resolve the system path for increased reliability
* ---------------------------------------------------------------
*/
define('ROOT', __DIR__);
// Set the current directory correctly for CLI requests
if (defined('STDIN'))
{
chdir(dirname(__FILE__));
}
if (realpath($system_path) !== FALSE)
{
$system_path = realpath($system_path).'/';
}
// ensure there's a trailing slash
$system_path = rtrim($system_path, '/').'/';
// Is the system path correct?
if ( ! is_dir($system_path))
{
exit("Your system folder path does not appear to be set correctly. Please open the following file and correct this: ".pathinfo(__FILE__, PATHINFO_BASENAME));
}
/*
* -------------------------------------------------------------------
* Now that we know the path, set the main path constants
* -------------------------------------------------------------------
*/
// The name of THIS file
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
// The PHP file extension
// this global constant is deprecated.
define('EXT', '.php');
// Path to the system folder
define('BASEPATH', str_replace("\\", "/", $system_path));
// Path to the front controller (this file)
define('FCPATH', str_replace(SELF, '', __FILE__));
// Name of the "system folder"
define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));
// The path to the "application" folder
if (is_dir($application_folder))
{
define('APPPATH', $application_folder.'/');
}
else
{
if ( ! is_dir(BASEPATH.$application_folder.'/'))
{
exit("Your application folder path does not appear to be set correctly. Please open the following file and correct this: ".SELF);
}
define('APPPATH', BASEPATH.$application_folder.'/');
}
// define constant, host, redirect
include 'define.php';
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
* --------------------------------------------------------------------
*
* And away we go...
*
*/
require_once BASEPATH.'core/CodeIgniter.php';
/* End of file index.php */
/* Location: ./index.php */ | 123gosaigon | trunk/ 123gosaigon/index.php | PHP | asf20 | 6,583 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/index.html | HTML | mit | 114 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
| http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
| $route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
| $route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/
$route['default_controller'] = "inquiry";
$route['404_override'] = '';
$route['new_student'] = 'enrollment/registration_form';
$route['developmental'] = 'enrollment/developmental_history';
$route['pli'] = 'enrollment/parent_legal_information';
$route['health'] = 'enrollment/health_history';
$route['let_be'] = 'enrollment/let_be';
$route['done'] = 'enrollment/enrollment_finished';
/*$route['old'] = 'enrollment/old_enrollee';*/
$route['old_student'] = 'register';
/* End of file routes.php */
/* Location: ./application/config/routes.php */ | 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/routes.php | PHP | mit | 1,989 |
<?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 and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system. The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);
/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/
define('FOPEN_READ', 'rb');
define('FOPEN_READ_WRITE', 'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE', 'ab');
define('FOPEN_READ_WRITE_CREATE', 'a+b');
define('FOPEN_WRITE_CREATE_STRICT', 'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
/* End of file constants.php */
/* Location: ./application/config/constants.php */ | 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/constants.php | PHP | mit | 1,713 |
<?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,
| WITH a trailing slash:
|
| http://example.com/
|
| If this is not set then CodeIgniter will guess the protocol, domain and
| path to your installation.
|
*/
$config['base_url'] = '';
$config['student_url'] = '';
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = '';
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string. The default setting of 'AUTO' works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO' Default - auto detects
| 'PATH_INFO' Uses the PATH_INFO
| 'QUERY_STRING' Uses the QUERY_STRING
| 'REQUEST_URI' Uses the REQUEST_URI
| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
|
*/
$config['uri_protocol'] = 'AUTO';
/*
|--------------------------------------------------------------------------
| URL suffix
|--------------------------------------------------------------------------
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
| For more information please see the user guide:
|
| http://codeigniter.com/user_guide/general/urls.html
*/
$config['url_suffix'] = '';
/*
|--------------------------------------------------------------------------
| Default Language
|--------------------------------------------------------------------------
|
| This determines which set of language files should be used. Make sure
| there is an available translation if you intend to use something other
| than english.
|
*/
$config['language'] = 'english';
/*
|--------------------------------------------------------------------------
| Default Character Set
|--------------------------------------------------------------------------
|
| This determines which character set is used by default in various methods
| that require a character set to be provided.
|
*/
$config['charset'] = 'UTF-8';
/*
|--------------------------------------------------------------------------
| Enable/Disable System Hooks
|--------------------------------------------------------------------------
|
| If you would like to use the 'hooks' feature you must enable it by
| setting this variable to TRUE (boolean). See the user guide for details.
|
*/
$config['enable_hooks'] = FALSE;
/*
|--------------------------------------------------------------------------
| Class Extension Prefix
|--------------------------------------------------------------------------
|
| This item allows you to set the filename/classname prefix when extending
| native libraries. For more information please see the user guide:
|
| http://codeigniter.com/user_guide/general/core_classes.html
| http://codeigniter.com/user_guide/general/creating_libraries.html
|
*/
$config['subclass_prefix'] = 'MY_';
/*
|--------------------------------------------------------------------------
| Allowed URL Characters
|--------------------------------------------------------------------------
|
| This lets you specify with a regular expression which characters are permitted
| within your URLs. When someone tries to submit a URL with disallowed
| characters they will get a warning message.
|
| As a security measure you are STRONGLY encouraged to restrict URLs to
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
| Leave blank to allow all characters -- but only if you are insane.
|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
/*
|--------------------------------------------------------------------------
| Enable Query Strings
|--------------------------------------------------------------------------
|
| By default CodeIgniter uses search-engine friendly segment based URLs:
| example.com/who/what/where/
|
| By default CodeIgniter enables access to the $_GET array. If for some
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
| You can optionally enable standard query string based URLs:
| example.com?who=me&what=something&where=here
|
| Options are: TRUE or FALSE (boolean)
|
| The other items let you set the query string 'words' that will
| invoke your controllers and its functions:
| example.com/index.php?c=controller&m=function
|
| Please note that some of the helpers won't work as expected when
| this feature is enabled, since CodeIgniter is designed primarily to
| use segment based URLs.
|
*/
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd'; // experimental not currently in use
/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| If you have enabled error logging, you can set an error threshold to
| determine what gets logged. Threshold options are:
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages
| 3 = Informational Messages
| 4 = All Messages
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
| your log files will fill up very fast.
|
*/
$config['log_threshold'] = 1;
/*
|--------------------------------------------------------------------------
| Error Logging Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/logs/ folder. Use a full server path with trailing slash.
|
*/
$config['log_path'] = '';
/*
|--------------------------------------------------------------------------
| Date Format for Logs
|--------------------------------------------------------------------------
|
| Each item that is logged has an associated date. You can use PHP date
| codes to set your own date formatting
|
*/
$config['log_date_format'] = 'Y-m-d H:i:s';
/*
|--------------------------------------------------------------------------
| Cache Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| system/cache/ folder. Use a full server path with trailing slash.
|
*/
$config['cache_path'] = '';
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class or the Session class you
| MUST set an encryption key. See the user guide for info.
|
*/
$config['encryption_key'] = '8M6Op8yZrk3Y6KSMIikcUAQSzbPgYrbk';
/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'sess_cookie_name' = the name you want for the cookie
| 'sess_expiration' = the number of SECONDS you want the session to last.
| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
| 'sess_expire_on_close' = Whether to cause the session to expire automatically
| when the browser window is closed
| 'sess_encrypt_cookie' = Whether to encrypt the cookie
| 'sess_use_database' = Whether to save the session data to a database
| 'sess_table_name' = The name of the session database table
| 'sess_match_ip' = Whether to match the user's IP address when reading the session data
| 'sess_match_useragent' = Whether to match the User Agent when reading the session data
| 'sess_time_to_update' = how many seconds between CI refreshing Session Information
|
*/
$config['sess_cookie_name'] = 'westfields';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'k12emissions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;
/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
|
| 'cookie_prefix' = Set a prefix if you need to avoid collisions
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
| 'cookie_path' = Typically will be a forward slash
| 'cookie_secure' = Cookies will only be set if a secure HTTPS connection exists.
|
*/
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path'] = "/";
$config['cookie_secure'] = FALSE;
/*
|--------------------------------------------------------------------------
| Global XSS Filtering
|--------------------------------------------------------------------------
|
| Determines whether the XSS filter is always active when GET, POST or
| COOKIE data is encountered
|
*/
$config['global_xss_filtering'] = FALSE;
/*
|--------------------------------------------------------------------------
| Cross Site Request Forgery
|--------------------------------------------------------------------------
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
| checked on a submitted form. If you are accepting user data, it is strongly
| recommended CSRF protection be enabled.
|
| 'csrf_token_name' = The token name
| 'csrf_cookie_name' = The cookie name
| 'csrf_expire' = The number in seconds the token should expire.
*/
$config['csrf_protection'] = FALSE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
/*
|--------------------------------------------------------------------------
| Output Compression
|--------------------------------------------------------------------------
|
| Enables Gzip output compression for faster page loads. When enabled,
| the output class will test whether your server supports Gzip.
| Even if it does, however, not all browsers support compression
| so enable only if you are reasonably sure your visitors can handle it.
|
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
| means you are prematurely outputting something to your browser. It could
| even be a line of whitespace at the end of one of your scripts. For
| compression to work, nothing can be sent before the output buffer is called
| by the output class. Do not 'echo' any values with compression enabled.
|
*/
$config['compress_output'] = FALSE;
/*
|--------------------------------------------------------------------------
| Master Time Reference
|--------------------------------------------------------------------------
|
| Options are 'local' or 'gmt'. This pref tells the system whether to use
| your server's local time as the master 'now' reference, or convert it to
| GMT. See the 'date helper' page of the user guide for information
| regarding date handling.
|
*/
$config['time_reference'] = 'local';
/*
|--------------------------------------------------------------------------
| Rewrite PHP Short Tags
|--------------------------------------------------------------------------
|
| If your PHP installation does not have short tag support enabled CI
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
| in your view files. Options are TRUE or FALSE (boolean)
|
*/
$config['rewrite_short_tags'] = FALSE;
/*
|--------------------------------------------------------------------------
| Reverse Proxy IPs
|--------------------------------------------------------------------------
|
| If your server is behind a reverse proxy, you must whitelist the proxy IP
| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR
| header in order to properly identify the visitor's IP address.
| Comma-delimited, e.g. '10.0.1.200,10.0.1.201'
|
*/
$config['proxy_ips'] = '';
/* End of file config.php */
/* Location: ./application/config/config.php */
| 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/config.php | PHP | mit | 12,860 |
<?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 the framework as light-weight as possible only the
| absolute minimal resources are loaded by default. For example,
| the database is not connected to automatically since no assumption
| is made regarding whether you intend to use it. This file lets
| you globally define which systems you would like loaded with every
| request.
|
| -------------------------------------------------------------------
| Instructions
| -------------------------------------------------------------------
|
| These are the things you can load automatically:
|
| 1. Packages
| 2. Libraries
| 3. Helper files
| 4. Custom config files
| 5. Language files
| 6. Models
|
*/
/*
| -------------------------------------------------------------------
| Auto-load Packges
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
*/
$autoload['packages'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in the system/libraries folder
| or in your application/libraries folder.
|
| Prototype:
|
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
*/
$autoload['libraries'] = array('database', 'session', 'form_validation','page_auth','token');
/*
| -------------------------------------------------------------------
| Auto-load Helper Files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['helper'] = array('url', 'file');
*/
$autoload['helper'] = array('html', 'form', 'url', 'date');
/*
| -------------------------------------------------------------------
| Auto-load Config files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['config'] = array('config1', 'config2');
|
| NOTE: This item is intended for use ONLY if you have created custom
| config files. Otherwise, leave it blank.
|
*/
$autoload['config'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Language files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['language'] = array('lang1', 'lang2');
|
| NOTE: Do not include the "_lang" part of your file. For example
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
*/
$autoload['language'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Models
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['model'] = array('model1', 'model2');
|
*/
$autoload['model'] = array();
/* End of file autoload.php */
/* Location: ./application/config/autoload.php */ | 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/autoload.php | PHP | mit | 3,177 |
<?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 identify allowed file types.
|
*/
$mimes = array( 'hqx' => 'application/mac-binhex40',
'cpt' => 'application/mac-compactpro',
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'),
'bin' => 'application/macbinary',
'dms' => 'application/octet-stream',
'lha' => 'application/octet-stream',
'lzh' => 'application/octet-stream',
'exe' => array('application/octet-stream', 'application/x-msdownload'),
'class' => 'application/octet-stream',
'psd' => 'application/x-photoshop',
'so' => 'application/octet-stream',
'sea' => 'application/octet-stream',
'dll' => 'application/octet-stream',
'oda' => 'application/oda',
'pdf' => array('application/pdf', 'application/x-download'),
'ai' => 'application/postscript',
'eps' => 'application/postscript',
'ps' => 'application/postscript',
'smi' => 'application/smil',
'smil' => 'application/smil',
'mif' => 'application/vnd.mif',
'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'),
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint'),
'wbxml' => 'application/wbxml',
'wmlc' => 'application/wmlc',
'dcr' => 'application/x-director',
'dir' => 'application/x-director',
'dxr' => 'application/x-director',
'dvi' => 'application/x-dvi',
'gtar' => 'application/x-gtar',
'gz' => 'application/x-gzip',
'php' => 'application/x-httpd-php',
'php4' => 'application/x-httpd-php',
'php3' => 'application/x-httpd-php',
'phtml' => 'application/x-httpd-php',
'phps' => 'application/x-httpd-php-source',
'js' => 'application/x-javascript',
'swf' => 'application/x-shockwave-flash',
'sit' => 'application/x-stuffit',
'tar' => 'application/x-tar',
'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
'xhtml' => 'application/xhtml+xml',
'xht' => 'application/xhtml+xml',
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'),
'mid' => 'audio/midi',
'midi' => 'audio/midi',
'mpga' => 'audio/mpeg',
'mp2' => 'audio/mpeg',
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
'aif' => 'audio/x-aiff',
'aiff' => 'audio/x-aiff',
'aifc' => 'audio/x-aiff',
'ram' => 'audio/x-pn-realaudio',
'rm' => 'audio/x-pn-realaudio',
'rpm' => 'audio/x-pn-realaudio-plugin',
'ra' => 'audio/x-realaudio',
'rv' => 'video/vnd.rn-realvideo',
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
'bmp' => array('image/bmp', 'image/x-windows-bmp'),
'gif' => 'image/gif',
'jpeg' => array('image/jpeg', 'image/pjpeg'),
'jpg' => array('image/jpeg', 'image/pjpeg'),
'jpe' => array('image/jpeg', 'image/pjpeg'),
'png' => array('image/png', 'image/x-png'),
'tiff' => 'image/tiff',
'tif' => 'image/tiff',
'css' => 'text/css',
'html' => 'text/html',
'htm' => 'text/html',
'shtml' => 'text/html',
'txt' => 'text/plain',
'text' => 'text/plain',
'log' => array('text/plain', 'text/x-log'),
'rtx' => 'text/richtext',
'rtf' => 'text/rtf',
'xml' => 'text/xml',
'xsl' => 'text/xml',
'mpeg' => 'video/mpeg',
'mpg' => 'video/mpeg',
'mpe' => 'video/mpeg',
'qt' => 'video/quicktime',
'mov' => 'video/quicktime',
'avi' => 'video/x-msvideo',
'movie' => 'video/x-sgi-movie',
'doc' => array('application/msword','inode/x-empty'),
'docx' => array('application/msword','application/vnd.openxmlformats-officedocument.wordprocessingml.document','application/octet-stream'),
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip'),
'word' => array('application/msword', 'application/octet-stream'),
'xl' => 'application/excel',
'eml' => 'message/rfc822',
'json' => array('application/json', 'text/json')
);
/* End of file mimes.php */
/* Location: ./application/config/mimes.php */
| 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/mimes.php | PHP | mit | 4,505 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| Foreign Characters
| -------------------------------------------------------------------
| This file contains an array of foreign characters for transliteration
| conversion used by the Text helper
|
*/
$foreign_characters = array(
'/ä|æ|ǽ/' => 'ae',
'/ö|œ/' => 'oe',
'/ü/' => 'ue',
'/Ä/' => 'Ae',
'/Ü/' => 'Ue',
'/Ö/' => 'Oe',
'/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ/' => 'A',
'/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª/' => 'a',
'/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
'/ç|ć|ĉ|ċ|č/' => 'c',
'/Ð|Ď|Đ/' => 'D',
'/ð|ď|đ/' => 'd',
'/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě/' => 'E',
'/è|é|ê|ë|ē|ĕ|ė|ę|ě/' => 'e',
'/Ĝ|Ğ|Ġ|Ģ/' => 'G',
'/ĝ|ğ|ġ|ģ/' => 'g',
'/Ĥ|Ħ/' => 'H',
'/ĥ|ħ/' => 'h',
'/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ/' => 'I',
'/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı/' => 'i',
'/Ĵ/' => 'J',
'/ĵ/' => 'j',
'/Ķ/' => 'K',
'/ķ/' => 'k',
'/Ĺ|Ļ|Ľ|Ŀ|Ł/' => 'L',
'/ĺ|ļ|ľ|ŀ|ł/' => 'l',
'/Ñ|Ń|Ņ|Ň/' => 'N',
'/ñ|ń|ņ|ň|ʼn/' => 'n',
'/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ/' => 'O',
'/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º/' => 'o',
'/Ŕ|Ŗ|Ř/' => 'R',
'/ŕ|ŗ|ř/' => 'r',
'/Ś|Ŝ|Ş|Š/' => 'S',
'/ś|ŝ|ş|š|ſ/' => 's',
'/Ţ|Ť|Ŧ/' => 'T',
'/ţ|ť|ŧ/' => 't',
'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ/' => 'U',
'/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ/' => 'u',
'/Ý|Ÿ|Ŷ/' => 'Y',
'/ý|ÿ|ŷ/' => 'y',
'/Ŵ/' => 'W',
'/ŵ/' => 'w',
'/Ź|Ż|Ž/' => 'Z',
'/ź|ż|ž/' => 'z',
'/Æ|Ǽ/' => 'AE',
'/ß/'=> 'ss',
'/IJ/' => 'IJ',
'/ij/' => 'ij',
'/Œ/' => 'OE',
'/ƒ/' => 'f'
);
/* End of file foreign_chars.php */
/* Location: ./application/config/foreign_chars.php */ | 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/foreign_chars.php | PHP | mit | 1,781 |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Enable/Disable Migrations
|--------------------------------------------------------------------------
|
| Migrations are disabled by default but should be enabled
| whenever you intend to do a schema migration.
|
*/
$config['migration_enabled'] = FALSE;
/*
|--------------------------------------------------------------------------
| Migrations version
|--------------------------------------------------------------------------
|
| This is used to set migration version that the file system should be on.
| If you run $this->migration->latest() this is the version that schema will
| be upgraded / downgraded to.
|
*/
$config['migration_version'] = 0;
/*
|--------------------------------------------------------------------------
| Migrations Path
|--------------------------------------------------------------------------
|
| Path to your migrations folder.
| Typically, it will be within your application path.
| Also, writing permission is required within the migrations path.
|
*/
$config['migration_path'] = APPPATH . 'migrations/';
/* End of file migration.php */
/* Location: ./application/config/migration.php */ | 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/migration.php | PHP | mit | 1,282 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
| For complete instructions please consult the 'Database Connection'
| page of the User Guide.
|
| -------------------------------------------------------------------
| EXPLANATION OF VARIABLES
| -------------------------------------------------------------------
|
| ['hostname'] The hostname of your database server.
| ['username'] The username used to connect to the database
| ['password'] The password used to connect to the database
| ['database'] The name of the database you want to connect to
| ['dbdriver'] The database type. ie: mysql. Currently supported:
mysql, mysqli, postgre, odbc, mssql, sqlite, oci8
| ['dbprefix'] You can add an optional prefix, which will be added
| to the table name when using the Active Record class
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
| ['cachedir'] The path to the folder where cache files should be stored
| ['char_set'] The character set used in communicating with the database
| ['dbcollat'] The character collation used in communicating with the database
| NOTE: For MySQL and MySQLi databases, this setting is only used
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
| (and in table creation queries made with DB Forge).
| There is an incompatibility in PHP with mysql_real_escape_string() which
| can make your site vulnerable to SQL injection if you are using a
| multi-byte character set and are running versions lower than these.
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
| ['autoinit'] Whether or not to automatically initialize the database.
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
| - good for ensuring strict SQL while developing
|
| The $active_group variable lets you choose which connection group to
| make active. By default there is only one group (the 'default' group).
|
| The $active_record variables lets you determine whether or not to load
| the active record class
*/
$active_group = 'default';
$active_record = TRUE;
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'root';
$db['default']['password'] = '';
$db['default']['database'] = 'k12demo_july-30-2013';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
/* End of file database.php */
/* Location: ./application/config/database.php */
| 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/_database.php | PHP | mit | 3,236 |
<?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 Agent Class to help identify browser, platform, robot, and
| mobile device data. The array keys are used to identify the device
| and the array values are used to set the actual name of the item.
|
*/
$platforms = array (
'windows nt 6.0' => 'Windows Longhorn',
'windows nt 5.2' => 'Windows 2003',
'windows nt 5.0' => 'Windows 2000',
'windows nt 5.1' => 'Windows XP',
'windows nt 4.0' => 'Windows NT 4.0',
'winnt4.0' => 'Windows NT 4.0',
'winnt 4.0' => 'Windows NT',
'winnt' => 'Windows NT',
'windows 98' => 'Windows 98',
'win98' => 'Windows 98',
'windows 95' => 'Windows 95',
'win95' => 'Windows 95',
'windows' => 'Unknown Windows OS',
'os x' => 'Mac OS X',
'ppc mac' => 'Power PC Mac',
'freebsd' => 'FreeBSD',
'ppc' => 'Macintosh',
'linux' => 'Linux',
'debian' => 'Debian',
'sunos' => 'Sun Solaris',
'beos' => 'BeOS',
'apachebench' => 'ApacheBench',
'aix' => 'AIX',
'irix' => 'Irix',
'osf' => 'DEC OSF',
'hp-ux' => 'HP-UX',
'netbsd' => 'NetBSD',
'bsdi' => 'BSDi',
'openbsd' => 'OpenBSD',
'gnu' => 'GNU/Linux',
'unix' => 'Unknown Unix OS'
);
// The order of this array should NOT be changed. Many browsers return
// multiple browser types so we want to identify the sub-type first.
$browsers = array(
'Flock' => 'Flock',
'Chrome' => 'Chrome',
'Opera' => 'Opera',
'MSIE' => 'Internet Explorer',
'Internet Explorer' => 'Internet Explorer',
'Shiira' => 'Shiira',
'Firefox' => 'Firefox',
'Chimera' => 'Chimera',
'Phoenix' => 'Phoenix',
'Firebird' => 'Firebird',
'Camino' => 'Camino',
'Netscape' => 'Netscape',
'OmniWeb' => 'OmniWeb',
'Safari' => 'Safari',
'Mozilla' => 'Mozilla',
'Konqueror' => 'Konqueror',
'icab' => 'iCab',
'Lynx' => 'Lynx',
'Links' => 'Links',
'hotjava' => 'HotJava',
'amaya' => 'Amaya',
'IBrowse' => 'IBrowse'
);
$mobiles = array(
// legacy array, old values commented out
'mobileexplorer' => 'Mobile Explorer',
// 'openwave' => 'Open Wave',
// 'opera mini' => 'Opera Mini',
// 'operamini' => 'Opera Mini',
// 'elaine' => 'Palm',
'palmsource' => 'Palm',
// 'digital paths' => 'Palm',
// 'avantgo' => 'Avantgo',
// 'xiino' => 'Xiino',
'palmscape' => 'Palmscape',
// 'nokia' => 'Nokia',
// 'ericsson' => 'Ericsson',
// 'blackberry' => 'BlackBerry',
// 'motorola' => 'Motorola'
// Phones and Manufacturers
'motorola' => "Motorola",
'nokia' => "Nokia",
'palm' => "Palm",
'iphone' => "Apple iPhone",
'ipad' => "iPad",
'ipod' => "Apple iPod Touch",
'sony' => "Sony Ericsson",
'ericsson' => "Sony Ericsson",
'blackberry' => "BlackBerry",
'cocoon' => "O2 Cocoon",
'blazer' => "Treo",
'lg' => "LG",
'amoi' => "Amoi",
'xda' => "XDA",
'mda' => "MDA",
'vario' => "Vario",
'htc' => "HTC",
'samsung' => "Samsung",
'sharp' => "Sharp",
'sie-' => "Siemens",
'alcatel' => "Alcatel",
'benq' => "BenQ",
'ipaq' => "HP iPaq",
'mot-' => "Motorola",
'playstation portable' => "PlayStation Portable",
'hiptop' => "Danger Hiptop",
'nec-' => "NEC",
'panasonic' => "Panasonic",
'philips' => "Philips",
'sagem' => "Sagem",
'sanyo' => "Sanyo",
'spv' => "SPV",
'zte' => "ZTE",
'sendo' => "Sendo",
// Operating Systems
'symbian' => "Symbian",
'SymbianOS' => "SymbianOS",
'elaine' => "Palm",
'palm' => "Palm",
'series60' => "Symbian S60",
'windows ce' => "Windows CE",
// Browsers
'obigo' => "Obigo",
'netfront' => "Netfront Browser",
'openwave' => "Openwave Browser",
'mobilexplorer' => "Mobile Explorer",
'operamini' => "Opera Mini",
'opera mini' => "Opera Mini",
// Other
'digital paths' => "Digital Paths",
'avantgo' => "AvantGo",
'xiino' => "Xiino",
'novarra' => "Novarra Transcoder",
'vodafone' => "Vodafone",
'docomo' => "NTT DoCoMo",
'o2' => "O2",
// Fallback
'mobile' => "Generic Mobile",
'wireless' => "Generic Mobile",
'j2me' => "Generic Mobile",
'midp' => "Generic Mobile",
'cldc' => "Generic Mobile",
'up.link' => "Generic Mobile",
'up.browser' => "Generic Mobile",
'smartphone' => "Generic Mobile",
'cellphone' => "Generic Mobile"
);
// There are hundreds of bots but these are the most common.
$robots = array(
'googlebot' => 'Googlebot',
'msnbot' => 'MSNBot',
'slurp' => 'Inktomi Slurp',
'yahoo' => 'Yahoo',
'askjeeves' => 'AskJeeves',
'fastcrawler' => 'FastCrawler',
'infoseek' => 'InfoSeek Robot 1.0',
'lycos' => 'Lycos'
);
/* End of file user_agents.php */
/* Location: ./application/config/user_agents.php */ | 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/user_agents.php | PHP | mit | 5,589 |
<?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)
$config['grocery_crud_date_format'] = 'uk-date';
// The default per page when a user firstly see a list page
$config['grocery_crud_default_per_page'] = 25; //Can only take values 10,25,50,100
$config['grocery_crud_file_upload_allow_file_types'] = 'gif|jpeg|jpg|png|tiff|doc|docx|txt|odt|xls|xlsx|pdf|ppt|pptx|pps|ppsx|mp3|m4a|ogg|wav|mp4|m4v|mov|wmv|flv|avi|mpg|ogv|3gp|3g2';
$config['grocery_crud_file_upload_max_file_size'] = '20MB'; //ex. '10MB' (Mega Bytes), '1067KB' (Kilo Bytes), '5000B' (Bytes)
//You can choose 'ckeditor','tinymce' or 'markitup'
$config['grocery_crud_default_text_editor'] = 'ckeditor';
//You can choose 'minimal' or 'full'
$config['grocery_crud_text_editor_type'] = 'full';
//The character limiter at the list page, zero(0) value if you don't want character limiter at your list page
$config['grocery_crud_character_limiter'] = 30; | 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/grocery_crud.php | PHP | mit | 1,203 |
<?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',
'label' => 'Child\'s First name',
'rules' => 'required|alpha_space|trim|htmlspecialchars'
),
array(
'field' => 'child_mname',
'label' => 'Child\'s Middle Name',
'rules' => 'alpha|trim|htmlspecialchars'
),
array(
'field' => 'child_lname',
'label' => 'Child\'s Last Name',
'rules' => 'required|alpha|trim|htmlspecialchars'
),
array(
'field' => 'child_bdate',
'label' => 'Child\'s Birth date',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'mobile_phone',
'label' => 'Cellphone Number',
'rules' => 'numeric|required|trim|htmlspecialchars'
),
array(
'field' => 'schedule_for_testing',
'label' => 'Schedule of Testing',
'rules' => 'required|trim|htmlspecialchars'
)
),
'enrollment_profile' => array(
array(
'field' => 'email',
'label' => 'Email Address',
'rules' => 'required|valid_email|trim|htmlspecialchars'
),
array(
'field' => 'level_id',
'label' => 'Grade Level',
'rules' => 'required|numeric|trim|htmlspecialchars'
),
array(
'field' => 'child_fname',
'label' => 'Child First name',
'rules' => 'required|alpha_space|trim|htmlspecialchars'
),
array(
'field' => 'child_mname',
'label' => 'Childs Middle Name',
'rules' => 'alpha|trim|htmlspecialchars'
),
array(
'field' => 'child_lname',
'label' => 'Child Last Name',
'rules' => 'required|alpha|trim|htmlspecialchars'
),
array(
'field' => 'child_nickname',
'label' => 'Preferred Name',
'rules' => 'alpha|trim|htmlspecialchars'
),
array(
'field' => 'child_name_ext',
'label' => 'Child\'s Name Extension',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'gender',
'label' => 'Childs Gender',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'child_bdate',
'label' => 'Child\'s Birth date',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'child_nationality',
'label' => 'Child\'s Nationality',
'rules' => 'alpha_numeric|required|trim|htmlspecialchars'
),
array(
'field' => 'child_placeofbirth',
'label' => 'Child\'s Place of Birth',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'child_city_address',
'label' => 'Residential Address',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'child_telno',
'label' => 'Home Phone',
'rules' => 'numeric|required|trim|htmlspecialchars'
),
array(
'field' => 'mobile_phone',
'label' => 'Mobile Phone',
'rules' => 'numeric|required|trim|htmlspecialchars'
),
array(
'field' => 'child_religous',
'label' => 'Religion',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'living_in_ph_with_father',
'label' => 'Father / Step Father',
'rules' => 'trim'
),
array(
'field' => 'living_in_ph_with_mother',
'label' => 'Mother / Step Mother',
'rules' => 'trim'
),
array(
'field' => 'living_in_ph_with_guardian',
'label' => 'Guardian',
'rules' => 'trim'
),
array(
'field' => 'childs_english_reading_writing_level',
'label' => 'English Writing Level',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'childs_english_verbal_proficiency',
'label' => 'English Verbal Proficiency',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'language_at_home',
'label' => 'Language At Home',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'participation_in_advanced_level_classes',
'label' => 'Advanced Level Classes',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'remedial_help_in_previous_schools',
'label' => 'Remedial Help',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'special_talent_interest_dance',
'label' => 'Dance',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_drama',
'label' => 'Drama',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_art',
'label' => 'Art',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_acomputer',
'label' => 'Computer',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_vocal_chorus',
'label' => 'Vocal Chorus',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_athletics',
'label' => 'Athletics',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_athletics_spec',
'label' => 'Athletics Specification',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'special_talent_interest_band',
'label' => 'Band',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_band_spec',
'label' => 'Band Specification',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'special_talent_interest_string',
'label' => 'String',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_string_spec',
'label' => 'String Specification',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'hinder_childs_learning',
'label' => 'Learning Process or general Development',
'rules' => 'alpha_space|trim|htmlspecialchars'
),
array(
'field' => 'leave_school',
'label' => 'Previous School Behavioral/Disciplinary Problem',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'previous_school',
'label' => 'Name of Previous School',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'previous_school_address',
'label' => 'Complete School Address',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'previous_grade_level',
'label' => 'Grade Level',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'guardian_name',
'label' => 'Guardian\'s First Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'guardian_mname',
'label' => 'Guardian\'s Middle Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'guardian_lname',
'label' => 'Guardian\'s Middle Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'guardian_citizenship',
'label' => 'Guardian\'s Citizenship',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'guardian_visa',
'label' => 'Guardian\'s Philippine Visa Status',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'guardian_occup',
'label' => 'Guardian\'s Employer or Organization',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'guardian_office_tel',
'label' => 'Guardian\'s Office Phone Number',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'guardian_contact_no',
'label' => 'Guardian\'s Mobile Number',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'guardian_contact_no_text',
'label' => 'Guardian\'s Contact If',
'rules' => 'trim'
)
),
'enrollment_profile_2' => array(
array(
'field' => 'email',
'label' => 'Email Address',
'rules' => 'required|valid_email|trim|htmlspecialchars'
),
array(
'field' => 'level_id',
'label' => 'Grade Level',
'rules' => 'required|numeric|trim|htmlspecialchars'
),
array(
'field' => 'child_fname',
'label' => 'Child First name',
'rules' => 'required|alpha_space|trim|htmlspecialchars'
),
array(
'field' => 'child_mname',
'label' => 'Childs Middle Name',
'rules' => 'alpha|trim|htmlspecialchars'
),
array(
'field' => 'child_lname',
'label' => 'Child Last Name',
'rules' => 'required|alpha|trim|htmlspecialchars'
),
array(
'field' => 'child_nickname',
'label' => 'Preferred Name',
'rules' => 'alpha|trim|htmlspecialchars'
),
array(
'field' => 'child_name_ext',
'label' => 'Child\'s Name Extension',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'gender',
'label' => 'Childs Gender',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'child_bdate',
'label' => 'Child\'s Birth date',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'child_nationality',
'label' => 'Child\'s Nationality',
'rules' => 'alpha_numeric|required|trim|htmlspecialchars'
),
array(
'field' => 'child_placeofbirth',
'label' => 'Child\'s Place of Birth',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'child_city_address',
'label' => 'Residential Address',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'child_telno',
'label' => 'Home Phone',
'rules' => 'numeric|required|trim|htmlspecialchars'
),
array(
'field' => 'mobile_phone',
'label' => 'Mobile Phone',
'rules' => 'numeric|required|trim|htmlspecialchars'
),
array(
'field' => 'child_religous',
'label' => 'Religion',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'living_in_ph_with_father',
'label' => 'Father / Step Father',
'rules' => 'trim'
),
array(
'field' => 'living_in_ph_with_mother',
'label' => 'Mother / Step Mother',
'rules' => 'trim'
),
array(
'field' => 'living_in_ph_with_guardian',
'label' => 'Guardian',
'rules' => 'trim'
),
array(
'field' => 'childs_english_reading_writing_level',
'label' => 'English Writing Level',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'childs_english_verbal_proficiency',
'label' => 'English Verbal Proficiency',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'language_at_home',
'label' => 'Language At Home',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'participation_in_advanced_level_classes',
'label' => 'Advanced Level Classes',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'remedial_help_in_previous_schools',
'label' => 'Remedial Help',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'special_talent_interest_dance',
'label' => 'Dance',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_drama',
'label' => 'Drama',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_art',
'label' => 'Art',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_acomputer',
'label' => 'Computer',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_vocal_chorus',
'label' => 'Vocal Chorus',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_athletics',
'label' => 'Athletics',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_athletics_spec',
'label' => 'Athletics Specification',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'special_talent_interest_band',
'label' => 'Band',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_band_spec',
'label' => 'Band Specification',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'special_talent_interest_string',
'label' => 'String',
'rules' => 'trim'
),
array(
'field' => 'special_talent_interest_string',
'label' => 'String Specification',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'hinder_childs_learning',
'label' => 'Learning Process or general Development',
'rules' => 'alpha_space|trim|htmlspecialchars'
),
array(
'field' => 'leave_school',
'label' => 'Previous School Behavioral/Disciplinary Problem',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'previous_school',
'label' => 'Name of Previous School',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'previous_school_address',
'label' => 'Complete School Address',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'previous_grade_level',
'label' => 'Grade Level',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'guardian_name',
'label' => 'Guardian\'s First Name',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'guardian_mname',
'label' => 'Guardian\'s Middle Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'guardian_lname',
'label' => 'Guardian\'s Middle Name',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'guardian_citizenship',
'label' => 'Guardian\'s Citizenship',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'guardian_visa',
'label' => 'Guardian\'s Philippine Visa Status',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'guardian_occup',
'label' => 'Guardian\'s Employer or Organization',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'guardian_office_tel',
'label' => 'Guardian\'s Office Phone Number',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'guardian_contact_no',
'label' => 'Guardian\'s Mobile Number',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'guardian_contact_no_text',
'label' => 'Guardian\'s Contact If',
'rules' => 'trim'
)
),
/*+-------------------------------------------------+
* | Validation rules for parent information form |
* +-------------------------------------------------+*/
'father' => array(
array(
'field' => 'father_name',
'label' => 'Father\'s First Name',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'father_mname',
'label' => 'Father\'s Middle Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'father_lname',
'label' => 'Father\'s Last Name',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'father_citizenship',
'label' => 'Father\'s Citizenship',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'father_visa',
'label' => 'Father\'s Philippine Visa Status',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'father_occup',
'label' => 'Father\'s Employer or Organization',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'father_office_tel',
'label' => 'Father\'s Office Phone Number',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'father_contact_no',
'label' => 'Father\'s Mobile Number',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'father_contact_no_text',
'label' => 'Father\'s Contact If',
'rules' => 'trim'
),
array(
'field' => 'step_father_name',
'label' => 'Step Father\'s First Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_father_mname',
'label' => 'Step Father\'s Middle Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_father_lname',
'label' => 'Step Father\'s Last Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_father_citizenship',
'label' => 'Step Father\'s Citizenship',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_father_visa',
'label' => 'Step Father\'s Philippine Visa Status',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_father_occup',
'label' => 'Step Father\'s Employer or Organization',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_father_office_tel',
'label' => 'Step Father\'s Office Phone Number',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_father_contact_no',
'label' => 'Step Father\'s Mobile Number',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_father_contact_no_text',
'label' => 'Step Father\'s Contact If',
'rules' => 'trim'
)
),
'step-father' => array(
array(
'field' => 'father_name',
'label' => 'Father\'s First Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'father_mname',
'label' => 'Father\'s Middle Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'father_lname',
'label' => 'Father\'s Last Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'father_citizenship',
'label' => 'Father\'s Citizenship',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'father_visa',
'label' => 'Father\'s Philippine Visa Status',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'father_occup',
'label' => 'Father\'s Employer or Organization',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'father_office_tel',
'label' => 'Father\'s Office Phone Number',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'father_contact_no',
'label' => 'Father\'s Mobile Number',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'father_contact_no_text',
'label' => 'Father\'s Contact If',
'rules' => 'trim'
),
array(
'field' => 'step_father_name',
'label' => 'Step Father\'s First Name',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'step_father_mname',
'label' => 'Step Father\'s Middle Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_father_lname',
'label' => 'Step Father\'s Last Name',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'step_father_citizenship',
'label' => 'Step Father\'s Citizenship',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'step_father_visa',
'label' => 'Step Father\'s Philippine Visa Status',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'step_father_occup',
'label' => 'Step Father\'s Employer or Organization',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'step_father_office_tel',
'label' => 'Step Father\'s Office Phone Number',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'step_father_contact_no',
'label' => 'Step Father\'s Mobile Number',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'step_father_contact_no_text',
'label' => 'Step Father\'s Contact If',
'rules' => 'trim'
)
),
'mother' => array(
array(
'field' => 'mother_name',
'label' => 'Mother\'s First Name',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'mother_mname',
'label' => 'Mother\'s Middle Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'mother_lname',
'label' => 'Mother\'s Last Name',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'mother_citizenship',
'label' => 'Mother\'s Citizenship',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'mother_visa',
'label' => 'Mother\'s Philippine Visa Status',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'mother_occup',
'label' => 'Mother\'s Employer or Organization',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'mother_office_tel',
'label' => 'Mother\'s Office Phone Number',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'mother_contact_no',
'label' => 'Mother\'s Mobile Number',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'mother_contact_no_text',
'label' => 'Mother\'s Contact If',
'rules' => 'trim'
),
array(
'field' => 'step_mother_name',
'label' => 'Step Mother\'s First Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_mother_mname',
'label' => 'Step Mother\'s Middle Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_mother_lname',
'label' => 'Step Mother\'s Last Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_mother_citizenship',
'label' => 'Step Mother\'s Citizenship',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_mother_visa',
'label' => 'Step Mother\'s Philippine Visa Status',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_mother_occup',
'label' => 'Step Mother\'s Employer or Organization',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_mother_office_tel',
'label' => 'Step Mother\'s Office Phone Number',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_mother_contact_no',
'label' => 'Step Mother\'s Mobile Number',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_mother_contact_no_text',
'label' => 'Step Mother\'s Contact If',
'rules' => 'trim'
)
),
'step-mother' => array(
array(
'field' => 'mother_name',
'label' => 'Mother\'s First Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'mother_mname',
'label' => 'Mother\'s Middle Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'mother_lname',
'label' => 'Mother\'s Last Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'mother_citizenship',
'label' => 'Mother\'s Citizenship',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'mother_visa',
'label' => 'Mother\'s Philippine Visa Status',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'mother_occup',
'label' => 'Mother\'s Employer or Organization',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'mother_office_tel',
'label' => 'Mother\'s Office Phone Number',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'mother_contact_no',
'label' => 'Mother\'s Mobile Number',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'mother_contact_no_text',
'label' => 'Mother\'s Contact If',
'rules' => 'trim'
),
array(
'field' => 'step_mother_name',
'label' => 'Step Mother\'s First Name',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'step_mother_mname',
'label' => 'Step Mother\'s Middle Name',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'step_mother_lname',
'label' => 'Step Mother\'s Last Name',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'step_mother_citizenship',
'label' => 'Step Mother\'s Citizenship',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'step_mother_visa',
'label' => 'Step Mother\'s Philippine Visa Status',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'step_mother_occup',
'label' => 'Step Mother\'s Employer or Organization',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'step_mother_office_tel',
'label' => 'Step Mother\'s Office Phone Number',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'step_mother_contact_no',
'label' => 'Step Mother\'s Mobile Number',
'rules' => 'required|trim|htmlspecialchars'
),
array(
'field' => 'step_mother_contact_no_text',
'label' => 'Step Mother\'s Contact If',
'rules' => 'trim'
)
),
/******* Part 3 of Applicant Form ********/
'healthhistory'=>array(
array(
'field' => 'allergies_reaction',
'label' => 'Allergies',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'drug_allergies_reaction',
'label' => 'Drug Allergies',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'asthma',
'label' => 'Asthma',
'rules' => 'trim'
),
array(
'field' => 'asthma_inhaler',
'label' => 'Asthma Inhaler',
'rules' => 'trim'
),
array(
'field' => 'eye_problem_spec',
'label' => 'Eye Problem',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'ear_problem_spec',
'label' => 'Ear Problem',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'major_ailment',
'label' => 'Major Ailment',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'recently_hospitalized',
'label' => 'Recently Hospitalized',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'major_injury',
'label' => 'Majot Injury',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'medication_child_taking_spec',
'label' => 'Medication Child Is Taking',
'rules' => 'trim|htmlspecialchars'
),
array(
'field' => 'medication_child_taking_school_hours',
'label' => 'Medication Child Is Taking In School Hours',
'rules' => 'trim'
)
),
'let_be'=>array(
array(
'field' => 'authfirst_aid',
'label' => 'First Aid',
'rules' => 'trim'
),
array(
'field' => 'auth_emergency',
'label' => 'Emergency',
'rules' => 'trim'
),
array(
'field' => 'auth_emergency_nearest_hosp',
'label' => 'Emergency Hospitalization',
'rules' => 'trim'
),
array(
'field' => 'auth_oral_non_presc',
'label' => 'Oral Non Prescribe',
'rules' => 'trim'
),
array(
'field' => 'first_permission',
'label' => 'Permission',
'rules' => 'trim|required'
),
array(
'field' => 'second_permission',
'label' => 'I Certify',
'rules' => 'trim|required'
),
array(
'field' => 'third_permission',
'label' => 'Acknowledgement',
'rules' => 'trim|required'
)
),
'pli'=>array(
array(
'field' => 'failure_to_provide',
'label' => 'Failure to provide complete and accurate information',
'rules' => 'required'
),
array(
'field' => 'to_the_best',
'label' => 'To the best of my knowledge',
'rules' => 'required'
)
),
'student_number'=>array(
array(
'field' => 'student_number',
'label' => 'Student Number',
'rules' => 'required|is_unique[enrollments.e_student_id]|integer|trim|htmlspecialchars'
)
),
'nationality2'=>array(
array(
'field' => 'child_nationality2',
'label' => 'Citizenship (Passport)',
'rules' => 'required|trim|htmlspecialchars'
)
)
);
//other nationality
$config["nationality2_enrollment_profile"] = array_merge($config['nationality2'], $config['enrollment_profile']);
$config["nationality2_enrollment_profile_2"] = array_merge($config['nationality2'], $config['enrollment_profile_2']);
//father_mother
$config["father_mother"] = array_merge($config['father'], $config['mother']);
//step-father_mother
$config["step-father_mother"] = array_merge($config['step-father'], $config['mother']);
//step-father_step-mother
$config["step-father_step-mother"] = array_merge($config['step-father'], $config['step-mother']);
//step-father_mother
$config["father_step-mother"] = array_merge($config['father'], $config['step-mother']);
//all
$config["new_nationality1_enrollment_profile_father_mother"] = array_merge($config['enrollment_profile'], $config['father'], $config['mother'], $config['healthhistory'], $config['let_be']);
$config["new_nationality2_enrollment_profile_father_mother"] = array_merge($config['enrollment_profile'], $config['father'], $config['mother'], $config['healthhistory'], $config['let_be'], $config['nationality2']);
$config["nationality1_enrollment_profile_father_mother"] = array_merge($config['enrollment_profile'], $config['father'], $config['mother'], $config['healthhistory'], $config['let_be'], $config['student_number']);
$config["nationality2_enrollment_profile_father_mother"] = array_merge($config['enrollment_profile'], $config['father'], $config['mother'], $config['healthhistory'], $config['let_be'], $config['student_number'], $config['nationality2']);
$config["new_nationality1_enrollment_profile_2_father_mother"] = array_merge($config['enrollment_profile_2'], $config['father'], $config['mother'], $config['healthhistory'], $config['let_be']);
$config["new_nationality2_enrollment_profile_2_father_mother"] = array_merge($config['enrollment_profile_2'], $config['father'], $config['mother'], $config['healthhistory'], $config['let_be'], $config['nationality2']);
$config["nationality1_enrollment_profile_2_father_mother"] = array_merge($config['enrollment_profile_2'], $config['father'], $config['mother'], $config['healthhistory'], $config['let_be'], $config['student_number']);
$config["nationality2_enrollment_profile_2_father_mother"] = array_merge($config['enrollment_profile_2'], $config['father'], $config['mother'], $config['healthhistory'], $config['let_be'], $config['student_number'], $config['nationality2']);
$config["new_nationality1_enrollment_profile_step-father_mother"] = array_merge($config['enrollment_profile'], $config['step-father'], $config['mother'], $config['healthhistory'], $config['let_be']);
$config["new_nationality2_enrollment_profile_step-father_mother"] = array_merge($config['enrollment_profile'], $config['step-father'], $config['mother'], $config['healthhistory'], $config['let_be'], $config['nationality2']);
$config["nationality1_enrollment_profile_step-father_mother"] = array_merge($config['enrollment_profile'], $config['step-father'], $config['mother'], $config['healthhistory'], $config['let_be'], $config['student_number']);
$config["nationality2_enrollment_profile_step-father_mother"] = array_merge($config['enrollment_profile'], $config['step-father'], $config['mother'], $config['healthhistory'], $config['let_be'], $config['student_number'], $config['nationality2']);
$config["new_nationality1_enrollment_profile_2_step-father_mother"] = array_merge($config['enrollment_profile_2'], $config['step-father'], $config['mother'], $config['healthhistory'], $config['let_be']);
$config["new_nationality2_enrollment_profile_2_step-father_mother"] = array_merge($config['enrollment_profile_2'], $config['step-father'], $config['mother'], $config['healthhistory'], $config['let_be'], $config['nationality2']);
$config["nationality1_enrollment_profile_2_step-father_mother"] = array_merge($config['enrollment_profile_2'], $config['step-father'], $config['mother'], $config['healthhistory'], $config['let_be'], $config['student_number']);
$config["nationality2_enrollment_profile_2_step-father_mother"] = array_merge($config['enrollment_profile_2'], $config['step-father'], $config['mother'], $config['healthhistory'], $config['let_be'], $config['student_number'], $config['nationality2']);
$config["new_nationality1_enrollment_profile_step-father_step-mother"] = array_merge($config['enrollment_profile'], $config['step-father'], $config['step-mother'], $config['healthhistory'], $config['let_be']);
$config["new_nationality2_enrollment_profile_step-father_step-mother"] = array_merge($config['enrollment_profile'], $config['step-father'], $config['step-mother'], $config['healthhistory'], $config['let_be'], $config['nationality2']);
$config["nationality1_enrollment_profile_step-father_step-mother"] = array_merge($config['enrollment_profile'], $config['step-father'], $config['step-mother'], $config['healthhistory'], $config['let_be'], $config['student_number']);
$config["nationality2_enrollment_profile_step-father_step-mother"] = array_merge($config['enrollment_profile'], $config['step-father'], $config['step-mother'], $config['healthhistory'], $config['let_be'], $config['student_number'], $config['nationality2']);
$config["new_nationality1_enrollment_profile_2_step-father_step-mother"] = array_merge($config['enrollment_profile_2'], $config['step-father'], $config['step-mother'], $config['healthhistory'], $config['let_be']);
$config["new_nationality2_enrollment_profile_2_step-father_step-mother"] = array_merge($config['enrollment_profile_2'], $config['step-father'], $config['step-mother'], $config['healthhistory'], $config['let_be'], $config['nationality2']);
$config["nationality1_enrollment_profile_2_step-father_step-mother"] = array_merge($config['enrollment_profile_2'], $config['step-father'], $config['step-mother'], $config['healthhistory'], $config['let_be'], $config['student_number']);
$config["nationality2_enrollment_profile_2_step-father_step-mother"] = array_merge($config['enrollment_profile_2'], $config['step-father'], $config['step-mother'], $config['healthhistory'], $config['let_be'], $config['student_number'], $config['nationality2']);
$config["new_nationality1_enrollment_profile_father_step-mother"] = array_merge($config['enrollment_profile'], $config['father'], $config['step-mother'], $config['healthhistory'], $config['let_be']);
$config["new_nationality2_enrollment_profile_father_step-mother"] = array_merge($config['enrollment_profile'], $config['father'], $config['step-mother'], $config['healthhistory'], $config['let_be'], $config['nationality2']);
$config["nationality1_enrollment_profile_father_step-mother"] = array_merge($config['enrollment_profile'], $config['father'], $config['step-mother'], $config['healthhistory'], $config['let_be'], $config['student_number']);
$config["nationality2_enrollment_profile_father_step-mother"] = array_merge($config['enrollment_profile'], $config['father'], $config['step-mother'], $config['healthhistory'], $config['let_be'], $config['student_number'], $config['nationality2']);
$config["new_nationality1_enrollment_profile_2_father_step-mother"] = array_merge($config['enrollment_profile_2'], $config['father'], $config['step-mother'], $config['healthhistory'], $config['let_be']);
$config["new_nationality2_enrollment_profile_2_father_step-mother"] = array_merge($config['enrollment_profile_2'], $config['father'], $config['step-mother'], $config['healthhistory'], $config['let_be'], $config['nationality2']);
$config["nationality1_enrollment_profile_2_father_step-mother"] = array_merge($config['enrollment_profile_2'], $config['father'], $config['step-mother'], $config['healthhistory'], $config['let_be'], $config['student_number']);
$config["nationality2_enrollment_profile_2_father_step-mother"] = array_merge($config['enrollment_profile_2'], $config['father'], $config['step-mother'], $config['healthhistory'], $config['let_be'], $config['student_number'], $config['nationality2']); | 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/form_validation.php | PHP | mit | 33,573 |
<?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. Please see the user guide for info:
|
| http://codeigniter.com/user_guide/general/hooks.html
|
*/
/* End of file hooks.php */
/* Location: ./application/config/hooks.php */ | 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/hooks.php | PHP | mit | 498 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Profiler Sections
| -------------------------------------------------------------------------
| This file lets you determine whether or not various sections of Profiler
| data are displayed when the Profiler is enabled.
| Please see the user guide for info:
|
| http://codeigniter.com/user_guide/general/profiling.html
|
*/
/* End of file profiler.php */
/* Location: ./application/config/profiler.php */ | 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/profiler.php | PHP | mit | 564 |
<?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/xhtml1/DTD/xhtml1-strict.dtd">',
'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
'html5' => '<!DOCTYPE html>',
'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'
);
/* End of file doctypes.php */
/* Location: ./application/config/doctypes.php */ | 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/doctypes.php | PHP | mit | 1,138 |
<?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 images can be used to replace multiple simileys. For example:
| :-) and :) use the same image replacement.
|
| Please see user guide for more info:
| http://codeigniter.com/user_guide/helpers/smiley_helper.html
|
*/
$smileys = array(
// smiley image name width height alt
':-)' => array('grin.gif', '19', '19', 'grin'),
':lol:' => array('lol.gif', '19', '19', 'LOL'),
':cheese:' => array('cheese.gif', '19', '19', 'cheese'),
':)' => array('smile.gif', '19', '19', 'smile'),
';-)' => array('wink.gif', '19', '19', 'wink'),
';)' => array('wink.gif', '19', '19', 'wink'),
':smirk:' => array('smirk.gif', '19', '19', 'smirk'),
':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'),
':-S' => array('confused.gif', '19', '19', 'confused'),
':wow:' => array('surprise.gif', '19', '19', 'surprised'),
':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'),
':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
'%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'),
':P' => array('raspberry.gif', '19', '19', 'raspberry'),
':blank:' => array('blank.gif', '19', '19', 'blank stare'),
':long:' => array('longface.gif', '19', '19', 'long face'),
':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
'8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
':down:' => array('downer.gif', '19', '19', 'downer'),
':red:' => array('embarrassed.gif', '19', '19', 'red face'),
':sick:' => array('sick.gif', '19', '19', 'sick'),
':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
':-/' => array('hmm.gif', '19', '19', 'hmmm'),
'>:(' => array('mad.gif', '19', '19', 'mad'),
':mad:' => array('mad.gif', '19', '19', 'mad'),
'>:-(' => array('angry.gif', '19', '19', 'angry'),
':angry:' => array('angry.gif', '19', '19', 'angry'),
':zip:' => array('zip.gif', '19', '19', 'zipper'),
':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
':ahhh:' => array('shock.gif', '19', '19', 'shock'),
':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
':snake:' => array('snake.gif', '19', '19', 'snake'),
':exclaim:' => array('exclaim.gif', '19', '19', 'excaim'),
':question:' => array('question.gif', '19', '19', 'question') // no comma after last item
);
/* End of file smileys.php */
/* Location: ./application/config/smileys.php */ | 0683babd6e120333c4dae5bac951f5cc | trunk/application/config/smileys.php | PHP | mit | 3,295 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/index.html | HTML | mit | 114 |
<style>
div.enrollment-menu
{
padding:20px;
border:2px dashed #c0c0c0;
}
div.option{
margin:20px 5px;
}
</style>
<div class="row">
<div class="large-3 columns"> </div>
<div class="large-6 columns enrollment-menu">
<div>
<h1><?=$message->heading;?></h1>
</div>
<div class="alert">
<?=$message->content;?>
</div>
</div>
<div class="large-3 columns"> </div>
</div> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/offline/index.php | PHP | mit | 403 |
<?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');
?>
<div> </div>
<div class="large-12 columns"><h5 class="lead">MEDICAL INFORMATION AND HEALTH HISTORY</h5></div>
<hr class="clearfix">
<div class="large-12 columns">
<span>1. Does your child have any of the following?</span>
<?='<br>'.form_error('allergies_reaction');?>
</div>
<div class="large-12 columns">
<span>Allergies (specify if yes)</span>
<input type="text" name="allergies_reaction" value="<?=set_value('allergies_reaction');?>">
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>Drug Allergies (specify if yes)</span>
<?='<br>'.form_error('drug_allergies_reaction');?>
<input type="text" name="drug_allergies_reaction" value="<?=set_value('drug_allergies_reaction');?>">
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-4 columns">
<span>Asthma</span>
<?=form_radio('asthma', 'no', 'checked');?> No <?=form_radio('asthma', 'yes');?> Yes
</div>
<div class="large-8 columns">
<span>Does your child carry an asthma inhaler?</span>
<?=form_radio('asthma_inhaler', 'no', 'checked');?> No <?=form_radio('asthma_inhaler', 'yes');?> Yes
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>Eye or Vision problems (specify if yes)</span>
<?='<br>'.form_error('eye_problem_spec');?>
<textarea name="eye_problem_spec"><?=set_value('eye_problem_spec');?></textarea>
</div>
<div class="large-12 columns">
<span>Ear or hearing problem(s) specify if yes</span>
<?='<br>'.form_error('ear_problem_spec');?>
<textarea name="ear_problem_spec"><?=set_value('ear_problem_spec');?></textarea>
</div>
<div class="large-12 columns">
<span>2. Any other health condition that the school should be aware of (e.g. epilepsy, diabetes, etc)</span>
<?='<br>'.form_error('major_ailment');?>
<textarea name="major_ailment"><?=set_value('major_ailment');?></textarea>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>3. Has your child recently been hospitalized? Why? / When?</span>
<?='<br>'.form_error('recently_hospitalized');?>
<textarea name="recently_hospitalized"><?=set_value('recently_hospitalized');?></textarea>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>4. Has your child recently had any serious injuries: Why? / When?</span>
<?='<br>'.form_error('major_injury');?>
<textarea name="major_injury"><?=set_value('major_injury');?></textarea>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>5. Is your child on a regular medication? if yes please specify medication and frequency.</span>
<?='<br>'.form_error('medication_child_taking_spec');?>
<textarea name="medication_child_taking_spec"><?=set_value('medication_child_taking_spec');?></textarea>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>6. Does your child need to take any medication/s during school hours?</span> <?=form_radio('medication_child_taking_school_hours', 'no', 'checked');?> No <?=form_radio('medication_child_taking_school_hours', 'yes');?> Yes.
</div>
<div class="clearfix"></div>
<div class="alert-box">(If so, a letter from the Medical Doctor must be submitted, and be kept on file and medication(s) will also be kept in the school, to be dispensed only by the teacher or authorized person.)</div>
<div class="clearfix"></div>
<hr class="clearfix">
<div>
<a href="#" id="panel_3" class="btn btn-primary">Continue Part 4: Authorization</a>
</div>
<script>
$( document ).ready(function() {
$('#panel_3').on('click', function(event) {
$('#panel1').removeClass("active");
$('#panel1').css("padding-top", "");
$('#panel2').removeClass("active");
$('#panel2').css("padding-top", "");
$('#panel3').removeClass("active");
$('#panel3').css("padding-top", "");
$('#panel4').addClass("active");
$('#panel4').css("padding-top", "50px");
});
});
</script> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/register/health_history_information.php | PHP | mit | 4,310 |
<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: "\2714";
cursor: pointer;
}
#legal_guardian_info{
display:none;
}
#father_info{
display:none;
}
#step_father_info{
display:none;
}
#mother_info{
display:none;
}
#step_mother_info{
display:none;
}
</style>
<div class="large-1 columns"> </div>
<div class="large-10 columns enrollment-menu content-views">
<?echo form_open('register/register_old','id="check-form-submit" class="custom" data-abide autocomplete="off"');?>
<div class="alert">
<i class="icon-info-sign"></i> <strong>Things To Remember</strong>
<ul>
<li><strong>Please use a valid email address as your account credentials will be sent there.</strong></li>
<li><strong>Place "none", if you will answer none. For some required entry.</strong></li>
<li><strong><?=form_checkbox('failure_to_provide', 'yes', TRUE);?> Failure to provide complete and accurate information of any kind on this form will void the application and may result to its cancellation. WESTFIELDS INTERNATIONAL SCHOOL reserves the right to determine the placement of the application in the grade level or subjects deemed most appropriate fo the student's school experience / performance.</strong></li>
<li><strong><?=form_checkbox('to_the_best', 'yes', TRUE);?> To the best of my knowledge the information written on this form is true and correct.</strong></li>
</ul>
</div>
<?=$system_message;?>
<div class="section-container auto" data-section>
<section id="panel1" class="active">
<p class="title" data-section-title><a href="#panel1">Step 1 <?php echo $error_number_1 > 0 ? '<span class="badge badge-important">'.$error_number_1.'</span>' : '<span class="label label-success">'.$error_number_1.'</span>' ; ?> </a></p>
<div class="content" data-section-content>
<p>
<div class="clearfix"></div>
<?php echo $this->load->view('register/applicant_information'); ?>
</p>
</div>
</section>
<section id="panel2">
<p class="title" data-section-title><a href="#panel2">Step 2 <?php echo $error_number_2 > 0 ? '<span class="badge badge-important">'.$error_number_2.'</span>' : '<span class="label label-success">'.$error_number_2.'</span>' ; ?> </a></p>
<div class="content" data-section-content>
<p>
<div class="clearfix"></div>
<?php echo $this->load->view('register/parent_legal_information'); ?>
</p>
</div>
</section>
<section id="panel3">
<p class="title" data-section-title><a href="#panel3">Step 3 <?php echo $error_number_3 > 0 ? '<span class="badge badge-important">'.$error_number_3.'</span>' : '<span class="label label-success">'.$error_number_3.'</span>' ; ?> </a></p>
<div class="content" data-section-content>
<p>
<div class="clearfix"></div>
<?php echo $this->load->view('register/health_history_information'); ?>
</p>
</div>
</section>
<section id="panel4">
<p class="title" data-section-title><a href="#panel4">Step 4 <?php echo $error_number_4 > 0 ? '<span class="badge badge-important">'.$error_number_4.'</span>' : '<span class="label label-success">'.$error_number_4.'</span>' ; ?> </a></p>
<div class="content" data-section-content>
<p>
<div class="clearfix"></div>
<?php echo $this->load->view('register/authorization_information'); ?>
</p>
</div>
</section>
</div>
<?php echo form_close(); ?>
</div>
<div class="large-1 columns"> </div>
</div>
<script>
$( document ).ready(function() {
$('#living_in_ph_with_guardian').on('click blur focus change', function(event) {
if ( $('#living_in_ph_with_guardian').is(':checked') ) {
$('#legal_guardian_info').css('display','block');
}else{
$('#legal_guardian_info').css('display','none');
}
});
if ( $('#living_in_ph_with_guardian').is(':checked') ) {
$('#legal_guardian_info').css('display','block');
}else{
$('#legal_guardian_info').css('display','none');
}
$('#child_nationality').on('click blur focus change', function(event) {
if ( $('#child_nationality').val() == 'other' ) {
$('#for_other_nationality').css('display','block');
}else{
$('#for_other_nationality').css('display','none');
}
});
if ( $('#child_nationality').val() == 'other' ) {
$('#for_other_nationality').css('display','block');
}else{
$('#for_other_nationality').css('display','none');
}
});
</script>
| 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/register/register_old.php | PHP | mit | 4,626 |
<?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"> </div>
<div class="large-6 columns enrollment-menu content-views">
<div class="alert-box">
Reminder for enrollee.<br />
* Please finish the enrollment steps.
</div>
<ul>
<li>Step 1: Applicant Information</li>
<li>Step 2: Parent Information</li>
<li>Step 3: Medical Information and Health History</li>
<li>Step 4: Authorization</li>
</ul>
<?echo form_open('register/registering','class="custom"')?>
<fieldset>
<legend>Please Answer Correctly</legend>
<div class="row collapse">
<div class="small-3 large-2 columns">
<span class="prefix">Captcha</span>
</div>
<div class="small-3 large-5 columns">
<input type="text" name="captcha_answer" autocomplete="off" style="border:#ccc 2px solid;" maxlength="5" required>
</div>
<div class="small-3 large-5 columns" >
<?=$question;?>
<a href="#" data-reveal-id="help" class="btn"><span style="font-size:15px;font-weight:bold;">?</span></a>
</div>
</div>
</fieldset>
<div class="option">
<input type="hidden" name="old_sdj" value="<?=$token;?>">
<input type="submit" class="btn btn-primary" name="enrollment_type" value="Continue Enroll">
</div>
</div>
<?echo form_close()?>
<div class="large-3 columns"> </div>
</div>
<div id="help" class="reveal-modal">
<h2 class="lead">What is This?</h2>
<p>The <b><i>captcha</i></b> is for added security to prevent bots from entering the site
just type on the string from the image below. The string is (case insensitive) meaning it is either lower or upper
and there is no letter "O" only the number zero
</p>
<a class="close-reveal-modal">×</a>
</div>
| 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/register/index.php | PHP | mit | 1,913 |
<?php
$chooseAttrib = array('good' => 'good', 'fair' => 'fair', 'limited' => 'limited', 'none' => 'none' );
$genderAttrib = array('' => 'Select Gender...', 'male' => 'Male', 'female' => 'Female' );
$citizAttrib = array('Filipino' => 'Filipino', 'Chinese' => 'Chinese', 'North Korean' => 'North Korean', 'South Korean' => 'South Korean', 'US Citizen' => 'US Citizen', 'other' => 'Other' );
$citizComp = array(
'Afghan' =>'Afghan',
'Albanian'=>'Albanian',
'Algerian'=>'Algerian',
'Andorran'=>'Andorran',
'Angolan'=>'Angolan',
'Argentinian'=>'Argentinian',
'Armenian'=>'Armenian',
'Australian'=>'Australian',
'Austrian'=>'Austrian',
'Bahamian'=>'Bahamian',
'Bahraini'=>'Bahraini',
'Bangladeshi'=>'Bangladeshi',
'Barbadian'=>'Barbadian',
'Belarusian,Belarusan'=>'Belarusian,Belarusan',
'Belgian'=>'Belgian',
'Belizean'=>'Belizean',
'Beninese'=>'Beninese',
'Bhutanese'=>'Bhutanese',
'Bolivian'=>'Bolivian',
'Bosnian'=>'Bosnian',
'Botswanan,Tswana'=>'Botswanan,Tswana',
'Brazilian'=>'Brazilian',
'British,Briton'=>'British,Briton',
'Bruneian'=>'Bruneian',
'Bulgarian'=>'Bulgarian',
'Burkinese'=>'Burkinese',
'Burmese'=>'Burmese',
'Burundian'=>'Burundian',
'Cambodian'=>'Cambodian',
'Cameroonian'=>'Cameroonian',
'Canadian'=>'Canadian',
'Cape Verdean'=>'Verdean',
'Chadian'=>'Chadian',
'Chilean'=>'Chilean',
'Colombian'=>'Colombian',
'Congolese'=>'Congolese',
'Costa Rican'=>'Costa Rican',
'Croat,Croatian'=>'Croat,Croatian',
'Cuban'=>'Cuban',
'Cypriot'=>'Cypriot',
'Czech'=>'Czech',
'Danish,Dane'=>'Danish,Dane',
'Djiboutian'=>'Djiboutian',
'Dominican'=>'Dominican',
'Dutch'=>'Dutch',
'Ecuadorean'=>'Ecuadorean',
'Egyptian'=>'Egyptian',
'Salvadorean'=>'Salvadorean',
'English'=>'English',
'Eritrean'=>'Eritrean',
'Estonian'=>'Estonian',
'Ethiopian'=>'Ethiopian',
'Fijian'=>'Fijian',
'Finn'=>'Finn',
'French'=>'French',
'Gabonese'=>'Gabonese',
'Gambian'=>'Gambian',
'Georgian'=>'Georgian',
'German'=>'German',
'Ghanaian'=>'Ghanaian',
'Greek'=>'Greek',
'Grenadian'=>'Grenadian',
'Guatemalan'=>'Guatemalan',
'Guinean'=>'Guinean',
'Guyanese'=>'Guyanese',
'Haitian'=>'Haitian',
'Honduran'=>'Honduran',
'Hungarian'=>'Hungarian',
'Icelander'=>'Icelander',
'Indian'=>'Indian',
'Indonesian'=>'Indonesian',
'Iranian'=>'Iranian',
'Iraqi'=>'Iraqi',
'Irish'=>'Irish',
'Italian'=>'Italian',
'Jamaican'=>'Jamaican',
'Japanese'=>'Japanese',
'Jordanian'=>'Jordanian',
'Kazakh'=>'Kazakh',
'Kenyan'=>'Kenyan',
'Kuwaiti'=>'Kuwaiti',
'Laotian'=>'Laotian',
'Latvian'=>'Latvian',
'Lebanese'=>'Lebanese',
'Liberian'=>'Liberian',
'Libyan'=>'Libyan',
'Liechtensteiner'=>'Liechtensteiner',
'Lithuanian'=>'Lithuanian',
'Luxembourger'=>'Luxembourger',
'Macedonian'=>'Macedonian',
'Malagasy,Madagascan'=>'Malagasy,Madagascan',
'Malawian'=>'Malawian',
'Malaysian'=>'Malaysian',
'Maldivian'=>'Maldivian',
'Malian'=>'Malian',
'Maltese'=>'Maltese',
'Mauritanian'=>'Mauritanian',
'Mauritian'=>'Mauritian',
'Mexican'=>'Mexican',
'Moldovan'=>'Moldovan',
'Monegasque,Monacan'=>'Monegasque,Monacan',
'Mongolian'=>'Mongolian',
'Montenegrin'=>'Montenegrin',
'Moroccan'=>'Moroccan',
'Mozambican'=>'Mozambican',
'Namibian'=>'Namibian',
'Nepalese'=>'Nepalese',
'New Zealander'=>'New Zealander',
'Nicaraguan'=>'Nicaraguan',
'Nigerien'=>'Nigerien',
'Nigerian'=>'Nigerian',
'Norwegian'=>'Norwegian',
'Omani'=>'Omani',
'Pakistani'=>'Pakistani',
'Panamanian'=>'Panamanian',
'Papua New Guinean,Guinean'=>'Papua New Guinean,Guinean',
'Paraguayan'=>'Paraguayan',
'Peruvian'=>'Peruvian',
'Pole'=>'Pole',
'Portuguese'=>'Portuguese',
'Qatari'=>'Qatari',
'Romanian'=>'Romanian',
'Russian'=>'Russian',
'Rwandan'=>'Rwandan',
'Saudi Arabian,Saudi'=>'Saudi Arabian,Saudi',
'Scot'=>'Scot',
'Senegalese'=>'Senegalese',
'Serb,Serbian'=>'Serb,Serbian',
'Seychellois'=>'Seychellois',
'Sierra Leonian'=>'Sierra Leonian',
'Singaporean'=>'Singaporean',
'Slovak'=>'Slovak',
'Slovene,Slovenian'=>'Slovene,Slovenian',
'Solomon Islander'=>'Solomon Islander',
'Somali'=>'Somali',
'South African'=>'South African',
'Spaniard'=>'Spaniard',
'Sri Lankan'=>'Sri Lankan',
'Sudanese'=>'Sudanese',
'Surinamer,Surinamese'=>'Surinamer,Surinamese',
'Swazi'=>'Swazi',
'Swedish,Swede'=>'Swedish,Swede',
'Swiss'=>'Swiss',
'Syrian'=>'Syrian',
'Taiwanese'=>'Taiwanese',
'Tajik/Tadjik'=>'Tajik/Tadjik',
'TaTanzanian'=>'TaTanzanian',
'Thai'=>'Thai',
'Togolese'=>'Togolese',
'Trinidadian'=>'Trinidadian',
'Tobagan/Tobagonian'=>'Tobagan/Tobagonian',
'Tunisian'=>'Tunisian',
'Turk'=>'Turk',
'Turkmen'=>'Turkmen',
'Tuvaluan'=>'Tuvaluan',
'Ugandan'=>'Ugandan',
'Ukrainian'=>'Ukrainian',
'Emirati'=>'Emirati',
'Uruguayan'=>'Uruguayan',
'Uzbek'=>'Uzbek',
'Vanuatuan'=>'Vanuatuan',
'Venezuelan'=>'Venezuelan',
'Vietnamese'=>'Vietnamese',
'a Welshman, a Welshwoman'=>'a Welshman, a Welshwoman',
'Western Samoan'=>'Western Samoan',
'Yemeni'=>'Yemeni',
'Yugoslav'=>'Yugoslav',
'Zairean'=>'Zairean',
'Zambian'=>'Zambian',
'Zimbabwean'=>'Zimbabwean'
);
?>
<div> </div>
<div class="large-12 columns"><h5 class="lead">APPLICANT INFORMATION (List all names as recorded in birth certificate/passport)</h5></div>
<hr class="clearfix">
<div class="large-4 columns">
<span>Student Number</span>
<?='<br>'.form_error('student_number');?>
<input type="text" name="student_number" value="<?=set_value('student_number');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Valid Email Address</span>
<?='<br>'.form_error('email');?>
<input type="email" data-tooltip class="has-tip tip-top" title="Student information, credentials and other news will be sent to your email address." name="email" value="<?=set_value('email');?>">
</div>
<div class="large-4 columns">
<span>Grade Level</span>
<?='<br>'.form_error('level_id');?>
<?php echo form_dropdown('level_id', $levels, set_value('level_id'));?>
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>First Name</span>
<?='<br>'.form_error('child_fname');?>
<input type="text" name="child_fname" value="<?=set_value('child_fname');?>">
</div>
<div class="large-4 columns">
<span>Middle Name</span>
<?php echo '<br>'.form_error('child_mname') == '' ? '<span style="font-size:10px;font-weight:bold;">If No middle name just put "none"</span>' : '<br>'.form_error('child_mname'); ?>
<input type="text" name="child_mname" value="<?=set_value('child_mname');?>">
</div>
<div class="large-4 columns">
<span>Last Name</span>
<?='<br>'.form_error('child_lname');?>
<input type="text" name="child_lname" value="<?=set_value('child_lname');?>">
</div>
<div class="large-4 columns">
<span>Preferred Name</span>
<?='<br>'.form_error('child_nickname');?>
<input type="text" name="child_nickname" value="<?=set_value('child_nickname');?>">
</div>
<div class="large-4 columns">
<span>Name Ext (e.g jr,II,III)</span>
<?='<br>'.form_error('child_name_ext');?>
<input type="text" name="child_name_ext" value="<?=set_value('child_name_ext');?>">
</div>
<div class="large-4 columns">
<span>Gender</span>
<?='<br>'.form_error('gender');?>
<?=form_dropdown('gender', $genderAttrib, set_value('gender'));?>
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Date of Birth:</span>
<?='<br>'.form_error('child_bdate');?>
<input type="text" name="child_bdate" class="birthdate" value="<?=set_value('child_bdate');?>">
</div>
<div class="large-4 columns">
<span>Citizenship (Passport)</span>
<?='<br>'.form_error('child_nationality');?>
<?php echo form_dropdown('child_nationality', $citizAttrib, set_value('child_nationality'), 'id="child_nationality"');?>
</div>
<div class="large-4 columns">
<span>Place of Birth</span>
<?='<br>'.form_error('child_placeofbirth');?>
<input type="text" name="child_placeofbirth" value="<?=set_value('child_placeofbirth');?>">
</div>
<div id="for_other_nationality" style="display:none;">
<div class="clearfix"></div>
<div class="large-4 columns"><span> </span></div>
<div class="large-4 columns">
<?php //echo form_dropdown('child_nationality2', $citizComp, set_value('child_nationality2'), 'id="child_nationality2"');?>
<?='<br>'.form_error('child_nationality2');?>
<input type="text" name="child_nationality2" value="<?=set_value('child_nationality2');?>">
</div>
<div class="large-4 columns"><span> </span></div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>Residential Address in the Philippines</span>
<?='<br>'.form_error('child_city_address');?>
<input type="text" name="child_city_address" value="<?=set_value('child_city_address');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Home Phone</span>
<?='<br>'.form_error('child_telno');?>
<input type="text" name="child_telno" value="<?=set_value('child_telno');?>">
</div>
<div class="large-4 columns">
<span>Mobile Phone</span>
<?='<br>'.form_error('mobile_phone');?>
<input type="text" name="mobile_phone" value="<?=set_value('mobile_phone');?>">
</div>
<div class="large-4 columns">
<span>Religion</span>
<?='<br>'.form_error('child_religous');?>
<input type="text" name="child_religous" value="<?=set_value('child_religous');?>">
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>1- The student will be living in the Philippines with (pls. check all that apply):</span>
<?php echo $cannot_be_with=='no' ? '<br><span class="error_simple">Please choose at least 1.</span>' : ''; ?>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?=form_checkbox('living_in_ph_with_father', 'yes', set_checkbox('living_in_ph_with_father', 'yes'));?>
<span>Father / Step Father</span>
</div>
<div class="large-4 columns">
<?=form_checkbox('living_in_ph_with_mother', 'yes', set_checkbox('living_in_ph_with_mother', 'yes'));?>
<span>Mother / Step Mother</span>
</div>
<div class="large-4 columns"> </div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-2 columns">
<?=form_checkbox('living_in_ph_with_guardian', 'yes', set_checkbox('living_in_ph_with_guardian', 'yes'), 'id="living_in_ph_with_guardian"');?>
<span>Guardian</span>
</div>
<div class="large-10 columns"> </div>
</div>
</div>
<div class="clearfix"></div>
<div id="legal_guardian_info">
<div class="large-12 columns">
<span>Information about the legal guardian</span>
</div>
<div class="row" >
<div class="large-12 columns">
<div class="large-4 columns">
<span>Guardian's First Name</span>
<?='<br>'.form_error('guardian_name');?>
<input type="text" name="guardian_name" value="<?=set_value('guardian_name');?>">
</div>
<div class="large-4 columns">
<span>Guardian's Middle Name</span>
<?='<br>'.form_error('guardian_mname');?>
<input type="text" name="guardian_mname" value="<?=set_value('guardian_mname');?>">
</div>
<div class="large-4 columns">
<span>Guardian's Last Name</span>
<?='<br>'.form_error('guardian_lname');?>
<input type="text" name="guardian_lname" value="<?=set_value('guardian_lname');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Citizenship (Passport)</span>
<?='<br>'.form_error('guardian_citizenship');?>
<input type="text" name="guardian_citizenship" value="<?=set_value('guardian_citizenship');?>">
</div>
<div class="large-4 columns">
<span>Philippine Visa Status</span>
<?='<br>'.form_error('guardian_visa');?>
<input type="text" name="guardian_visa" value="<?=set_value('guardian_visa');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Employer or Organization</span>
<?='<br>'.form_error('guardian_occup');?>
<input type="text" name="guardian_occup" value="<?=set_value('guardian_occup');?>">
</div>
<div class="large-4 columns">
<span>Office Phone Number</span>
<?='<br>'.form_error('guardian_office_tel');?>
<input type="text" name="guardian_office_tel" value="<?=set_value('guardian_office_tel');?>">
</div>
<div class="large-4 columns">
<span>Mobile Number</span>
<?='<br>'.form_error('guardian_contact_no');?>
<input type="text" name="guardian_contact_no" value="<?=set_value('guardian_contact_no');?>">
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<label><?=form_checkbox('guardian_contact_no_text', 'yes', FALSE, set_checkbox('guardian_contact_no_text', 'yes'));?> <span>Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label>
</div>
</div>
</div>
</div>
<div class="large-12 columns">
<div class="large-4 columns" style="padding:0px;">
<span>2- Your child's English reading and writing level: </span>
<?='<br>'.form_error('childs_english_reading_writing_level');?>
</div>
<div class="large-2 columns">
<?=form_dropdown('childs_english_reading_writing_level', $chooseAttrib, set_value('childs_english_reading_writing_level'));?>
</div>
<div class="large-4 columns" style="padding:0px;">
<span>3- Your child's English verbal proficiency: </span>
<?='<br>'.form_error('childs_english_verbal_proficiency');?>
</div>
<div class="large-2 columns">
<?=form_dropdown('childs_english_verbal_proficiency', $chooseAttrib, set_value('childs_english_verbal_proficiency'));?>
</div>
</div>
<div class="large-12 columns">
<span>4- Languages Spoken at home?</span>
<?='<br>'.form_error('language_at_home');?>
<input type="text" name="language_at_home" value="<?=set_value('language_at_home');?>">
</div>
<div class="large-12 columns">
<span>5- List any participation in advanced level classes (i.e., Advanced Math, Gifted or Talented, Gateway, Writing, etc.)</span>
<?='<br>'.form_error('participation_in_advanced_level_classes');?>
<input type="text" name="participation_in_advanced_level_classes" value="<?=set_value('participation_in_advanced_level_classes');?>">
</div>
<div class="large-12 columns">
<span>6- Did your child receive any remedial help in previous schools (i.e., Remedial Program, Special Education, Speech Therapy, IEP, IDP, etc). <br/>If yes, please explain and provide latest testing results.</span>
<?='<br>'.form_error('remedial_help_in_previous_schools');?>
<input type="text" name="remedial_help_in_previous_schools" value="<?=set_value('remedial_help_in_previous_schools');?>">
</div>
<div class="large-12 columns">
<span>7- Does your child have any special talent or interest in:</span>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-2 columns">
<?=form_checkbox('special_talent_interest_dance', 'yes');?>
<span>Dance</span>
</div>
<div class="large-2 columns">
<?=form_checkbox('special_talent_interest_drama', 'yes');?>
<span>Drama</span>
</div>
<div class="large-2 columns">
<?=form_checkbox('special_talent_interest_art', 'yes');?>
<span>Art</span>
</div>
<div class="large-2 columns">
<?=form_checkbox('special_talent_interest_acomputer', 'yes');?>
<span>Computer</span>
</div>
<div class="large-3 columns">
<?=form_checkbox('special_talent_interest_vocal_chorus', 'yes');?>
<span>Vocal or Chorus</span>
</div>
<div class="large-1 columns"> </div>
</div>
</div>
<br>
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?=form_checkbox('special_talent_interest_athletics', 'yes');?>
<span>Athletics - favorite Sport(s):</span>
</div>
<div class="large-8 columns">
<?='<br>'.form_error('special_talent_interest_athletics_spec');?>
<input type="text" name="special_talent_interest_athletics_spec" value="<?=set_value('special_talent_interest_athletics_spec');?>">
</div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?=form_checkbox('special_talent_interest_band', 'yes');?>
<span>Band (Instrument?)</span>
</div>
<div class="large-8 columns">
<?='<br>'.form_error('special_talent_interest_band_spec');?>
<input type="text" name="special_talent_interest_band_spec" value="<?=set_value('special_talent_interest_band_spec');?>">
</div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?=form_checkbox('special_talent_interest_string', 'yes');?>
<span>String (Instrument?)</span>
</div>
<div class="large-8 columns">
<?='<br>'.form_error('special_talent_interest_string_spec');?>
<input type="text" name="special_talent_interest_string_spec" value="<?=set_value('special_talent_interest_string_spec');?>">
</div>
</div>
</div>
<div class="large-12 columns">
<span>8- Is there any other information you think the teacher should know about your child?</span>
<?='<br>'.form_error('hinder_childs_learning');?>
<textarea name="hinder_childs_learning"><?=set_value('hinder_childs_learning');?></textarea>
</div>
<div class="large-12 columns">
<span>9- Has your child ever been asked to leave school because of any behavioral / disciplinary problems? If yes, please explain.</span>
<?='<br>'.form_error('leave_school');?>
<textarea name="leave_school"><?=set_value('leave_school');?></textarea>
</div>
<div class="large-12 columns">
<label class="span">Name of Previous School:</label>
<?='<br>'.form_error('previous_school');?>
<input type="text" name="previous_school" value="<?=set_value('previous_school');?>">
</div>
<div class="large-12 columns">
<label class="span">Complete School Address (including zip code):</label>
<?='<br>'.form_error('previous_school_address');?>
<input type="text" name="previous_school_address" value="<?=set_value('previous_school_address');?>">
</div>
<div class="large-12 columns">
<label class="span">Grade Level / Academic Year</label>
<?='<br>'.form_error('previous_grade_level');?>
<input type="text" name="previous_grade_level" value="<?=set_value('previous_grade_level');?>">
</div>
<hr class="clearfix">
<div>
<a href="#" id="panel_1" class="btn btn-primary">Continue Part 2: Parent / Legal Guardian Information</a>
</div>
<script>
$( document ).ready(function() {
$('#panel_1').on('click', function(event) {
$('#panel1').removeClass("active");
$('#panel1').css("padding-top", "");
$('#panel2').addClass("active");
$('#panel3').removeClass("active");
$('#panel3').css("padding-top", "");
$('#panel4').removeClass("active");
$('#panel4').css("padding-top", "");
});
});
</script> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/register/applicant_information.php | PHP | mit | 18,621 |
<?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');
?>
<div class="large-12 columns"><h5 class="lead">AUTHORIZATION</h5></div>
<hr class="clearfix">
<div class="large-12 columns">
<span>I give consent for my child to receive the following:</span>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-2 columns">
</div>
<div class="large-5 columns">
<span>*1. Minor first aid</span>
</div>
<div class="large-2 columns">
<?=form_radio('authfirst_aid', 'no','checked');?> No <?=form_radio('authfirst_aid', 'yes');?> Yes
</div>
<div class="large-3 columns">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-2 columns">
</div>
<div class="large-5 columns">
<span>*2. Emergency care</span>
</div>
<div class="large-2 columns">
<?=form_radio('auth_emergency', 'no','checked');?> No <?=form_radio('auth_emergency', 'yes');?> Yes
</div>
<div class="large-3 columns">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-2 columns">
</div>
<div class="large-5 columns">
<span>*3. Emergency care at the nearest hospital</span>
</div>
<div class="large-2 columns">
<?=form_radio('auth_emergency_nearest_hosp', 'no','checked');?> No <?=form_radio('auth_emergency_nearest_hosp', 'yes');?> Yes
</div>
<div class="large-3 columns">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-2 columns">
</div>
<div class="large-5 columns">
<span>*4. Oral non-prescription medication</span>
</div>
<div class="large-2 columns">
<?=form_radio('auth_oral_non_presc', 'no','checked');?> No <?=form_radio('auth_oral_non_presc', 'yes');?> Yes
</div>
<div class="large-3 columns">
</div>
</div>
<div class="clearfix"></div>
<div> </div>
<div class="large-12 columns">
<span style="font-align:left;">***NOTE: If you answered "NO" to numbers 1, 2, and / or 3, you must provide the school with alternative emergency care instructions, to be kept in your child's school records / file.</span>
</div>
<div class="clearfix"></div>
<div> </div>
<div class="large-12 columns">
<?=form_error('first_permission').'<br/>';?>
<?=form_checkbox('first_permission', 'yes', set_checkbox('first_permission', 'yes'));?> <span style="font-style:italic;">Permission is hereby given for emergency measures to be initiated in case of accident or sudden illness with the undestanding that I will be notified as soon as possible.</span>
</div>
<div class="clearfix"></div>
<div> </div>
<div class="large-12 columns">
<?=form_error('second_permission').'<br/>';?>
<?=form_checkbox('second_permission', 'yes', set_checkbox('second_permission', 'yes'));?> <span style="font-style:italic;">I certify that all information given is complete and correct.</span>
</div>
<div class="clearfix"></div>
<div> </div>
<div class="large-12 columns">
<?=form_error('third_permission').'<br/>';?>
<?=form_checkbox('third_permission', 'yes', set_checkbox('third_permission', 'yes'));?> <span style="font-style:italic;">I acknowledge that it is my responsibilty to inform Westfields IS of any changes in my child's health, physical condition or medical needs and any changes in our address and / or contact number(s).</span>
</div>
<div class="clearfix"></div>
<hr class="clearfix">
<div>
<input type="hidden" name="let_be_lefg" value="<?=$token;?>">
<input type="hidden" name="fillup_let_be" value="true">
<input type="submit" name="fillup_let_be" value="Finish" class="btn btn-primary">
</div>
| 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/register/authorization_information.php | PHP | mit | 4,037 |
<div> </div>
<div class="large-12 columns"><h5 class="lead">PARENT / LEGAL GUARDIAN INFORMATION</h5></div>
<hr class="clearfix">
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?php
if($to_be_display_father == 'father' || $to_be_display_father == ''){
?>
<?=form_radio('to_be_display_father', 'father', TRUE, 'id="to_be_display_father"');?>
<?php
}else{
?>
<?=form_radio('to_be_display_father', 'father', set_radio('to_be_display_father', 'father'), 'id="to_be_display_father"');?>
<?php
}
?>
<span>Biological Father</span>
</div>
<div class="large-4 columns">
<?php
if($to_be_display_father == 'step-father'){
?>
<?=form_radio('to_be_display_father', 'step-father', TRUE, 'id="to_be_display_step_father"');?>
<?php
}else{
?>
<?=form_radio('to_be_display_father', 'step-father', set_radio('to_be_display_father', 'step-father'), 'id="to_be_display_step_father"');?>
<?php
}
?>
<span>Step Father</span>
</div>
<div class="large-4 columns"> </div>
</div>
</div>
<div id="father_info">
<div class="large-12 columns">
<legend>Information About The Father</legend>
<br>
<div class="large-4 columns">
<span>First Name</span>
<?='<br>'.form_error('father_name');?>
<input type="text" name="father_name" value="<?=set_value('father_name');?>">
</div>
<div class="large-4 columns">
<span>Middle Name</span>
<?='<br>'.form_error('father_mname');?>
<input type="text" name="father_mname" value="<?=set_value('father_mname');?>">
</div>
<div class="large-4 columns">
<span>Last Name</span>
<?='<br>'.form_error('father_lname');?>
<input type="text" name="father_lname" value="<?=set_value('father_lname');?>">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-4 columns">
<span>Citizenship (Passport)</span>
<?='<br>'.form_error('father_citizenship');?>
<input type="text" name="father_citizenship" value="<?=set_value('father_citizenship');?>">
</div>
<div class="large-4 columns">
<span>Philippine Visa Status</span>
<?='<br>'.form_error('father_visa');?>
<input type="text" name="father_visa" value="<?=set_value('father_visa');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Employer or Organization</span>
<?='<br>'.form_error('father_occup');?>
<input type="text" name="father_occup" value="<?=set_value('father_occup');?>">
</div>
<div class="large-4 columns">
<span>Office Phone Number</span>
<?='<br>'.form_error('father_office_tel');?>
<input type="text" name="father_office_tel" value="<?=set_value('father_office_tel');?>">
</div>
<div class="large-4 columns">
<span>Mobile Number</span>
<?='<br>'.form_error('father_contact_no');?>
<input type="text" name="father_contact_no" value="<?=set_value('father_contact_no');?>">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<label><?=form_checkbox('father_contact_no_text', 'yes', set_checkbox('father_contact_no_text', 'yes'));?> <span>Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label>
</div>
</div>
<div id="step_father_info">
<div class="large-12 columns">
<legend>Information About The Step-father</legend>
<br>
<div class="large-4 columns">
<span>First Name</span>
<?='<br>'.form_error('step_father_name');?>
<input type="text" name="step_father_name" value="<?=set_value('step_father_name');?>">
</div>
<div class="large-4 columns">
<span>Middle Name</span>
<?='<br>'.form_error('step_father_mname');?>
<input type="text" name="step_father_mname" value="<?=set_value('step_father_mname');?>">
</div>
<div class="large-4 columns">
<span>Last Name</span>
<?='<br>'.form_error('step_father_lname');?>
<input type="text" name="step_father_lname" value="<?=set_value('step_father_lname');?>">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-4 columns">
<span>Citizenship (Passport)</span>
<?='<br>'.form_error('step_father_citizenship');?>
<input type="text" name="step_father_citizenship" value="<?=set_value('step_father_citizenship');?>">
</div>
<div class="large-4 columns">
<span>Philippine Visa Status</span>
<?='<br>'.form_error('step_father_visa');?>
<input type="text" name="step_father_visa" value="<?=set_value('step_father_visa');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Employer or Organization</span>
<?='<br>'.form_error('step_father_occup');?>
<input type="text" name="step_father_occup" value="<?=set_value('step_father_occup');?>">
</div>
<div class="large-4 columns">
<span>Office Phone Number</span>
<?='<br>'.form_error('step_father_office_tel');?>
<input type="text" name="step_father_office_tel" value="<?=set_value('step_father_office_tel');?>">
</div>
<div class="large-4 columns">
<span>Mobile Number</span>
<?='<br>'.form_error('step_father_contact_no');?>
<input type="text" name="step_father_contact_no" value="<?=set_value('step_father_contact_no');?>">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<label><?=form_checkbox('step_father_contact_no_text', 'yes');?> <span>Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label>
</div>
</div>
<div class="large-12 columns"> </div>
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?php
if($to_be_display_mother == 'mother' || $to_be_display_mother == ''){
?>
<?=form_radio('to_be_display_mother', 'mother', TRUE, 'id="to_be_display_mother"');?>
<?php
}else{
?>
<?=form_radio('to_be_display_mother', 'mother', set_radio('to_be_display_mother', 'mother'), 'id="to_be_display_mother"');?>
<?php
}
?>
<span>Biological Mother</span>
</div>
<div class="large-4 columns">
<?php
if($to_be_display_mother == 'step-mother'){
?>
<?=form_radio('to_be_display_mother', 'step-mother', TRUE, 'id="to_be_display_step_mother"');?>
<?php
}else{
?>
<?=form_radio('to_be_display_mother', 'step-mother', set_radio('to_be_display_mother', 'step-mother'), 'id="to_be_display_step_mother"');?>
<?php
}
?>
<span>Step Mother</span>
</div>
<div class="large-4 columns"> </div>
</div>
</div>
<div id="mother_info">
<div class="large-12 columns">
<legend>Information About The Mother</legend>
<br>
<div class="large-4 columns">
<span>First Name</span>
<?='<br>'.form_error('mother_name');?>
<input type="text" name="mother_name" value="<?=set_value('mother_name');?>">
</div>
<div class="large-4 columns">
<span>Middle Name</span>
<?='<br>'.form_error('mother_mname');?>
<input type="text" name="mother_mname" value="<?=set_value('mother_mname');?>">
</div>
<div class="large-4 columns">
<span>Last Name</span>
<?='<br>'.form_error('mother_lname');?>
<input type="text" name="mother_lname" value="<?=set_value('mother_lname');?>">
</div>
</div>
<div class="large-12 columns">
<div class="large-4 columns">
<span>Citizenship (Passport)</span>
<?='<br>'.form_error('mother_citizenship');?>
<input type="text" name="mother_citizenship" value="<?=set_value('mother_citizenship');?>">
</div>
<div class="large-4 columns">
<span>Philippine Visa Status</span>
<?='<br>'.form_error('mother_visa');?>
<input type="text" name="mother_visa" value="<?=set_value('mother_visa');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Employer or Organization</span>
<?='<br>'.form_error('mother_occup');?>
<input type="text" name="mother_occup" value="<?=set_value('mother_occup');?>">
</div>
<div class="large-4 columns">
<span>Office Phone Number</span>
<?='<br>'.form_error('mother_office_tel');?>
<input type="text" name="mother_office_tel" value="<?=set_value('mother_office_tel');?>">
</div>
<div class="large-4 columns">
<span>Mobile Number</span>
<?='<br>'.form_error('mother_contact_no');?>
<input type="text" name="mother_contact_no" value="<?=set_value('mother_contact_no');?>">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<label>
<?=form_checkbox('mother_contact_no_text', 'yes', set_checkbox('mother_contact_no_text', 'yes'));?> <span>Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label>
</div>
</div>
<div id="step_mother_info">
<div class="large-12 columns">
<legend>Information About The Step-mother</legend>
<br>
<div class="large-4 columns">
<span>First Name</span>
<?='<br>'.form_error('step_mother_name');?>
<input type="text" name="step_mother_name" value="<?=set_value('step_mother_name');?>">
</div>
<div class="large-4 columns">
<span>Middle Name</span>
<?='<br>'.form_error('step_mother_mname');?>
<input type="text" name="step_mother_mname" value="<?=set_value('step_mother_mname');?>">
</div>
<div class="large-4 columns">
<span>Last Name</span>
<?='<br>'.form_error('step_mother_lname');?>
<input type="text" name="step_mother_lname" value="<?=set_value('step_mother_lname');?>">
</div>
</div>
<div class="large-12 columns">
<div class="large-4 columns">
<span>Citizenship (Passport)</span>
<?='<br>'.form_error('step_mother_citizenship');?>
<input type="text" name="step_mother_citizenship" value="<?=set_value('step_mother_citizenship');?>">
</div>
<div class="large-4 columns">
<span>Philippine Visa Status</span>
<?='<br>'.form_error('step_mother_visa');?>
<input type="text" name="step_mother_visa" value="<?=set_value('step_mother_visa');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Employer or Organization</span>
<?='<br>'.form_error('step_mother_occup');?>
<input type="text" name="step_mother_occup" value="<?=set_value('step_mother_occup');?>">
</div>
<div class="large-4 columns">
<span>Office Phone Number</span>
<?='<br>'.form_error('step_mother_office_tel');?>
<input type="text" name="step_mother_office_tel" value="<?=set_value('step_mother_office_tel');?>">
</div>
<div class="large-4 columns">
<span>Mobile Number</span>
<?='<br>'.form_error('step_mother_contact_no');?>
<input type="text" name="step_mother_contact_no" value="<?=set_value('step_mother_contact_no');?>">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<label>
<?=form_checkbox('step_mother_contact_no_text', 'yes', set_checkbox('step_mother_contact_no_text', 'yes'));?> <span>Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label>
</div>
</div>
<hr class="clearfix">
<div>
<input type="hidden" id="to_be_checked_father" value="<?php echo $to_be_display_father; ?>">
<input type="hidden" id="to_be_checked_mother" value="<?php echo $to_be_display_mother; ?>">
<a href="#" id="panel_2" class="btn btn-primary">Continue Part 3: Medical Information and Health History</a>
</div>
<script>
$( document ).ready(function() {
var tobecheckedfather = $('#to_be_checked_father').val();
var tobecheckedmother = $('#to_be_checked_mother').val();
$('#to_be_display_father').on('click blur focus change', function(event) {
$('#father_info').css('display','block');
$('#step_father_info').css('display','none');
});
$('#to_be_display_step_father').on('click blur focus change', function(event) {
$('#father_info').css('display','none');
$('#step_father_info').css('display','block');
});
$('#to_be_display_mother').on('click blur focus change', function(event) {
$('#mother_info').css('display','block');
$('#step_mother_info').css('display','none');
});
$('#to_be_display_step_mother').on('click blur focus change', function(event) {
$('#mother_info').css('display','none');
$('#step_mother_info').css('display','block');
});
if(tobecheckedfather == '' || tobecheckedfather == 'father')
{
$('#father_info').css('display','block');
$('#step_father_info').css('display','none');
}else{
$('#father_info').css('display','none');
$('#step_father_info').css('display','block');
}
if(tobecheckedmother == '' || tobecheckedmother == 'mother')
{
$('#mother_info').css('display','block');
$('#step_mother_info').css('display','none');
}else{
$('#mother_info').css('display','none');
$('#step_mother_info').css('display','block');
}
if ( $('#to_be_display_father').is(':checked') ) {
$('#father_info').css('display','block');
$('#step_father_info').css('display','none');
}
if ( $('#to_be_display_step_father').is(':checked') ) {
$('#father_info').css('display','none');
$('#step_father_info').css('display','block');
}
if ( $('#to_be_display_mother').is(':checked') ) {
$('#mother_info').css('display','block');
$('#step_mother_info').css('display','none');
}
if ( $('#to_be_display_step_mother').is(':checked') ) {
$('#mother_info').css('display','none');
$('#step_mother_info').css('display','block');
}
$('#panel_2').on('click', function(event) {
$('#panel1').removeClass("active");
$('#panel1').css("padding-top", "");
$('#panel2').removeClass("active");
$('#panel2').css("padding-top", "");
$('#panel3').addClass("active");
$('#panel3').css("padding-top", "50px");
$('#panel4').removeClass("active");
$('#panel4').css("padding-top", "");
});
});
</script> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/register/parent_legal_information.php | PHP | mit | 14,047 |
<?
if(isset($page)){ $body_class = 'style="overflow:hidden"';}
echo doctype();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<title>school system</title>
<!-- start css files for Grocery CRUD-->
<?php if(!empty($output->css_files)):?>
<?php foreach($output->css_files as $file): ?>
<link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
<?php endforeach; ?>
<?php endif;?>
<!-- end css files for Grocery CRUD-->
<link rel="stylesheet" href="<?=style_url('normalize');?>">
<link rel="stylesheet" href="<?=style_url('foundation.min');?>">
<link rel="stylesheet" href="<?=style_url('bootstrap.min');?>">
<link rel="stylesheet" href="<?=style_url('style');?>">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="<?php echo script_url('vendor/custom.modernizr');?>"></script>
</head>
<body>
<!-- message dialog box -->
<!-- start contents -->
<div>
<?$this->load->view('layouts/_application_top_nav');?>
</div>
<div class="row">
<noscript>
<div class="error">Javascript has been disabled on your browser.some Functions may not work</div>
</noscript>
<!--User Menus-->
<div class="small-3 columns content-menus">
<?$this->load->view('layouts/_student_menu')?>
<!--start Echo the page-->
</div>
<div class="small-9 columns content-views">
<?php echo $yield;?>
<!--end echo the page-->
</div>
</div>
<div id="msgDialog"><p></p></div>
<footer>
<div class="row footer-contents">
copyright © gocloudasia 2013
</div>
</footer>
<!-- End contents -->
<script>
document.write('<script src=' +
('__proto__' in {} ? '<?=script_url("vendor/zepto");?>' : '<?=script_url("vendor/jquery");?>') +
'><\/script>')
</script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<script type="text/javascript" src="<?php echo script_url('foundation.min');?>"></script>
<script type="text/javascript" src="<?php echo script_url('vendor/timpicker.addon');?>"></script>
<script type="text/javascript" src="<?php echo script_url('custom/myjs'); ?>"></script>
<script type="text/javascript" src="<?php echo script_url('custom/calendarscript'); ?>"></script>
<script type="text/javascript" src="<?php echo script_url('custom/cash'); ?>"></script>
<script src="<?=script_url('foundation/foundation');?>"></script>
<script src="<?=script_url('foundation/foundation.alerts');?>"></script>
<script src="<?=script_url('foundation/foundation.clearing');?>"></script>
<script src="<?=script_url('foundation/foundation.cookie');?>"></script>
<script src="<?=script_url('foundation/foundation.dropdown');?>"></script>
<script src="<?=script_url('foundation/foundation.forms');?>"></script>
<script src="<?=script_url('foundation/foundation.joyride');?>"></script>
<script src="<?=script_url('foundation/foundation.magellan');?>"></script>
<script src="<?=script_url('foundation/foundation.orbit');?>"></script>
<script src="<?=script_url('foundation/foundation.placeholder');?>"></script>
<script src="<?=script_url('foundation/foundation.reveal');?>"></script>
<script src="<?=script_url('foundation/foundation.section');?>"></script>
<script src="<?=script_url('foundation/foundation.tooltips');?>"></script>
<script src="<?=script_url('foundation/foundation.topbar');?>"></script>
<script src="<?=script_url('foundation/foundation.abide');?>"></script>
<script>
$(document).foundation();
</script>
<script type="text/javascript" src="<?php echo script_url('vendor/bootstrap.min'); ?>"></script>
</body>
</html> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/layouts/application.php | PHP | mit | 3,966 |
<?
echo doctype();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<title>school system</title>
<link rel="stylesheet" href="<?=style_url('normalize');?>">
<link rel="stylesheet" href="<?=style_url('foundation.min');?>">
<link rel="stylesheet" href="<?=style_url('bootstrap.min');?>">
<link rel="stylesheet" href="<?=style_url('style');?>">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="<?php echo script_url('vendor/custom.modernizr');?>"></script>
</head>
<body>
<!-- message dialog box -->
<!-- start contents -->
<nav class="top-bar">
<ul class="title-area">
<li class="name">
<h1><a href="#"><?php echo $this->school_name !== '' ?$this->school_name: '';?></a></h1>
</li>
</ul>
</nav>
<div class="row full-width">
<div class="row alert-box secondary">
<h1 class="center">Enrollment For School year <?=$this->schoolyear_date;?></h1>
</div><br>
<noscript>
<div class="error">Javascript has been disabled on your browser, some functions may not work properly. Please enable javascript.</div>
</noscript>
<?php echo $yield;?>
</div>
<footer>
<div class="row footer-contents">
copyright © gocloudasia 2013
</div>
</footer>
<!-- End contents -->
<script>
document.write('<script src=' +
('__proto__' in {} ? '<?=script_url("vendor/zepto");?>' : '<?=script_url("vendor/jquery");?>') +
'><\/script>')
</script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<script type="text/javascript" src="<?php echo script_url('foundation.min');?>"></script>
<script type="text/javascript" src="<?php echo script_url('vendor/timpicker.addon');?>"></script>
<script type="text/javascript" src="<?php echo script_url('custom/myjs'); ?>"></script>
<script type="text/javascript" src="<?php echo script_url('custom/calendarscript'); ?>"></script>
<script type="text/javascript" src="<?php echo script_url('custom/cash'); ?>"></script>
<script src="<?=script_url('foundation/foundation');?>"></script>
<script src="<?=script_url('foundation/foundation.alerts');?>"></script>
<script src="<?=script_url('foundation/foundation.clearing');?>"></script>
<script src="<?=script_url('foundation/foundation.cookie');?>"></script>
<script src="<?=script_url('foundation/foundation.dropdown');?>"></script>
<script src="<?=script_url('foundation/foundation.forms');?>"></script>
<script src="<?=script_url('foundation/foundation.joyride');?>"></script>
<script src="<?=script_url('foundation/foundation.magellan');?>"></script>
<script src="<?=script_url('foundation/foundation.orbit');?>"></script>
<script src="<?=script_url('foundation/foundation.placeholder');?>"></script>
<script src="<?=script_url('foundation/foundation.reveal');?>"></script>
<script src="<?=script_url('foundation/foundation.section');?>"></script>
<script src="<?=script_url('foundation/foundation.tooltips');?>"></script>
<script src="<?=script_url('foundation/foundation.topbar');?>"></script>
<script src="<?=script_url('foundation/foundation.abide');?>"></script>
<script>
$(document).foundation();
</script>
<script type="text/javascript" src="<?php echo script_url('custom/checkformsubmit');?>"></script>
<div id="msgDialog" style="font-size:12px;">
<p class="title" style="font-weight:bold;"></p>
<div class="content"></div>
</div>
<div id="msgDialog2" style="font-size:12px;">
<p class="title" style="font-weight:bold;"></p>
<div class="content"></div>
</div>
</body>
</html> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/layouts/application_no_side_bar.php | PHP | mit | 3,883 |
<?
echo doctype();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>school system</title>
<link rel="stylesheet" href="<?=style_url('normalize');?>">
<link rel="stylesheet" href="<?=style_url('foundation.min');?>">
<link rel="stylesheet" href="<?=style_url('bootstrap.min');?>">
<link rel="stylesheet" href="<?=style_url('style');?>">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="<?php echo script_url('vendor/custom.modernizr');?>"></script>
</head>
<body>
<!-- message dialog box -->
<!-- start contents -->
<nav class="top-bar">
<ul class="title-area">
<li class="name">
<h1><a href="#"><?php echo $this->school_name !== '' ?$this->school_name: '';?></a></h1>
</li>
</ul>
</nav>
<div class="row content-views shadow">
<noscript>
<div class="error">Javascript has been disabled on your browser.some Functions may not work</div>
</noscript>
<?php echo $yield;?>
</div>
<footer>
<div class="row footer-contents">
copyright © gocloudasia 2013
</div>
</footer>
<!-- End contents -->
<script>
document.write('<script src=' +
('__proto__' in {} ? '<?=script_url("vendor/zepto");?>' : '<?=script_url("vendor/jquery");?>') +
'><\/script>')
</script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<script type="text/javascript" src="<?php echo script_url('foundation.min');?>"></script>
<script type="text/javascript" src="<?php echo script_url('vendor/timpicker.addon');?>"></script>
<script type="text/javascript" src="<?php echo script_url('custom/myjs'); ?>"></script>
<script type="text/javascript" src="<?php echo script_url('custom/calendarscript'); ?>"></script>
<script type="text/javascript" src="<?php echo script_url('custom/cash'); ?>"></script>
<script src="<?=script_url('foundation/foundation');?>"></script>
<script src="<?=script_url('foundation/foundation.alerts');?>"></script>
<script src="<?=script_url('foundation/foundation.clearing');?>"></script>
<script src="<?=script_url('foundation/foundation.cookie');?>"></script>
<script src="<?=script_url('foundation/foundation.dropdown');?>"></script>
<script src="<?=script_url('foundation/foundation.forms');?>"></script>
<script src="<?=script_url('foundation/foundation.joyride');?>"></script>
<script src="<?=script_url('foundation/foundation.magellan');?>"></script>
<script src="<?=script_url('foundation/foundation.orbit');?>"></script>
<script src="<?=script_url('foundation/foundation.placeholder');?>"></script>
<script src="<?=script_url('foundation/foundation.reveal');?>"></script>
<script src="<?=script_url('foundation/foundation.section');?>"></script>
<script src="<?=script_url('foundation/foundation.tooltips');?>"></script>
<script src="<?=script_url('foundation/foundation.topbar');?>"></script>
<script>
$(document).foundation();
</script>
<script type="text/javascript" src="<?php echo script_url('vendors/bootstrap.min'); ?>"></script>
<div id="msgDialog"><p></p></div>
</body>
</html> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/layouts/application_error.php | PHP | mit | 3,427 |
<?php
$fname = $this->session->userdata('e_f_name');
$user_id = $this->session->userdata('userid');
$lname = $this->session->userdata('e_l_name');
$cp_authlink = $this->authlink->generate_authlink();
$mname = $this->session->userdata('e_m_name');
$usertype = $this->session->userdata('userType');
?>
<nav class="top-bar">
<section class="top-bar-section">
<!-- Left Nav Section -->
<ul class="title-area">
<!-- Title Area -->
<li class="name">
<h1>
<a href="#"><?php echo $this->school_name !== '' ?$this->school_name: '';?></a>
</h1>
</li>
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>
<section class="top-bar-section">
<ul class="left">
<li class="divider"></li>
<li class="name">
<h1><a href="#">(<?=ucwords($usertype);?> Account)</a></h1>
</li>
</ul>
</section>
<!-- Right Nav Section -->
<ul class="right">
<li class="divider hide-for-small"></li>
<li class="has-dropdown"><a href="#"><a href="#"><i class="icon-user icon-white"></i> <?=ucwords($fname.' '.$mname[0].'. '.$lname);?></a>
<ul class="dropdown">
<li class="left"><a href="<?php echo site_url();?>"><i class='icon-white icon-home'></i> Home</a></li>
<li class="left"><a href="<?php echo site_url('change/password/'.$user_id.'/'.$cp_authlink);?>"><i class='icon-white icon-edit'></i> Change Password</a></li>
<li class="divider"></li>
<li class="left"><a href="<?php echo site_url('auth/logout');?>"><i class='icon-white icon-off'></i> Logout </a></li>
</ul>
</li>
</section>
</nav> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/layouts/_application_top_nav.php | PHP | mit | 1,819 |
<?php # $this->load->view('layouts/_flash'); ?>
<div class="ui-corner-all contentContainer" style="background-color: #fff;">
<div style="position: relative;">
<div style="float: left;">
<div class="ui-corner-top side_menu" style="width: 100%;">Profile doesn't exist</div>
<div style="border:1px solid #286bcc;">
<div> </div>
<div>
Your profile doesn't seem to exist in the system and it may have been deleted.
<br/>Please contact the administrator for this problem.<br/><br/>
or
<br/><br/>
You make click <a href="<?php echo site_url('auth/login/student')?>">here</a> to try and login again.
</div>
<div class="clearfloat"></div>
</div>
<div> </div>
</div>
</div>
<div class="clearfloat"></div>
</div>
</div> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/auth/invalid.php | PHP | mit | 742 |
<div class="ui-corner-all captionHeader" style="background-color: #ffff5f;">
<strong>Student Login</strong>
</div>
<div class="ui-corner-all contentContainer" style="background-color: #fff;">
<div style="margin: 0px auto; width: 250px;">
<?=form_open()?>
<?php if($this->session->flashdata('system_message')) echo '<div class="error">'.$this->session->flashdata('system_message').'</div>';?>
<?php if(validation_errors() !== '') echo '<div class="error">'.validation_errors().'</div>';?>
<div class="contentInput">
Username: <?php $opt = 'class="ui-corner-all" style="border:#ccc 2px solid;" maxlength="255"'; echo form_input('username', set_value('username'), $opt); ?>
</div>
<div class="contentInput">
<span style="padding-right: 2px;">Password:</span> <?php echo form_password('password','',$opt); ?>
</div>
<div style="text-align: center;">
<?php
$opt4 = 'class="ui-corner-all submit"';
echo form_submit('submit', 'Login', $opt4);
echo form_close(); ?>
</div>
</div>
</div> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/auth/login.php | PHP | mit | 1,003 |
<div class="row">
<h2 class="label alert">An error has been encountered</h2>
<?php if(isset($system_message)) echo $system_message;?>
<a href="<?=site_url('confirm/resend');?>" class="btn btn-warning">Resend Confirmation Link</a>
</div> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/status/error.php | PHP | mit | 239 |
<div class="row">
<?php if(isset($system_message)) echo $system_message;?>
<div>
<a href="<?=site_url('inquiry/quitinquiry');?>" class="button" style="width:200px;">
<strong>Finish Inquiry.</strong>
</a>
</div>
</div>
| 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/status/success2.php | PHP | mit | 243 |
<div class="row">
<?php if(isset($system_message)) echo $system_message;?>
<!--
<div>
<a href="<?=site_url('enrollment/quitenrollment');?>" class="button" style="width:200px;">
<strong>Finish enrollment.</strong>
</a>
</div>-->
</div>
| 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/status/success.php | PHP | mit | 269 |
<?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');
?>
<div> </div>
<div class="large-12 columns"><h5 class="lead">MEDICAL INFORMATION AND HEALTH HISTORY</h5></div>
<hr class="clearfix">
<div class="large-12 columns">
<span>1. Does your child have any of the following?</span>
<?='<br>'.form_error('allergies_reaction');?>
</div>
<div class="large-12 columns">
<span>Allergies (specify if yes)</span>
<input type="text" name="allergies_reaction" value="<?=set_value('allergies_reaction');?>">
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>Drug Allergies (specify if yes)</span>
<?='<br>'.form_error('drug_allergies_reaction');?>
<input type="text" name="drug_allergies_reaction" value="<?=set_value('drug_allergies_reaction');?>">
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-4 columns">
<span>Asthma</span>
<?=form_radio('asthma', 'no', 'checked');?> No <?=form_radio('asthma', 'yes');?> Yes
</div>
<div class="large-8 columns">
<span>Does your child carry an asthma inhaler?</span>
<?=form_radio('asthma_inhaler', 'no', 'checked');?> No <?=form_radio('asthma_inhaler', 'yes');?> Yes
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>Eye or Vision problems (specify if yes)</span>
<?='<br>'.form_error('eye_problem_spec');?>
<textarea name="eye_problem_spec"><?=set_value('eye_problem_spec');?></textarea>
</div>
<div class="large-12 columns">
<span>Ear or hearing problem(s) specify if yes</span>
<?='<br>'.form_error('ear_problem_spec');?>
<textarea name="ear_problem_spec"><?=set_value('ear_problem_spec');?></textarea>
</div>
<div class="large-12 columns">
<span>2. Any other health condition that the school should be aware of (e.g. epilepsy, diabetes, etc)</span>
<?='<br>'.form_error('major_ailment');?>
<textarea name="major_ailment"><?=set_value('major_ailment');?></textarea>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>3. Has your child recently been hospitalized? Why? / When?</span>
<?='<br>'.form_error('recently_hospitalized');?>
<textarea name="recently_hospitalized"><?=set_value('recently_hospitalized');?></textarea>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>4. Has your child recently had any serious injuries: Why? / When?</span>
<?='<br>'.form_error('major_injury');?>
<textarea name="major_injury"><?=set_value('major_injury');?></textarea>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>5. Is your child on a regular medication? if yes please specify medication and frequency.</span>
<?='<br>'.form_error('medication_child_taking_spec');?>
<textarea name="medication_child_taking_spec"><?=set_value('medication_child_taking_spec');?></textarea>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>6. Does your child need to take any medication/s during school hours?</span> <?=form_radio('medication_child_taking_school_hours', 'no', 'checked');?> No <?=form_radio('medication_child_taking_school_hours', 'yes');?> Yes.
</div>
<div class="clearfix"></div>
<div class="alert-box">(If so, a letter from the Medical Doctor must be submitted, and be kept on file and medication(s) will also be kept in the school, to be dispensed only by the teacher or authorized person.)</div>
<div class="clearfix"></div>
<hr class="clearfix">
<div>
<a href="#" id="panel_3" class="btn btn-primary">Continue Part 4: Authorization</a>
</div>
<script>
$( document ).ready(function() {
$('#panel_3').on('click', function(event) {
$('#panel1').removeClass("active");
$('#panel1').css("padding-top", "");
$('#panel2').removeClass("active");
$('#panel2').css("padding-top", "");
$('#panel3').removeClass("active");
$('#panel3').css("padding-top", "");
$('#panel4').addClass("active");
$('#panel4').css("padding-top", "50px");
});
});
</script> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/enrollment/health_history_information.php | PHP | mit | 4,310 |
<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: "\2714";
cursor: pointer;
}
#legal_guardian_info{
display:none;
}
#father_info{
display:none;
}
#step_father_info{
display:none;
}
#mother_info{
display:none;
}
#step_mother_info{
display:none;
}
</style>
<div class="large-1 columns"> </div>
<div class="large-10 columns enrollment-menu content-views">
<?echo form_open('enrollment/registration_form/'.$e_id,'id="check-form-submit" class="custom" data-abide autocomplete="off"');?>
<div class="alert">
<i class="icon-info-sign"></i> <strong>Things To Remember</strong>
<ul>
<li><strong>Please use a valid email address as your account credentials will be sent there.</strong></li>
<li><strong>Place "none", if you will answer none. For some required entry.</strong></li>
<li><strong><?=form_checkbox('failure_to_provide', 'yes', TRUE);?> Failure to provide complete and accurate information of any kind on this form will void the application and may result to its cancellation. WESTFIELDS INTERNATIONAL SCHOOL reserves the right to determine the placement of the application in the grade level or subjects deemed most appropriate fo the student's school experience / performance.</strong></li>
<li><strong><?=form_checkbox('to_the_best', 'yes', TRUE);?> To the best of my knowledge the information written on this form is true and correct.</strong></li>
</ul>
</div>
<?=$system_message;?>
<div class="section-container auto" data-section>
<section id="panel1" class="active">
<p class="title" data-section-title><a href="#panel1">Step 1 <?php echo $error_number_1 > 0 ? '<span class="badge badge-important">'.$error_number_1.'</span>' : '<span class="label label-success">'.$error_number_1.'</span>' ; ?> </a></p>
<div class="content" data-section-content>
<p>
<div class="clearfix"></div>
<?php echo $this->load->view('enrollment/applicant_information'); ?>
</p>
</div>
</section>
<section id="panel2">
<p class="title" data-section-title><a href="#panel2">Step 2 <?php echo $error_number_2 > 0 ? '<span class="badge badge-important">'.$error_number_2.'</span>' : '<span class="label label-success">'.$error_number_2.'</span>' ; ?> </a></p>
<div class="content" data-section-content>
<p>
<div class="clearfix"></div>
<?php echo $this->load->view('enrollment/parent_legal_information'); ?>
</p>
</div>
</section>
<section id="panel3">
<p class="title" data-section-title><a href="#panel3">Step 3 <?php echo $error_number_3 > 0 ? '<span class="badge badge-important">'.$error_number_3.'</span>' : '<span class="label label-success">'.$error_number_3.'</span>' ; ?> </a></p>
<div class="content" data-section-content>
<p>
<div class="clearfix"></div>
<?php echo $this->load->view('enrollment/health_history_information'); ?>
</p>
</div>
</section>
<section id="panel4">
<p class="title" data-section-title><a href="#panel4">Step 4 <?php echo $error_number_4 > 0 ? '<span class="badge badge-important">'.$error_number_4.'</span>' : '<span class="label label-success">'.$error_number_4.'</span>' ; ?> </a></p>
<div class="content" data-section-content>
<p>
<div class="clearfix"></div>
<?php echo $this->load->view('enrollment/authorization_information'); ?>
</p>
</div>
</section>
</div>
<?php echo form_close(); ?>
</div>
<div class="large-1 columns"> </div>
</div>
<?php
/*//// old form
$chooseAttrib = array('good' => 'good', 'fair' => 'fair', 'limited' => 'limited', 'none' => 'none' );
$genderAttrib = array('' => 'Select Gender...', 'male' => 'Male', 'female' => 'Female' );
$child_birth_position = array(''=>'-- Select --','first'=>'First','Second'=>'Second','third'=>'Third','fourth'=>'Fourth','fifth'=>'Fifth','sixth'=>'Sixth','youngest'=>'Youngest','only'=>'Only');
$citizAttrib = array('Filipino' => 'Filipino', 'Chinese' => 'Chinese', 'North Korean' => 'North Korean', 'South Korean' => 'South Korean', 'US Citizen' => 'US Citizen', 'other' => 'Other' );
$citizComp = array(
'Afghan' =>'Afghan',
'Albanian'=>'Albanian',
'Algerian'=>'Algerian',
'Andorran'=>'Andorran',
'Angolan'=>'Angolan',
'Argentinian'=>'Argentinian',
'Armenian'=>'Armenian',
'Australian'=>'Australian',
'Austrian'=>'Austrian',
'Bahamian'=>'Bahamian',
'Bahraini'=>'Bahraini',
'Bangladeshi'=>'Bangladeshi',
'Barbadian'=>'Barbadian',
'Belarusian,Belarusan'=>'Belarusian,Belarusan',
'Belgian'=>'Belgian',
'Belizean'=>'Belizean',
'Beninese'=>'Beninese',
'Bhutanese'=>'Bhutanese',
'Bolivian'=>'Bolivian',
'Bosnian'=>'Bosnian',
'Botswanan,Tswana'=>'Botswanan,Tswana',
'Brazilian'=>'Brazilian',
'British,Briton'=>'British,Briton',
'Bruneian'=>'Bruneian',
'Bulgarian'=>'Bulgarian',
'Burkinese'=>'Burkinese',
'Burmese'=>'Burmese',
'Burundian'=>'Burundian',
'Cambodian'=>'Cambodian',
'Cameroonian'=>'Cameroonian',
'Canadian'=>'Canadian',
'Cape Verdean'=>'Verdean',
'Chadian'=>'Chadian',
'Chilean'=>'Chilean',
'Colombian'=>'Colombian',
'Congolese'=>'Congolese',
'Costa Rican'=>'Costa Rican',
'Croat,Croatian'=>'Croat,Croatian',
'Cuban'=>'Cuban',
'Cypriot'=>'Cypriot',
'Czech'=>'Czech',
'Danish,Dane'=>'Danish,Dane',
'Djiboutian'=>'Djiboutian',
'Dominican'=>'Dominican',
'Dutch'=>'Dutch',
'Ecuadorean'=>'Ecuadorean',
'Egyptian'=>'Egyptian',
'Salvadorean'=>'Salvadorean',
'English'=>'English',
'Eritrean'=>'Eritrean',
'Estonian'=>'Estonian',
'Ethiopian'=>'Ethiopian',
'Fijian'=>'Fijian',
'Finn'=>'Finn',
'French'=>'French',
'Gabonese'=>'Gabonese',
'Gambian'=>'Gambian',
'Georgian'=>'Georgian',
'German'=>'German',
'Ghanaian'=>'Ghanaian',
'Greek'=>'Greek',
'Grenadian'=>'Grenadian',
'Guatemalan'=>'Guatemalan',
'Guinean'=>'Guinean',
'Guyanese'=>'Guyanese',
'Haitian'=>'Haitian',
'Honduran'=>'Honduran',
'Hungarian'=>'Hungarian',
'Icelander'=>'Icelander',
'Indian'=>'Indian',
'Indonesian'=>'Indonesian',
'Iranian'=>'Iranian',
'Iraqi'=>'Iraqi',
'Irish'=>'Irish',
'Italian'=>'Italian',
'Jamaican'=>'Jamaican',
'Japanese'=>'Japanese',
'Jordanian'=>'Jordanian',
'Kazakh'=>'Kazakh',
'Kenyan'=>'Kenyan',
'Kuwaiti'=>'Kuwaiti',
'Laotian'=>'Laotian',
'Latvian'=>'Latvian',
'Lebanese'=>'Lebanese',
'Liberian'=>'Liberian',
'Libyan'=>'Libyan',
'Liechtensteiner'=>'Liechtensteiner',
'Lithuanian'=>'Lithuanian',
'Luxembourger'=>'Luxembourger',
'Macedonian'=>'Macedonian',
'Malagasy,Madagascan'=>'Malagasy,Madagascan',
'Malawian'=>'Malawian',
'Malaysian'=>'Malaysian',
'Maldivian'=>'Maldivian',
'Malian'=>'Malian',
'Maltese'=>'Maltese',
'Mauritanian'=>'Mauritanian',
'Mauritian'=>'Mauritian',
'Mexican'=>'Mexican',
'Moldovan'=>'Moldovan',
'Monegasque,Monacan'=>'Monegasque,Monacan',
'Mongolian'=>'Mongolian',
'Montenegrin'=>'Montenegrin',
'Moroccan'=>'Moroccan',
'Mozambican'=>'Mozambican',
'Namibian'=>'Namibian',
'Nepalese'=>'Nepalese',
'New Zealander'=>'New Zealander',
'Nicaraguan'=>'Nicaraguan',
'Nigerien'=>'Nigerien',
'Nigerian'=>'Nigerian',
'Norwegian'=>'Norwegian',
'Omani'=>'Omani',
'Pakistani'=>'Pakistani',
'Panamanian'=>'Panamanian',
'Papua New Guinean,Guinean'=>'Papua New Guinean,Guinean',
'Paraguayan'=>'Paraguayan',
'Peruvian'=>'Peruvian',
'Pole'=>'Pole',
'Portuguese'=>'Portuguese',
'Qatari'=>'Qatari',
'Romanian'=>'Romanian',
'Russian'=>'Russian',
'Rwandan'=>'Rwandan',
'Saudi Arabian,Saudi'=>'Saudi Arabian,Saudi',
'Scot'=>'Scot',
'Senegalese'=>'Senegalese',
'Serb,Serbian'=>'Serb,Serbian',
'Seychellois'=>'Seychellois',
'Sierra Leonian'=>'Sierra Leonian',
'Singaporean'=>'Singaporean',
'Slovak'=>'Slovak',
'Slovene,Slovenian'=>'Slovene,Slovenian',
'Solomon Islander'=>'Solomon Islander',
'Somali'=>'Somali',
'South African'=>'South African',
'Spaniard'=>'Spaniard',
'Sri Lankan'=>'Sri Lankan',
'Sudanese'=>'Sudanese',
'Surinamer,Surinamese'=>'Surinamer,Surinamese',
'Swazi'=>'Swazi',
'Swedish,Swede'=>'Swedish,Swede',
'Swiss'=>'Swiss',
'Syrian'=>'Syrian',
'Taiwanese'=>'Taiwanese',
'Tajik/Tadjik'=>'Tajik/Tadjik',
'TaTanzanian'=>'TaTanzanian',
'Thai'=>'Thai',
'Togolese'=>'Togolese',
'Trinidadian'=>'Trinidadian',
'Tobagan/Tobagonian'=>'Tobagan/Tobagonian',
'Tunisian'=>'Tunisian',
'Turk'=>'Turk',
'Turkmen'=>'Turkmen',
'Tuvaluan'=>'Tuvaluan',
'Ugandan'=>'Ugandan',
'Ukrainian'=>'Ukrainian',
'Emirati'=>'Emirati',
'Uruguayan'=>'Uruguayan',
'Uzbek'=>'Uzbek',
'Vanuatuan'=>'Vanuatuan',
'Venezuelan'=>'Venezuelan',
'Vietnamese'=>'Vietnamese',
'a Welshman, a Welshwoman'=>'a Welshman, a Welshwoman',
'Western Samoan'=>'Western Samoan',
'Yemeni'=>'Yemeni',
'Yugoslav'=>'Yugoslav',
'Zairean'=>'Zairean',
'Zambian'=>'Zambian',
'Zimbabwean'=>'Zimbabwean'
);
?>
<div class="large-1 columns"> </div>
<div class="large-10 columns enrollment-menu content-views">
<input type="button" value="Step 1: Applicant Information" class="btn btn-large btn-success" style="width:100%;">
<div> </div>
<?=$system_message;?>
<!--<div class="alert-box">REGISTRATION FORM Part 1: Student Personal Information And Family History</div>-->
<?echo form_open('register','id="check-form-submit" class="custom" data-abide autocomplete="off"');?>
<div class="alert">
<i class="icon-info-sign"></i> <strong>Things To Remember</strong>
<ul>
<li><strong>Please use a valid email address as your account credentials will be sent there.</strong></li>
<li><strong>Place "none", if you will answer none. For some required entry.</strong></li>
</ul>
</div>
<div class="large-12 columns"><h5 class="lead">APPLICANT INFORMATION (List all names as recorded in birth certificate/passport)</h5></div>
<hr class="clearfix">
<div class="large-4 columns">
<span>Valid Email Address</span>
<?='<br>'.form_error('email');?>
<input type="email" data-tooltip class="has-tip tip-top" title="Student information, credentials and other news will be sent to your email address." name="email" value="<?=set_value('email');?>">
</div>
<div class="large-4 columns">
<span>Grade Level</span>
<?='<br>'.form_error('level_id');?>
<?php echo form_dropdown('level_id', $levels, set_value('level_id'));?>
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>First Name</span>
<?='<br>'.form_error('child_fname');?>
<input type="text" name="child_fname" value="<?=set_value('child_fname');?>">
</div>
<div class="large-4 columns">
<span>Middle Name</span>
<?='<br>'.form_error('child_mname') == ''?'<span style="font-size:10px;font-weight:bold;">If No middle name just put "none"</span>':'<br>'.form_error('child_mname');?>
<input type="text" name="child_mname" value="<?=set_value('child_mname');?>">
</div>
<div class="large-4 columns">
<span>Last Name</span>
<?='<br>'.form_error('child_lname');?>
<input type="text" name="child_lname" value="<?=set_value('child_lname');?>">
</div>
<div class="large-4 columns">
<span>Preferred Name</span>
<?='<br>'.form_error('child_nickname');?>
<input type="text" name="child_nickname" value="<?=set_value('child_nickname');?>">
</div>
<div class="large-4 columns">
<span>Name Ext (e.g jr,II,III)</span>
<?='<br>'.form_error('child_name_ext');?>
<input type="text" name="child_name_ext" value="<?=set_value('child_name_ext');?>">
</div>
<div class="large-4 columns">
<span>Gender</span>
<?='<br>'.form_error('gender');?>
<?=form_dropdown('gender', $genderAttrib, set_value('gender'));?>
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Date of Birth:</span>
<?='<br>'.form_error('child_bdate');?>
<input type="text" name="child_bdate" class="birthdate" value="<?=set_value('child_bdate');?>">
</div>
<div class="large-4 columns">
<span>Citizenship (Passport)</span>
<?='<br>'.form_error('child_nationality');?>
<?php echo form_dropdown('child_nationality', $citizAttrib, set_value('child_nationality'), 'id="child_nationality"');?>
</div>
<div class="large-4 columns">
<span>Place of Birth</span>
<?='<br>'.form_error('child_placeofbirth');?>
<input type="text" name="child_placeofbirth" value="<?=set_value('child_placeofbirth');?>">
</div>
<div id="for_other_nationality" style="display:none;">
<div class="clearfix"></div>
<div class="large-4 columns"><span> </span></div>
<div class="large-4 columns">
<?php //echo form_dropdown('child_nationality2', $citizComp, set_value('child_nationality2'), 'id="child_nationality2"');?>
<?='<br>'.form_error('child_nationality2');?>
<input type="text" name="child_nationality2" value="<?=set_value('child_nationality2');?>">
</div>
<div class="large-4 columns"><span> </span></div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>Residential Address in the Philippines</span>
<?='<br>'.form_error('child_city_address');?>
<input type="text" name="child_city_address" value="<?=set_value('child_city_address');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Home Phone</span>
<?='<br>'.form_error('child_telno');?>
<input type="text" name="child_telno" value="<?=set_value('child_telno');?>">
</div>
<div class="large-4 columns">
<span>Mobile Phone</span>
<?='<br>'.form_error('mobile_phone');?>
<input type="text" name="mobile_phone" value="<?=set_value('mobile_phone');?>">
</div>
<div class="large-4 columns">
<span>Religion</span>
<?='<br>'.form_error('child_religous');?>
<input type="text" name="child_religous" value="<?=set_value('child_religous');?>">
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>1- The student will be living in the Philippines with (pls. check all that apply):</span>
<?php
if($cannot_be_with=='no'){echo'<br><span class="error_simple">Please choose at least 1.</span>';}
?>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?=form_checkbox('living_in_ph_with_father', 'yes', set_checkbox('living_in_ph_with_father', 'yes'));?>
<span>Father / Step Father</span>
</div>
<div class="large-4 columns">
<?=form_checkbox('living_in_ph_with_mother', 'yes', set_checkbox('living_in_ph_with_mother', 'yes'));?>
<span>Mother / Step Mother</span>
</div>
<div class="large-4 columns"> </div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-2 columns">
<?=form_checkbox('living_in_ph_with_guardian', 'yes', set_checkbox('living_in_ph_with_guardian', 'yes'), 'id="living_in_ph_with_guardian"');?>
<span>Guardian</span>
</div>
<div class="large-10 columns"> </div>
</div>
</div>
<div class="clearfix"></div>
<div id="legal_guardian_info">
<div class="large-12 columns">
<span>Information about the legal guardian</span>
</div>
<div class="row" >
<div class="large-12 columns">
<div class="large-4 columns">
<span>Guardian's First Name</span>
<?='<br>'.form_error('guardian_name');?>
<input type="text" name="guardian_name" value="<?=set_value('guardian_name');?>">
</div>
<div class="large-4 columns">
<span>Guardian's Middle Name</span>
<?='<br>'.form_error('guardian_mname');?>
<input type="text" name="guardian_mname" value="<?=set_value('guardian_mname');?>">
</div>
<div class="large-4 columns">
<span>Guardian's Last Name</span>
<?='<br>'.form_error('guardian_lname');?>
<input type="text" name="guardian_lname" value="<?=set_value('guardian_lname');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Citizenship (Passport)</span>
<?='<br>'.form_error('guardian_citizenship');?>
<input type="text" name="guardian_citizenship" value="<?=set_value('guardian_citizenship');?>">
</div>
<div class="large-4 columns">
<span>Philippine Visa Status</span>
<?='<br>'.form_error('guardian_visa');?>
<input type="text" name="guardian_visa" value="<?=set_value('guardian_visa');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Employer or Organization</span>
<?='<br>'.form_error('guardian_occup');?>
<input type="text" name="guardian_occup" value="<?=set_value('guardian_occup');?>">
</div>
<div class="large-4 columns">
<span>Office Phone Number</span>
<?='<br>'.form_error('guardian_office_tel');?>
<input type="text" name="guardian_office_tel" value="<?=set_value('guardian_office_tel');?>">
</div>
<div class="large-4 columns">
<span>Mobile Number</span>
<?='<br>'.form_error('guardian_contact_no');?>
<input type="text" name="guardian_contact_no" value="<?=set_value('guardian_contact_no');?>">
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<label><?=form_checkbox('guardian_contact_no_text', 'yes', FALSE, set_checkbox('guardian_contact_no_text', 'yes'));?> <span>Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label>
</div>
</div>
</div>
</div>
<div class="large-12 columns">
<div class="large-4 columns" style="padding:0px;">
<span>2- Your child's English reading and writing level: </span>
<?='<br>'.form_error('childs_english_reading_writing_level');?>
</div>
<div class="large-2 columns">
<?=form_dropdown('childs_english_reading_writing_level', $chooseAttrib, set_value('childs_english_reading_writing_level'));?>
</div>
<div class="large-4 columns" style="padding:0px;">
<span>3- Your child's English verbal proficiency: </span>
<?='<br>'.form_error('childs_english_verbal_proficiency');?>
</div>
<div class="large-2 columns">
<?=form_dropdown('childs_english_verbal_proficiency', $chooseAttrib, set_value('childs_english_verbal_proficiency'));?>
</div>
</div>
<div class="large-12 columns">
<span>4- Languages Spoken at home?</span>
<?='<br>'.form_error('language_at_home');?>
<input type="text" name="language_at_home" value="<?=set_value('language_at_home');?>">
</div>
<div class="large-12 columns">
<span>5- List any participation in advanced level classes (i.e., Advanced Math, Gifted or Talented, Gateway, Writing, etc.)</span>
<?='<br>'.form_error('participation_in_advanced_level_classes');?>
<input type="text" name="participation_in_advanced_level_classes" value="<?=set_value('participation_in_advanced_level_classes');?>">
</div>
<div class="large-12 columns">
<span>6- Did your child receive any remedial help in previous schools (i.e., Remedial Program, Special Education, Speech Therapy, IEP, IDP, etc). <br/>If yes, please explain and provide latest testing results.</span>
<?='<br>'.form_error('remedial_help_in_previous_schools');?>
<input type="text" name="remedial_help_in_previous_schools" value="<?=set_value('remedial_help_in_previous_schools');?>">
</div>
<div class="large-12 columns">
<span>7- Does your child have any special talent or interest in:</span>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-2 columns">
<?=form_checkbox('special_talent_interest_dance', 'yes');?>
<span>Dance</span>
</div>
<div class="large-2 columns">
<?=form_checkbox('special_talent_interest_drama', 'yes');?>
<span>Drama</span>
</div>
<div class="large-2 columns">
<?=form_checkbox('special_talent_interest_art', 'yes');?>
<span>Art</span>
</div>
<div class="large-2 columns">
<?=form_checkbox('special_talent_interest_acomputer', 'yes');?>
<span>Computer</span>
</div>
<div class="large-3 columns">
<?=form_checkbox('special_talent_interest_vocal_chorus', 'yes');?>
<span>Vocal or Chorus</span>
</div>
<div class="large-1 columns"> </div>
</div>
</div>
<br>
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?=form_checkbox('special_talent_interest_athletics', 'yes');?>
<span>Athletics - favorite Sport(s):</span>
</div>
<div class="large-8 columns">
<?='<br>'.form_error('special_talent_interest_athletics_spec');?>
<input type="text" name="special_talent_interest_athletics_spec" value="<?=set_value('special_talent_interest_athletics_spec');?>">
</div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?=form_checkbox('special_talent_interest_band', 'yes');?>
<span>Band (Instrument?)</span>
</div>
<div class="large-8 columns">
<?='<br>'.form_error('special_talent_interest_band_spec');?>
<input type="text" name="special_talent_interest_band_spec" value="<?=set_value('special_talent_interest_band_spec');?>">
</div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?=form_checkbox('special_talent_interest_string', 'yes');?>
<span>String (Instrument?)</span>
</div>
<div class="large-8 columns">
<?='<br>'.form_error('special_talent_interest_string_spec');?>
<input type="text" name="special_talent_interest_string_spec" value="<?=set_value('special_talent_interest_string_spec');?>">
</div>
</div>
</div>
<div class="large-12 columns">
<span>8- Is there any other information you think the teacher should know about your child?</span>
<?='<br>'.form_error('hinder_childs_learning');?>
<textarea name="hinder_childs_learning"><?=set_value('hinder_childs_learning');?></textarea>
</div>
<div class="large-12 columns">
<span>9- Has your child ever been asked to leave school because of any behavioral / disciplinary problems? If yes, please explain.</span>
<?='<br>'.form_error('leave_school');?>
<textarea name="leave_school"><?=set_value('leave_school');?></textarea>
</div>
<div class="large-12 columns">
<label class="span">Name of Previous School:</span>
<?='<br>'.form_error('previous_school');?>
<input type="text" name="previous_school" value="<?=set_value('previous_school');?>">
</div>
<div class="large-12 columns">
<label class="span">Complete School Address (including zip code):</span>
<?='<br>'.form_error('previous_school_address');?>
<input type="text" name="previous_school_address" value="<?=set_value('previous_school_address');?>">
</div>
<div class="large-12 columns">
<span>Grade Level / Academic Year</span>
<?='<br>'.form_error('previous_grade_level');?>
<input type="text" name="previous_grade_level" value="<?=set_value('previous_grade_level');?>">
</div>
<hr class="clearfix">
<div>
<input type="hidden" name="sdf_loc" value="<?=$token;?>">
<input type="hidden" name="fillup_profile" value="true">
<input type="submit" name="fillup_profile" id="submit_fillup_profile" value="Continue Part 2: Parent / Legal Guardian Information" class="btn btn-primary">
</div>
<?php echo form_close(); ?>
</div>
<div class="large-1 columns"> </div>
</div>
end old form ////*/ ?>
<script>
$( document ).ready(function() {
$('#living_in_ph_with_guardian').on('click blur focus change', function(event) {
if ( $('#living_in_ph_with_guardian').is(':checked') ) {
$('#legal_guardian_info').css('display','block');
}else{
$('#legal_guardian_info').css('display','none');
}
});
if ( $('#living_in_ph_with_guardian').is(':checked') ) {
$('#legal_guardian_info').css('display','block');
}else{
$('#legal_guardian_info').css('display','none');
}
$('#child_nationality').on('click blur focus change', function(event) {
if ( $('#child_nationality').val() == 'other' ) {
$('#for_other_nationality').css('display','block');
}else{
$('#for_other_nationality').css('display','none');
}
});
if ( $('#child_nationality').val() == 'other' ) {
$('#for_other_nationality').css('display','block');
}else{
$('#for_other_nationality').css('display','none');
}
});
</script>
| 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/enrollment/registration_form.php | PHP | mit | 24,564 |
<?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"> </div>
<div class="large-6 columns enrollment-menu content-views">
<div class="alert-box">
Reminder for applicant.<br />
* Please finish the enrollment steps.
</div>
<ul>
<li>Step 1: Applicant Information</li>
<li>Step 2: Parent Information</li>
<li>Step 3: Medical Information and Health History</li>
<li>Step 4: Authorization</li>
</ul>
<?echo form_open('enrollment/enrollment_procedure','class="custom"')?>
<!--
<fieldset>
<legend>Select Enrollment status</legend>
<div class="option">
<input type="radio" name="option" value="new" required> <span class="label">New Enrollee</span>
</div>
<div class="option">
<input type="radio" name="option" value="old" required> <span class="label">Old Enrollee</span>
</div>
</fieldset>
-->
<fieldset>
<legend>Please Answer Correctly</legend>
<div class="row collapse">
<div class="small-3 large-2 columns">
<span class="prefix">Captcha</span>
</div>
<div class="small-3 large-5 columns">
<input type="text" name="captcha_answer" autocomplete="off" style="border:#ccc 2px solid;" maxlength="5" required>
</div>
<div class="small-3 large-5 columns" >
<?=$question;?>
<a href="#" data-reveal-id="help" class="btn"><span style="font-size:15px;font-weight:bold;">?</span></a>
</div>
</div>
</fieldset>
<div class="option">
<input type="hidden" name="sdj" value="<?=$token;?>">
<input type="submit" class="btn btn-primary" name="enrollment_type" value="Continue Enroll">
<!--<a href="<?=site_url('confirm/resend');?>" class="btn btn-mini btn-warning">Resend Confirmation Code</a>-->
</div>
</div>
<?echo form_close()?>
<div class="large-3 columns"> </div>
</div>
<div id="help" class="reveal-modal">
<h2 class="lead">What is This?</h2>
<p>The <b><i>captcha</i></b> is for added security to prevent bots from entering the site
just type on the string from the image below. The string is (case insensitive) meaning it is either lower or upper
and there is no letter "O" only the number zero
</p>
<a class="close-reveal-modal">×</a>
</div>
| 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/enrollment/index.php | PHP | mit | 2,399 |
<style>
div.enrollment-menu
{
padding:20px;
<!--border:2px dashed #c0c0c0;-->
}
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: "\2714";
cursor: pointer;
}
</style>
<?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');
?>
<div class="row">
<div class="large-1 columns"> </div>
<div class="large-10 columns enrollment-menu content-views">
<input type="button" value="Step 3: Medical Information and Health History" class="btn btn-large btn-success" style="width:100%;">
<div> </div>
<? echo $system_message;?>
<?echo form_open('health','id="check-form-submit" class="custom" data-abide autocomplete="off"');?>
<div class="large-12 columns"><h5 class="lead">MEDICAL INFORMATION AND HEALTH HISTORY</h5></div>
<hr class="clearfix">
<div class="large-12 columns">
<span>1. Does your child have any of the following?</span>
<?='<br>'.form_error('allergies_reaction');?>
</div>
<div class="large-12 columns">
<span>Allergies (specify if yes)</span>
<input type="text" name="allergies_reaction" value="<?=set_value('allergies_reaction');?>">
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>Drug Allergies (specify if yes)</span>
<?='<br>'.form_error('drug_allergies_reaction');?>
<input type="text" name="drug_allergies_reaction" value="<?=set_value('drug_allergies_reaction');?>">
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-4 columns">
<span>Asthma</span>
<?=form_radio('asthma', 'no', 'checked');?> No <?=form_radio('asthma', 'yes');?> Yes
</div>
<div class="large-8 columns">
<span>Does your child carry an asthma inhaler?</span>
<?=form_radio('asthma_inhaler', 'no', 'checked');?> No <?=form_radio('asthma_inhaler', 'yes');?> Yes
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>Eye or Vision problems (specify if yes)</span>
<?='<br>'.form_error('eye_problem_spec');?>
<textarea name="eye_problem_spec"><?=set_value('eye_problem_spec');?></textarea>
</div>
<div class="large-12 columns">
<span>Ear or hearing problem(s) specify if yes</span>
<?='<br>'.form_error('ear_problem_spec');?>
<textarea name="ear_problem_spec"><?=set_value('ear_problem_spec');?></textarea>
</div>
<div class="large-12 columns">
<span>2. Any other health condition that the school should be aware of (e.g. epilepsy, diabetes, etc)</span>
<?='<br>'.form_error('major_ailment');?>
<textarea name="major_ailment"><?=set_value('major_ailment');?></textarea>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>3. Has your child recently been hospitalized? Why? / When?</span>
<?='<br>'.form_error('recently_hospitalized');?>
<textarea name="recently_hospitalized"><?=set_value('recently_hospitalized');?></textarea>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>4. Has your child recently had any serious injuries: Why? / When?</span>
<?='<br>'.form_error('major_injury');?>
<textarea name="major_injury"><?=set_value('major_injury');?></textarea>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>5. Is your child on a regular medication? if yes please specify medication and frequency.</span>
<?='<br>'.form_error('medication_child_taking_spec');?>
<textarea name="medication_child_taking_spec"><?=set_value('medication_child_taking_spec');?></textarea>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>6. Does your child need to take any medication/s during school hours?</span> <?=form_radio('medication_child_taking_school_hours', 'no', 'checked');?> No <?=form_radio('medication_child_taking_school_hours', 'yes');?> Yes.
</div>
<div class="clearfix"></div>
<div class="alert-box">(If so, a letter from the Medical Doctor must be submitted, and be kept on file and medication(s) will also be kept in the school, to be dispensed only by the teacher or authorized person.)</div>
<div class="clearfix"></div>
<hr class="clearfix">
<div>
<input type="hidden" name="sdj_lefg" value="<?=$token;?>">
<input type="hidden" name="fillup_health" value="true">
<input type="submit" name="fillup_health" value="Continue Part 4: Authorization" class="btn btn-primary">
</div>
<?php echo form_close(); ?>
</div>
<div class="large-1 columns"> </div>
</div> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/enrollment/health_history.php | PHP | mit | 4,887 |
<?php
if($applicant->guidance_recommend_level_id!=''){
$level_id = set_value('level_id',$applicant->guidance_recommend_level_id);
}else{
$level_id = set_value('level_id',$applicant->e_grade_level);
}
$child_fname = set_value('child_fname',ucwords(strtolower($applicant->firstname)));
$child_mname = set_value('child_mname',ucwords(strtolower($applicant->middlename)));
$child_lname = set_value('child_lname',ucwords(strtolower($applicant->lastname)));
$child_name_ext = set_value('child_name_ext',ucwords(strtolower($applicant->name_ext)));
$child_bdate = set_value('child_bdate',$applicant->dob);
$mobile_phone = set_value('mobile_phone',$applicant->contact_no);
$previous_school = set_value('previous_school',$applicant->previous_school);
$chooseAttrib = array('good' => 'good', 'fair' => 'fair', 'limited' => 'limited', 'none' => 'none' );
$genderAttrib = array('' => 'Select Gender...', 'male' => 'Male', 'female' => 'Female' );
$citizAttrib = array('Filipino' => 'Filipino', 'Chinese' => 'Chinese', 'North Korean' => 'North Korean', 'South Korean' => 'South Korean', 'US Citizen' => 'US Citizen', 'other' => 'Other' );
$citizComp = array(
'Afghan' =>'Afghan',
'Albanian'=>'Albanian',
'Algerian'=>'Algerian',
'Andorran'=>'Andorran',
'Angolan'=>'Angolan',
'Argentinian'=>'Argentinian',
'Armenian'=>'Armenian',
'Australian'=>'Australian',
'Austrian'=>'Austrian',
'Bahamian'=>'Bahamian',
'Bahraini'=>'Bahraini',
'Bangladeshi'=>'Bangladeshi',
'Barbadian'=>'Barbadian',
'Belarusian,Belarusan'=>'Belarusian,Belarusan',
'Belgian'=>'Belgian',
'Belizean'=>'Belizean',
'Beninese'=>'Beninese',
'Bhutanese'=>'Bhutanese',
'Bolivian'=>'Bolivian',
'Bosnian'=>'Bosnian',
'Botswanan,Tswana'=>'Botswanan,Tswana',
'Brazilian'=>'Brazilian',
'British,Briton'=>'British,Briton',
'Bruneian'=>'Bruneian',
'Bulgarian'=>'Bulgarian',
'Burkinese'=>'Burkinese',
'Burmese'=>'Burmese',
'Burundian'=>'Burundian',
'Cambodian'=>'Cambodian',
'Cameroonian'=>'Cameroonian',
'Canadian'=>'Canadian',
'Cape Verdean'=>'Verdean',
'Chadian'=>'Chadian',
'Chilean'=>'Chilean',
'Colombian'=>'Colombian',
'Congolese'=>'Congolese',
'Costa Rican'=>'Costa Rican',
'Croat,Croatian'=>'Croat,Croatian',
'Cuban'=>'Cuban',
'Cypriot'=>'Cypriot',
'Czech'=>'Czech',
'Danish,Dane'=>'Danish,Dane',
'Djiboutian'=>'Djiboutian',
'Dominican'=>'Dominican',
'Dutch'=>'Dutch',
'Ecuadorean'=>'Ecuadorean',
'Egyptian'=>'Egyptian',
'Salvadorean'=>'Salvadorean',
'English'=>'English',
'Eritrean'=>'Eritrean',
'Estonian'=>'Estonian',
'Ethiopian'=>'Ethiopian',
'Fijian'=>'Fijian',
'Finn'=>'Finn',
'French'=>'French',
'Gabonese'=>'Gabonese',
'Gambian'=>'Gambian',
'Georgian'=>'Georgian',
'German'=>'German',
'Ghanaian'=>'Ghanaian',
'Greek'=>'Greek',
'Grenadian'=>'Grenadian',
'Guatemalan'=>'Guatemalan',
'Guinean'=>'Guinean',
'Guyanese'=>'Guyanese',
'Haitian'=>'Haitian',
'Honduran'=>'Honduran',
'Hungarian'=>'Hungarian',
'Icelander'=>'Icelander',
'Indian'=>'Indian',
'Indonesian'=>'Indonesian',
'Iranian'=>'Iranian',
'Iraqi'=>'Iraqi',
'Irish'=>'Irish',
'Italian'=>'Italian',
'Jamaican'=>'Jamaican',
'Japanese'=>'Japanese',
'Jordanian'=>'Jordanian',
'Kazakh'=>'Kazakh',
'Kenyan'=>'Kenyan',
'Kuwaiti'=>'Kuwaiti',
'Laotian'=>'Laotian',
'Latvian'=>'Latvian',
'Lebanese'=>'Lebanese',
'Liberian'=>'Liberian',
'Libyan'=>'Libyan',
'Liechtensteiner'=>'Liechtensteiner',
'Lithuanian'=>'Lithuanian',
'Luxembourger'=>'Luxembourger',
'Macedonian'=>'Macedonian',
'Malagasy,Madagascan'=>'Malagasy,Madagascan',
'Malawian'=>'Malawian',
'Malaysian'=>'Malaysian',
'Maldivian'=>'Maldivian',
'Malian'=>'Malian',
'Maltese'=>'Maltese',
'Mauritanian'=>'Mauritanian',
'Mauritian'=>'Mauritian',
'Mexican'=>'Mexican',
'Moldovan'=>'Moldovan',
'Monegasque,Monacan'=>'Monegasque,Monacan',
'Mongolian'=>'Mongolian',
'Montenegrin'=>'Montenegrin',
'Moroccan'=>'Moroccan',
'Mozambican'=>'Mozambican',
'Namibian'=>'Namibian',
'Nepalese'=>'Nepalese',
'New Zealander'=>'New Zealander',
'Nicaraguan'=>'Nicaraguan',
'Nigerien'=>'Nigerien',
'Nigerian'=>'Nigerian',
'Norwegian'=>'Norwegian',
'Omani'=>'Omani',
'Pakistani'=>'Pakistani',
'Panamanian'=>'Panamanian',
'Papua New Guinean,Guinean'=>'Papua New Guinean,Guinean',
'Paraguayan'=>'Paraguayan',
'Peruvian'=>'Peruvian',
'Pole'=>'Pole',
'Portuguese'=>'Portuguese',
'Qatari'=>'Qatari',
'Romanian'=>'Romanian',
'Russian'=>'Russian',
'Rwandan'=>'Rwandan',
'Saudi Arabian,Saudi'=>'Saudi Arabian,Saudi',
'Scot'=>'Scot',
'Senegalese'=>'Senegalese',
'Serb,Serbian'=>'Serb,Serbian',
'Seychellois'=>'Seychellois',
'Sierra Leonian'=>'Sierra Leonian',
'Singaporean'=>'Singaporean',
'Slovak'=>'Slovak',
'Slovene,Slovenian'=>'Slovene,Slovenian',
'Solomon Islander'=>'Solomon Islander',
'Somali'=>'Somali',
'South African'=>'South African',
'Spaniard'=>'Spaniard',
'Sri Lankan'=>'Sri Lankan',
'Sudanese'=>'Sudanese',
'Surinamer,Surinamese'=>'Surinamer,Surinamese',
'Swazi'=>'Swazi',
'Swedish,Swede'=>'Swedish,Swede',
'Swiss'=>'Swiss',
'Syrian'=>'Syrian',
'Taiwanese'=>'Taiwanese',
'Tajik/Tadjik'=>'Tajik/Tadjik',
'TaTanzanian'=>'TaTanzanian',
'Thai'=>'Thai',
'Togolese'=>'Togolese',
'Trinidadian'=>'Trinidadian',
'Tobagan/Tobagonian'=>'Tobagan/Tobagonian',
'Tunisian'=>'Tunisian',
'Turk'=>'Turk',
'Turkmen'=>'Turkmen',
'Tuvaluan'=>'Tuvaluan',
'Ugandan'=>'Ugandan',
'Ukrainian'=>'Ukrainian',
'Emirati'=>'Emirati',
'Uruguayan'=>'Uruguayan',
'Uzbek'=>'Uzbek',
'Vanuatuan'=>'Vanuatuan',
'Venezuelan'=>'Venezuelan',
'Vietnamese'=>'Vietnamese',
'a Welshman, a Welshwoman'=>'a Welshman, a Welshwoman',
'Western Samoan'=>'Western Samoan',
'Yemeni'=>'Yemeni',
'Yugoslav'=>'Yugoslav',
'Zairean'=>'Zairean',
'Zambian'=>'Zambian',
'Zimbabwean'=>'Zimbabwean'
);
?>
<div> </div>
<div class="large-12 columns"><h5 class="lead">APPLICANT INFORMATION (List all names as recorded in birth certificate/passport)</h5></div>
<hr class="clearfix">
<!--
<div class="large-4 columns">
<span>Student Number</span>
<?='<br>'.form_error('student_number');?>
<input type="text" name="student_number" value="<?=set_value('student_number');?>">
</div>
<div class="clearfix"></div>
-->
<div class="large-4 columns">
<span>Valid Email Address</span>
<?='<br>'.form_error('email');?>
<input type="email" data-tooltip class="has-tip tip-top" title="Student information, credentials and other news will be sent to your email address." name="email" value="<?=set_value('email');?>">
</div>
<div class="large-4 columns">
<span>Grade Level</span>
<?='<br>'.form_error('level_id');?>
<?php echo form_dropdown('level_id', $levels, $level_id);?>
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>First Name</span>
<?='<br>'.form_error('child_fname');?>
<input type="text" name="child_fname" value="<?=$child_fname;?>">
</div>
<div class="large-4 columns">
<span>Middle Name</span>
<?php echo '<br>'.form_error('child_mname') == '' ? '<span style="font-size:10px;font-weight:bold;">If No middle name just put "none"</span>' : '<br>'.form_error('child_mname'); ?>
<input type="text" name="child_mname" value="<?=$child_mname;?>">
</div>
<div class="large-4 columns">
<span>Last Name</span>
<?='<br>'.form_error('child_lname');?>
<input type="text" name="child_lname" value="<?=$child_lname;?>">
</div>
<div class="large-4 columns">
<span>Preferred Name</span>
<?='<br>'.form_error('child_nickname');?>
<input type="text" name="child_nickname" value="<?=set_value('child_nickname');?>">
</div>
<div class="large-4 columns">
<span>Name Ext (e.g jr,II,III)</span>
<?='<br>'.form_error('child_name_ext');?>
<input type="text" name="child_name_ext" value="<?=$child_name_ext;?>">
</div>
<div class="large-4 columns">
<span>Gender</span>
<?='<br>'.form_error('gender');?>
<?=form_dropdown('gender', $genderAttrib, set_value('gender'));?>
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Date of Birth:</span>
<?='<br>'.form_error('child_bdate');?>
<input type="text" name="child_bdate" class="birthdate" value="<?=$child_bdate;?>">
</div>
<div class="large-4 columns">
<span>Citizenship (Passport)</span>
<?='<br>'.form_error('child_nationality');?>
<?php echo form_dropdown('child_nationality', $citizAttrib, set_value('child_nationality'), 'id="child_nationality"');?>
</div>
<div class="large-4 columns">
<span>Place of Birth</span>
<?='<br>'.form_error('child_placeofbirth');?>
<input type="text" name="child_placeofbirth" value="<?=set_value('child_placeofbirth');?>">
</div>
<div id="for_other_nationality" style="display:none;">
<div class="clearfix"></div>
<div class="large-4 columns"><span> </span></div>
<div class="large-4 columns">
<?php //echo form_dropdown('child_nationality2', $citizComp, set_value('child_nationality2'), 'id="child_nationality2"');?>
<?='<br>'.form_error('child_nationality2');?>
<input type="text" name="child_nationality2" value="<?=set_value('child_nationality2');?>">
</div>
<div class="large-4 columns"><span> </span></div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>Residential Address in the Philippines</span>
<?='<br>'.form_error('child_city_address');?>
<input type="text" name="child_city_address" value="<?=set_value('child_city_address');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Home Phone</span>
<?='<br>'.form_error('child_telno');?>
<input type="text" name="child_telno" value="<?=set_value('child_telno');?>">
</div>
<div class="large-4 columns">
<span>Mobile Phone</span>
<?='<br>'.form_error('mobile_phone');?>
<input type="text" name="mobile_phone" value="<?=$mobile_phone;?>">
</div>
<div class="large-4 columns">
<span>Religion</span>
<?='<br>'.form_error('child_religous');?>
<input type="text" name="child_religous" value="<?=set_value('child_religous');?>">
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<span>1- The student will be living in the Philippines with (pls. check all that apply):</span>
<?php echo $cannot_be_with=='no' ? '<br><span class="error_simple">Please choose at least 1.</span>' : ''; ?>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?=form_checkbox('living_in_ph_with_father', 'yes', set_checkbox('living_in_ph_with_father', 'yes'));?>
<span>Father / Step Father</span>
</div>
<div class="large-4 columns">
<?=form_checkbox('living_in_ph_with_mother', 'yes', set_checkbox('living_in_ph_with_mother', 'yes'));?>
<span>Mother / Step Mother</span>
</div>
<div class="large-4 columns"> </div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-2 columns">
<?=form_checkbox('living_in_ph_with_guardian', 'yes', set_checkbox('living_in_ph_with_guardian', 'yes'), 'id="living_in_ph_with_guardian"');?>
<span>Guardian</span>
</div>
<div class="large-10 columns"> </div>
</div>
</div>
<div class="clearfix"></div>
<div id="legal_guardian_info">
<div class="large-12 columns">
<span>Information about the legal guardian</span>
</div>
<div class="row" >
<div class="large-12 columns">
<div class="large-4 columns">
<span>Guardian's First Name</span>
<?='<br>'.form_error('guardian_name');?>
<input type="text" name="guardian_name" value="<?=set_value('guardian_name');?>">
</div>
<div class="large-4 columns">
<span>Guardian's Middle Name</span>
<?='<br>'.form_error('guardian_mname');?>
<input type="text" name="guardian_mname" value="<?=set_value('guardian_mname');?>">
</div>
<div class="large-4 columns">
<span>Guardian's Last Name</span>
<?='<br>'.form_error('guardian_lname');?>
<input type="text" name="guardian_lname" value="<?=set_value('guardian_lname');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Citizenship (Passport)</span>
<?='<br>'.form_error('guardian_citizenship');?>
<input type="text" name="guardian_citizenship" value="<?=set_value('guardian_citizenship');?>">
</div>
<div class="large-4 columns">
<span>Philippine Visa Status</span>
<?='<br>'.form_error('guardian_visa');?>
<input type="text" name="guardian_visa" value="<?=set_value('guardian_visa');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Employer or Organization</span>
<?='<br>'.form_error('guardian_occup');?>
<input type="text" name="guardian_occup" value="<?=set_value('guardian_occup');?>">
</div>
<div class="large-4 columns">
<span>Office Phone Number</span>
<?='<br>'.form_error('guardian_office_tel');?>
<input type="text" name="guardian_office_tel" value="<?=set_value('guardian_office_tel');?>">
</div>
<div class="large-4 columns">
<span>Mobile Number</span>
<?='<br>'.form_error('guardian_contact_no');?>
<input type="text" name="guardian_contact_no" value="<?=set_value('guardian_contact_no');?>">
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<label><?=form_checkbox('guardian_contact_no_text', 'yes', FALSE, set_checkbox('guardian_contact_no_text', 'yes'));?> <span>Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label>
</div>
</div>
</div>
</div>
<div class="large-12 columns">
<div class="large-4 columns" style="padding:0px;">
<span>2- Your child's English reading and writing level: </span>
<?='<br>'.form_error('childs_english_reading_writing_level');?>
</div>
<div class="large-2 columns">
<?=form_dropdown('childs_english_reading_writing_level', $chooseAttrib, set_value('childs_english_reading_writing_level'));?>
</div>
<div class="large-4 columns" style="padding:0px;">
<span>3- Your child's English verbal proficiency: </span>
<?='<br>'.form_error('childs_english_verbal_proficiency');?>
</div>
<div class="large-2 columns">
<?=form_dropdown('childs_english_verbal_proficiency', $chooseAttrib, set_value('childs_english_verbal_proficiency'));?>
</div>
</div>
<div class="large-12 columns">
<span>4- Languages Spoken at home?</span>
<?='<br>'.form_error('language_at_home');?>
<input type="text" name="language_at_home" value="<?=set_value('language_at_home');?>">
</div>
<div class="large-12 columns">
<span>5- List any participation in advanced level classes (i.e., Advanced Math, Gifted or Talented, Gateway, Writing, etc.)</span>
<?='<br>'.form_error('participation_in_advanced_level_classes');?>
<input type="text" name="participation_in_advanced_level_classes" value="<?=set_value('participation_in_advanced_level_classes');?>">
</div>
<div class="large-12 columns">
<span>6- Did your child receive any remedial help in previous schools (i.e., Remedial Program, Special Education, Speech Therapy, IEP, IDP, etc). <br/>If yes, please explain and provide latest testing results.</span>
<?='<br>'.form_error('remedial_help_in_previous_schools');?>
<input type="text" name="remedial_help_in_previous_schools" value="<?=set_value('remedial_help_in_previous_schools');?>">
</div>
<div class="large-12 columns">
<span>7- Does your child have any special talent or interest in:</span>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-2 columns">
<?=form_checkbox('special_talent_interest_dance', 'yes');?>
<span>Dance</span>
</div>
<div class="large-2 columns">
<?=form_checkbox('special_talent_interest_drama', 'yes');?>
<span>Drama</span>
</div>
<div class="large-2 columns">
<?=form_checkbox('special_talent_interest_art', 'yes');?>
<span>Art</span>
</div>
<div class="large-2 columns">
<?=form_checkbox('special_talent_interest_acomputer', 'yes');?>
<span>Computer</span>
</div>
<div class="large-3 columns">
<?=form_checkbox('special_talent_interest_vocal_chorus', 'yes');?>
<span>Vocal or Chorus</span>
</div>
<div class="large-1 columns"> </div>
</div>
</div>
<br>
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?=form_checkbox('special_talent_interest_athletics', 'yes');?>
<span>Athletics - favorite Sport(s):</span>
</div>
<div class="large-8 columns">
<?='<br>'.form_error('special_talent_interest_athletics_spec');?>
<input type="text" name="special_talent_interest_athletics_spec" value="<?=set_value('special_talent_interest_athletics_spec');?>">
</div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?=form_checkbox('special_talent_interest_band', 'yes');?>
<span>Band (Instrument?)</span>
</div>
<div class="large-8 columns">
<?='<br>'.form_error('special_talent_interest_band_spec');?>
<input type="text" name="special_talent_interest_band_spec" value="<?=set_value('special_talent_interest_band_spec');?>">
</div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?=form_checkbox('special_talent_interest_string', 'yes');?>
<span>String (Instrument?)</span>
</div>
<div class="large-8 columns">
<?='<br>'.form_error('special_talent_interest_string_spec');?>
<input type="text" name="special_talent_interest_string_spec" value="<?=set_value('special_talent_interest_string_spec');?>">
</div>
</div>
</div>
<div class="large-12 columns">
<span>8- Is there any other information you think the teacher should know about your child?</span>
<?='<br>'.form_error('hinder_childs_learning');?>
<textarea name="hinder_childs_learning"><?=set_value('hinder_childs_learning');?></textarea>
</div>
<div class="large-12 columns">
<span>9- Has your child ever been asked to leave school because of any behavioral / disciplinary problems? If yes, please explain.</span>
<?='<br>'.form_error('leave_school');?>
<textarea name="leave_school"><?=set_value('leave_school');?></textarea>
</div>
<div class="large-12 columns">
<label class="span">Name of Previous School:</label>
<?='<br>'.form_error('previous_school');?>
<input type="text" name="previous_school" value="<?=$previous_school;?>">
</div>
<div class="large-12 columns">
<label class="span">Complete School Address (including zip code):</label>
<?='<br>'.form_error('previous_school_address');?>
<input type="text" name="previous_school_address" value="<?=set_value('previous_school_address');?>">
</div>
<div class="large-12 columns">
<label class="span">Grade Level / Academic Year</label>
<?='<br>'.form_error('previous_grade_level');?>
<input type="text" name="previous_grade_level" value="<?=set_value('previous_grade_level');?>">
</div>
<hr class="clearfix">
<div>
<input type="hidden" name="e_profile_id" value="<?php echo $applicant->e_profile_id; ?>" >
<input type="hidden" name="e_ay_id" value="<?php echo $applicant->e_ay_id; ?>" >
<a href="#" id="panel_1" class="btn btn-primary">Continue Part 2: Parent / Legal Guardian Information</a>
</div>
<script>
$( document ).ready(function() {
$('#panel_1').on('click', function(event) {
$('#panel1').removeClass("active");
$('#panel1').css("padding-top", "");
$('#panel2').addClass("active");
$('#panel3').removeClass("active");
$('#panel3').css("padding-top", "");
$('#panel4').removeClass("active");
$('#panel4').css("padding-top", "");
});
});
</script> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/enrollment/applicant_information.php | PHP | mit | 19,986 |
<div class="verify">
<div class="wrapper">
<img src="<?=base_url('assets/css/custom-images/dialog_question.png');?>">
<div class="content">
<table class="data-table">
<?if(!empty($verify_profile_data)):?>
<tbody class="tabular">
<tr><td>Firstname:</td><td><?php echo $verify_profile_data['firstname'];?></td></tr>
<tr><td>Lastname</td><td><?php echo $verify_profile_data['lastname'];?></td></tr>
<tr><td>Middlename</td><td><?php echo $verify_profile_data['middlename'];?></td></tr>
<tr><td>gender</td><td><?php echo $verify_profile_data['gender'];?></td></tr>
<tr><td>Birthdate</td><td><?php echo $verify_profile_data['dob'];?></td></tr>
<tr><td>Birthplace</td><td><?php echo $verify_profile_data['pob'];?></td></tr>
<tr><td>Age</td><td><?php echo $verify_profile_data['age'];?></td></tr>
<tr><td>Present Add.</td><td><?php echo $verify_profile_data['present_address'];?></td></tr>
<tr><td>Father's Name</td><td><?php echo $verify_profile_data['fathername'];?></td></tr>
<tr><td>Contact #</td><td><?php echo $verify_profile_data['father_contact_no'];?></td></tr>
<tr><td>Mother's Name</td><td><?php echo $verify_profile_data['mothername'];?></td></tr>
<tr><td>Contact #</td><td><?php echo $verify_profile_data['mother_contact_no'];?></td></tr>
<tr><td>Parent's Add</td><td><?php echo $verify_profile_data['parent_address'];?></td></tr>
<tr><td>Last School Att.</td><td><?php echo $verify_profile_data['last_school_name'];?></td></tr>
<tr><td>School Add.</td><td><?php echo $verify_profile_data['last_school_address'];?></td></tr>
<tr><td>Level</td><td><?php echo $verify_profile_data['last_school_level'];?></td></tr>
<tr><td>School Year</td><td><?php echo $verify_profile_data['last_school_year'];?></td></tr>
</tbody>
<?endif;?>
</table>
<div class="menu">
<?$formAtrrib = array('class'=>'verify-form');?>
<?echo form_open('enrollment/input_data',$formAtrrib);?>
<input type="hidden" name="firstname" value="<?php echo $verify_profile_data['firstname'];?>">
<input type="hidden" name="lastname" value="<?php echo $verify_profile_data['lastname'];?>">
<input type="hidden" name="middlename" value="<?php echo $verify_profile_data['middlename'];?>">
<input type="hidden" name="gender" value="<?php echo $verify_profile_data['gender'];?>">
<input type="hidden" name="dob" value="<?php echo $verify_profile_data['dob'];?>">
<input type="hidden" name="pob" value="<?php echo $verify_profile_data['pob'];?>">
<input type="hidden" name="age" value="<?php echo $verify_profile_data['age'];?>">
<input type="hidden" name="present_address" value="<?php echo $verify_profile_data['present_address'];?>">
<input type="hidden" name="fathername" value="<?php echo $verify_profile_data['fathername'];?>">
<input type="hidden" name="father_contact_no" value="<?php echo $verify_profile_data['father_contact_no'];?>">
<input type="hidden" name="mothername" value="<?php echo $verify_profile_data['mothername'];?>">
<input type="hidden" name="mother_contact_no" value="<?php echo $verify_profile_data['mother_contact_no'];?>">
<input type="hidden" name="parent_address" value="<?php echo $verify_profile_data['parent_address'];?>">
<input type="hidden" name="last_school_name" value="<?php echo $verify_profile_data['last_school_name'];?>">
<input type="hidden" name="last_school_address" value="<?php echo $verify_profile_data['last_school_address'];?>">
<input type="hidden" name="last_school_level" value="<?php echo $verify_profile_data['last_school_level'];?>">
<input type="hidden" name="last_school_year" value="<?php echo $verify_profile_data['last_school_year'];?>">
<input type="hidden" name="level_id" value="<?php echo $verify_profile_data['level_id'];?>">
<input type="hidden" name="idno" value="<?php echo $verify_profile_data['idno'];?>">
<input type="hidden" name="student_type" value="new">
<input type="submit" name="check" value="Continue Enroll">
<?echo form_close()?>
</div>
<a href="javascript:history.go(-1)" class="add">GO BACK</a>
</div>
</div>
</div>
| 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/enrollment/verify/verify_data.php | PHP | mit | 4,199 |
<style>
div.enrollment-menu
{
padding:20px;
border:2px dashed #c0c0c0;
}
div.option{
margin:20px 5px;
}
ul li{
list-style:none;
}
</style>
<?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');
?>
<div class="row">
<div class="alert-box">REGISTRATION FORMS</div>
<div class="large-2 columns"> </div>
<div class="large-8 columns enrollment-menu content-views">
<? echo $system_message;?>
<?echo form_open('new');?>
<div class="alert-box">
<i class="icon-info-sign"></i> <strong>Things To Remember</strong>
<ul>
<li>> <strong>Please use a valid email Address since your account credentials will be sent there.</strong></li>
</div>
<fieldset>
<legend class="label">Student Personal Information</legend>
<div>
<label class="radius secondary label">Child's Firstname</label>
<input type="text" name="child_fname" value="<?=set_value('child_fname');?>">
</div>
<div>
<label class="radius secondary label">Child's Middle name</label>
<input type="text" name="child_mname" value="<?=set_value('child_mname');?>">
</div>
<div>
<label class="radius secondary label">Child's last Name</label>
<input type="text" name="child_lname" value="<?=set_value('child_lname');?>">
</div>
<div>
<label class="radius secondary label">Child's Nickname</label>
<input type="text" name="child_nickname" value="<?=set_value('child_nickname');?>">
</div>
<div>
<label class="radius secondary label">Grade Level</label>
<?php
echo form_dropdown('level_id', $levels, set_value('level_id'));
echo form_error('level_id');
?>
</div>
<div>
<label class="radius secondary label">Childs Birthdate:</label>
<input type="text" name="child_bdate" class="datepicker" value="<?=set_value('child_bdate');?>">
</div>
<div>
<label class="radius secondary label">Gender</label>
<?=form_dropdown('gender', $genderAttrib, set_value('gender'));?>
</div>
<div>
<label class="radius secondary label">Place of Birth</label>
<input type="text" name="child_placeofbirth" value="<?=set_value('child_placeofbirth');?>">
</div>
<div>
<label class="radius secondary label">Nationality</label>
<input type="text" name="child_nationality" value="<?=set_value('child_nationality');?>">
</div>
<div>
<label class="radius secondary label">Religious Affiliation</label>
<input type="text" name="child_religous" value="<?=set_value('child_religous');?>">
</div>
<div>
<label class="radius secondary label">City Address</label>
<input type="text" name="child_city_address" value="<?=set_value('child_city_address');?>">
</div>
<div>
<label class="radius secondary label">Telephone Number</label>
<input type="text" name="child_telno" value="<?=set_value('child_telno');?>">
</div>
<div>
<label class="radius secondary label">How Long has Child Lived in This Address?</label>
<input type="text" name="child_adresshowlong" value="<?=set_value('child_adresshowlong');?>">
</div>
<div>
<label class="radius secondary label">School Last Attended</label>
<input type="text" name="school_last_attended" value="<?=set_value('school_last_attended');?>">
</div>
<div>
<label class="radius secondary label">School Level Completed</label>
<input type="text" name="school_level_completed" value="<?=set_value('school_level_completed');?>">
</div>
<div>
<label class="radius secondary label">Address Of School</label>
<input type="text" name="school_address" value="<?=set_value('school_address');?>">
</div>
<div>
<label class="radius secondary label">Father's Full Name</label>
<input type="text" name="father_name" value="<?=set_value('father_name');?>">
</div>
<div>
<label class="radius secondary label">Father's Age</label>
<input type="text" name="father_age" value="<?=set_value('father_age');?>">
</div>
<div>
<label class="radius secondary label">Father's Citizenship:</label>
<input type="text" name="father_citizenship" value="<?=set_value('father_citizenship');?>">
</div>
<div>
<label class="radius secondary label">Fathers's Educational Attainment</label>
<input type="text" name="father_educ" value="<?=set_value('father_educ');?>">
</div>
<div>
<label class="radius secondary label">Father's Hobbies/Talent</label>
<input type="text" name="father_talent" value="<?=set_value('father_talent');?>">
</div>
<div>
<label class="radius secondary label">Father's Occupation/Position</label>
<input type="text" name="father_occup" value="<?=set_value('father_occup');?>">
</div>
<div>
<label class="radius secondary label">Father's Office Address</label>
<input type="text" name="father_office_address" value="<?=set_value('father_office_address');?>">
</div>
<div>
<label class="radius secondary label">Father's Office Telephone Number</label>
<input type="text" name="father_office_tel" value="<?=set_value('father_office_tel');?>">
</div>
<div>
<label class="radius secondary label">Mother's Full Name</label>
<input type="text" name="mother_name" value="<?=set_value('mother_name');?>">
</div>
<div>
<label class="radius secondary label">Mother's Age</label>
<input type="text" name="mother_age" value="<?=set_value('mother_age');?>">
</div>
<div>
<label class="radius secondary label">Mother's Citizenship</label>
<input type="text" name="mother_citizenship" value="<?=set_value('mother_citizenship');?>">
</div>
<div>
<label class="radius secondary label">Mother's Educational Attainment</label>
<input type="text" name="mother_educ" value="<?=set_value('mother_educ');?>">
</div>
<div>
<label class="radius secondary label">Mother's Hobbies/Talent</label>
<input type="text" name="mother_talent" value="<?=set_value('mother_talent');?>">
</div>
<div>
<label class="radius secondary label">Mother's Occupation/Position</label>
<input type="text" name="mother_occup" value="<?=set_value('mother_occup');?>">
</div>
<div>
<label class="radius secondary label">Mother's Office Address</label>
<input type="text" name="mother_office_address" value="<?=set_value('mother_office_address');?>">
</div>
<div>
<label class="radius secondary label">Mother's Office Telephone Number</label>
<input type="text" name="mother_office_tel" value="<?=set_value('mother_office_tel');?>">
</div>
<div>
<label class="radius secondary label">Guardian's Full Name</label>
<input type="text" name="guardian_name" value="<?=set_value('guardian_name');?>">
</div>
<div>
<label class="radius secondary label">Relation To Child</label>
<input type="text" name="guardian_relation" value="<?=set_value('guardian_relation');?>">
</div>
<div>
<label class="radius secondary label">Guardian's Address</label>
<input type="text" name="guardian_address" value="<?=set_value('guardian_address');?>">
</div>
<div>
<label class="radius secondary label">Guardian's Contact Number</label>
<input type="text" name="guardian_contact_num" value="<?=set_value('guardian_contact_num');?>">
</div>
<div>
<label class="radius secondary label">Reason for Need of Guardian</label>
<input type="text" name="guardian_reason" value="<?=set_value('guardian_reason');?>">
</div>
<!-- End of personal information -->
</fieldset>
<fieldset>
<legend class="label">Family History</legend>
<div>
<label class="radius secondary label">Status of Parents</label>
<? echo form_dropdown('parent_status',array('married'=>'married',
'remarried'=>'remarried',
'living together'=>'living together',
'separated'=>'separated',
'Single Parent'=>'Single Parent'),set_value('parent_status')); ?>
</div>
<div>
<label class="radius secondary label">For How Long</label>
<input type="text" name="status_how_long" value="<?=set_value('status_how_long');?>">
</div>
<div>
<label class="radius secondary label">(if single parent) Only</label>
<input type="text" name="right_over_child" value="<?=set_value('right_over_child');?>">
</div>
<div>
<label class="radius secondary label">(separated or single) Do parents have rights over child?</label>
<input type="text" name="right_over_child" value="<?=set_value('right_over_child');?>">
</div>
<fieldset>
<legend>Other Family Members (SIBLINGS ONLY)</legend>
<div>
<div class="large-8 columns">
<label class="radius secondary label">Name</label>
<input type="text" name="sibling1" value="<?=set_value('sibling1');?>">
</div>
<div class="large-4 columns">
<label class="radius secondary label">Age</label>
<input type="text" name="siblingage1" value="<?=set_value('siblingage1');?>">
</div>
</div>
<div>
<div class="large-8 columns">
<label class="radius secondary label">Name</label>
<input type="text" name="sibling2" value="<?=set_value('sibling2');?>">
</div>
<div class="large-4 columns">
<label class="radius secondary label">Age</label>
<input type="text" name="siblingage2" value="<?=set_value('siblingage2');?>">
</div>
</div>
<div>
<div class="large-8 columns">
<label class="radius secondary label">Name</label>
<input type="text" name="sibling3" value="<?=set_value('sibling3');?>">
</div>
<div class="large-4 columns">
<label class="radius secondary label">Age</label>
<input type="text" name="siblingage3" value="<?=set_value('siblingage3');?>">
</div>
</div>
<div>
<div class="large-8 columns">
<label class="radius secondary label">Name</label>
<input type="text" name="sibling4" value="<?=set_value('sibling4');?>">
</div>
<div class="large-4 columns">
<label class="radius secondary label">Age</label>
<input type="text" name="siblingage4" value="<?=set_value('siblingage4');?>">
</div>
</div>
<div>
<div class="large-8 columns">
<label class="radius secondary label">Name</label>
<input type="text" name="sibling5" value="<?=set_value('sibling5');?>">
</div>
<div class="large-4 columns">
<label class="radius secondary label">Age</label>
<input type="text" name="siblingage5" value="<?=set_value('siblingage5');?>">
</div>
</div>
<div>
<div class="large-8 columns">
<label class="radius secondary label">Name</label>
<input type="text" name="sibling6" value="<?=set_value('sibling6');?>">
</div>
<div class="large-4 columns">
<label class="radius secondary label">Age</label>
<input type="text" name="siblingage6" value="<?=set_value('siblingage6');?>">
</div>
</div>
</fieldset>
<div>
<label class="radius secondary label">Position of Child in Family</label>
<?=form_dropdown('position_of_child',$child_birth_position,set_value('position_of_child'));?>
</div>
<fieldset>
<div class="large-5 columns">
<label class="radius secondary label">Is Child Adopted</label>
<?=form_dropdown('is_child_adopted',array('no'=>'No','yes'=>'Yes'),set_value('is_child_adopted'));?>
</div>
<div class="large-5 columns">
<label class="radius secondary label">if Yes Age of Adoption</label>
<input type="text" name="age_of_adoption" value="<?=set_value('age_of_adoption');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<label class="radius secondary label">Is the child aware he/she is adopted?</label>
<?=form_dropdown('child_aware_adopted',array('no'=>'No','yes'=>'Yes'),set_value('child_aware_adopted'));?>
</div>
</fieldset>
<fieldset>
<div class="large-8 columns">
<label class="radius secondary label">Is the mother presently pregnant?</label>
<?=form_dropdown('mother_presently_pregnant',array('no'=>'No','yes'=>'Yes'),set_value('mother_presently_pregnant'));?>
</div>
<div class="large-3 columns">
<label class="radius secondary label">if Yes Due date</label>
<input type="text" name="mother_pregnancy_due_date" value="<?=set_value('mother_pregnancy_due_date');?>">
</div>
</fieldset>
<fieldset>
<div class="large-9 columns">
<label class="radius secondary label">Has there been any deaths in the immediate family?</label>
<?=form_dropdown('family_deaths',array('no'=>'No','yes'=>'Yes'),set_value('family_deaths'));?>
</div>
<div class="large-3 columns">
<label class="radius secondary label">Relation to child</label>
<input type="text" name="family_deaths_relation" value="<?=set_value('family_deaths_relation');?>">
</div>
<div class="large-9 columns">
<label class="radius secondary label">Has there been any serious accidents in the family?</label>
<?=form_dropdown('family_accidents',array('no'=>'No','yes'=>'Yes'),set_value('family_accidents'));?>
</div>
<div class="large-3 columns">
<label class="radius secondary label">Relation to child</label>
<input type="text" name="family_accidents_relation" value="<?=set_value('family_accidents_relation');?>">
</div>
<div>
<label class="radius secondary label">What?:</label>
<input type="text" name="what" value="<?=set_value('what');?>">
</div>
<div>
<label class="radius secondary label">When?:</label>
<input type="text" name="when" value="<?=set_value('when');?>">
</div>
</fieldset>
<fieldset>
<legend>Other Household Members (Relatives,Helpers, etc..)</legend>
<div>
<div class="large-8 columns">
<label class="radius secondary label">Name</label>
<input type="text" name="hhmembers1" value="<?=set_value('hhmembers1');?>">
</div>
<div class="large-4 columns">
<label class="radius secondary label">Age</label>
<input type="text" name="hhmembersage1" value="<?=set_value('hhmembersage1');?>">
</div>
</div>
<div>
<div class="large-8 columns">
<label class="radius secondary label">Name</label>
<input type="text" name="hhmembers2" value="<?=set_value('hhmembers2');?>">
</div>
<div class="large-4 columns">
<label class="radius secondary label">Age</label>
<input type="text" name="hhmembers2" value="<?=set_value('hhmembers2');?>">
</div>
</div>
<div>
<div class="large-8 columns">
<label class="radius secondary label">Name</label>
<input type="text" name="hhmembers3" value="<?=set_value('hhmembers3');?>">
</div>
<div class="large-4 columns">
<label class="radius secondary label">Age</label>
<input type="text" name="hhmembersage3" value="<?=set_value('hhmembersage3');?>">
</div>
</div>
<div>
<div class="large-8 columns">
<label class="radius secondary label">Name</label>
<input type="text" name="hhmembers4" value="<?=set_value('hhmembers4');?>">
</div>
<div class="large-4 columns">
<label class="radius secondary label">Age</label>
<input type="text" name="hhmembersage4" value="<?=set_value('hhmembersage4');?>">
</div>
</div>
<div>
<div class="large-8 columns">
<label class="radius secondary label">Name</label>
<input type="text" name="hhmembers5" value="<?=set_value('hhmembers5');?>">
</div>
<div class="large-4 columns">
<label class="radius secondary label">Age</label>
<input type="text" name="hhmembersage5" value="<?=set_value('hhmembersage5');?>">
</div>
</div>
<div>
<div class="large-8 columns">
<label class="radius secondary label">Name</label>
<input type="text" name="hhmembers6" value="<?=set_value('hhmembers6');?>">
</div>
<div class="large-4 columns">
<label class="radius secondary label">Age</label>
<input type="text" name="hhmembersage6" value="<?=set_value('hhmembersage6');?>">
</div>
</div>
</fieldset>
<div>
<label class="radius secondary label">Languages Spoken at home?</label>
<input type="text" name="language_at_home" value="<?=set_value('language_at_home');?>">
</div>
<div>
<div class="large-6 columns">
<label class="radius secondary label">Activites Family Engages in?</label>
<textarea name="family_activities"><?=set_value('family_activities');?></textarea>
</div>
<div class="large-6 columns">
<label class="radius secondary label">How frequent?</label>
<textarea name="family_activities_frequent"><?=set_value('family_activities_frequent');?></textarea>
</div>
</div>
<fieldset>
<legend>How much time does the child spend in</legend>
<div>
<div class="large-6 columns">
<label class="radius secondary label">Watching TV or videos in a day?</label>
<input type="text" name="tv_time" value="<?=set_value('tv_time');?>">
</div>
<div class="large-6 columns">
<label class="radius secondary label">With Whom</label>
<input type="text" name="tv_whom" value="<?=set_value('tv_whom');?>">
</div>
</div>
<div>
<div class="large-6 columns">
<label class="radius secondary label">Listening to radio in a day?</label>
<input type="text" name="radio_time" value="<?=set_value('radio_time');?>">
</div>
<div class="large-6 columns">
<label class="radius secondary label">With Whom</label>
<input type="text" name="radio_whom" value="<?=set_value('radio_whom');?>">
</div>
</div>
<div>
<div class="large-6 columns">
<label class="radius secondary label">Playing computer games in a day?</label>
<input type="text" name="computergames_time" value="<?=set_value('');?>">
</div>
<div class="large-6 columns">
<label class="radius secondary label">With Whom</label>
<input type="text" name="computergames_whom" value="<?=set_value('computergames_whom');?>">
</div>
</div>
</fieldset>
<div>
<div>
<label class="radius secondary label">Does the child have any Responsibilities/Duties in home?</label>
<input type="text" name="child_responsibilities" value="<?=set_value('child_responsibilities');?>">
</div>
<div class="large-6 columns">
<label class="radius secondary label">What are his/her responsibilities?</label>
<input type="text" name="child_responsibilities_what" value="<?=set_value('child_responsibilities_what');?>">
</div>
</div>
<div>
<div>
<label class="radius secondary label">Does child have a play group?</label>
<input type="text" name="child_play_group" value="<?=set_value('child_play_group');?>">
</div>
<div class="large-6 columns">
<label class="radius secondary label">How frequent does child play with group</label>
<input type="text" name="child_play_group_frequent" value="<?=set_value('child_play_group_frequent');?>">
</div>
</div>
<div>
<label class="radius secondary label">What are the other activites/interest of your child?</label>
<textarea name="other_interest"><?=set_value('other_interest');?></textarea>
</div>
</fieldset>
<div>
<input type="submit" name="fillup_profile" value="Next" class="btn btn-primary">
</div>
<?php echo form_close(); ?>
</div>
<div class="large-2 columns"> </div>
</div> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/enrollment/new_enrollee.php | PHP | mit | 19,136 |
<?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');
?>
<div class="large-12 columns"><h5 class="lead">AUTHORIZATION</h5></div>
<hr class="clearfix">
<div class="large-12 columns">
<span>I give consent for my child to receive the following:</span>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-2 columns">
</div>
<div class="large-5 columns">
<span>*1. Minor first aid</span>
</div>
<div class="large-2 columns">
<?=form_radio('authfirst_aid', 'no','checked');?> No <?=form_radio('authfirst_aid', 'yes');?> Yes
</div>
<div class="large-3 columns">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-2 columns">
</div>
<div class="large-5 columns">
<span>*2. Emergency care</span>
</div>
<div class="large-2 columns">
<?=form_radio('auth_emergency', 'no','checked');?> No <?=form_radio('auth_emergency', 'yes');?> Yes
</div>
<div class="large-3 columns">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-2 columns">
</div>
<div class="large-5 columns">
<span>*3. Emergency care at the nearest hospital</span>
</div>
<div class="large-2 columns">
<?=form_radio('auth_emergency_nearest_hosp', 'no','checked');?> No <?=form_radio('auth_emergency_nearest_hosp', 'yes');?> Yes
</div>
<div class="large-3 columns">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-2 columns">
</div>
<div class="large-5 columns">
<span>*4. Oral non-prescription medication</span>
</div>
<div class="large-2 columns">
<?=form_radio('auth_oral_non_presc', 'no','checked');?> No <?=form_radio('auth_oral_non_presc', 'yes');?> Yes
</div>
<div class="large-3 columns">
</div>
</div>
<div class="clearfix"></div>
<div> </div>
<div class="large-12 columns">
<span style="font-align:left;">***NOTE: If you answered "NO" to numbers 1, 2, and / or 3, you must provide the school with alternative emergency care instructions, to be kept in your child's school records / file.</span>
</div>
<div class="clearfix"></div>
<div> </div>
<div class="large-12 columns">
<?=form_error('first_permission').'<br/>';?>
<?=form_checkbox('first_permission', 'yes', set_checkbox('first_permission', 'yes'));?> <span style="font-style:italic;">Permission is hereby given for emergency measures to be initiated in case of accident or sudden illness with the undestanding that I will be notified as soon as possible.</span>
</div>
<div class="clearfix"></div>
<div> </div>
<div class="large-12 columns">
<?=form_error('second_permission').'<br/>';?>
<?=form_checkbox('second_permission', 'yes', set_checkbox('second_permission', 'yes'));?> <span style="font-style:italic;">I certify that all information given is complete and correct.</span>
</div>
<div class="clearfix"></div>
<div> </div>
<div class="large-12 columns">
<?=form_error('third_permission').'<br/>';?>
<?=form_checkbox('third_permission', 'yes', set_checkbox('third_permission', 'yes'));?> <span style="font-style:italic;">I acknowledge that it is my responsibilty to inform Westfields IS of any changes in my child's health, physical condition or medical needs and any changes in our address and / or contact number(s).</span>
</div>
<div class="clearfix"></div>
<hr class="clearfix">
<div>
<input type="hidden" name="let_be_lefg" value="<?=$token;?>">
<input type="hidden" name="fillup_let_be" value="true">
<input type="submit" name="fillup_let_be" value="Finish" class="btn btn-primary">
</div>
| 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/enrollment/authorization_information.php | PHP | mit | 4,037 |
<style>
div.enrollment-menu
{
padding:20px;
border:2px dashed #c0c0c0;
}
div.option{
margin:20px 5px;
}
</style>
<div class="row">
<div class="large-2 columns"> </div>
<div class="large-8 columns enrollment-menu content-views">
<?if(isset($system_message))echo $system_message;?>
<fieldset>
<legend>Enrollment Credentials</legend>
<form action="<?=site_url('old');?>" method="POST" autocomplete="off" >
<div class="input-block">
<label>Student ID Number:</label>
<input type="text" name="idno" value="" autocomplete="off" required>
</div>
<div class="input-block">
<label> </label>
<input type="hidden" name="form_token" value="<?=$form_token;?>">
<input type="submit" class="btn btn-primary" name="old_enrollee" name="Continue Enroll">
</div>
</form>
</fieldset>
</div>
<div class="large-2 columns"> </div>
</div> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/enrollment/old_enrollee.php | PHP | mit | 923 |
<style>
div.enrollment-menu
{
padding:20px;
<!--border:2px dashed #c0c0c0;-->
}
div.option{
margin:20px 5px;
}
ul li{
list-style:none;
}
span{
padding:0px;
margin:0px;
font-size:15px;
color: #4d4d4d;
}
form.custom .custom.checkbox.checked:before {
content: "\2714";
cursor: pointer;
}
</style>
<?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');
?>
<div class="row">
<div class="large-1 columns"> </div>
<div class="large-10 columns enrollment-menu content-views">
<input type="button" value="Step 3: Authorization" class="btn btn-large btn-success" style="width:100%;">
<div> </div>
<? echo $system_message;?>
<?echo form_open('let_be','id="check-form-submit" class="custom" data-abide autocomplete="off"');?>
<div class="large-12 columns"><h5 class="lead">AUTHORIZATION</h5></div>
<hr class="clearfix">
<div class="large-12 columns">
<span>I give consent for my child to receive the following:</span>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-2 columns">
</div>
<div class="large-5 columns">
<span>*1. Minor first aid</span>
</div>
<div class="large-2 columns">
<?=form_radio('authfirst_aid', 'no','checked');?> No <?=form_radio('authfirst_aid', 'yes');?> Yes
</div>
<div class="large-3 columns">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-2 columns">
</div>
<div class="large-5 columns">
<span>*2. Emergency care</span>
</div>
<div class="large-2 columns">
<?=form_radio('auth_emergency', 'no','checked');?> No <?=form_radio('auth_emergency', 'yes');?> Yes
</div>
<div class="large-3 columns">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-2 columns">
</div>
<div class="large-5 columns">
<span>*3. Emergency care at the nearest hospital</span>
</div>
<div class="large-2 columns">
<?=form_radio('auth_emergency_nearest_hosp', 'no','checked');?> No <?=form_radio('auth_emergency_nearest_hosp', 'yes');?> Yes
</div>
<div class="large-3 columns">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-2 columns">
</div>
<div class="large-5 columns">
<span>*4. Oral non-prescription medication</span>
</div>
<div class="large-2 columns">
<?=form_radio('auth_oral_non_presc', 'no','checked');?> No <?=form_radio('auth_oral_non_presc', 'yes');?> Yes
</div>
<div class="large-3 columns">
</div>
</div>
<div class="clearfix"></div>
<div> </div>
<div class="large-12 columns">
<span style="font-align:left;">***NOTE: If you answered "NO" to numbers 1, 2, and / or 3, you must provide the school with alternative emergency care instructions, to be kept in your child's school records / file.</span>
</div>
<div class="clearfix"></div>
<div> </div>
<div class="large-12 columns">
<?=form_error('first_permission').'<br/>';?>
<?=form_checkbox('first_permission', 'yes');?> <span style="font-style:italic;">Permission is hereby given for emergency measures to be initiated in case of accident or sudden illness with the undestanding that I will be notified as soon as possible.</span>
</div>
<div class="clearfix"></div>
<div> </div>
<div class="large-12 columns">
<?=form_error('second_permission').'<br/>';?>
<?=form_checkbox('second_permission', 'yes');?> <span style="font-style:italic;">I certify that all information given is complete and correct.</span>
</div>
<div class="clearfix"></div>
<div> </div>
<div class="large-12 columns">
<?=form_error('third_permission').'<br/>';?>
<?=form_checkbox('third_permission', 'yes');?> <span style="font-style:italic;">I acknowledge that it is my responsibilty to inform Westfields IS of any changes in my child's health, physical condition or medical needs and any changes in our address and / or contact number(s).</span>
</div>
<div class="clearfix"></div>
<div> </div>
<hr class="clearfix">
<div>
<input type="hidden" name="let_be_lefg" value="<?=$token;?>">
<input type="hidden" name="fillup_let_be" value="true">
<input type="submit" name="fillup_let_be" value="Finish" class="btn btn-primary">
</div>
<?php echo form_close(); ?>
</div>
<div class="large-1 columns"> </div>
</div> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/enrollment/let_be.php | PHP | mit | 4,716 |
<div> </div>
<div class="large-12 columns"><h5 class="lead">PARENT / LEGAL GUARDIAN INFORMATION</h5></div>
<hr class="clearfix">
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?php
if($to_be_display_father == 'father' || $to_be_display_father == ''){
?>
<?=form_radio('to_be_display_father', 'father', TRUE, 'id="to_be_display_father"');?>
<?php
}else{
?>
<?=form_radio('to_be_display_father', 'father', set_radio('to_be_display_father', 'father'), 'id="to_be_display_father"');?>
<?php
}
?>
<span>Biological Father</span>
</div>
<div class="large-4 columns">
<?php
if($to_be_display_father == 'step-father'){
?>
<?=form_radio('to_be_display_father', 'step-father', TRUE, 'id="to_be_display_step_father"');?>
<?php
}else{
?>
<?=form_radio('to_be_display_father', 'step-father', set_radio('to_be_display_father', 'step-father'), 'id="to_be_display_step_father"');?>
<?php
}
?>
<span>Step Father</span>
</div>
<div class="large-4 columns"> </div>
</div>
</div>
<div id="father_info">
<div class="large-12 columns">
<legend>Information About The Father</legend>
<br>
<div class="large-4 columns">
<span>First Name</span>
<?='<br>'.form_error('father_name');?>
<input type="text" name="father_name" value="<?=set_value('father_name');?>">
</div>
<div class="large-4 columns">
<span>Middle Name</span>
<?='<br>'.form_error('father_mname');?>
<input type="text" name="father_mname" value="<?=set_value('father_mname');?>">
</div>
<div class="large-4 columns">
<span>Last Name</span>
<?='<br>'.form_error('father_lname');?>
<input type="text" name="father_lname" value="<?=set_value('father_lname');?>">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-4 columns">
<span>Citizenship (Passport)</span>
<?='<br>'.form_error('father_citizenship');?>
<input type="text" name="father_citizenship" value="<?=set_value('father_citizenship');?>">
</div>
<div class="large-4 columns">
<span>Philippine Visa Status</span>
<?='<br>'.form_error('father_visa');?>
<input type="text" name="father_visa" value="<?=set_value('father_visa');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Employer or Organization</span>
<?='<br>'.form_error('father_occup');?>
<input type="text" name="father_occup" value="<?=set_value('father_occup');?>">
</div>
<div class="large-4 columns">
<span>Office Phone Number</span>
<?='<br>'.form_error('father_office_tel');?>
<input type="text" name="father_office_tel" value="<?=set_value('father_office_tel');?>">
</div>
<div class="large-4 columns">
<span>Mobile Number</span>
<?='<br>'.form_error('father_contact_no');?>
<input type="text" name="father_contact_no" value="<?=set_value('father_contact_no');?>">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<label><?=form_checkbox('father_contact_no_text', 'yes', set_checkbox('father_contact_no_text', 'yes'));?> <span>Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label>
</div>
</div>
<div id="step_father_info">
<div class="large-12 columns">
<legend>Information About The Step-father</legend>
<br>
<div class="large-4 columns">
<span>First Name</span>
<?='<br>'.form_error('step_father_name');?>
<input type="text" name="step_father_name" value="<?=set_value('step_father_name');?>">
</div>
<div class="large-4 columns">
<span>Middle Name</span>
<?='<br>'.form_error('step_father_mname');?>
<input type="text" name="step_father_mname" value="<?=set_value('step_father_mname');?>">
</div>
<div class="large-4 columns">
<span>Last Name</span>
<?='<br>'.form_error('step_father_lname');?>
<input type="text" name="step_father_lname" value="<?=set_value('step_father_lname');?>">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<div class="large-4 columns">
<span>Citizenship (Passport)</span>
<?='<br>'.form_error('step_father_citizenship');?>
<input type="text" name="step_father_citizenship" value="<?=set_value('step_father_citizenship');?>">
</div>
<div class="large-4 columns">
<span>Philippine Visa Status</span>
<?='<br>'.form_error('step_father_visa');?>
<input type="text" name="step_father_visa" value="<?=set_value('step_father_visa');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Employer or Organization</span>
<?='<br>'.form_error('step_father_occup');?>
<input type="text" name="step_father_occup" value="<?=set_value('step_father_occup');?>">
</div>
<div class="large-4 columns">
<span>Office Phone Number</span>
<?='<br>'.form_error('step_father_office_tel');?>
<input type="text" name="step_father_office_tel" value="<?=set_value('step_father_office_tel');?>">
</div>
<div class="large-4 columns">
<span>Mobile Number</span>
<?='<br>'.form_error('step_father_contact_no');?>
<input type="text" name="step_father_contact_no" value="<?=set_value('step_father_contact_no');?>">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<label><?=form_checkbox('step_father_contact_no_text', 'yes');?> <span>Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label>
</div>
</div>
<div class="large-12 columns"> </div>
<div class="row">
<div class="large-12 columns">
<div class="large-4 columns">
<?php
if($to_be_display_mother == 'mother' || $to_be_display_mother == ''){
?>
<?=form_radio('to_be_display_mother', 'mother', TRUE, 'id="to_be_display_mother"');?>
<?php
}else{
?>
<?=form_radio('to_be_display_mother', 'mother', set_radio('to_be_display_mother', 'mother'), 'id="to_be_display_mother"');?>
<?php
}
?>
<span>Biological Mother</span>
</div>
<div class="large-4 columns">
<?php
if($to_be_display_mother == 'step-mother'){
?>
<?=form_radio('to_be_display_mother', 'step-mother', TRUE, 'id="to_be_display_step_mother"');?>
<?php
}else{
?>
<?=form_radio('to_be_display_mother', 'step-mother', set_radio('to_be_display_mother', 'step-mother'), 'id="to_be_display_step_mother"');?>
<?php
}
?>
<span>Step Mother</span>
</div>
<div class="large-4 columns"> </div>
</div>
</div>
<div id="mother_info">
<div class="large-12 columns">
<legend>Information About The Mother</legend>
<br>
<div class="large-4 columns">
<span>First Name</span>
<?='<br>'.form_error('mother_name');?>
<input type="text" name="mother_name" value="<?=set_value('mother_name');?>">
</div>
<div class="large-4 columns">
<span>Middle Name</span>
<?='<br>'.form_error('mother_mname');?>
<input type="text" name="mother_mname" value="<?=set_value('mother_mname');?>">
</div>
<div class="large-4 columns">
<span>Last Name</span>
<?='<br>'.form_error('mother_lname');?>
<input type="text" name="mother_lname" value="<?=set_value('mother_lname');?>">
</div>
</div>
<div class="large-12 columns">
<div class="large-4 columns">
<span>Citizenship (Passport)</span>
<?='<br>'.form_error('mother_citizenship');?>
<input type="text" name="mother_citizenship" value="<?=set_value('mother_citizenship');?>">
</div>
<div class="large-4 columns">
<span>Philippine Visa Status</span>
<?='<br>'.form_error('mother_visa');?>
<input type="text" name="mother_visa" value="<?=set_value('mother_visa');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Employer or Organization</span>
<?='<br>'.form_error('mother_occup');?>
<input type="text" name="mother_occup" value="<?=set_value('mother_occup');?>">
</div>
<div class="large-4 columns">
<span>Office Phone Number</span>
<?='<br>'.form_error('mother_office_tel');?>
<input type="text" name="mother_office_tel" value="<?=set_value('mother_office_tel');?>">
</div>
<div class="large-4 columns">
<span>Mobile Number</span>
<?='<br>'.form_error('mother_contact_no');?>
<input type="text" name="mother_contact_no" value="<?=set_value('mother_contact_no');?>">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<label>
<?=form_checkbox('mother_contact_no_text', 'yes', set_checkbox('mother_contact_no_text', 'yes'));?> <span>Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label>
</div>
</div>
<div id="step_mother_info">
<div class="large-12 columns">
<legend>Information About The Step-mother</legend>
<br>
<div class="large-4 columns">
<span>First Name</span>
<?='<br>'.form_error('step_mother_name');?>
<input type="text" name="step_mother_name" value="<?=set_value('step_mother_name');?>">
</div>
<div class="large-4 columns">
<span>Middle Name</span>
<?='<br>'.form_error('step_mother_mname');?>
<input type="text" name="step_mother_mname" value="<?=set_value('step_mother_mname');?>">
</div>
<div class="large-4 columns">
<span>Last Name</span>
<?='<br>'.form_error('step_mother_lname');?>
<input type="text" name="step_mother_lname" value="<?=set_value('step_mother_lname');?>">
</div>
</div>
<div class="large-12 columns">
<div class="large-4 columns">
<span>Citizenship (Passport)</span>
<?='<br>'.form_error('step_mother_citizenship');?>
<input type="text" name="step_mother_citizenship" value="<?=set_value('step_mother_citizenship');?>">
</div>
<div class="large-4 columns">
<span>Philippine Visa Status</span>
<?='<br>'.form_error('step_mother_visa');?>
<input type="text" name="step_mother_visa" value="<?=set_value('step_mother_visa');?>">
</div>
<div class="clearfix"></div>
<div class="large-4 columns">
<span>Employer or Organization</span>
<?='<br>'.form_error('step_mother_occup');?>
<input type="text" name="step_mother_occup" value="<?=set_value('step_mother_occup');?>">
</div>
<div class="large-4 columns">
<span>Office Phone Number</span>
<?='<br>'.form_error('step_mother_office_tel');?>
<input type="text" name="step_mother_office_tel" value="<?=set_value('step_mother_office_tel');?>">
</div>
<div class="large-4 columns">
<span>Mobile Number</span>
<?='<br>'.form_error('step_mother_contact_no');?>
<input type="text" name="step_mother_contact_no" value="<?=set_value('step_mother_contact_no');?>">
</div>
</div>
<div class="clearfix"></div>
<div class="large-12 columns">
<label>
<?=form_checkbox('step_mother_contact_no_text', 'yes', set_checkbox('step_mother_contact_no_text', 'yes'));?> <span>Would you like to receive text messages about upcoming events, activities and other school announcements on your mobile number?</span></label>
</div>
</div>
<hr class="clearfix">
<div>
<input type="hidden" id="to_be_checked_father" value="<?php echo $to_be_display_father; ?>">
<input type="hidden" id="to_be_checked_mother" value="<?php echo $to_be_display_mother; ?>">
<a href="#" id="panel_2" class="btn btn-primary">Continue Part 3: Medical Information and Health History</a>
</div>
<script>
$( document ).ready(function() {
var tobecheckedfather = $('#to_be_checked_father').val();
var tobecheckedmother = $('#to_be_checked_mother').val();
$('#to_be_display_father').on('click blur focus change', function(event) {
$('#father_info').css('display','block');
$('#step_father_info').css('display','none');
});
$('#to_be_display_step_father').on('click blur focus change', function(event) {
$('#father_info').css('display','none');
$('#step_father_info').css('display','block');
});
$('#to_be_display_mother').on('click blur focus change', function(event) {
$('#mother_info').css('display','block');
$('#step_mother_info').css('display','none');
});
$('#to_be_display_step_mother').on('click blur focus change', function(event) {
$('#mother_info').css('display','none');
$('#step_mother_info').css('display','block');
});
if(tobecheckedfather == '' || tobecheckedfather == 'father')
{
$('#father_info').css('display','block');
$('#step_father_info').css('display','none');
}else{
$('#father_info').css('display','none');
$('#step_father_info').css('display','block');
}
if(tobecheckedmother == '' || tobecheckedmother == 'mother')
{
$('#mother_info').css('display','block');
$('#step_mother_info').css('display','none');
}else{
$('#mother_info').css('display','none');
$('#step_mother_info').css('display','block');
}
if ( $('#to_be_display_father').is(':checked') ) {
$('#father_info').css('display','block');
$('#step_father_info').css('display','none');
}
if ( $('#to_be_display_step_father').is(':checked') ) {
$('#father_info').css('display','none');
$('#step_father_info').css('display','block');
}
if ( $('#to_be_display_mother').is(':checked') ) {
$('#mother_info').css('display','block');
$('#step_mother_info').css('display','none');
}
if ( $('#to_be_display_step_mother').is(':checked') ) {
$('#mother_info').css('display','none');
$('#step_mother_info').css('display','block');
}
$('#panel_2').on('click', function(event) {
$('#panel1').removeClass("active");
$('#panel1').css("padding-top", "");
$('#panel2').removeClass("active");
$('#panel2').css("padding-top", "");
$('#panel3').addClass("active");
$('#panel3').css("padding-top", "50px");
$('#panel4').removeClass("active");
$('#panel4').css("padding-top", "");
});
});
</script> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/enrollment/parent_legal_information.php | PHP | mit | 14,047 |
<style>
div.enrollment-menu
{
padding:20px;
<!--border:2px dashed #c0c0c0;-->
}
div.option{
margin:20px 5px;
}
</style>
<div class="row">
<div class="large-3 columns"> </div>
<div class="large-6 columns enrollment-menu content-views">
<div class="alert-box">
To verify that you are student no <span class="bold"><?=$student_id;?></span> Please fill out the data below carefully.
</div>
<?if(isset($system_message))echo $system_message;?>
<form action="<?=site_url('enrollment/verify/old/'.$student_id.'/'.$auth.'/'.$hash);?>" method="POST" autocomplete="off" >
<fieldset>
<legend>Enrollment Credentials</legend>
<div class="input-block">
<label>Firstname:</label>
<input type="text" name="fname" value="" autocomplete="off" required>
</div>
<div class="input-block">
<label>Lastname:</label>
<input type="text" name="lname" value="" autocomplete="off" required>
</div>
<div class="input-block">
<label>Student Portal Password:</label>
<input type="password" name="password" value="" autocomplete="off" required>
</div>
</fieldset>
<fieldset>
<legend>Captcha</legend>
<div class="input-block">
<label><?=$question;?></label>
<input type="text" name="captcha_answer" autocomplete="off" required>
</div>
</fieldset>
<div class="input-block">
<label> </label>
<input type="hidden" name="form_token" value="<?=$form_token;?>">
<input type="submit" class="btn btn-primary" name="verify_old_enrollee" value="Verify And Continue Enrollment">
</div>
</form>
</div>
<?echo form_close()?>
<div class="large-3 columns"> </div>
</div> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/enrollment/verify.php | PHP | mit | 1,789 |
<style>
div.enrollment-menu
{
padding:20px;
border:2px dashed #c0c0c0;
}
div.option{
margin:20px 5px;
}
ul li{
list-style:none;
}
</style>
<?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');
?>
<div class="row">
<div class="large-1 columns"> </div>
<div class="large-10 columns enrollment-menu content-views">
<? echo $system_message;?>
<div class="alert-box">REGISTRATION FORM Part 2: Developmental History of Child And Childhood Experiences</div>
<?echo form_open('developmental','class="custom"');?>
<fieldset>
<legend class="label">Developmental History Of Child</legend>
<div>
<div class="large-8 columns">
<label class="radius secondary label">Length of Pregnancy</label>
<?=form_error('length_of_preg');?>
<input type="text" name="length_of_preg" value="<?=set_value('length_of_preg');?>">
</div>
<div class="large-4 columns">
<label class="radius secondary label">Form of Delivery</label>
<?=form_error('form_of_del');?>
<input type="text" name="form_of_del" value="<?=set_value('form_of_del');?>">
</div>
</div>
<div>
<label class="radius secondary label">Complications Before? during? after? delivery?</label>
<?=form_error('complications');?>
<input type="text" name="complications" value="<?=set_value('complications');?>">
</div>
<div>
<div class="large-6 columns">
<label class="radius secondary label">What time does the child go to bed?</label>
<?=form_error('go_to_bed');?>
<input type="text" name="go_to_bed" value="<?=set_value('go_to_bed');?>">
</div>
<div class="large-6 columns">
<label class="radius secondary label">Get up from bed?</label>
<?=form_error('get_up_bed');?>
<input type="text" name="get_up_bed" value="<?=set_value('get_up_bed');?>">
</div>
</div>
<div>
<label class="radius secondary label">Does the child have any sleeping disturbance? if yes what?</label>
<?=form_error('sleeping_dist');?>
<input type="text" name="sleeping_dist" value="<?=set_value('sleeping_dist');?>">
</div>
<div>
<div class="large-6 columns">
<label class="radius secondary label">Does the child have own room?</label>
<?=form_error('own_room');?>
<?=form_dropdown('own_room',array('yes'=>'Yes','no'=>'No'),set_value('own_room','no'));?>
</div>
<div class="large-6 columns">
<label class="radius secondary label">If not, shares with whom?</label>
<?=form_error('room_shares');?>
<input type="text" name="room_shares" value="<?=set_value('room_shares');?>">
</div>
</div>
<div>
<div class="large-4 columns">
<label class="radius secondary label">Does the child bed wet?</label>
<?=form_error('wet_bed');?>
<?=form_dropdown('wet_bed',array('yes'=>'Yes','no'=>'No'),set_value('wet_bed','no'));?>
</div>
<div class="clearfix"></div>
</div>
<fieldset>
<legend class="radius secondary label">Are there any observable difficulties or defects in you're child's growth?</legend>
<div>
<label class="radius secondary label">Specify:</label>
<?=form_error('observable_difficulties');?>
<input type="text" name="observable_difficulties" value="<?=set_value('observable_difficulties');?>">
</div>
<div>
<label class="radius secondary label">Since When?</label>
<?=form_error('observable_difficulties_since_when');?>
<input type="text" name="observable_difficulties_since_when" value="<?=set_value('since_when');?>">
</div>
<div>
<label class="radius secondary label">Action Taken:</label>
<?=form_error('observable_difficulties_action_taken');?>
<input type="text" name="observable_difficulties_action_taken" value="<?=set_value('observable_difficulties_action_taken');?>">
</div>
</fieldset>
<fieldset>
<legend class="radius secondary label">Are there any speech problems?</legend>
<div>
<label class="radius secondary label">Specify:</label>
<?=form_error('speech_problems');?>
<input type="text" name="speech_problems" value="<?=set_value('speech_problems');?>">
</div>
<div>
<label class="radius secondary label">Since When?</label>
<?=form_error('speech_problems_since_when');?>
<input type="text" name="speech_problems_since_when" value="<?=set_value('speech_problems_since_when');?>">
</div>
<div>
<label class="radius secondary label">Action Taken:</label>
<?=form_error('speech_problems_actions_taken');?>
<input type="text" name="speech_problems_actions_taken" value="<?=set_value('speech_problems_actions_taken');?>">
</div>
</fieldset>
<fieldset>
<legend class="radius secondary label">Are there any hearing problems?</legend>
<div>
<label class="radius secondary label">When was the hearing of Child last checked?</label>
<?=form_error('hearing_last_checked');?>
<input type="text" name="hearing_last_checked" value="<?=set_value('hearing_last_checked');?>">
</div>
<div>
<label class="radius secondary label">Specify:</label>
<?=form_error('hearing_problems');?>
<input type="text" name="hearing_problems" value="<?=set_value('hearing_problems');?>">
</div>
<div>
<label class="radius secondary label">Since When?</label>
<?=form_error('hearing_problems_since_when');?>
<input type="text" name="hearing_problems_since_when" value="<?=set_value('hearing_problems_since_when');?>">
</div>
<div>
<label class="radius secondary label">Action Taken:</label>
<?=form_error('hearing_problems_actions_taken');?>
<input type="text" name="hearing_problems_actions_taken" value="<?=set_value('hearing_problems_actions_taken');?>">
</div>
</fieldset>
<fieldset>
<legend class="radius secondary label">Are there any sight problems?</legend>
<div>
<label class="radius secondary label">When was the vision of Child last checked?</label>
<?=form_error('vision_last_checked');?>
<input type="text" name="vision_last_checked" value="<?=set_value('vision_last_checked');?>">
</div>
<div>
<label class="radius secondary label">Specify:</label>
<?=form_error('vision_specify');?>
<input type="text" name="vision_specify" value="<?=set_value('vision_specify');?>">
</div>
</fieldset>
<div>
<label class="radius secondary label">Are there any information that we should be aware of that may hinder the child's <br> learning process or general development?</label>
<?=form_error('hinder_childs_learning');?>
<textarea name="hinder_childs_learning"><?=set_value('hinder_childs_learning');?></textarea>
</div>
</fieldset>
<fieldset>
<legend class="label">Childhood Experiences</legend>
<div>
<label class="radius secondary label">Has the child encountered ny traumatic experiances? if yes specify</label>
<?=form_error('traumatic_experiences');?>
<textarea name="traumatic_experiences"><?=set_value('traumatic_experiences');?></textarea>
</div>
<div>
<div class="large-6 columns">
<label class="radius secondary label">Age</label>
<?=form_error('age_trauma');?>
<input type="text" name="age_trauma" value="<?=set_value('age_trauma');?>">
</div>
<div class="large-6 columns">
<label class="radius secondary label">Reaction</label>
<?=form_error('trauma_reaction');?>
<textarea name="trauma_reaction"><?=set_value('trauma_reaction');?></textarea>
</div>
</div>
<div>
<label class="radius secondary label">How has it affected the child?</label>
<?=form_error('how_trauma_affected_child');?>
<textarea name="how_trauma_affected_child"><?=set_value('how_trauma_affected_child');?></textarea>
</div>
<div>
<label class="radius secondary label">does the child have any special fears?if yes what?</label>
<?=form_error('special_fears');?>
<textarea name="special_fears"><?=set_value('special_fears');?></textarea>
</div>
<div>
<label class="radius secondary label">Since when? What has triggered the fear?</label>
<?=form_error('when_what_triggered_fear');?>
<textarea name="when_what_triggered_fear"><?=set_value('when_what_triggered_fear');?></textarea>
</div>
<div>
<label class="radius secondary label">How do you handle it?</label>
<?=form_error('how_do_you_handle');?>
<textarea name="how_do_you_handle"><?=set_value('how_do_you_handle');?></textarea>
</div>
</fieldset>
<div>
<input type="hidden" name="spm_sdf" value="<?=$token;?>">
<input type="submit" name="fillup_developmental" value="Continue to Part 3: Health History of Child And Discipline" class="btn btn-primary">
</div>
<?php echo form_close(); ?>
</div>
<div class="large-1 columns"> </div>
</div> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/enrollment/developmental_history.php | PHP | mit | 8,826 |
<div class="row">
<div class="large-3 columns"> </div>
<div class="large-6 columns enrollment-menu content-views">
<?=$system_message;?>
<div class="alert-box">
Already enrolled but confirmation code was not sent?
<ul>
<li>Have you tried the spam folder?</li>
<li>Are you sure that you registered the right email address?</li>
</ul>
</div>
<?echo form_open('confirm/resend','class="custom"')?>
<fieldset>
<legend>Resend Confirmation Code</legend>
<div class="row collapse">
<div class="small-3 large-2 columns">
<span class="prefix">Email Address</span>
</div>
<div class="small-9 large-10 columns">
<input type="text" name="email" placeholder="Enter your email Address" required maxlength="45">
</div>
</div>
</fieldset>
<fieldset>
<legend>Please Answer Correctly</legend>
<div class="row collapse">
<div class="small-3 large-2 columns">
<span class="prefix">Captcha</span>
</div>
<div class="small-3 large-5 columns">
<input type="text" name="captcha_answer" autocomplete="off" style="border:#ccc 2px solid;" maxlength="5" required>
</div>
<div class="small-3 large-5 columns" >
<?=$question;?>
</div>
</div>
</fieldset>
<div class="option">
<input type="hidden" name="token" value="<?=$token;?>">
<input type="submit" class="btn btn-primary" name="resend_confirmation_code" value="Resend Confirmation Code">
<a href="<?=site_url('');?>" class="btn btn-mini btn-warning">Go Back to main menu</a>
</div>
</div>
<?echo form_close()?>
<div class="large-3 columns"> </div>
</div> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/confirm/resend.php | PHP | mit | 1,635 |
<?php
$timeAttrib = array('' => 'Select Time...', '9:00 AM' => '9:00 AM', '1:30 PM' => '1:30 PM' );
?>
<div class="large-1 columns"> </div>
<div class="large-10 columns enrollment-menu content-views">
<?echo form_open('inquiry/applicant_data','id="check-form-submit" class="custom" data-abide autocomplete="off"');?>
<div class="large-12 columns"><h5 class="lead">New Student Assessment & Application Form</h5></div>
<hr class="clearfix">
<div>
<div class="row collapse">
<div class="small-4 large-4 columns">
<span class="prefix"><?php echo $feedata->fee_desc; ?></span>
<input type="hidden" name="desc" class="description" value="<?php echo $feedata->fee_desc; ?>" >
</div>
<div class="small-8 large-8 columns">
<div class="row collapse">
<div class="small-3 large-2 columns">
<span class="prefix" style="z-index:1;">₱</span>
</div>
<div class="small-9 large-10 columns">
<input type="text" value="<?php echo number_format($feedata->fee_rate,2,'.',','); ?>" disabled="disabled" />
<input type="hidden" name="price" class="unitprice" value="<?php echo $feedata->fee_rate; ?>" >
</div>
</div>
</div>
</div>
<div class="row collapse">
<div class="small-4 large-4 columns">
<span class="prefix">First Name</span>
</div>
<div class="small-8 large-8 columns">
<?='<span>'.form_error('child_fname').'</span>';?>
<input type="text" name="child_fname" value="<?=set_value('child_fname');?>">
</div>
</div>
<div class="row collapse">
<div class="small-4 large-4 columns">
<span class="prefix">Middle Name</span>
</div>
<div class="small-8 large-8 columns">
<?='<span>'.form_error('child_mname').'</span>';?>
<input type="text" name="child_mname" value="<?=set_value('child_mname');?>">
</div>
</div>
<div class="row collapse">
<div class="small-4 large-4 columns">
<span class="prefix">Last Name</span>
</div>
<div class="small-8 large-8 columns">
<?='<span>'.form_error('child_lname').'</span>';?>
<input type="text" name="child_lname" value="<?=set_value('child_lname');?>">
</div>
</div>
<div class="row collapse">
<div class="small-4 large-4 columns">
<span class="prefix">Name Ext (e.g jr,II,III)</span>
</div>
<div class="small-8 large-8 columns">
<input type="text" name="child_name_ext" value="<?=set_value('child_name_ext');?>">
</div>
</div>
<div class="row collapse">
<div class="small-4 large-4 columns">
<span class="prefix">Date of Birth</span>
</div>
<div class="small-8 large-8 columns">
<?='<span>'.form_error('child_bdate').'</span>';?>
<input type="text" name="child_bdate" class="birthdate" value="<?=set_value('child_bdate');?>">
</div>
</div>
<div class="row collapse">
<div class="small-4 large-4 columns">
<span class="prefix">Applying for Grade Level</span>
</div>
<div class="small-8 large-8 columns">
<?='<span>'.form_error('level_id').'</span>';?>
<?php echo form_dropdown('level_id', $levels, set_value('level_id'));?>
</div>
</div>
<div class="row collapse">
<div class="small-4 large-4 columns">
<span class="prefix">School Year</span>
</div>
<div class="small-8 large-8 columns">
<?='<span>'.form_error('school_year').'<span/>';?>
<?php echo form_dropdown('school_year', $sy, set_value('school_year'));?>
</div>
</div>
<div class="row collapse">
<div class="small-4 large-4 columns">
<span class="prefix">Cellphone Number</span>
</div>
<div class="small-8 large-8 columns">
<?='<span>'.form_error('mobile_phone').'<span/>';?>
<input type="text" name="mobile_phone" value="<?=set_value('mobile_phone');?>">
</div>
</div>
<div class="row collapse">
<div class="small-4 large-4 columns">
<span class="prefix">Schedule of Testing</span>
</div>
<div class="small-3 large-3 columns">
<!--<?='<span>'.form_error('schedule_for_testing').'<span/>';?>-->
<!--<input type="text" name="schedule_for_testing" value="<?=set_value('schedule_for_testing');?>">-->
<?='<span>'.form_error('child_exam').'</span>';?>
<input type="text" name="child_exam" class="examdate" value="<?=set_value('child_exam');?>">
</div>
<div class="small-5 large-5 columns">
<div class="row collapse">
<div class="small-3 large-2 columns">
<span class="prefix" style="z-index:1;">@</span>
</div>
<div class="small-9 large-10 columns">
<?='<span>'.form_error('time_id').'</span>';?>
<?php echo form_dropdown('time_id', $timeAttrib, set_value('time_id'));?>
</div>
</div>
</div>
</div>
<div class="row collapse">
<div class="small-3 large-3 columns">
How did you hear of us:
</div>
<div class="small-9 large-9 columns" style="margin:2px 0px; padding:2px 0px;">
<span class="left"><?=form_checkbox('billboard', 'yes', FALSE);?></span><span class="left"> Billboard </span><span class="left"><?=form_checkbox('signs_brochures', 'yes', FALSE);?></span><span class="left"> Signs/Brochures </span><span class="left"><?=form_checkbox('driving_by', 'yes', FALSE);?></span><span class="left"> Driving By </span>
</div>
</div>
<div class="row collapse">
<div class="small-3 large-3 columns">
</div>
<div class="small-9 large-9 columns" style="margin:2px 0px; padding:2px 0px;">
<span class="left"><?=form_checkbox('friends_relatives', 'yes', FALSE);?></span><span class="left"> Friends/Relatives </span><span class="left"><?=form_checkbox('website', 'yes', FALSE);?></span><span class="left"> Website </span><span class="left"><?=form_checkbox('bluebook', 'yes', FALSE);?></span><span class="left"> Bluebook </span>
</div>
</div>
<div class="row collapse">
<div class="small-3 large-3 columns">
</div>
<div class="small-9 large-9 columns" style="margin:2px 0px; padding:2px 0px;">
<span class="left"><?=form_checkbox('facebook', 'yes', FALSE);?></span><span class="left"> Facebook </span><span class="left"><?=form_checkbox('malls', 'yes', FALSE);?></span><span class="left"> Malls </span><span class="left"><?=form_checkbox('others', 'yes', FALSE);?></span><span class="left"> Others </span><span class="left"><input type="text" name="for_others" autocomplete="off" ></span>
</div>
</div>
</div>
<hr class="clearfix">
<div>
<input type="hidden" name="brombrom" value="<?=$token;?>">
<input type="hidden" name="inquire" value="true">
<input type="submit" name="inquire" value="Submit" class="btn btn-primary">
</div>
<?php echo form_close(); ?>
</div>
<div class="large-1 columns"> </div>
</div> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/inquiry/applicant_data.php | PHP | mit | 7,259 |
<?php if(isset($system_message)) echo $system_message;?>
<style>
div.enrollment-menu
{
padding:20px;
}
div.option{
margin:20px 5px;
}
</style>
<div class="row">
<div class="large-3 columns"> </div>
<div class="large-6 columns enrollment-menu content-views">
<div class="alert-box">
This is not for the Enrollment Form.<br />
This id for the New Student Assessment & Application Form.<br />
Enter Captcha.
</div>
<?echo form_open('inquiry/applicant','class="custom"')?>
<fieldset>
<legend>Please Answer Correctly</legend>
<div class="row collapse">
<div class="small-3 large-2 columns">
<span class="prefix">Captcha</span>
</div>
<div class="small-3 large-5 columns">
<input type="text" name="captcha_answer" autocomplete="off" style="border:#ccc 2px solid;" maxlength="5" required>
</div>
<div class="small-3 large-5 columns" >
<?=$question;?>
<a href="#" data-reveal-id="help" class="btn"><span style="font-size:15px;font-weight:bold;">?</span></a>
</div>
</div>
</fieldset>
<div class="option">
<input type="hidden" name="broommm" value="<?=$token;?>">
<input type="submit" class="btn btn-primary" name="enrollment_type" value="Continue">
</div>
</div>
<?echo form_close()?>
<div class="large-3 columns"> </div>
</div>
<div id="help" class="reveal-modal">
<h2 class="lead">What is This?</h2>
<p>The <b><i>captcha</i></b> is for added security to prevent bots from entering the site
just type on the string from the image below. The string is (case insensitive) meaning it is either lower or upper
and there is no letter "O" only the number zero
</p>
<a class="close-reveal-modal">×</a>
</div>
| 0683babd6e120333c4dae5bac951f5cc | trunk/application/views/inquiry/index.php | PHP | mit | 1,734 |
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/errors/index.html | HTML | mit | 114 |
<?
$config =& get_config();
$base_url = isset($config['base_url']) ? $config['base_url'] == '' ? NULL : $config['base_url'] : NULL;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>An Error Occured.</title>
<link rel="stylesheet" href="<?=$base_url;?>assets/css/error/bootstrap/bootstrap.min.css"/>
<link rel="stylesheet" href="<?=$base_url;?>assets/css/error/bootstrap/bootstrap-theme.min.css"/>
<link rel="stylesheet" href="<?=$base_url;?>assets/css/error/error_404.css"/>
</head>
<body>
<div id="wrap">
<!-- Begin page content -->
<div class="container">
<div class="page-header">
<h1><?=$heading;?></h1>
</div>
</div>
<div class="container">
<div class="row">
<div class="alert alert-info">
<?if(!empty($message)):?>
<?=$message;?>
<?endif;?>
</div>
<a href="#" onClick="parent.history.back(); return false;" class="btn btn-success"><b>Go Back.</b></a>
</div>
</div>
</div>
<div id="footer" class="shadow">
<div class="container">
<p class="text-muted credit">Copy © GoCloudAsia 2013</p>
</div>
</div>
</body>
</html> | 0683babd6e120333c4dae5bac951f5cc | trunk/application/errors/error_general.php | PHP | mit | 1,168 |