5c81f949 by yangjianbin

init

1 parent 0223b292
......@@ -25,6 +25,10 @@ class CheckLogin
if (!$session->customerManagers) {
$session->customerManagers = $this->getCustomerManagers();
}
if (!$session->operatorManagers) {
$session->operatorManagers = $this->getOperatorManagers();
}
/*if (preg_match("/admin|base/i", uri_string())) {
if(!$this->CI->session->isadmin){
......@@ -72,4 +76,12 @@ class CheckLogin
return $products;
}
private function getOperatorManagers()
{
$url = 'http://151.28ms.com:8088/system/user/getOperatorManager';
$res = json_decode(file_get_contents($url));
$products = $res->data;
return $products;
}
}
\ No newline at end of file
......
......@@ -57,9 +57,9 @@
<span class="select-box">
<select class="select table_search" name="modifyUser" size="1" column="13">
<option value="" selected>处理人</option>
<option value="1">菜单一</option>
<option value="2">菜单二</option>
<option value="3">菜单三</option>
<?php foreach ($this->session->operatorManagers as $k=>$v):?>
<option value="<?=$k?>"><?=$v->name?></option>
<?php endforeach;?>
</select>
</span>
</div>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!