智慧圖卡教具系列 - 匯趣坊圖書有限公司
文章推薦指數: 80 %
前因後果-T01: 圖卡和學習寶典計有80種不同的遊戲概念,學習寶典「遊戲123」內容有:圖形觀察、看圖說故事、語言認知、語言表達、邏輯思考、順序排列、順序推理、分類 ... set('load',$loader); //Config $config=newConfig(); $registry->set('config',$config); //Database $db=newDB(DB_DRIVER,DB_HOSTNAME,DB_USERNAME,DB_PASSWORD,DB_DATABASE); $registry->set('db',$db); //Store if(isset($_SERVER['HTTPS'])&&(($_SERVER['HTTPS']=='on')||($_SERVER['HTTPS']=='1'))){ $store_query=$db->query("SELECT*FROM".DB_PREFIX."storeWHEREREPLACE(`ssl`,'www.','')='".$db->escape('https://'.str_replace('www.','',$_SERVER['HTTP_HOST']).rtrim(dirname($_SERVER['PHP_SELF']),'/.\\').'/')."'"); }else{ $store_query=$db->query("SELECT*FROM".DB_PREFIX."storeWHEREREPLACE(`url`,'www.','')='".$db->escape('http://'.str_replace('www.','',$_SERVER['HTTP_HOST']).rtrim(dirname($_SERVER['PHP_SELF']),'/.\\').'/')."'"); } if($store_query->num_rows){ $config->set('config_store_id',$store_query->row['store_id']); }else{ $config->set('config_store_id',0); } //Settings $query=$db->query("SELECT*FROM".DB_PREFIX."settingWHEREstore_id='0'ORstore_id='".(int)$config->get('config_store_id')."'ORDERBYstore_idASC"); foreach($query->rowsas$setting){ if(!$setting['serialized']){ $config->set($setting['key'],$setting['value']); }else{ $config->set($setting['key'],unserialize($setting['value'])); } } if(!$store_query->num_rows){ $config->set('config_url',HTTP_SERVER); $config->set('config_ssl',HTTPS_SERVER); } //Url $url=newUrl($config->get('config_url'),$config->get('config_secure')?$config->get('config_ssl'):$config->get('config_url')); $registry->set('url',$url); //Log $log=newLog($config->get('config_error_filename')); $registry->set('log',$log); functionerror_handler($errno,$errstr,$errfile,$errline){ global$log,$config; switch($errno){ caseE_NOTICE: caseE_USER_NOTICE: $error='Notice'; break; caseE_WARNING: caseE_USER_WARNING: $error='Warning'; break; caseE_ERROR: caseE_USER_ERROR: $error='FatalError'; break; default: $error='Unknown'; break; } if($config->get('config_error_display')){ echo''.$error.':'.$errstr.'in'.$errfile.'online'.$errline.''; } if($config->get('config_error_log')){ $log->write('PHP'.$error.':'.$errstr.'in'.$errfile.'online'.$errline); } returntrue; } //ErrorHandler set_error_handler('error_handler'); //Request $request=newRequest(); $registry->set('request',$request); //Response $response=newResponse(); $response->addHeader('Content-Type:text/html;charset=utf-8'); $response->setCompression($config->get('config_compression')); $registry->set('response',$response); //Cache $cache=newCache(); $registry->set('cache',$cache); //Session $session=newSession(); $registry->set('session',$session); //LanguageDetection $languages=array(); $query=$db->query("SELECT*FROM`".DB_PREFIX."language`WHEREstatus='1'"); foreach($query->rowsas$result){ $languages[$result['code']]=$result; } $detect=''; if(isset($request->server['HTTP_ACCEPT_LANGUAGE'])&&$request->server['HTTP_ACCEPT_LANGUAGE']){ $browser_languages=explode(',',$request->server['HTTP_ACCEPT_LANGUAGE']); foreach($browser_languagesas$browser_language){ foreach($languagesas$key=>$value){ if($value['status']){ $locale=explode(',',$value['locale']); if(in_array($browser_language,$locale)){ $detect=$key; } } } } } if(isset($session->data['language'])&&array_key_exists($session->data['language'],$languages)&&$languages[$session->data['language']]['status']){ $code=$session->data['language']; }elseif(isset($request->cookie['language'])&&array_key_exists($request->cookie['language'],$languages)&&$languages[$request->cookie['language']]['status']){ $code=$request->cookie['language']; }elseif($detect){ $code=$detect; }else{ $code=$config->get('config_language'); } if(!isset($session->data['language'])||$session->data['language']!=$code){ $session->data['language']=$code; } if(!isset($request->cookie['language'])||$request->cookie['language']!=$code){ setcookie('language',$code,time()+60*60*24*30,'/',$request->server['HTTP_HOST']); } $config->set('config_language_id',$languages[$code]['language_id']); $config->set('config_language',$languages[$code]['code']); //Language $language=newLanguage($languages[$code]['directory']); $language->load($languages[$code]['filename']); $registry->set('language',$language); //Document $registry->set('document',newDocument()); //Customer $registry->set('customer',newCustomer($registry)); //Affiliate $registry->set('affiliate',newAffiliate($registry)); if(isset($request->get['tracking'])){ setcookie('tracking',$request->get['tracking'],time()+3600*24*1000,'/'); } //Currency $registry->set('currency',newCurrency($registry)); //Tax $registry->set('tax',newTax($registry)); //Weight $registry->set('weight',newWeight($registry)); //Length $registry->set('length',newLength($registry)); //Cart $registry->set('cart',newCart($registry)); //OpenBayPro $registry->set('openbay',newOpenbay($registry)); //Encryption $registry->set('encryption',newEncryption($config->get('config_encryption'))); //FrontController $controller=newFront($registry); //MaintenanceMode $controller->addPreAction(newAction('common/maintenance')); //SEOURL's $controller->addPreAction(newAction('common/seo_url')); //Router if(isset($request->get['route'])){ $action=newAction($request->get['route']); }else{ $action=newAction('common/home'); } //Dispatch $controller->dispatch($action,newAction('error/not_found')); //Output $response->output(); ?>
延伸文章資訊
- 1【育兒好物】 理特尚圖卡教具 智慧圖卡教具系列前因後果第1 ...
小菲這次收到的商品有智慧圖卡教具系列前因後果第1輯‧第2輯. 以及小王子學習系列(1)來認識我三種教具圖卡. 先來介紹這套最新推出的智慧圖卡教具系列 ...
- 2【玩具倉庫】【理特尚】智慧圖卡系列-10輯(1~10輯) (用「智能 ...
第1‧2輯「前因後果」:思考選擇?是好結果或不好結果呢!用圖卡來加深「前因後果」關係的概念。 ※ 8種貼近孩子的生活情境,配合不同的行為問題,讓孩子「智能思考」 ...
- 3智慧圖卡教具系列前因後果第1輯‧第2輯[ T01.T02 ]
前因後果智慧圖卡是一套適合孩子使用的圖卡,透過與生活經驗結合的生動圖片,讓孩子在與師長的互動中及一次又一次的演練來加深前因後果關係的概念、進而因了解而遵守生活 ...
- 4第1‧2輯前因後果(共2盒)【智慧圖卡教具系列】
用圖卡來加深邏輯思考「前因後果」的概念/8種貼近孩子的生活情境,配合不同的行為問題。 套書規格:. 2盒 ... 智慧圖卡教具,前因後果,好結果,因果關係,幼兒語言學習 ...
- 5順序圖卡教具圖卡促銷請孩子排排看,慢慢找出順序
50張經過特別設計的圖卡,有3張一組、5張一組,根據顏色、形狀、行為等就可看出事件發生的先後順序。共可組成13組事件。請孩子排排看,慢慢找出順序,即可解釋前因後果 ...