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


PHP Application_Model_GlobalClass::getImgStatus方法代码示例

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


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

示例1: indexLocationAction

 public function indexLocationAction()
 {
     $db = new Application_Model_DbTable_DbGlobal();
     $formFilter = new Product_Form_FrmProductFilter();
     $frmsearch = $formFilter->searchLocation();
     $this->view->formFilter = $frmsearch;
     $list = new Application_Form_Frmlist();
     $sql = "select loc.LocationId, loc.Name, loc.contact, loc.phone,username, loc.status,remark \n\t\tfrom tb_sublocation AS loc\n\t\tINNER JOIN rsv_acl_user as u ON\n\t\tu.user_id=loc.user_id\n\t\tWHERE Name!='' ";
     if ($this->getRequest()->isPost()) {
         $post = $this->getRequest()->getPost();
         if ($post['location_name'] != '') {
             $sql .= " AND Name LIKE '%" . $post['location_name'] . "%'";
         }
         if ($post['contact_name'] != '') {
             $sql .= " AND contact LIKE '%" . $post['contact_name'] . "%'";
         }
         if ($post['address_name'] != '') {
             $sql .= " AND stock_add LIKE '%" . $post['address_name'] . "%'";
         }
         if ($post['phone'] != '') {
             $sql .= " AND phone LIKE '%" . $post['phone'] . "%'";
         }
     }
     $sql .= " ORDER BY loc.LocationId DESC";
     $rows = $db->getGlobalDb($sql);
     $columns = array("LOCATION_NAME", "CON_NAME", "PHONE_NUM", "BY_USER", "STATUS", "REMARK");
     $link = array('module' => 'product', 'controller' => 'index', 'action' => 'detail-stock');
     $urlEdit = BASE_URL . "/product/index/update-stock";
     $glClass = new Application_Model_GlobalClass();
     $rows = $glClass->getImgStatus($rows, BASE_URL, true);
     $this->view->list = $list->getCheckList(1, $columns, $rows, array('name' => $link), $urlEdit);
     Application_Model_Decorator::removeAllDecorator($formFilter);
 }
开发者ID:pingitgroup,项目名称:stockpingitgroup,代码行数:33,代码来源:IndexController.php


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