Exemplo n.º 1
0
 protected function initRouter()
 {
     $router = new Router();
     NamedRouterRule::create()->controller('index/index')->domain_url('http://' . getenv('SERVER_NAME'), '/')->addto($router);
     NamedRouterRule::create()->controller('auditor/add')->templates('success', '/default/success')->addto($router);
     NamedRouterRule::create()->controller('auditor/delete')->templates('success', '/default/success')->addto($router);
     NamedRouterRule::create()->controller('professiontriage/showdoctor')->templates('success', '/professiontriage/searchdoctorshow')->addto($router);
     NamedRouterRule::create()->controller('auditor/showConfirmedDetail')->templates('success', '/auditor/showconfirmeddetail')->addto($router);
     NamedRouterRule::create()->controller('thread/getlist')->templates('success', '/thread/getlist')->addto($router);
     NamedRouterRule::create()->controller('thread/doaddpatientapply')->templates('success', '/thread/showthread')->addto($router);
     NamedRouterRule::create()->controller('nfsaudit/nexttask')->url('/nfsaudit/nexttask')->templates('default', '/nfsaudit/nexttask')->templates('flow', '/nfsaudit/nexttask_flow')->addto($router);
     NamedRouterRule::create()->controller('nfsaudit/notalk')->url('/nfsaudit/notalk')->templates('default', '/nfsaudit/notalk')->templates('flow', '/nfsaudit/notalk_flow')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforrule4")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforrule5")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforprofessionask")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforprofession1")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforprofession2")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforprofession3")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforprofession4")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforprofession5")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforprofession1_pool")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforprofession2_pool")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforprofession3_pool")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforprofession4_pool")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforprofession5_pool")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforprofession6_pool")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("professiontriage/nextforprofession7_pool")->templates(Controller::SUCCESS, '/professiontriage/commonright')->addto($router);
     NamedRouterRule::create()->controller("userfeedback/search")->templates(Controller::SUCCESS, '/userfeedback/evaluationlist')->addto($router);
     NamedRouterRule::create()->controller('checkup/showupdatequestion')->templates('update', '/checkup/showaddquestion')->addto($router);
     NamedRouterRule::create()->controller('wenwen/index')->url('/wenwen/index')->addto($router);
     NamedRouterRule::create()->controller('followup/ajaxfollowupservicepop')->templates('add', '/followup/ajaxaddfollowupservice')->templates('refund', '/followup/ajaxrefundfollowupservice')->templates('dead', '/followup/ajaxdeadfollowupservice')->addto($router);
     NamedRouterRule::create()->controller('patientfile/applydetail')->url('/patientfile/applydetail/<id>.html')->url('/patientfile/applydetail/<id>.htm')->addto($router);
     FixedRouterRule::create()->url('/<controller>/<action>')->addto($router);
     return $router;
 }
Exemplo n.º 2
0
    protected function initRouter() {
        $router = new Router();
        
        NamedRouterRule::create()
            ->controller('index/index')
            ->domain_url('http://'.getenv('SERVER_NAME'),'/news/article/<key>.htm')
            ->addto($router);
        
        NamedRouterRule::create()
            ->controller('index/index')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/zhuanti/<key>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/index')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/zhuanjiaguandian/haodf_<id>.htm')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/<key>.htm')
            ->addto($router);
        
        FixedRouterRule::create()
            ->url('/<controller>/<action>')
            ->addto($router);

        return $router;
    }
Exemplo n.º 3
0
 protected function initRouter()
 {
     $router = new Router();
     NamedRouterRule::create()->controller('index/index')->domain_url('http://' . getenv('SERVER_NAME'), '/')->addto($router);
     FixedRouterRule::create()->url('/<controller>/<action>')->addto($router);
     return $router;
 }
Exemplo n.º 4
0
 protected function initRouter()
 {
     $router = new Router();
     NamedRouterRule::create()->controller('operator/index')->domain_url('http://' . URL_PREFIX . 'callcenter.haodf.com', '/')->addto($router);
     FixedRouterRule::create()->url('/<controller>/<action>')->addto($router);
     return $router;
 }
Exemplo n.º 5
0
    protected function initRouter() {
        $router = new Router();

        NamedRouterRule::create()
	        ->controller('account/spaceaccountlist')
	        ->url('/paymentfront/account/spaceaccountlist')
	        ->templates('ajaxpagepart', '/account/ajaxpagepart')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('account/useraccountlist')
	        ->url('/paymentfront/account/useraccountlist')
	        ->templates('ajaxpagepart', '/account/ajaxpagepart')
	        ->addto($router);

        NamedRouterRule::create()
            ->controller('index/index')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/paymentfront')
            ->addto($router);

        FixedRouterRule::create()
            ->domain('http://'.getenv('SERVER_NAME').'/paymentfront')
            ->url('/<controller>/<action>')
            ->addto($router);

        return $router;
    }
Exemplo n.º 6
0
    protected function initRouter()
    {
        $router = new Router();

        FixedRouterRule::create()
            ->url('/<controller>/<action>')
            ->addto($router);
        return $router;
    }
Exemplo n.º 7
0
 protected function initRouter()
 {
     $router = new Router();
     NamedRouterRule::create()->controller('index/hafohuizhen')->domain_url('http://' . URL_PREFIX . 'haiwai.haodf.com', '/')->addto($router);
     NamedRouterRule::create()->controller('index/index')->domain_url('http://' . getenv('SERVER_NAME'), '/')->addto($router);
     NamedRouterRule::create()->controller('index/forward')->url('/haodf/<username>')->addto($router);
     //支付接口回调用的
     FixedRouterRule::create()->domain('http://' . getenv('HTTP_HOST') . '/400')->url('/<controller>/<action>')->addto($router);
     FixedRouterRule::create()->url('/<controller>/<action>')->addto($router);
     return $router;
 }
Exemplo n.º 8
0
    protected function initRouter() {
        $router = new Router();

        FixedRouterRule::create()
            ->domain('http://'.URL_PREFIX.'mobile-api.haodf.com')
            ->url('/<controller>/<action>')
            ->templates('success', '/mobileapi/view')
            ->addto($router);

        FixedRouterRule::create()
	    ->domain('http://'.getenv('HTTP_HOST'))
            ->url('/<controller>/<action>')
            ->templates('success', '/mobileapi/view')
            ->addto($router);

        FixedRouterRule::create()
            ->url('/<controller>/<action>')
            ->addto($router);
        return $router;
    }
Exemplo n.º 9
0
 protected function initRouter()
 {
     $router = new Router();
     NamedRouterRule::create()->controller('index/index')->url('/')->addto($router);
     NamedRouterRule::create()->controller('commenttrash/showlist')->templates('success', '/doctorcomment/showlist')->addto($router);
     NamedRouterRule::create()->controller('commenttrash/confirmrecovercomment')->templates('success', '/default/confirmmsg')->addto($router);
     NamedRouterRule::create()->controller('commenttrash/recovercomment')->templates('success', '/default/processmsg')->addto($router);
     NamedRouterRule::create()->controller('doctorComment/delete')->templates('doctorCommentProcess', '/default/processmsg')->addto($router);
     NamedRouterRule::create()->controller('doctorComment/confirmDelete')->templates('doctorCommentConfirm', '/default/confirmmsg')->addto($router);
     NamedRouterRule::create()->controller('doctorComment/confirmClearScores')->templates('doctorCommentConfirm', '/default/confirmmsg')->addto($router);
     NamedRouterRule::create()->controller('doctorComment/clearScores')->templates('doctorCommentProcess', '/default/processmsg')->addto($router);
     NamedRouterRule::create()->controller('disease/ajaxShowRelationFaculty')->templates('relation_facultys', '/disease/relation_facultys')->addto($router);
     NamedRouterRule::create()->controller('disease/ajaxAddRelationFaculty')->templates('relation_facultys', '/disease/relation_facultys')->addto($router);
     NamedRouterRule::create()->controller('disease/ajaxDelRelationFaculty')->templates('relation_facultys', '/disease/relation_facultys')->addto($router);
     NamedRouterRule::create()->controller('space/confirmSetConfirm')->templates('spaceSetComfirmConfirm', '/default/confirmmsg')->addto($router);
     NamedRouterRule::create()->controller('space/setConfirm')->templates('spaceIsComfirmProcess', '/default/processmsg')->addto($router);
     NamedRouterRule::create()->controller('space/confirmUnConfirm')->templates('spaceUnComfirmConfirm', '/default/confirmmsg')->addto($router);
     NamedRouterRule::create()->controller('space/setUnConfirm')->templates('spaceNoComfirmProcess', '/default/processmsg')->addto($router);
     NamedRouterRule::create()->controller('space/deleteSpacePropertyConfirm')->templates('deleteSpacePropertyConfirm', '/default/confirmmsg')->addto($router);
     NamedRouterRule::create()->controller('space/deleteSpaceProperty')->templates('deleteSpacePropertyProcess', '/default/processmsg')->addto($router);
     NamedRouterRule::create()->controller('article/confirmdeltag')->templates('success', '/default/confirmmsg')->addto($router);
     NamedRouterRule::create()->controller('article/deltag')->templates('success', '/default/processmsg')->addto($router);
     NamedRouterRule::create()->controller('doctorLog/auditConfirm')->templates('auditConfirm', '/default/confirmmsg')->addto($router);
     NamedRouterRule::create()->controller('doctorLog/audit')->templates('auditProcess', '/default/processmsg')->addto($router);
     NamedRouterRule::create()->controller('doctorLog/refuseheadimg')->templates('auditProcess', '/default/processmsg')->addto($router);
     NamedRouterRule::create()->controller('article/confirmdelarticle')->templates('success', '/default/confirmmsg')->addto($router);
     NamedRouterRule::create()->controller('article/delarticle')->templates('success', '/default/processmsg')->addto($router);
     NamedRouterRule::create()->controller('article/confirmrealdelarticle')->templates('success', '/default/confirmmsg')->addto($router);
     NamedRouterRule::create()->controller('article/realdelarticle')->templates('success', '/default/processmsg')->addto($router);
     NamedRouterRule::create()->controller('article/confirmshieldarticle')->templates('success', '/default/confirmmsg')->addto($router);
     NamedRouterRule::create()->controller('article/shieldarticle')->templates('success', '/default/processmsg')->addto($router);
     NamedRouterRule::create()->controller('article/confirmrecoverdelarticle')->templates('success', '/default/confirmmsg')->addto($router);
     NamedRouterRule::create()->controller('article/recoverdelarticle')->templates('success', '/default/processmsg')->addto($router);
     NamedRouterRule::create()->controller('doctorLog/recoveryConfirm')->templates('recoveryConfirm', '/default/confirmmsg')->addto($router);
     NamedRouterRule::create()->controller('doctorLog/recovery')->templates('recoveryProcess', '/default/processmsg')->addto($router);
     NamedRouterRule::create()->controller('doctorLog/coverConfirm')->templates('coverConfirm', '/default/confirmmsg')->addto($router);
     NamedRouterRule::create()->controller('doctorLog/cover')->templates('coverProcess', '/default/processmsg')->addto($router);
     FixedRouterRule::create()->url('/<controller>/<action>')->addto($router);
     return $router;
 }
