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


PHP CommonModel::getCountryList方法代码示例

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


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

示例1: view_add

 /**
  * 增加一个分渠道
  * @author czq
  */
 public function view_add()
 {
     if ($_POST['submit']) {
         $data = array('title' => $_POST['title'], 'channelName' => $_POST['channelName'], 'transportId' => $_POST['transportId'], 'channelId' => $_POST['channelId'], 'partition' => $_POST['partition'], 'is_delete' => 0);
         WhChannelPartitionModel::insert($data);
         header("location:index.php?mod=whChannelPartition&act=index");
     } else {
         $transportlist = CommonModel::getShipingTypeList();
         $countrylist = CommonModel::getCountryList();
         $this->smarty->assign('countrylist', $countrylist);
         $this->smarty->assign('transportlist', $transportlist);
         $this->smarty->display('whChannelPartitionAdd.htm');
     }
 }
开发者ID:ohjack,项目名称:newErp,代码行数:18,代码来源:whChannelPartition.view.php

示例2: view_edit

 public function view_edit()
 {
     if ($_POST['submit']) {
         $id = intval($_POST['id']);
         $data = array('title' => $_POST['title'], 'shortTitle' => $_POST['shortTitle'], 'transportId' => $_POST['transportId'], 'channelId' => $_POST['channelId'], 'channelName' => isset($_POST['channelName']) ? $_POST['channelName'] : '', 'partition' => $_POST['partition'], 'priority' => $_POST['priority'], 'countryWhiteList' => json_encode($_POST['countryWhiteList']), 'backAddress' => $_POST['backAddress'], 'modifiedtime' => time(), 'editUserId' => $_SESSION['userId'], 'status' => intval($_POST['status']));
         WhTransportPartitionModel::update($data, $id);
         header("location:index.php?mod=whTransportPartition&act=index");
     } else {
         $id = intval($_GET['id']);
         $data = WhTransportPartitionModel::find($id);
         $data['countryWhiteList'] = json_decode($data['countryWhiteList'], true);
         $transportlist = CommonModel::getShipingTypeList();
         //获取运输方式
         $countrylist = CommonModel::getCountryList();
         //获取国建列表
         $channellist = CommonModel::getCarrierChannelByIds($data['transportId']);
         //获取国家渠道信息
         $this->smarty->assign('data', $data);
         $this->smarty->assign('countrylist', $countrylist);
         $this->smarty->assign('transportlist', $transportlist);
         $this->smarty->assign('channellist', $channellist);
         $this->smarty->display('whTransportPartition_edit.htm');
     }
 }
开发者ID:ohjack,项目名称:newErp,代码行数:24,代码来源:whTransportPartition.view.php


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