本文整理汇总了PHP中Application_Model_GlobalClass::getImgActive方法的典型用法代码示例。如果您正苦于以下问题:PHP Application_Model_GlobalClass::getImgActive方法的具体用法?PHP Application_Model_GlobalClass::getImgActive怎么用?PHP Application_Model_GlobalClass::getImgActive使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Application_Model_GlobalClass
的用法示例。
在下文中一共展示了Application_Model_GlobalClass::getImgActive方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: indexAction
public function indexAction(){
try{
$db = new Group_Model_DbTable_DbReturnCollteral();
if($this->getRequest()->isPost()){
$search=$this->getRequest()->getPost();
}
else{
$search = array(
'adv_search' => '',
'status_search' => -1,
'start_date'=>date('Y-m-d'),
'end_date'=>date('Y-m-d'),
'branch_id'=>'');
}//print_r($search);exit();
$rs_rows= $db->getAllReturnCollteral($search);//call frome model
$glClass = new Application_Model_GlobalClass();
$rs_rowss = $glClass->getImgActive($rs_rows, BASE_URL, true);
$list = new Application_Form_Frmtable();
$collumns = array("BRANCH_NAME","CUSTOMER_NAME","GIVER_NAME","RECEIVER_NAME","DATE","NOTE","STATUS","BY_USER");
$link=array(
'module'=>'group','controller'=>'Returncollteral','action'=>'edit',
);
$this->view->list=$list->getCheckList(0, $collumns,$rs_rowss,array('branch_id'=>$link,'client_name'=>$link,'giver_name'=>$link,'receiver_name'=>$link,'date'=>$link));
}catch (Exception $e){
Application_Form_FrmMessage::message("Application Error");
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
$fm = new Group_Form_Frmreturncollteral();
$frm = $fm->FrmReturnCollteral();
Application_Model_Decorator::removeAllDecorator($frm);
$this->view->frm_returnCollteral = $frm;
}
示例2: indexAction
public function indexAction()
{
try {
$db = new Accounting_Model_DbTable_DbChartaccount();
if ($this->getRequest()->isPost()) {
$search = $this->getRequest()->getPost();
} else {
$search = array('adv_search' => '', 'status' => -1);
}
$rs_rows = $db->getAllchartaccounts($search);
$glClass = new Application_Model_GlobalClass();
$rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
$list = new Application_Form_Frmtable();
$collumns = array("ACCOUNT_TYPE", "PARENT", "CATEGORY", "ACCOUNT_CODE", "ACCOUNT_NAME_EN", "ACCOUNT_NAME_KH", "STATUS");
$link = array('module' => 'accounting', 'controller' => 'chartaccount', 'action' => 'edit');
$this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('account_name_en' => $link));
} catch (Exception $e) {
Application_Form_FrmMessage::message("Application Error");
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
$fm = new Application_Form_FrmAdvanceSearch();
$frm = $fm->AdvanceSearch();
Application_Model_Decorator::removeAllDecorator($frm);
$this->view->frm_search = $frm;
$fms = new Accounting_Form_FrmChartaccount();
$frms = $fms->FrmChartaccount();
Application_Model_Decorator::removeAllDecorator($frms);
$this->view->frm_chartaccount = $frms;
}
示例3: indexAction
function indexAction()
{
try{
$db = new Group_Model_DbTable_DbClientBlackList();
if($this->getRequest()->isPost()){
$search=$this->getRequest()->getPost();
}
else{
$search = array(
'adv_search' => '',
'status_search' => -1,
'start_date'=> date('Y-m-d'),
'end_date'=>date('Y-m-d'));
}
$rs_row= $db->getAllBlackListInList($search);//call frome model
$glClass = new Application_Model_GlobalClass();
$rs_rows = $glClass->getImgActive($rs_row, BASE_URL, true);
$list = new Application_Form_Frmtable();
$collumns = array("BRANCH_NAME","CUSTOMER_CODE","CUSTOMER_NAME","SEX","SITU_STATUS","NATIONAL_ID","NUMBER","REASON","DATE","STATUS");
$link=array(
'module'=>'group','controller'=>'Clientblacklist','action'=>'edit',
);
$this->view->list=$list->getCheckList(0, $collumns,$rs_rows,array('name_kh'=>$link,'name_en'=>$link,'client_number'=>$link));
}catch (Exception $e){
Application_Form_FrmMessage::message("Application Error");
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
$frm = new Group_Form_FrmClientBlackList();
$frm = $frm->FrmClientBlackList();
Application_Model_Decorator::removeAllDecorator($frm);
$this->view->frm_search = $frm;
}
示例4: indexAction
public function indexAction()
{
try {
$db = new Other_Model_DbTable_DbCommune();
if ($this->getRequest()->isPost()) {
$search = $this->getRequest()->getPost();
} else {
$search = array('adv_search' => '', 'status' => -1);
}
$rs_rows = $db->getAllCommune($search);
$glClass = new Application_Model_GlobalClass();
$rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
$list = new Application_Form_Frmtable();
$collumns = array("CommuneName Kh", "CommuneName En", "District Name", "Date", "Status", "By");
$link = array('module' => 'other', 'controller' => 'Commune', 'action' => 'edit');
$this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('commune_namekh' => $link, 'district_name' => $link, 'commune_name' => $link));
} catch (Exception $e) {
Application_Form_FrmMessage::message("Application Error");
echo $e->getMessage();
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
$frm = new Application_Form_FrmAdvanceSearch();
$frm = $frm->AdvanceSearch();
Application_Model_Decorator::removeAllDecorator($frm);
$this->view->frm_search = $frm;
}
示例5: indexAction
public function indexAction()
{
try {
$db = new Accounting_Model_DbTable_DbAsset();
// if($this->getRequest()->isPost()){
// $search=$this->getRequest()->getPost();
// }
// else{
// $search = array(
// 'adv_search' => '',
// 'status' => -1);
// }
$rs_rows = $db->getAllAsset($search = null);
//call frome model
$glClass = new Application_Model_GlobalClass();
$rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
$list = new Application_Form_Frmtable();
$collumns = array("Branch_id ", "Fixed_Assetname ", "Fixed_Asset_Type", "Asset_Cost", "Usefull_Life", "Salvagevalue", "Payment_method", "Status", "Note");
$link = array('module' => 'accounting', 'controller' => 'FixedAsset', 'action' => 'edit');
$this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('fixed_assetname' => $link, 'fixed_asset_type' => $link, 'asset_cost' => $link));
} catch (Exception $e) {
Application_Form_FrmMessage::message("Application Error");
echo $e->getMessage();
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
}
示例6: indexAction
public function indexAction()
{
try {
$db = new Other_Model_DbTable_DbCreditOfficer();
if ($this->getRequest()->isPost()) {
$search = $this->getRequest()->getPost();
} else {
$search = array('adv_search' => '', 'status' => -1);
}
$rs_rows = $db->getAllCreditOfficer($search);
$glClass = new Application_Model_GlobalClass();
$rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true, 1);
$list = new Application_Form_Frmtable();
$collumns = array("CODE", "Name Khmer", "Name In ENG", "National ID", "Address", "Tel", "Email", "Degree", "Status");
$link = array('module' => 'other', 'controller' => 'co', 'action' => 'edit');
$this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('co_code' => $link, 'co_khname' => $link, 'co_engname' => $link));
} catch (Exception $e) {
Application_Form_FrmMessage::message("Application Error");
echo $e->getMessage();
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
$frm = new Application_Form_FrmAdvanceSearch();
$frm = $frm->AdvanceSearch();
Application_Model_Decorator::removeAllDecorator($frm);
$this->view->frm_search = $frm;
}
示例7: indexAction
public function indexAction()
{
try {
$db = new Other_Model_DbTable_DbDistrict();
if ($this->getRequest()->isPost()) {
$search = $this->getRequest()->getPost();
} else {
$search = array('adv_search' => '', 'search_status' => -1);
}
$rs_rows = $db->getAllDistrict($search);
$glClass = new Application_Model_GlobalClass();
$rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true, null, 1);
$list = new Application_Form_Frmtable();
$collumns = array("DISTRICT_KH", "DISTRICT_ENG", "DISPLAY_BY", "PROVINCE", "DATE", "STATUS", "BY");
$link = array('module' => 'other', 'controller' => 'district', 'action' => 'edit');
$this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('district_name' => $link, 'district_namekh' => $link));
} catch (Exception $e) {
Application_Form_FrmMessage::message("Application Error");
echo $e->getMessage();
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
$fm = new Other_Form_FrmDistrict();
$frm = $fm->FrmAddDistrict();
Application_Model_Decorator::removeAllDecorator($frm);
$this->view->frm_district = $frm;
}
示例8: indexAction
public function indexAction()
{
try {
$db = new Other_Model_DbTable_DbHoliday();
if ($this->getRequest()->isPost()) {
$search = $this->getRequest()->getPost();
} else {
$search = array('adv_search' => '', 'search_status' => -1, 'start_date' => date('Y-m-01'), 'end_date' => date('Y-m-d'));
}
$rs_rows = $db->getAllHoliday($search);
$glClass = new Application_Model_GlobalClass();
$rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
$list = new Application_Form_Frmtable();
$collumns = array("HOLIDAY_NAME", "Amount Day", "START_DATE", "END_DATE", "NOTE", "STATUS", "BY");
$link = array('module' => 'other', 'controller' => 'holiday', 'action' => 'edit');
$this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('holiday_name' => $link, 'start_date' => $link, 'amount_day' => $link));
} catch (Exception $e) {
Application_Form_FrmMessage::message("Application Error");
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
$frm = new Other_Form_FrmHoliday();
$frm = $frm->FrmAddHoliday();
Application_Model_Decorator::removeAllDecorator($frm);
$this->view->frm_holiday = $frm;
}
示例9: indexAction
public function indexAction()
{
$db_user = new Application_Model_DbTable_DbUsers();
$this->view->activelist = $this->activelist;
$this->view->user_typelist = $this->user_typelist;
$this->view->active = -1;
$_data = array('active' => -1, 'user_type' => -1, 'txtsearch' => '');
if ($this->getRequest()->isPost()) {
$_data = $this->getRequest()->getPost();
print_r($_data);
}
$rs_rows = $db_user->getUserList($_data);
$_rs = array();
foreach ($rs_rows as $key => $rs) {
$_rs[$key] = array('id' => $rs['id'], 'name' => $rs['last_name'] . ' ' . $rs['name'], 'user_name' => $rs['user_name'], 'user_type' => $this->user_typelist[$rs['user_type']], 'status' => $rs['status']);
}
$list = new Application_Form_Frmtable();
if (!empty($_rs)) {
$glClass = new Application_Model_GlobalClass();
$rs_rows = $glClass->getImgActive($_rs, BASE_URL, true);
} else {
$result = Application_Model_DbTable_DbGlobal::getResultWarning();
}
$collumns = array("LASTNAME_FIRSTNAME", "USER_NAME", "USER_TYPE", "STATUS");
$link = array('module' => 'aclAcl', 'controller' => 'user', 'action' => 'edited');
$this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('cate_name' => $link, 'title' => $link));
}
示例10: indexAction
public function indexAction(){
try{
$db = new Payroll_Model_DbTable_DbDepartment();
if($this->getRequest()->isPost()){
$search=$this->getRequest()->getPost();
}
else{
$search = array(
'adv_search' => '',
'status_search' => -1);
}
$rs_rows= $db->getAllStaffDepartment($search);
$glClass = new Application_Model_GlobalClass();
$rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
$list = new Application_Form_Frmtable();
$collumns = array("DEPARTMENT_KH","DEPARTMENT_EN","DISPLAY_BY","DATE","STATUS","USER");
$link=array(
'module'=>'payroll','controller'=>'department','action'=>'edit',
);
$this->view->list=$list->getCheckList(0, $collumns,$rs_rows,array('department_kh'=>$link,'department_en'=>$link));
}catch (Exception $e){
Application_Form_FrmMessage::message("Application Error");
echo $e->getMessage();
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
$frm = new Payroll_Form_FrmDepartment();
$frm_partment=$frm->FrmAddDepartment();
Application_Model_Decorator::removeAllDecorator($frm_partment);
$this->view->frm_department = $frm_partment;
}
示例11: indexAction
public function indexAction()
{
try {
$db = new Tellerandexchange_Model_DbTable_DbClient();
if ($this->getRequest()->isPost()) {
$search = $this->getRequest()->getPost();
} else {
$search = array('adv_search' => '', 'status' => -1);
}
$rs_rows = $db->getAllClients($search);
$result = array();
foreach ($rs_rows as $key => $rs) {
$result[$key] = array('client_id' => $rs['client_id'], 'client_number' => $rs['client_number'], 'name_kh' => $rs['name_kh'], 'name_en' => $rs['name_en'], 'sex' => $this->sex[$rs['sex']], 'phone' => $rs['phone'], 'house' => $rs['house'], 'street' => $rs['street'], 'village_name' => $rs['village_name'], 'spouse_name' => $rs['spouse_name'], 'user_name' => $rs['user_name'], 'status' => $rs['status']);
}
$glClass = new Application_Model_GlobalClass();
$rs_rows = $glClass->getImgActive($result, BASE_URL, true);
$list = new Application_Form_Frmtable();
$collumns = array("Term", "Loan N.", "Date Due", "OS", "Principal", "Interest Rate", "Paid Principal", "Paid Interest Rate", "CO", "By", "status");
$link = array('module' => 'group', 'controller' => 'Client', 'action' => 'edit');
$this->view->list = $list->getCheckList(0, $collumns, array(), array('client_number' => $link, 'name_kh' => $link, 'name_en' => $link));
} catch (Exception $e) {
Application_Form_FrmMessage::message("Application Error");
echo $e->getMessage();
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
$frm = new Application_Form_FrmAdvanceSearch();
$frm = $frm->AdvanceSearch();
Application_Model_Decorator::removeAllDecorator($frm);
$this->view->frm_search = $frm;
}
示例12: indexAction
public function indexAction(){
try{
$db = new Payroll_Model_DbTable_DbSalary();
if($this->getRequest()->isPost()){
$search=$this->getRequest()->getPost();
}
else{
$search = array(
'adv_search' => '',
'status_search' => -1,
'from_date' =>date('Y-m-d'),
'to_date' => date('Y-m-d'),
);
}
$rs_rows= $db->getAllSalary($search);
$glClass = new Application_Model_GlobalClass();//status
$rs_rows = $glClass->getImgActive($rs_rows, BASE_URL,true);
$list = new Application_Form_Frmtable();
$collumns = array("BRANCH","STAFF_NAME","BASIC_SALARY","POSITION","DATE_START_WORK","DATE_OPEN_SALARY","DATE_END_CONTRACT","DATE","USER","STATUS","DETAIL");
$link=array(
'module'=>'payroll','controller'=>'salary','action'=>'edit',
);
$this->view->list=$list->getCheckList(0,$collumns,$rs_rows,array('branch_name'=>$link,'staff_id'=>$link,'basic_salary'=>$link,'detail'=>array('module'=>'payroll','controller'=>'salary','action'=>'detail')));
}catch (Exception $e){
Application_Form_FrmMessage::message("Application Error");
echo $e->getMessage();
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
$fm=new Payroll_Form_FrmSalary();
$frm = $fm->frmaddSalary();
Application_Model_Decorator::removeAllDecorator($frm);
$this->view->frm=$frm;
}
示例13: indexAction
public function indexAction()
{
try {
$db = new Accounting_Model_DbTable_DbAsset();
if ($this->getRequest()->isPost()) {
$search = $this->getRequest()->getPost();
} else {
$search = array('adv_search' => '', 'status' => -1);
}
$rs_rows = $db->getAllAsset($search);
$glClass = new Application_Model_GlobalClass();
$rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
$list = new Application_Form_Frmtable();
$collumns = array("BRANCH_NAME ", "FIXED_ASSETNAME ", "FIXED_ASSET_TYPE", "ASSET_COST", "PAY_TYPE", "USEFULL_LIFE", "SALVAGEVALUE", "TOTA_AMOUNT", "PAYMANT_MATHOD", "Status", "NOTE");
$link = array('module' => 'accounting', 'controller' => 'FixedAsset', 'action' => 'edit');
$this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('fixed_assetname' => $link, 'fixed_asset_type' => $link, 'asset_cost' => $link));
} catch (Exception $e) {
Application_Form_FrmMessage::message("Application Error");
echo $e->getMessage();
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
$fm = new Application_Form_FrmAdvanceSearch();
$frm = $fm->AdvanceSearch();
Application_Model_Decorator::removeAllDecorator($frm);
$this->view->frm_search = $frm;
$fms = new Accounting_Form_Frmasset();
$frms = $fms->FrmAsset();
Application_Model_Decorator::removeAllDecorator($frms);
$this->view->frm_fixedasset = $frms;
}
示例14: indexAction
public function indexAction()
{
try {
$db_make = new Vehicle_Model_DbTable_DbVehicle();
if ($this->getRequest()->isPost()) {
$search = $this->getRequest()->getPost();
//print_r($search);exit();
} else {
$search = array('adv_search' => '', 'make' => -1, 'model' => -1, 'submodel' => -1, 'search_status' => -1);
}
$rows = $db_make->getAllVehicle($search);
$glClass = new Application_Model_GlobalClass();
$rows = $glClass->getImgActive($rows, BASE_URL, true);
$list = new Application_Form_Frmtable();
$collumns = array("Vehicle Ref", "Year", "Make", "Model", "Sub Model", "Type", "Color", "Engine No", "Chassis No", "Frame No", "Plate No", "Date", "STATUS");
$link = array('module' => 'vehicle', 'controller' => 'index', 'action' => 'edit');
$this->view->list = $list->getCheckList(0, $collumns, $rows, array('reffer' => $link, 'year' => $link, 'make_id' => $link, 'model_id' => $link, 'sub_model' => $link, 'status' => $link, 'type' => $link));
} catch (Exception $e) {
Application_Form_FrmMessage::message("Application Error");
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
$db = new Application_Model_DbTable_DbGlobal();
$model = $db->getAllMake();
//array_unshift($model, array ( 'id' => -1, 'name' => 'Selected Make') );
$this->view->all_make = $model;
}
示例15: indexAction
public function indexAction()
{
try {
if ($this->getRequest()->isPost()) {
$_data = $this->getRequest()->getPost();
$search = array('title' => $_data['title'], 'status' => $_data['status_search']);
} else {
$search = array('title' => '', 'status' => -1);
}
$db = new Other_Model_DbTable_DbProvince();
$rs_rows = $db->getAllProvince($search);
$glClass = new Application_Model_GlobalClass();
$rs = $glClass->getImgActive($rs_rows, BASE_URL, true, null, 1);
$list = new Application_Form_Frmtable();
$collumns = array("EN_PROVINCE", "KH_PROVINCE", "DISPLAY_BY", "MODIFY_DATE", "STATUS", "BY_USER");
$link = array('module' => 'other', 'controller' => 'province', 'action' => 'edit');
$this->view->list = $list->getCheckList(0, $collumns, $rs, array('province_kh_name' => $link, 'province_en_name' => $link));
} catch (Exception $e) {
Application_Form_FrmMessage::message("Application Error");
Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
}
$frm = new Other_Form_FrmSearch();
$frm = $frm->searchProvinnce();
Application_Model_Decorator::removeAllDecorator($frm);
$this->view->frm_search = $frm;
}