Exemplo n.º 10
0
    protected function initRouter() {
        $router = new Router();       

        NamedRouterRule::create()
            ->controller('usecase/index')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('attach/ajaxattach')
            ->url('/attach/ajaxattach.htm')
            ->url('/attach/ajaxattach.html')
            ->addto($router);        

        NamedRouterRule::create()
            ->controller('attach/uploadattach')
            ->url('/attach/uploadattach.htm')
            ->url('/attach/uploadattach.html')
            ->addto($router);        

        NamedRouterRule::create()
            ->controller('testtask/searchtesttasks')
            ->templates('searchtesttasks', '/testtask/alllist')
            ->addto($router);        
        
        NamedRouterRule::create()
            ->controller('testtask/ctrltesttask')
            ->templates('testtasklist', '/testtask/alllist')
            ->addto($router);        

        FixedRouterRule::create()
            ->url('/<controller>/<action>')
            ->addto($router);

		return $router;
	}
Exemplo n.º 11
0
    protected function initRouter() {
    	
        $router = new Router();
         NamedRouterRule::create()
            ->controller('index/index')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/zhuanti')
            ->addto($router);
    
        NamedRouterRule::create()
        	->controller('zhuanti/add')
        	->url('/zhuanti/zhuanti/add')
        	->templates('success', '/zhuanti/edit')
        	->addto($router);

        FixedRouterRule::create()
            ->domain('http://'.getenv('SERVER_NAME').'/zhuanti')
            ->url('/<controller>/<action>')
            ->addto($router);

        //$router->compile();
        //echo "<PRE>";var_dump($router);exit;

        return $router;
    }
Exemplo n.º 12
0
    protected function initRouter() {
        $router = new Router();
        
         NamedRouterRule::create()
            ->controller('index/index')
            ->domain_url('http://hezuo.haodf.com', '/template.common/index.htm')
            ->domain_url('http://hezuo.haodf.com', '/template.common/province/<pro>.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/province/<pro>.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/province/<pro>.html')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/know/haodf.php/?')
            ->templates('woman', '/index/pclady')
            ->templates('child', '/index/yaolan')
            ->templates('success', '/index/index')
            ->addto($router);
        
        NamedRouterRule::create()
            ->controller('index/picc')
            ->domain_url('http://whd.haodf.picchealth.com', '/')
            ->addto($router);
            
        NamedRouterRule::create()
            ->controller('index/yaolan')
            ->domain_url('http://whd.haodf.yaolan.com', '/')
            ->domain_url('http://whd.haodf.igrow.cn/', '/')
            ->domain_url('http://whd.sinababy.haodf.org/', '/')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('thread/index4fuwai')
            ->domain_url('http://'.URL_PREFIX.'zixun.fuwai.com', '/')
            ->domain_url('http://'.URL_PREFIX.'zixun.fuwaihospital.org', '/')
            ->templates('success', '/thread/index4fuwai')
            ->addto($router);
        
        NamedRouterRule::create()
            ->controller('index/pclady')
            ->domain_url('http://whd.haodf.pclady.com.cn', '/')
            ->addto($router);
            
        NamedRouterRule::create()
            ->controller('index/index')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/index.htm')
            ->addto($router);
      	
		NamedRouterRule::create()
            ->controller('hospitalfaculty/showdetail')
            ->domain_url('http://hezuo.haodf.com', '/template.common/faculty/<id>.htm')
            ->url('/faculty/<id>.html')
            ->url('/faculty/<id>.htm')
            ->addto($router);
		
        NamedRouterRule::create()
            ->controller('hospital/facultylist')
            ->domain_url('http://hezuo.haodf.com', '/template.common/yiyuan/<id>/keshi.htm')
            ->url('/yiyuan/<id>/keshi.html')
            ->url('/yiyuan/<id>/keshi.htm')
            ->addto($router);
		
        NamedRouterRule::create()
            ->controller('hospital/schedule')
            ->domain_url('http://hezuo.haodf.com', '/template.common/yiyuan/<id>/menzhen.htm')
            ->url('/yiyuan/<id>/menzhen.html')
            ->url('/yiyuan/<id>/menzhen.htm')
            ->addto($router);
            
        NamedRouterRule::create()
            ->controller('hospital/map')
            ->domain_url('http://hezuo.haodf.com', '/template.common/yiyuan/<id>/map.htm')
            ->url('/yiyuan/<id>/map.html')
            ->url('/yiyuan/<id>/map.htm')
            ->addto($router);
        
        NamedRouterRule::create()
            ->controller('hospital/showpublishlist')
            ->domain_url('http://hezuo.haodf.com', '/template.common/yiyuan/<hospitalId>/publishlist.htm')
            ->url('/hospital/<hospitalId>/publishlist.htm')
            ->url('/hospital/<hospitalId>/publishlist.html')
            ->url('/yiyuan/<hospitalId>/publishlist.htm')
            ->url('/yiyuan/<hospitalId>/publishlist.html')
            ->addto($router);
        
         NamedRouterRule::create()
            ->controller('hospital/showpublishdetail')
            ->domain_url('http://hezuo.haodf.com', '/template.common/yiyuan/<publishId>/publishdetail.htm')
            ->url('/hospital/<publishId>/publishdetail.htm')
            ->url('/hospital/<publishId>/publishdetail.html')
            ->url('/yiyuan/<publishId>/publishdetail.htm')
            ->url('/yiyuan/<publishId>/publishdetail.html')
            ->addto($router);
        
		NamedRouterRule::create()
            ->controller('hospital/showdetail')
            ->domain_url('http://hezuo.haodf.com', '/template.common/yiyuan/<id>.htm')
            ->url('/hospital/<id>.htm')
            ->url('/hospital/<id>.html')
            ->url('/yiyuan/<id>.html')
            ->url('/yiyuan/<id>.htm')
            ->addto($router);

        namedrouterrule::create()
            ->controller('doctor/articledetail')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/zhuanjiaguandian/<usernamefromrewrite>_<id>.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/doctor/articledetail/<id>.htm')
            ->addto($router);

        namedrouterrule::create()
            ->controller('doctor/showdetail')
            ->domain_url('http://hezuo.haodf.com', '/template.common/doctor/<id>.htm')
            ->url('/doctor/<id>.html')
            ->url('/doctor/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('faculty/facultyList')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/keshi/list.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('faculty/index')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/keshi/<id>/keshi.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('faculty/doctorList')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/keshi/<id>/daifu.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('faculty/showdetail')
            ->domain_url('http://hezuo.haodf.com', '/template.common/keshi/<id>.htm')
            ->url('/keshi/<id>.html')
            ->url('/keshi/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('thread/login4fuwai')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/login4fuwai.htm')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('thread/addFuwai')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/add4fuwai.htm')
            ->templates('success', '/thread/finish4fuwai')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('thread/addFlowPost')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/addflowpost.htm')
            ->templates('success', '/thread/addflowpost')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('thread/detail4fuwai')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/detail4fuwai.htm')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('thread/index4fuwai')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/thread/index4fuwai.htm')
            ->templates('success', '/thread/index4fuwai')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('thread/addpost4fuwai')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/addpost4fuwai.htm')
            ->templates('success', '/thread/detail4fuwai')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('thread/showFuwaiAsk')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/ask4fuwai.htm')
            ->templates('success', '/thread/ask4fuwai')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('thread/finish4Fuwai')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/finish4fuwai.htm')
            ->templates('success', '/thread/finish4fuwai')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('thread/list4fuwai')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/list4fuwai.htm')
            ->templates('success', '/thread/list4fuwai')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('thread/index')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/<type>/<id>.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/zixun/<type>/<id>.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/zixunsohu/<type>/<id>.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/index.htm')
            ->templates('success', '/thread/index')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('thread/doctorList')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/doctorlist/index.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/doctorlist/index4fuwai.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/doctorlist/<hospitalfacultyid>.htm')
            ->templates('success', '/thread/doctorlist')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('thread/showAsk')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/zixun/ask.php')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/zixunsohu/ask.php')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/ask.htm')
            ->templates('success', '/thread/ask')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('thread/add')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/add.htm')
            ->templates('success', '/thread/finish')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('thread/detail')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/detail.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/zixun/zixun/<id>.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/zixun/zixun/<id>.html')
            ->templates('success', '/thread/detail')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('thread/addpost')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/addpost.htm')
            ->templates('success', '/thread/detail')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('thread/showlist')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/list.htm')
            ->templates('success', '/thread/list')
            ->addto($router); 


        NamedRouterRule::create()
            ->controller('thread/login')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/login.htm')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('thread/commonlogin')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/commonlogin.htm')
            ->addto($router); 

        //-------------------------------------------
		NamedRouterRule::create()
            ->controller('zhuanjiaguandian/showdetail')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/zhuanjia')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/zhuanjia/<key>/list.htm')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('zhuanjiaguandian/zhuantiIndex')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/zhuanjia/<key>.htm')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('disease/diseaseList')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/disease/list.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/disease/<key>/list.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/articlelist')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/disease/<key>/article/<lable>.htm')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('disease/hospitallist')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/disease/<key>/hospital/<prov>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/doctorlist')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/disease/<key>/doctor/<prov>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/info')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/disease/<key>/jieshao.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/showdetail')
            ->domain_url('http://hezuo.haodf.com', '/template.common/jibing/<key>.htm')
            ->url('/jibing/<key>.html')
            ->url('/jibing/<key>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/index')
            ->url('/disease/<key>.htm')
            ->addto($router);

        FixedRouterRule::create()
            ->url('/<controller>/<action>')
            ->addto($router);

        //¼ÓºÅºÏ×÷
        NamedRouterRule::create()
            ->controller('booking/index')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/index.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/index.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('booking/search')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/search.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/search.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('booking/bookingquestion')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/question.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/question.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('booking/showdoctororderlist')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/doctor/<doctorusername>/yuyuejiahaolist.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/doctor/<doctorusername>/yuyuejiahaolist.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('booking/newbookingdoctorlist4msn')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/new/doctorlist.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/new/doctorlist.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('booking/search')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>/hospital.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>/hospital.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('booking/search')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>/hospitalfaculty/<hospitalId>/<facultyId>.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>/hospitalfaculty/<hospitalId>/<facultyId>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('booking/search')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>/hospitalfaculty/<facultyId>.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>/hospitalfaculty/<facultyId>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('booking/search')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>/faculty/<hospitalId>/<facultyKey>.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>/faculty/<hospitalId>/<facultyKey>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('booking/search')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>/faculty/<facultyKey>.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>/faculty/<facultyKey>.html')
            ->addto($router);


        NamedRouterRule::create()
            ->controller('booking/search')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>/hospital/<hospitalId>.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>/hospital/<hospitalId>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('booking/search')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>/hospitalfaculty/2006000.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>/hospitalfaculty/2006000.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('booking/search')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>.htm')
            ->domain_url('http://'.getenv('HTTP_HOST'),'/jiahao/<district>.html')
            ->addto($router);


        NamedRouterRule::create()
            ->controller('hzhospitalthread/index')
            ->url('/hzhospitalthread/index.html')
            ->url('/hzhospitalthread/index.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hzhospitalthread/index')
            ->url('/hzhospitalthread/index/<id>.html')
            ->url('/hzhospitalthread/index/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hzhospitalthread/index')
            ->url('/hzhospitalthread/zixun.html')
            ->url('/hzhospitalthread/zixun.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hzhospitalthread/caselist')
            ->url('/hzhospitalthread/caselist.html')
            ->url('/hzhospitalthread/caselist.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hzhospitalthread/caselist')
            ->url('/hzhospitalthread/caselist/<id>.html')
            ->url('/hzhospitalthread/caselist/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hzhospitalthread/doctorlist')
            ->url('/hzhospitalthread/doctorlist.html')
            ->url('/hzhospitalthread/doctorlist.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hzhospitalthread/doctorlist')
            ->url('/hzhospitalthread/doctorlist/<id>.html')
            ->url('/hzhospitalthread/doctorlist/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hzhospitalthread/showask')
            ->url('/hzhospitalthread/ask.html')
            ->url('/hzhospitalthread/ask.htm')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('hzhospitalthread/askpost')
            ->url('/hzhospitalthread/askpost.html')
            ->url('/hzhospitalthread/askpost.htm')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('hzhospitalthread/askcomplete')
            ->url('/hzhospitalthread/askcomplete.html')
            ->url('/hzhospitalthread/askcomplete.htm')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('hzhospitalthread/askcompletepost')
            ->url('/hzhospitalthread/askcompletepost.html')
            ->url('/hzhospitalthread/askcompletepost.htm')
            ->templates('askcomplete', '/hzhospitalthread/askcomplete')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('hzhospitalthread/askotherpeople')
            ->url('/hzhospitalthread/askotherpeople.html')
            ->url('/hzhospitalthread/askotherpeople.htm')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('hzhospitalthread/getflowlist')
            ->url('/hzhospitalthread/getflowlist.html')
            ->url('/hzhospitalthread/getflowlist.htm')
            ->templates('jsthosp.yyhezuo.haodf.com', '/hzhospitalthread/jsthosp')
            ->templates('gzbrain.yyhezuo.haodf.com', '/hzhospitalthread/gzbrain')
            ->addto($router); 
        

        NamedRouterRule::create()
            ->controller('thread/index')
            ->domain_url('http://'.getenv('HTTP_HOST'), '/thread/<id>.htm')
            ->templates('success', '/thread/index')
            ->addto($router); 

        return $router;
    }
