当前位置: 首页>>代码示例>>PHP>>正文


PHP Application_Model_DbTable_DbGlobal::getStaffNumberByBranch方法代码示例

本文整理汇总了PHP中Application_Model_DbTable_DbGlobal::getStaffNumberByBranch方法的典型用法代码示例。如果您正苦于以下问题:PHP Application_Model_DbTable_DbGlobal::getStaffNumberByBranch方法的具体用法?PHP Application_Model_DbTable_DbGlobal::getStaffNumberByBranch怎么用?PHP Application_Model_DbTable_DbGlobal::getStaffNumberByBranch使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Application_Model_DbTable_DbGlobal的用法示例。


在下文中一共展示了Application_Model_DbTable_DbGlobal::getStaffNumberByBranch方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getstaffcodeAction

 function getstaffcodeAction(){
 	if($this->getRequest()->isPost()){
 		$db = new Application_Model_DbTable_DbGlobal();
 		$_data = $this->getRequest()->getPost();
 		$id = $db->getStaffNumberByBranch($_data['branch_id']);
 		print_r(Zend_Json::encode($id));
 		exit();
 	}
 }
开发者ID:samlanh,项目名称:lnms,代码行数:9,代码来源:CoController.php

示例2: FrmAddCO

	public function FrmAddCO($_data=null){
		
		$request=Zend_Controller_Front::getInstance()->getRequest();
		
		$_title = new Zend_Dojo_Form_Element_TextBox('adv_search');
		$_title->setAttribs(array('dojoType'=>$this->tvalidate,
				'onkeyup'=>'this.submit()',
				'placeholder'=>$this->tr->translate("SEARCH_STAFF_INFO")
				));
		$_title->setValue($request->getParam("adv_search"));
		
		$_status_search=  new Zend_Dojo_Form_Element_FilteringSelect('status_search');
		$_status_search->setAttribs(array('dojoType'=>$this->filter));
		$_status_opt = array(
				-1=>$this->tr->translate("ALL"),
				1=>$this->tr->translate("ACTIVE"),
				0=>$this->tr->translate("DACTIVE"));
		$_status_search->setMultiOptions($_status_opt);
		$_status_search->setValue($request->getParam("status_search"));
		
		$_btn_search = new Zend_Dojo_Form_Element_SubmitButton('btn_search');
		$_btn_search->setAttribs(array(
				'dojoType'=>'dijit.form.Button',
				'iconclass'=>'dijitIconSearch'
		));
		$db = new Application_Model_DbTable_DbGlobal();
		$_co_id = new Zend_Dojo_Form_Element_TextBox('co_id');
		$_co_id->setAttribs(array('dojoType'=>$this->tvalidate,'required'=>'true','class'=>'fullside','readOnly'=>true));
		$_co_id->setValue($db->getStaffNumberByBranch(1));
		
		
		$_branch_id = new Zend_Dojo_Form_Element_FilteringSelect('branch_id');
		$_branch_id->setAttribs(array(
				'dojoType'=>'dijit.form.FilteringSelect',
				'class'=>'fullside',
				'required' =>'true',
				'Onchange'=>'getStaffCode();'
		));
		
		$rows = $db->getAllBranchName();
		$options=array(''=>'---Select Branch---');
		if(!empty($rows))foreach($rows AS $row){
			$options[$row['br_id']]=$row['branch_namekh'];
		}
		$_branch_id->setMultiOptions($options);
		
		$_name_kh = new Zend_Dojo_Form_Element_TextBox('name_kh');
		$_name_kh->setAttribs(array(
				'dojoType'=>$this->tvalidate,
				'required'=>'true',
				'class'=>'fullside',
				));
		
		$_enname = new Zend_Dojo_Form_Element_TextBox('first_name');
		$_enname->setAttribs(array('dojoType'=>$this->tvalidate,'required'=>'true','class'=>'fullside',));
		
		$_lname = new Zend_Dojo_Form_Element_TextBox('last_name');
		$_lname->setAttribs(array('dojoType'=>$this->text,'class'=>'fullside',));
		
		$_sex = new Zend_Dojo_Form_Element_FilteringSelect('co_sex');
		$_sex->setAttribs(array(
				'dojoType'=>'dijit.form.FilteringSelect',
				'class'=>'fullside',
		));
		$opt = array(1=>"Male",2=>"Femail");
		$_sex->setMultiOptions($opt);
		
		$_tel = new Zend_Dojo_Form_Element_TextBox('tel');
		$_tel->setAttribs(array('dojoType'=>$this->tvalidate,'class'=>'fullside',));
		
		$_position = new Zend_Dojo_Form_Element_FilteringSelect('position');
		$_position->setAttribs(array('dojoType'=>$this->filter,
				'required'=>'true','class'=>'fullside',));
		
		$db = new Application_Model_DbTable_DbGlobal();
		$opt = $db->getAllStaffPosition(null,1);
		$_position->setMultiOptions($opt);
		
		
		$_department= new Zend_Dojo_Form_Element_FilteringSelect('department_id');
		$_department->setAttribs(array('dojoType'=>$this->filter,
				'required'=>'true','class'=>'fullside','OnChange'=>'popupDepartment()'));
		
		$db = new Application_Model_DbTable_DbGlobal();
		$opt = $db->getAllDepartment(null,1);
		$_department->setMultiOptions($opt);
		
		$_figer_print_id=new Zend_Dojo_Form_Element_TextBox('figer_print_id');
		$_figer_print_id->setAttribs(array(
				'dojoType'=>'dijit.form.TextBox',
				'class'=>'fullside'
				));
		
		$_email = new Zend_Dojo_Form_Element_ValidationTextBox('email');
		$_email->setAttribs(array(
				'dojoType'=>'dijit.form.ValidationTextBox',
// 				'dojoProps'=>"regExp: '/^[a-zA-Z]+[a-zA-Z0-9]*@[a-zA-Z]+[a-zA-Z0-9][a-zA-Z]{2,4}([a-zA-Z]{2,4})?$/'",
				'class'=>'fullside',
				));
		
//.........这里部分代码省略.........
开发者ID:samlanh,项目名称:lnms,代码行数:101,代码来源:FrmCO.php


注:本文中的Application_Model_DbTable_DbGlobal::getStaffNumberByBranch方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。