Exemplo n.º 13
0
    protected function initRouter() {
        $router = new Router();
        
        NamedRouterRule::create()
            ->controller('index/probe')
            ->url('/probe.htm')
            ->addto($router);
            
		NamedRouterRule::create()
            ->controller('newcase/askguidepage')
            ->url('/ask.php')
            ->addto($router);
            
 //------------------------attach--------------------       
        NamedRouterRule::create()
            ->controller('attach/addattach')
            ->url('/bingli/attachadd.htm')
            ->url('/bingli/attachadd.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('attach/uploadattach')
            ->url('/bingli/uploadattach.htm')
            ->url('/bingli/uploadattach.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('attach/uploadsingleattach')
            ->url('/bingli/uploadsingleattach.htm')
            ->url('/bingli/uploadsingleattach.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('attach/pdf4dzonearticle')
            ->url('/bingli/pdf4dzonearticle.htm')
            ->url('/bingli/pdf4dzonearticle.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('attach/uploadattach4pdf')
            ->url('/bingli/uploadattach4pdf.htm')
            ->url('/bingli/uploadattach4pdf.html')
            ->addto($router);
        
        NamedRouterRule::create()
            ->controller('attach/mybingli')
            ->url('/bingli/mybl/<my_params>.htm')
            ->url('/bingli/mybl/<my_params>.html')
            ->templates('default', '/attach/mybingli.php')
            ->templates('space', '/attach/showmybingli4space.php')
            ->templates('sheet', '/attach/questionsheetmyupload.php')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('attach/mybingli4case')
            ->url('/bingli/mybl4case/<my_params>.htm')
            ->url('/bingli/mybl4case/<my_params>.html')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('attach/showbingli')
            ->url('/bingli/showbl/<type>.htm')
            ->url('/bingli/showbl/<type>.html')
            ->templates('default', '/attach/showbingli.php')
            ->templates('space', '/attach/showbingli4space.php')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('attach/detail')
            ->templates('report', '/attach/detail_report')
            ->templates('dicom', '/attach/detail4dicom')
            ->addto($router);


        NamedRouterRule::create()
            ->controller('attach/mybingliold')
            ->url('/bingli/oldbl/<default_ids>.htm')
            ->url('/bingli/oldbl/<default_ids>.html')
            ->url('/bingli/oldbl/.htm')
            ->templates('default', '/attach/mybingliold.php')
            ->templates('space', '/attach/mybingli4space.php')
            ->templates('sheet', '/attach/questionsheetupload.php')
            ->addto($router);
            
        NamedRouterRule::create()
            ->controller('attach/delete')
            ->url('/bingli/bldelete/<id>.htm')
            ->url('/bingli/bldelete/<id>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('attach/addbingli')
            ->url('/bingli/bladd.htm')
            ->url('/bingli/bladd.html')
            ->addto($router);
            
        NamedRouterRule::create()
            ->controller('attach/simpledetail')
            ->url('/bingli/bldetail/<ids>.htm')
            ->url('/bingli/bldetail/<ids>.html')
            ->templates('default', '/attach/simpledetail.php')
            ->templates('detail4dzone', '/attach/detail4dzone.php')
            ->addto($router); 
            
        NamedRouterRule::create()
            ->controller('attach/showattach')
            ->url('/bingli/showattach.htm')
            ->url('/bingli/showattach.html')
            ->addto($router);        

        NamedRouterRule::create()
            ->controller('attach/ajaxattach')
            ->url('/bingli/ajaxattach.htm')
            ->url('/bingli/ajaxattach.html')
            ->addto($router);        

        NamedRouterRule::create()
            ->controller('attach/ajaxuploadfailed')
            ->url('/bingli/ajaxuploadfailed.htm')
            ->addto($router);        
    
  //----------------------attach------end-------------      
  
        NamedRouterRule::create()
            ->controller('index/dispatchedlist')
            ->url('/dispatched/<case_type_id>.htm')
            ->url('/dispatched/<case_type_id>.html')
            ->addto($router);    
        
        NamedRouterRule::create()
            ->controller('index/index')
            ->url('/index/<case_type_id>/<prov>.htm')
            ->url('/index/<case_type_id>/<prov>.html')
            ->url('/index/<case_type_id>.htm')
            ->url('/index/<case_type_id>.html')
            ->addto($router);
        
        NamedRouterRule::create()
        	->controller('tag/index')
        	->url('/zhuanjiahuifu/<key>.htm')
        	->url('/zhuanjiahuifu/<key>.html')
        	->addto($router);
        
        NamedRouterRule::create()
            ->controller('index/index')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/')
            ->addto($router);
         
        FixedRouterRule::create()
            ->url('/<controller>/<action>')
            ->addto($router);

        return $router;
    }
Exemplo n.º 14
0
    protected function initRouter() {
        $router = new Router();       

        NamedRouterRule::create()
            ->controller('index/index')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/')
            ->addto($router);
        
        NamedRouterRule::create()
            ->controller('suifang/index')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/suifang')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('overseaadmin/index')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/haiwai')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('attach/simpledetail')
            ->url('/suifangbingli/bldetail/<ids>.htm')
            ->url('/suifangbingli/bldetail/<ids>.html')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('user/modifyinfo')
            ->templates('success', '/user/showinfo')
            ->addto($router);
            
        NamedRouterRule::create()
            ->controller('user/modifymobileforpost')
            ->templates('success', '/user/showmobileinfo')
            ->addto($router);   
            
        NamedRouterRule::create()
            ->controller('internalmessage/inbox')
            ->templates('success', '/internalmessage/inbox')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('telpayment/showtelaccount')
            ->templates('default', '/telpayment/showtelaccount_default')
            ->templates('payment', '/telpayment/showtelaccount_payment')
            ->templates('present', '/telpayment/showtelaccount_present')
            ->templates('notice', '/telpayment/showtelaccount_notice')
            ->addto($router);
        
        NamedRouterRule::create()
            ->controller('telpayment/paymessage')
            ->templates('recharge', '/telpayment/afterrecharge')
            ->addto($router);

        $highChartRule = NamedRouterRule::create()
            ->controller('mobilefollowup/ajaxgetdata4chart');
        foreach(HealthRecordProblem::$chartCategoryKeyArr as $chartCategoryKey)
        {
            $highChartRule->templates($chartCategoryKey, '/mobilefollowup/indetail/ajaxgetdata4chart_'.$chartCategoryKey);
        }
        $highChartRule->addto($router);
        
        NamedRouterRule::create()
            ->controller('user/register')
            ->templates('success', '/user/login')
            ->addto($router);
            
        NamedRouterRule::create()
            ->controller('doctorreg/step1account')
            ->domain_url('http://www.'.URL_PREFIX.'haodf.com', '/passport/dspace_step1_account.php')
            ->domain_url('http://'.URL_PREFIX.'user.haodf.com', '/passport/dspace_step1_account.php')
            ->domain_url('http://'.URL_PREFIX.'haoping.haodf.com', '/passport/dspace_step1_account.php')
            ->addto($router);

        NamedRouterRule::create()                                                  
            ->controller('user/ordinarypatientsignin')                             
            ->templates('success', '/user/successordinarysignin')    
            ->templates('fail', '/user/failordinarysignin')    
            ->addto($router);                                                      
       
        FixedRouterRule::create()
            ->url('/<controller>/<action>')
            ->addto($router);

        return $router;
    }
Exemplo n.º 15
0
    protected function initRouter() {
        $router = new Router();

        NamedRouterRule::create()
            ->controller('index/mobilemsgindex')
            ->domain_url('http://'.URL_PREFIX.'m.haodf.com', '/')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/mobilemsgindex')
            ->domain_url('http://'.URL_PREFIX.'m.haodf.com/p', '/')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/mobilemsgindex4doc')
            ->domain_url('http://'.URL_PREFIX.'m.haodf.com/d', '/')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/mobilemsgindex4specificdoc')
            ->domain_url('http://'.URL_PREFIX.'m.haodf.com/sd', '/')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/mobileapp4hospital')
            ->domain_url('http://'.URL_PREFIX.'m.haodf.com/hos', '/')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/mobilesource')
            ->domain_url('http://'.URL_PREFIX.'m.haodf.com', '/c1')
            ->domain_url('http://'.URL_PREFIX.'m.haodf.com', '/c2')
            ->domain_url('http://'.URL_PREFIX.'m.haodf.com', '/c3')
            ->domain_url('http://'.URL_PREFIX.'m.haodf.com', '/c4')
            ->domain_url('http://'.URL_PREFIX.'m.haodf.com', '/c5')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/index')
            ->url('/touch/')
            ->url('/touch')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('tel/ad')
            ->url('/touch/tel/ad.html')
            ->url('/touch/tel/ad.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/facultylist')
            ->url('/touch/jibing/list.html')
            ->url('/touch/jibing/list.htm')
            ->templates('disease', '/disease/diseaseclassfication')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/provincelist')
            ->url('/touch/province/list.html')
            ->url('/touch/province/list.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/diseaselist')
            ->url('/touch/jibing/<key>/list.html')
            ->url('/touch/jibing/<key>/list.htm')
            ->templates('disease', '/disease/diseaselistofclassfication')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/labellist')
            ->url('/touch/jibing/<key>/labellist.html')
            ->url('/touch/jibing/<key>/labellist.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/hospital')
            ->url('/touch/jibing/<key>/yiyuan.html')
            ->url('/touch/jibing/<key>/yiyuan.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/loadmorehospital')
            ->url('/touch/jibing/<key>/loadmorehospital')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/articlelist')
            ->url('/touch/jibing/<key>/wenzhang/lableid_<lableid>.html')
            ->url('/touch/jibing/<key>/wenzhang/lableid_<lableid>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/oldarticlelist')
            ->url('/touch/jibing/<key>/<labelid>/articlelist.html')
            ->url('/touch/jibing/<key>/<labelid>/articlelist.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/loadmorearticlelist')
            ->url('/touch/jibing/<key>/<labelid>/loadmorearticlelist')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/loadmoredoctor')
            ->url('/touch/jibing/<key>/loadmoredoctor')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/loadmoredoctor')
            ->url('/touch/hospital/loadmoredoctor')
            ->templates('loadmoredoctor', '/disease/loadmoredoctor')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/loadmoredisease')
            ->url('/touch/hospital/loadmoredisease')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/cityList')
            ->url('/touch/hospital/<provinceKey>/citylist.html')
            ->url('/touch/hospital/<provinceKey>/citylist.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/hospitallist')
            ->url('/touch/hospital/<provinceKey>/<cityKey>/list.html')
            ->url('/touch/hospital/<provinceKey>/<cityKey>/list.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/mynearhospitallist')
            ->url('/touch/hospital/mynearhospitallist.html')
            ->url('/touch/hospital/mynearhospitallist.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/info')
            ->url('/touch/jibing/<key>/jieshao.html')
            ->url('/touch/jibing/<key>/jieshao.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/diseasehospitalprovincelist')
            ->url('/touch/jibing/<key>/yiyuan/province.html')
            ->url('/touch/jibing/<key>/yiyuan/province.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/diseasedoctorprovincelist')
            ->url('/touch/jibing/<key>/province.html')
            ->url('/touch/jibing/<key>/province.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/getrelateddiseaselist')
            ->url('/touch/disease/getrelateddiseaselist/<key>.html')
            ->url('/touch/disease/getrelateddiseaselist/<key>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/getrelatedcaselist')
            ->url('/touch/disease/getrelatedcaselist/<key>.html')
            ->url('/touch/disease/getrelatedcaselist/<key>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/expertopinionlist')
            ->url('/touch/disease/expertopinionlist/<key>.html')
            ->url('/touch/disease/expertopinionlist/<key>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/index')
            ->url('/touch/jibing/<key>/daifu.html')
            ->url('/touch/jibing/<key>/daifu.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/diseaseknowledge')
            ->url('/touch/jibing/<key>.html')
            ->url('/touch/jibing/<key>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/thesis')
            ->url('/touch/thesis/<key>.html')
            ->url('/touch/thesis/<key>.htm')
            ->templates('default', '/disease/thesis.php')
            ->templates('app', '/disease/thesis4app.php')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/info')
            ->url('/touch/hospital/<id>/jieshao.html')
            ->url('/touch/hospital/<id>/jieshao.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/address')
            ->url('/touch/hospital/<id>/address.html')
            ->url('/touch/hospital/<id>/address.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/map')
            ->url('/touch/hospital/<id>/map.html')
            ->url('/touch/hospital/<id>/map.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/telephone')
            ->url('/touch/hospital/<id>/telephone.html')
            ->url('/touch/hospital/<id>/telephone.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/announce')
            ->url('/touch/hospital/<id>/announce.html')
            ->url('/touch/hospital/<id>/announce.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/facultylist')
            ->url('/touch/hospital/<id>/menzhen.html')
            ->url('/touch/hospital/<id>/menzhen.htm')
            ->addto($router);

        //医院点评疾病列表页   
        NamedRouterRule::create()
            ->controller('hospital/diseaselist')
            ->url('/touch/tuijian/yiyuan/<id>.html')
            ->url('/touch/tuijian/yiyuan/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospitalfaculty/doctorlist')
            ->url('/touch/tuijian/keshi/<hospitalid>/<id>.html')
            ->url('/touch/tuijian/keshi/<hospitalid>/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospitalfaculty/bookingdoctorlist')
            ->url('/touch/jiahao/<hospitalid>/<id>.html')
            ->url('/touch/jiahao/<hospitalid>/<id>.htm')
            ->addto($router);
        
        NamedRouterRule::create()
            ->controller('hospitalfaculty/caseorphoneopeneddoctorlist')
            ->url('/touch/caseorphone/<hospitalid>/<id>.html')
            ->url('/touch/caseorphone/<hospitalid>/<id>.htm')
            ->addto($router);
        
        //医院科室疾病推荐专家列表页   
        NamedRouterRule::create()
            ->controller('hospitalfaculty/diseasedoctorlist')
            ->url('/touch/tuijian/<hospitalid>/<id>/<disease_key>.html')
            ->url('/touch/tuijian/<hospitalid>/<id>/<disease_key>.htm')
            ->addto($router);

        //医院疾病推荐专家列表页   
        NamedRouterRule::create()
            ->controller('hospital/disease')
            ->url('/touch/tuijian/<id>/<disease_key>.html')
            ->url('/touch/tuijian/<id>/<disease_key>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospitalfaculty/diseaselist')
            ->url('/touch/faculty/disease/<id>.html')
            ->url('/touch/faculty/disease/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospitalfaculty/info')
            ->url('/touch/faculty/<id>/jieshao.html')
            ->url('/touch/faculty/<id>/jieshao.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospitalfaculty/index')
            ->url('/touch/faculty/<id>.html')
            ->url('/touch/faculty/<id>.htm')
            ->url('/faculty/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/index')
            ->url('/touch/hospital/<id>.html')
            ->url('/touch/hospital/<id>.htm')
            ->url('/hospital/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('article/detail')
            ->url('/touch/zhuanjiaguandian/<username>_<article_id>.htm')
            ->url('/touch/zhuanjiaguandian/<username>_<article_id>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('case/showlist')
            ->url('/touch/zixun/<doctorid>/showlist.html')
            ->url('/touch/zixun/<doctorid>/showlist.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('case/casedetail')
            ->url('/touch/wenda/t/<case_id>.htm')
            ->url('/touch/wenda/t/<case_id>.html')
            ->addto($router);    

        NamedRouterRule::create()
            ->controller('case/loadmoredetail')
            ->url('/touch/wenda/<refid>/loadmoredetail')
            ->addto($router);
            
        NamedRouterRule::create()
            ->controller('case/flowdetail')
            ->url('/touch/wenda/<spaceusername>_g_<refid>.html')
            ->url('/touch/wenda/<spaceusername>_g_<refid>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/scheduleList')
            ->url('/touch/doctor/schedule/<idorusername>.html')
            ->url('/touch/doctor/schedule/<idorusername>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/diseaselist')
            ->url('/touch/doctor/disease/<id>.html')
            ->url('/touch/doctor/disease/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/loadmorecommentlist')
            ->url('/touch/doctor/<id>/<disease_key>/loadmorecommentlist')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/info')
            ->url('/touch/doctor/<id>/jieshao.html')
            ->url('/touch/doctor/<id>/jieshao.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/commentList')
            ->url('/touch/doctor/<id>/jibingjingyan/<disease_key>.html')
            ->url('/touch/doctor/<id>/jibingjingyan/<disease_key>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/getarticlelist')
            ->url('/touch/doctor/<id>/articlelist.html')
            ->url('/touch/doctor/<id>/articlelist.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/gettelorderlist')
            ->url('/touch/doctor/<id>/telorderlist.html')
            ->url('/touch/doctor/<id>/telorderlist.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/getbookinglist')
            ->url('/touch/doctor/<id>/bookinglist.html')
            ->url('/touch/doctor/<id>/bookinglist.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/showdetail')
            ->url('/touch/doctor/<id>.htm')
            ->url('/touch/doctor/<id>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/showoldpatientreportindex')
            ->url('/touch/d/op.htm')
            ->url('/touch/d/op.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('newcase/confirmpatient')
            ->url('/touch/newcase/confirmpatient')
            ->templates('patients', '/newcase/confirmpatient')
            ->templates('nopatients', '/newcase/confirmnopatient')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('useraccount/payresult')
            ->url('/touch/useraccount/payresult')
            ->templates('success', '/useraccount/paysuccess.php')
            ->templates('failure', '/useraccount/payfailure.php')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('alipayapi/redirectorder')
            ->url('/touch/alipayapi/redirectorder')
            ->templates('error', '/default/error4alipay.php')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('alipayapi/redirectServiceProcess')
            ->url('/touch/alipayapi/redirectServiceProcess')
            ->templates('error', '/default/error4alipay.php')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('alipayapi/redirectcommitment')
            ->url('/touch/alipayapi/redirectcommitment')
            ->templates('error', '/default/error4alipay.php')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('alipayapi/showtelorder')
            ->url('/touch/alipayapi/showtelorder')
            ->templates('error', '/default/error4alipay.php')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('alipayapi/redirectcaseintro')
            ->url('/touch/alipayapi/redirectcaseintro')
            ->templates('error', '/default/error4alipay.php')
            ->addto($router);

        FixedRouterRule::create()
            ->domain('http://'.getenv('HTTP_HOST').'/touch')
            ->url('/<controller>/<action>')
            ->addto($router);

        NamedRouterRule::create()
	        ->controller('charge/chargedescription')
	        ->url('/touch/api/charge/chargedescription')
	        ->addto($router);

		NamedRouterRule::create()
		->controller('thread/detail')
		->url('/touch/wenda/<usernamefromrewrite>_<case_id>.html')
		->url('/touch/wenda/<usernamefromrewrite>_<case_id>.htm')
		->addto($router);
        
		NamedRouterRule::create()
		->controller('article/getrelationarticlelist')
		->url('/touch/article/getrelationarticlelist/<articleid>')
		->addto($router);

		NamedRouterRule::create()
		->controller('article/getrelationcaselist')
		->url('/touch/article/getrelationcaselist/<articleid>')
		->addto($router);

		NamedRouterRule::create()
		->controller('case/getrelationarticlelist')
		->url('/touch/case/getrelationarticlelist/<refid>')
		->addto($router);

		NamedRouterRule::create()
		->controller('case/getrelationcaselist')
		->url('/touch/case/getrelationcaselist/<refid>')
		->addto($router);

        return $router;
    }
Exemplo n.º 16
0
    protected function initRouter() {
        $router = new Router();

        NamedRouterRule::create()
            ->controller('index/showList')
            ->templates('success', '/index/showlist')
            ->addto($router);            

        NamedRouterRule::create()
            ->controller('sohuhealth/getRecommendDoctorsOfDiseaseName')
            ->templates('success', '/default/jsoncontent')
            ->addto($router);            

        NamedRouterRule::create()
            ->controller('sohuhealth/getrecommendhospitalsofdiseasename')
            ->templates('success', '/default/jsoncontent')
            ->addto($router);            

        FixedRouterRule::create()
            ->domain('http://'.getenv('SERVER_NAME'))
            ->url('/<controller>/<action>')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('teleconfcallback/service')
            ->url('/ivr/cloop/<service>')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('callcentercallback/service')
            ->url('/ivr/callcenter/<service>')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('tinetcallcentercallback/service')
            ->url('/ivr/tinetcallcenter/<service>')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('cloudcallcentercallback/service')
            ->url('/ivr/cloudcallcenter/<service>')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('qingniucallcentercallback/service')
            ->url('/ivr/qingniucallcenter/<service>')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('voipcallback/service')
            ->url('/ivr/voip/<service>')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('quanshiconfcallback/service')
            ->url('/ivr/quanshi/<service>')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('huaweiconfcallback/soapserver')
            ->url('/ivr/huaweiconf/soapserver')
            ->addto($router);

        FixedRouterRule::create()
            ->domain('http://'.getenv('SERVER_NAME').'/openpf')
            ->url('/<controller>/<action>')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/index')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('sosothread/addthread')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/sosothread/addthread')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('sosothread/getquestionid')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/sosothread/getquestionid')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('sosothread/pushanswer')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/sosothread/pushanswer')
            ->addto($router);

        
        FixedRouterRule::create()
            ->url('/<controller>/<action>')
            ->addto($router);

        return $router;
   
    }
Exemplo n.º 17
0
    protected function initRouter()
    {/*{{{*/
		$router = new Router();
        
		NamedRouterRule::create()
		->controller('index/index')
		->url('/')
		->addto($router); 

		NamedRouterRule::create()
		->controller('index/probe')
		->url('/probe.htm')
		->url('/probe.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('booking/orderFormList')
		->url('/doctor/<usernamefromrewrite>/index.htm')
		->url('/doctor/<usernamefromrewrite>/index.html')
		->addto($router);
        
		NamedRouterRule::create()
		->controller('present/presentnavigation')
		->url('/present/presentnavigation')
		->addto($router);

		NamedRouterRule::create()
		->controller('thread/recommend')
		->url('/case/recommend')
		->addto($router);

		NamedRouterRule::create()
		->controller('thread/newlist')
		->url('/zixun/showlist.html')
		->url('/zixun/showlist.htm')
		->addto($router);

		NamedRouterRule::create()
		->controller('thread/index')
		->url('/zixun/list.html')
		->url('/zixun/list.htm')
		->url('/zixun/list_<type>.htm')
		->addto($router);

		NamedRouterRule::create()
		->controller('thread/ask')
		->url('/zixun/tiwen.html')
		->url('/zixun/tiwen.htm')
		->addto($router);

		NamedRouterRule::create()
		->controller('thread/detail')
		->url('/zixun/<case_id>.html')
		->url('/zixun/<case_id>.htm')
		->addto($router);

		NamedRouterRule::create()
        ->controller('flow/showdetail')
        ->url('/wenda/<usernamefromrewrite>_g_<refid>.html')
        ->url('/wenda/<usernamefromrewrite>_g_<refid>.htm')
        ->addto($router);

		NamedRouterRule::create()
        ->controller('flow/ajaxattachment')
        ->url('/wenda/flow/ajaxattachment')
        ->addto($router);

		NamedRouterRule::create()
		->controller('thread/detail')
		->url('/wenda/<usernamefromrewrite>_<case_id>.html')
		->url('/wenda/<usernamefromrewrite>_<case_id>.htm')
		->addto($router);
        
        NamedRouterRule::create()
		->controller('adminthread/replytplajaxupdatepost')
		->url('/api/adminthread/replytplajaxupdatepost')
		->addto($router);
        
        NamedRouterRule::create()
		->controller('patient/ajaxcomplaint')
		->url('/api/patient/ajaxcomplaint')
		->addto($router);

        NamedRouterRule::create()
		->controller('adminthread/replytplajaxupdate')
		->url('/api/adminthread/replytplajaxupdate')
		->addto($router);

        NamedRouterRule::create()
		->controller('adminthread/replytplajaxnewpost')
		->url('/api/adminthread/replytplajaxnewpost')
		->addto($router);
        
        NamedRouterRule::create()
		->controller('adminthread/replytplajaxdeletepost')
		->url('/api/adminthread/replytplajaxdeletepost')
		->addto($router);
        

        NamedRouterRule::create()
		->controller('present/closenotice')
		->url('/api/present/closenotice')
		->addto($router);
      
        NamedRouterRule::create()
		->controller('index/ajaxaskflow')
		->url('/api/index/ajaxaskflow')
		->addto($router);
        
        NamedRouterRule::create()
		->controller('flow/complaintdoctor')
		->url('/api/flow/complaintdoctor')
		->addto($router);

        NamedRouterRule::create()
		->controller('flow/ajaxcomplaint')
		->url('/api/flow/ajaxcomplaint')
		->addto($router);

        NamedRouterRule::create()
		->controller('flow/nextunread')
		->url('/api/flow/nextunread')
		->addto($router);
        
        NamedRouterRule::create()
		->controller('flow/spacepatient')
		->url('/api/flow/spacepatient')
		->addto($router);

        NamedRouterRule::create()
		->controller('flow/spacemodules')
		->url('/api/flow/spacemodules')
		->addto($router);
        
        NamedRouterRule::create()
		->controller('flow/setShowInsertPop')
		->url('/api/flow/setshowinsertpop')
		->addto($router);

        NamedRouterRule::create()
            ->controller('flow/setShowOldPatientPop')
            ->url('/api/flow/setshowoldpatientpop')
            ->addto($router);

        NamedRouterRule::create()
		->controller('thread/ajaxpostsubmit')
		->url('/api/thread/ajaxpostsubmit')
		->addto($router);
		
		NamedRouterRule::create()
		->controller('replytemplate/ajaxselectlist')
		->url('/api/replytemplate/ajaxselectlist')
		->addto($router);

		NamedRouterRule::create()
		->controller('article/ajaxselectlist')
		->url('/api/article/ajaxselectlist')
		->addto($router);

		NamedRouterRule::create()
		->controller('replytemplate/ajaxselectphoneinvitationlist')
		->url('/api/replytemplate/ajaxselectphoneinvitationlist')
		->addto($router);

		NamedRouterRule::create()
		->controller('adminthread/replytplajaxindex')
		->url('/api/adminthread/replytplajaxindex')
		->addto($router);


		//-------------- patient begin ---------------------
		NamedRouterRule::create()
		->controller('patient/group')
		->url('/huanyouhui/group/<id>.htm')
		->url('/huanyouhui/group/<id>.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('patient/thread')
		->url('/huanyouhui/thread/<id>.htm')
		->url('/huanyouhui/thread/<id>.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('patient/index')
		->url('/huanyouhui/index.htm')
		->url('/huanyouhui/index.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('patient/post')
		->url('/huanyouhui/post.htm')
		->url('/huanyouhui/post.html')
		->addto($router);
		
		//20110510 ÎÄÕ·ÖÏíµ½»¼ÓÑ»á
		NamedRouterRule::create()
		->controller('patient/share2group')
		->url('/huanyouhui/share2group.htm')
		->url('/huanyouhui/share2group.html')
		->addto($router);		

		NamedRouterRule::create()
		->controller('patient/deletemessage')
		->url('/huanyouhui/deletemessage.htm')
		->url('/huanyouhui/deletemessage.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('patient/deletetopic')
		->url('/huanyouhui/deletetopic.htm')
		->url('/huanyouhui/deletetopic.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('patient/marrowtopic')
		->url('/huanyouhui/marrowtopic.htm')
		->url('/huanyouhui/marrowtopic.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('patient/deleteuser')
		->url('/huanyouhui/deleteuser.htm')
		->url('/huanyouhui/deleteuser.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('patient/marrowtopic')
		->url('/huanyouhui/marrowtopic.htm')
		->url('/huanyouhui/marrowtopic.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('patient/marrowmessage')
		->url('/huanyouhui/marrowmessage.htm')
		->url('/huanyouhui/marrowmessage.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('patient/update')
		->url('/huanyouhui/update.htm')
		->url('/huanyouhui/update.html')
		->addto($router);
		//-------------- patient end -----------------------
		//-------------- article begin -----------------------
		NamedRouterRule::create()
		->controller('articlecomment/newpost')
		->url('/zhuanjiaguandian/postcomment/<usernamefromrewrite>_<article_id>.htm')
		->url('/zhuanjiaguandian/postcomment/<usernamefromrewrite>_<article_id>.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('article/detail')
		->url('/zhuanjiaguandian/<usernamefromrewrite>_<article_id>.htm')
		->url('/zhuanjiaguandian/<usernamefromrewrite>_<article_id>.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('article/detail')
		->url('/wenzhang/<article_id>.htm')
		->url('/wenzhang/<article_id>.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('article/index')
		->url('/lanmu/<category_id>.htm')
		->url('/lanmu/<category_id>.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('article/index')
		->url('/lanmu')
		->addto($router);

		NamedRouterRule::create()
		->controller('article/classicscaselist')
		->url('/jdwenti')
		->templates('success', '/article/index.php')
		->addto($router);

		NamedRouterRule::create()
		->controller('adminarticle/update')
		->templates('success', '/adminarticle/newarticle.php')
		->addto($router);
		//-------------- article end -----------------------
		//-------------- photo begin -----------------------
		NamedRouterRule::create()
		->controller('photo/index')
		->url('/xiangce/list.htm')
		->url('/xiangce/list.html')
		->addto($router);

		NamedRouterRule::create()
		->controller('photo/photoalbumdetail')
		->url('/xiangce/<photoalbum_id>/<attachment_id>.htm')
		->url('/xiangce/<photoalbum_id>/<attachment_id>.html')
		->addto($router);
		//-------------- photo end -------------------------
			
		//--------------- schedule bigin --------------------
		NamedRouterRule::create()
		->controller('schedule/index')
		->url('/memzhen.htm')
		->url('/memzhen.html')
		->addto($router);

		//--------------- schedule end --------------------

		//--------------- adminsetup   --------------------
		NamedRouterRule::create()
		->controller('adminsetup/module')
		->addto($router);
		 
		//--------------- adminsetup   --------------------

		//----pop window --------
        NamedRouterRule::create()
        ->controller('thread/ajaxhdfconversation')
        ->url('/conversation/ajaxhdfconversation.htm')
        ->addto($router);
        
        NamedRouterRule::create()
        ->controller('thread/postaskconversation')
        ->url('/conversation/postaskconversation.htm')
        ->addto($router);
        
        NamedRouterRule::create()
        ->controller('thread/postconversation')
        ->url('/conversation/postconversation.htm')
        ->addto($router);
        
        NamedRouterRule::create()
        ->controller('thread/ajaxaskconversation')
        ->url('/conversation/ajaxaskconversation.htm')
        ->addto($router);
        
        NamedRouterRule::create()
        ->controller('thread/ajaxhdfservice')
        ->url('/conversation/ajaxhdfservice.htm')
        ->addto($router);
        
        NamedRouterRule::create()
        ->controller('thread/markconversationread')
        ->url('/conversation/markread.htm')
        ->addto($router);
        
        NamedRouterRule::create()
        ->controller('thread/closewindow')
        ->url('/conversation/close.htm')
        ->addto($router);
        
        
        //--------pop end---------------

        NamedRouterRule::create()
		->controller('thread/test')
		->url('/case/test')
		->addto($router);
        

        NamedRouterRule::create()
            ->controller('adminpatient/tranching')
	        ->url('/api/adminpatient/tranching')
	        ->addto($router);
        
        NamedRouterRule::create()
            ->controller('adminpatient/casegroup')
	        ->url('/api/adminpatient/casegroup')
	        ->addto($router);
        
        NamedRouterRule::create()
            ->controller('adminpatient/newcasegroup')
	        ->url('/api/adminpatient/newcasegroup')
	        ->addto($router);
        
        NamedRouterRule::create()
            ->controller('adminpatient/newcasegrouppost')
	        ->url('/api/adminpatient/newcasegrouppost')
	        ->addto($router);
                
        NamedRouterRule::create()
            ->controller('adminsetup/setflowprocess')
	        ->url('/api/adminsetup/setflowprocess')
	        ->addto($router);
        
        NamedRouterRule::create()
            ->controller('adminsetup/ajaxsos')
	        ->url('/api/adminsetup/ajaxsos')
	        ->addto($router);

        NamedRouterRule::create()
            ->controller('adminsetup/ajaxfollowupnote')
            ->url('/api/adminsetup/ajaxfollowupnote')
            ->addto($router);
 
        NamedRouterRule::create()
            ->controller('adminsetup/savenote')
            ->url('/api/adminsetup/savenote')
            ->addto($router);       

        NamedRouterRule::create()
            ->controller('adminsetup/sospost')
	        ->url('/api/adminsetup/sospost')
	        ->addto($router);
        
        NamedRouterRule::create()
            ->controller('thread/ajaxgetlatestonlinespaces')
	        ->url('/api/thread/ajaxgetlatestonlinespaces')
	        ->addto($router);
        
        NamedRouterRule::create()
	        ->controller('thread/ajaxgetaddoctors')
	        ->url('/api/thread/ajaxgetaddoctors')
	        ->addto($router);
        
        NamedRouterRule::create()
	        ->controller('thread/ajaxgetdiseasehospitals')
	        ->url('/api/thread/ajaxgetdiseasehospitals')
	        ->addto($router);
        
        NamedRouterRule::create()
	        ->controller('thread/ajaxgetlatestonlinedoctors')
	        ->url('/api/thread/ajaxgetlatestonlinedoctors')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxSuccessSent')
	        ->url('/api/present/ajaxsuccesssent')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxBuyPresent')
            ->url('/api/present/ajaxbuypresent')
            ->templates('ajaxsuccesssent', '/present/ajaxsuccesssent')
            ->templates('ajaxsuccesscustom', '/present/ajaxsuccesscustom')
            ->templates('ajaxfailsent', '/present/ajaxfailsent')
            ->templates('notsend', '/present/ajaxsendtomydoctor')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxApplyPresent')
	        ->url('/api/present/ajaxapplypresent')
            ->templates('notsend', '/present/ajaxsendtomydoctor')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxShowPresent')
	        ->url('/api/present/ajaxshowpresent')
	        ->templates('ajaxapplypresent', '/present/ajaxapplypresent')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxShowDoctorPresent')
	        ->url('/api/present/ajaxshowdoctorpresent')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxapplywishdoctorpresent')
	        ->url('/api/present/ajaxapplywishdoctorpresent')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxDoctorBuyPresent')
            ->url('/api/present/ajaxdoctorbuypresent')
            ->templates('ajaxdoctorsuccesssent', '/present/ajaxdoctorsuccesssent')
            ->templates('ajaxfailsent', '/present/ajaxfailsent')
	        ->addto($router);
        
        NamedRouterRule::create()
	        ->controller('present/ajaxPresentBanner')
	        ->url('/api/present/ajaxpresentbanner')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxChangeMobile')
	        ->url('/api/present/ajaxchangemobile')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxShowReceivedPresent')
	        ->url('/api/present/ajaxshowreceivedpresent')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxShowPresentDetail')
	        ->url('/api/present/ajaxshowpresentdetail')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxRecommendPresent')
	        ->url('/api/present/ajaxrecommendpresent')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxSendToMydoctor')
	        ->url('/api/present/ajaxsendtomydoctor')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxSendToThisDoctor')
	        ->url('/api/present/ajaxsendtothisdoctor')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxPresentZone')
	        ->url('/api/present/ajaxpresentzone')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('present/ajaxapplywishpresent')
	        ->url('/api/present/ajaxapplywishpresent')
	        ->addto($router);
        
        NamedRouterRule::create()
	        ->controller('thread/ajaxGetNextRecommendThread')
	        ->url('/api/thread/ajaxGetNextRecommendThread')
	        ->addto($router);

        NamedRouterRule::create()
	        ->controller('index/ajaxDoctorInfo')
	        ->url('/api/index/ajaxdoctorinfo')
	        ->addto($router);
       
        NamedRouterRule::create()
	        ->controller('charge/ajaxSuccessCharge')
	        ->url('/api/charge/ajaxsuccesscharge')
	        ->addto($router);
        
        NamedRouterRule::create()
	        ->controller('charge/chargeDescription')
	        ->url('/api/charge/chargedescription')
	        ->addto($router);
        
        NamedRouterRule::create()
	        ->controller('charge/ajaxApplyOrder')
	        ->url('/api/charge/ajaxapplyorder')
	        ->addto($router);
       
        NamedRouterRule::create()
	        ->controller('charge/showChargeNotice')
	        ->url('/api/charge/showchargenotice')
	        ->addto($router);
        
        NamedRouterRule::create()
	        ->controller('charge/closeShowChargeNotice')
	        ->url('/api/charge/closeshowchargenotice')
	        ->addto($router);
      
        NamedRouterRule::create()
	        ->controller('charge/addFlowFreeOrder')
	        ->url('/api/charge/addflowfreeorder')
	        ->addto($router);

        FixedRouterRule::create()
            ->url('/<controller>/<action>')
            ->addto($router);

        return $router;
    }/*}}}*/
Exemplo n.º 18
0
    protected function initRouter() {
        $router = new Router();

        NamedRouterRule::create()
            ->controller('province/index')
            ->domain_url('http://'.URL_PREFIX.'beijing.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'beijing.haodf.com', '//')
            ->domain_url('http://'.URL_PREFIX.'sh.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'gz.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'guangdong.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'guangxi.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'jiangsu.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'zhejiang.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'anhui.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'jiangxi.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'fujian.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'shandong.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'hebei.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'henan.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'tianjin.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'liaoning.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'heilongjiang.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'jilin.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'hubei.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'hunan.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'sichuan.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'chongqing.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'shanxi.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'sx.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'gansu.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'yunnan.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'xinjiang.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'neimenggu.haodf.com', '/')
            ->domain_url('http://'.URL_PREFIX.'q.haodf.com', '/')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('plussignchannel/index')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com', '/')
            ->addto($router);
        // ----------- jiahao --------------------     

        //---------------- hezuo  jiahao begin ----------------
        NamedRouterRule::create()
            ->controller('plussignchannel/hezuo')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/hospital/hezuo/<hezuoHospitalId>.htm')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/hospital/hezuo/<hezuoHospitalId>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('plussignchannel/hezuo')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/hezuo/hospital/<hezuoHospitalId>.htm')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/hezuo/hospital/<hezuoHospitalId>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('plussignchannel/hezuo')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/faculty/hezuo/<hezuoHospitalId>/<facultyKey>.htm')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/faculty/hezuo/<hezuoHospitalId>/<facultyKey>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('plussignchannel/hezuo')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/hospitalfaculty/hezuo/<hezuoHospitalId>/<facultyId>.htm')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/hospitalfaculty/hezuo/<hezuoHospitalId>/<facultyId>.html')
            ->addto($router);
        //---------------- hezuo  jiahao end ----------------    

        NamedRouterRule::create()
            ->controller('plussignchannel/xinzang')
            ->url('/jiahao/xinzang.htm')
            ->url('/jiahao/xinzang.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('plussignchannel/showdoctororderlist')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/doctor/<doctorusername>/yuyuejiahaolist.htm')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/doctor/<doctorusername>/yuyuejiahaolist.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('plussignchannel/index')
            ->url('/jiahao/index.htm')
            ->url('/jiahao/index.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('plussignchannel/notice')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/notice.htm')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/notice.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('plussignchannel/search')
            ->url('/jiahao/search.htm')
            ->url('/jiahao/search.html')
            //            ->templates('success', '/plussignchannel/search')
            //            ->templates('hezuo', '/plussignchannel/hezuo')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('plussignchannel/search')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>/hospital.htm')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>/hospital.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('plussignchannel/search')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>/hospitalfaculty/<hospitalId>/<facultyId>.htm')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>/hospitalfaculty/<hospitalId>/<facultyId>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('plussignchannel/search')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>/hospitalfaculty/<facultyId>.htm')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>/hospitalfaculty/<facultyId>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('plussignchannel/search')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>/faculty/<hospitalId>/<facultyKey>.htm')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>/faculty/<hospitalId>/<facultyKey>.html')
            ->addto($router); 

        NamedRouterRule::create()
            ->controller('plussignchannel/search')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>/faculty/<facultyKey>.htm')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>/faculty/<facultyKey>.html')
            ->addto($router);


        NamedRouterRule::create()
            ->controller('plussignchannel/search')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>/hospital/<hospitalId>.htm')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>/hospital/<hospitalId>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('plussignchannel/search')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>/hospitalfaculty/2006000.htm')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>/hospitalfaculty/2006000.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('plussignchannel/search')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>.htm')
            ->domain_url('http://'.URL_PREFIX.'jiahao.haodf.com','/<district>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/index')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/')
            ->domain_url('http://haodf.com','/')
            ->domain_url('http://3gdemo.haodf.com','/')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/ajaxgetcitybyip')
            ->url('/api/index/ajaxgetcitybyip')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/addComment')
            ->url('/api/doctor/addcomment')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/ajaxshowaddcomment')
            ->url('/api/doctor/ajaxshowaddcomment')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/ajaxGetDoctorList')
            ->url('/api/index/ajaxgetdoctorlist')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/commentList')
            ->url('/doctor/<id>/jibingjingyan/<disease_key>/<p>.htm')
            ->url('/doctor/<id>/jibingjingyan/<disease_key>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/ajaxgetpresentlist')
            ->url('/api/doctor/<id>/ajaxGetPresentList.htm')
            ->url('/api/doctor/<id>/ajaxGetPresentList.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/commentList')
            ->url('/doctor/<id>/<comment_type>/<order>/<p>.htm')
            ->url('/doctor/<id>/<comment_type>/<order>/<p>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/commentList')
            ->url('/doctor/<id>/<comment_type>/<p>.htm')
            ->url('/doctor/<id>/<comment_type>/<p>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/commentList')
            ->url('/doctor/<id>/<comment_type>.htm')
            ->url('/doctor/<id>/<comment_type>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/showdetail')
            ->url('/doctor/<id>.htm')
            ->url('/doctor/<id>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/ajaxgetlatestonlinespaces')
            ->url('/api/doctor/ajaxgetlatestonlinespaces')
            ->templates('zhuanti', '/doctor/ajaxgetlatestonlinespacesforzhuanti')
            ->templates('zixun', '/doctor/ajaxgetlatestonlinespacesforzixun')
            ->templates('default', '/doctor/ajaxgetlatestonlinespaces')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/ajaxgetdiseasehospitals')
            ->url('/api/doctor/ajaxgetdiseasehospitals')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/ajaxgetlatestonlinediseasedoctors')
            ->url('/api/doctor/ajaxgetlatestonlinediseasedoctors')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/completecomment')
            ->url('/api/doctor/completecomment')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/showreply')
            ->url('/<username>/comment/<commentid>.htm') 
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/addDoctorCommentPost')
            ->url('/api/<username>/dcpost/<commentid>.htm')
            ->url('/<username>/api/dcpost/<commentid>.htm')
            ->addto($router);

        // ----------------------------
        NamedRouterRule::create()
            ->controller('index/facultylist')
            ->url('/keshi/list.htm')
            ->url('/keshi/list.html')
            ->addto($router);


        NamedRouterRule::create()
            ->controller('index/hospitallist')
            ->url('/yiyuan/<prov>/<city>/list.htm')
            ->url('/yiyuan/<prov>/<city>/list.html')
            ->url('/yiyuan/<prov>/list.htm')
            ->url('/yiyuan/<prov>/list.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/hospitallist')
            ->url('/yiyuan/<prov>/<city>/sanjia.htm') 
            ->url('/yiyuan/<prov>/<city>/sanjia.html') 
            ->url('/yiyuan/<prov>/sanjia.htm')
            ->url('/yiyuan/<prov>/sanjia.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/diseaselist')
            ->url('/jibing/list.htm')
            ->url('/jibing/list.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/iphone')
            ->url('/iphone/index.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/suggest')
            ->url('/suggest/index.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/sitemap')
            ->url('/sitemap/index.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/sitemapdiseaselist')
            ->url('/sitemap/sitemapdiseaselist.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/sitemaphospitallist')
            ->url('/sitemap/sitemaphospitallist.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/diseaselist')
            ->url('/jibing/<key>/list.htm')
            ->url('/jibing/<key>/list.html')
            ->addto($router);


        NamedRouterRule::create()
            ->controller('index/index')
            ->domain_url('http://'.getenv('SERVER_NAME'), '/')
            ->domain_url('http://3gdemo.haodf.com', '/')
            ->addto($router);    

        NamedRouterRule::create()
            ->controller('doctor/commentList')
            ->url('/doctor/<id>/<comment_type>/<order>/<p>.htm')
            ->url('/doctor/<id>/<comment_type>/<order>/<p>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/commentList')
            ->url('/doctor/<id>/<comment_type>/<p>.htm')
            ->url('/doctor/<id>/<comment_type>/<p>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/commentList')
            ->url('/doctor/<id>/<comment_type>.htm')
            ->url('/doctor/<id>/<comment_type>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('doctor/showdetail')
            ->url('/doctor/<id>.htm')
            ->url('/doctor/<id>.html')
            ->addto($router);

        // ----------------------------
        NamedRouterRule::create()
            ->controller('index/facultylist')
            ->url('/keshi/list.htm')
            ->url('/keshi/list.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/diseaselist')
            ->url('/jibing/list.htm')
            ->url('/jibing/list.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/diseaselist')
            ->url('/jibing/<key>/list.htm')
            ->url('/jibing/<key>/list.html')
            ->addto($router);

        // ----------- jibing --------------------
        NamedRouterRule::create()
            ->controller('disease/caseInfo')
            ->url('/jibing/<key>/zixun.html')
            ->url('/jibing/<key>/zixun.htm')
            ->templates('diseasepage', '/diseasepage/zixun')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/popwindow')
            ->url('/api/popwindow.html')
            ->url('/api/popwindow.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/article')
            ->url('/jibing/<key>/wenzhang.html')
            ->url('/jibing/<key>/wenzhang.htm')
            ->url('/jibing/<key>/wenzhang/rootLableId_<rootLableId>.html')
            ->url('/jibing/<key>/wenzhang/rootLableId_<rootLableId>.htm')
            ->url('/jibing/<key>/wenzhang/lableid_<lableid>.html')
            ->url('/jibing/<key>/wenzhang/lableid_<lableid>.htm')
            ->url('/jibing/<key>/wenzhang/type_<type>.html')
            ->url('/jibing/<key>/wenzhang/type_<type>.htm')
            ->templates('diseasepage', '/diseasepage/article')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/hospital')
            ->url('/jibing/<key>/yiyuan.html')
            ->url('/jibing/<key>/yiyuan.htm')
            ->templates('diseasepage', '/diseasepage/hospital')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/hospital')
            ->url('/jibing/<key>/yiyuan/<province>.html')
            ->url('/jibing/<key>/yiyuan/<province>.htm')
            ->templates('diseasepage', '/diseasepage/hospital')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/doctor')
            ->url('/jibing/<key>/daifu.html')
            ->url('/jibing/<key>/daifu.htm')
            ->url('/jibing/<key>/daifu_<p>_<province>.htm')
            ->url('/jibing/<key>/daifu_<p>.htm')
            ->templates('diseasepage', '/diseasepage/doctor')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/doctor')
            ->url('/jibing/<key>/daifu/<province>.html')
            ->url('/jibing/<key>/daifu/<province>.htm')
            ->templates('diseasepage', '/diseasepage/doctor')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/zhuanti')
            ->url('/jibing/zhuanti/<key>/<queryType>/rootLableKey_<rootLableKey>.html')
            ->url('/jibing/zhuanti/<key>/<queryType>/rootLableKey_<rootLableKey>.htm')
            ->url('/jibing/zhuanti/<key>/<queryType>/leafLableKey_<leafLableKey>.html')
            ->url('/jibing/zhuanti/<key>/<queryType>/leafLableKey_<leafLableKey>.htm')
            ->url('/jibing/zhuanti/<key>/<queryType>/cmsCategory_<cmsCategory>.html')
            ->url('/jibing/zhuanti/<key>/<queryType>/cmsCategory_<cmsCategory>.htm')
            ->url('/jibing/zhuanti/<key>/<queryType>.html')
            ->url('/jibing/zhuanti/<key>/<queryType>.htm')
            ->url('/jibing/zhuanti/<key>.html')
            ->url('/jibing/zhuanti/<key>.htm')
            ->templates('diseasepage', '/diseasepage/zhuanti')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/info')
            ->url('/jibing/<key>/jieshao.html')
            ->url('/jibing/<key>/jieshao.htm')
            ->templates('diseasepage', '/diseasepage/info')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/online')
            ->url('/jibing/<key>/zaixian.html')
            ->url('/jibing/<key>/zaixian.htm')            
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/ajaxshowrecommend')
            ->url('/api/ajaxShowRecommend.html')
            ->url('/api/ajaxShowRecommend.htm')
            ->templates('newindex', '/disease/newindex')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('disease/index')
            ->url('/jibing/<key>.html')
            ->url('/jibing/<key>.htm')
            ->templates('newindex', '/disease/newindex')
            ->templates('diseasepage', '/diseasepage/index')
            ->addto($router);


        NamedRouterRule::create()
            ->controller('disease/lablelist')
            ->url('/lablelist/<diseaseid>/<lableid>.html')
            ->url('/lablelist/<diseaseid>/<lableid>.htm')            
            ->addto($router);

        // ----------- hospital faculty --------------------
        NamedRouterRule::create()
            ->controller('hospitalfaculty/info')
            ->url('/faculty/<id>/jieshao.html')
            ->url('/faculty/<id>/jieshao.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospitalfaculty/caseInfo')
            ->url('/faculty/<id>/zixun.html')
            ->url('/faculty/<id>/zixun.htm')
            ->url('/faculty/<id>/zixun_<page>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospitalfaculty/letter')
            ->url('/faculty/<id>/letter.html')
            ->url('/faculty/<id>/letter.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospitalfaculty/doctor')
            ->url('/faculty/<id>/daifu.html')
            ->url('/faculty/<id>/daifu.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospitalfaculty/schedule')
            ->url('/faculty/<id>/menzhen.html')
            ->url('/faculty/<id>/menzhen.htm')
            ->url('/faculty/<id>/menzhen_<p>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospitalfaculty/article')
            ->url('/faculty/<id>/wenzhang.html')
            ->url('/faculty/<id>/wenzhang.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospitalfaculty/index')
            ->url('/faculty/<id>.html')
            ->url('/faculty/<id>.htm')
            ->templates('success', '/hospitalfaculty/index')
            ->templates('virtualfaculty', '/hospitalfaculty/virtualindex')
            ->addto($router);

        // ----------- hospital --------------------           
        NamedRouterRule::create()
            ->controller('hospital/schedule')
            ->url('/hospital/<id>/menzhen.html')
            ->url('/hospital/<id>/menzhen.htm')
            ->url('/hospital/<id>/menzhen_<p>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/info')
            ->url('/hospital/<id>/jieshao.html')
            ->url('/hospital/<id>/jieshao.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/hospitalExpertList')
            ->url('/hospital/<id>/jibing.html')
            ->url('/hospital/<id>/jibing.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/doctorlist')
            ->url('/hospital/<id>/<faculty_id>/daifu.html')
            ->url('/hospital/<id>/<faculty_id>/daifu.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/doctorlist')
            ->url('/hospital/<id>/daifu.html')
            ->url('/hospital/<id>/daifu.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/caselist')
            ->url('/hospital/<id>/zixun.html')
            ->url('/hospital/<id>/zixun.htm')
            ->url('/hospital/<id>/zixun_<page>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/announce')
            ->url('/hospital/<id>/announce.html')
            ->url('/hospital/<id>/announce.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/articlelist')
            ->url('/hospital/<id>/wenzhang.html')
            ->url('/hospital/<id>/wenzhang.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/map')
            ->url('/hospital/<id>/map.html')
            ->url('/hospital/<id>/map.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/faculty')
            ->url('/hospital/<id>/keshi.html')
            ->url('/hospital/<id>/keshi.htm')
            ->addto($router);

        //科室专家排行页
        NamedRouterRule::create()
            ->controller('hospital/facultyExpertList')
            ->url('/tuijian/keshi/<id>/<faculty_id>.html')
            ->url('/tuijian/keshi/<id>/<faculty_id>.htm')
            ->addto($router);
        //医院专家排行页
        NamedRouterRule::create()
            ->controller('hospital/hospitalExpertList')
            ->url('/tuijian/yiyuan/<id>.html')
            ->url('/tuijian/yiyuan/<id>.htm')
            ->addto($router);
        //科室疾病页
        NamedRouterRule::create()
            ->controller('hospital/disease')
            ->url('/tuijian/<id>/<faculty_id>/<disease_key>.html')
            ->url('/tuijian/<id>/<faculty_id>/<disease_key>.htm')
            ->addto($router);
        //医院疾病页   
        NamedRouterRule::create()
            ->controller('hospital/disease')
            ->url('/tuijian/<id>/<disease_key>.html')
            ->url('/tuijian/<id>/<disease_key>.htm')
            ->url('/hospital/<id>/<disease_key>.html')
            ->url('/hospital/<id>/<disease_key>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/index')
            ->url('/hospital/<id>.html')
            ->url('/hospital/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('hospital/yiyuanjibing')
            ->url('/yiyuanjibing/<id>\.htm')
            ->url('/yiyuanjibing/<id>\.html')
            ->addto($router);

        // ----------- faculty --------------------              
        NamedRouterRule::create()
            ->controller('faculty/hospitalfacultylist')
            ->url('/keshi/<id>/keshi.html')
            ->url('/keshi/<id>/keshi.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('faculty/hospitalfacultylist')
            ->url('/keshi/<id>/keshi/<prov>.html')
            ->url('/keshi/<id>/keshi/<prov>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('faculty/doctorlist')
            ->url('/keshi/<id>/daifu.html')
            ->url('/keshi/<id>/daifu.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('faculty/doctorlist')
            ->url('/keshi/<id>/daifu/<prov>.html')
            ->url('/keshi/<id>/daifu/<prov>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('faculty/doctorlist')
            ->url('/keshi/<id>/jiuyi.html')
            ->url('/keshi/<id>/jiuyi.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('faculty/online')
            ->url('/keshi/<id>/zaixian.html')
            ->url('/keshi/<id>/zaixian.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('faculty/online')
            ->url('/keshi/<id>/zaixian/<prov>.html')
            ->url('/keshi/<id>/zaixian/<prov>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('faculty/articlelist')
            ->url('/keshi/<id>/wenzhang.html')
            ->url('/keshi/<id>/wenzhang.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('faculty/caselist')
            ->url('/keshi/<id>/zixun.html')
            ->url('/keshi/<id>/zixun.htm')
            ->addto($router);
        NamedRouterRule::create()
            ->controller('faculty/info')
            ->url('/keshi/<id>/jieshao.html')
            ->url('/keshi/<id>/jieshao.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('faculty/index')
            ->url('/keshi/<id>.html')
            ->url('/keshi/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('index/healthnews')
            ->url('/news/jiankang.htm')
            ->url('/news/jiankang.html')
            ->addto($router);

        //-------------BaiduApp------------
        NamedRouterRule::create()
            ->controller('app/areaIndex')
            ->url('/baiduapp/hospital/all.html')
            ->url('/baiduapp/hospital/all.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/hospitalList')
            ->url('/baiduapp/hospital/<prov>/<city>/list.html')
            ->url('/baiduapp/hospital/<prov>/<city>/list.htm')
            ->url('/baiduapp/hospital/<prov>/list.html')
            ->url('/baiduapp/hospital/<prov>/list.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/hospitaldoctorinfo')
            ->url('/baiduapp/hospital/doctorinfo/<doctorid>.html')
            ->url('/baiduapp/hospital/doctorinfo/<doctorid>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/hospitaldoctorresume')
            ->url('/baiduapp/hospital/doctorresume/<doctorid>.html')
            ->url('/baiduapp/hospital/doctorresume/<doctorid>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/hospitaldoctorschedule')
            ->url('/baiduapp/hospital/doctorschedule/<doctorid>.html')
            ->url('/baiduapp/hospital/doctorschedule/<doctorid>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/hospitalpatientsvote')
            ->url('/baiduapp/hospital/patientsvote/<doctorid>.html')
            ->url('/baiduapp/hospital/patientsvote/<doctorid>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/hospitalexperience')
            ->url('/baiduapp/hospital/experience/<doctorid>/<key>.html')
            ->url('/baiduapp/hospital/experience/<doctorid>/<key>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/hospitalexperiencedetail')
            ->url('/baiduapp/hospital/experiencedetail/<doctorid>/<key>/<commentid>.html')
            ->url('/baiduapp/hospital/experiencedetail/<doctorid>/<key>/<commentid>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/index')
            ->url('/baiduapp/index.html')
            ->url('/baiduapp/index.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/index_secondfaculty')
            ->url('/baiduapp/index_secondfaculty.html')
            ->url('/baiduapp/index_secondfaculty.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/index_thirddiseases')
            ->url('/baiduapp/index_thirddiseases.html')
            ->url('/baiduapp/index_thirddiseases.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/diseasedoctor')
            ->url('/baiduapp/diseasedoctor/<key>.html')
            ->url('/baiduapp/diseasedoctor/<key>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/diseasedoctorinfo')
            ->url('/baiduapp/<key>/doctorinfo/<id>.html')
            ->url('/baiduapp/<key>/doctorinfo/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/doctorresume')
            ->url('/baiduapp/<key>/doctorresume/<id>.html')
            ->url('/baiduapp/<key>/doctorresume/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/doctorschedule')
            ->url('/baiduapp/<key>/doctorschedule/<id>.html')
            ->url('/baiduapp/<key>/doctorschedule/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/patientsvote')
            ->url('/baiduapp/<key>/patientsvote/<id>.html')
            ->url('/baiduapp/<key>/patientsvote/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/experience')
            ->url('/baiduapp/<key>/experience/<id>.html')
            ->url('/baiduapp/<key>/experience/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/experiencedetail')
            ->url('/baiduapp/<key>/experiencedetail/<id>/<comment_id>.html')
            ->url('/baiduapp/<key>/experiencedetail/<id>/<comment_id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/hospitalsearch')
            ->url('/baiduapp/hospitalsearch.htm')
            ->url('/baiduapp/hospitalsearch.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/lateststopschedule')
            ->url('/baiduapp/lateststopschedule/<hospitalid>.htm')
            ->url('/baiduapp/lateststopschedule/<hospitalid>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/hospitalintro')
            ->url('/baiduapp/hospitalintro/<hospitalid>.htm')
            ->url('/baiduapp/hospitalintro/<hospitalid>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/hospitalinfo')
            ->url('/baiduapp/hospitalinfo/<hospitalid>.htm')
            ->url('/baiduapp/hospitalinfo/<hospitalid>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/hospitalfacultylist')
            ->url('/baiduapp/hospitalfacultylist/<hospitalid>.htm')
            ->url('/baiduapp/hospitalfacultylist/<hospitalid>.html')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('app/hospitalfacultydoctorlist')
            ->url('/baiduapp/hospitalfacultydoctorlist/<hospitalfacultyid>.htm')
            ->url('/baiduapp/hospitalfacultydoctorlist/<hospitalfacultyid>.html')
            ->addto($router);


        NamedRouterRule::create()
            ->controller('mobile/ajaxcheckmobile')
            ->url('/mobile/ajaxcheckmobile')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('mobile/sendsms')
            ->url('/mobile/sendsms')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('mobile/mobilebubble')
            ->url('/api/mobile/mobilebubble')
            ->addto($router);

        //海外就诊start             
        NamedRouterRule::create()
            ->controller('oversea/overseadisease')
            ->url('/haiwai_jibing/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('oversea/overseahospitalfaculty')
            ->url('/haiwai_jigou/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('oversea/overseahospital')
            ->url('/haiwai_yiyuan/<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('oversea/newslist')
            ->url('/haiwai/newslist.htm')
            ->templates('newoversea', '/oversea/newoversea/newslist')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('oversea/faq')
            ->url('/haiwai/faq.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('oversea/servicedetail')
            ->url('/haiwai/fuwu.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('oversea/showoverseaorder')
            ->url('/haiwai/shenqing.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('oversea/articledetail')
            ->url('/haiwai/article_<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('oversea/zhuantidetail')
            ->url('/haiwai/zhuanti_<id>.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('oversea/index')
            ->url('/haiwai/')
            ->url('/haiwai')
            ->templates('newoversea', '/oversea/newoversea/index')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('oversea/anlilist')
            ->url('/haiwai/overseaanli.htm')
            ->templates('newoversea', '/oversea/newoversea/overseaanli')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('oversea/overseahospitallist')
            ->url('/haiwai/hospitalinfo.htm')
            ->templates('newoversea', '/oversea/newoversea/hospitalinfo')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('helper/present')
            ->url('/helper/present.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('helper/score')
            ->url('/info/scoreinfo.php')
            ->url('/helper/score.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('helper/patient')
            ->url('/helper/patient.htm')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('present/promotion')
            ->url('/api/present/promotion')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('thesis/ajaxgethits')
            ->url('/api/thesis/ajaxgethits')
            ->addto($router);

        NamedRouterRule::create()
            ->controller('thesis/detail')
            ->url('/thesis/<id>.htm')
            ->addto($router);
        NamedRouterRule::create()
            ->controller('paper/detail')
            ->url('/paperdetail/<ename>.htm')
            ->addto($router);

        //end

        FixedRouterRule::create()
            ->url('/<controller>/<action>')
            ->addto($router);
        return $router;

    }