|
@@ -61,6 +61,28 @@ class Systemfoutfz extends Start_Controller {
|
|
|
|
|
|
public function _exceltwo($arg_array)
|
|
|
{
|
|
|
+ if(isset($_SESSION['api']))
|
|
|
+ {
|
|
|
+ $user = $this->user->get_api($_SESSION['api']);
|
|
|
+ $usp = $user;
|
|
|
+ $fgshop = "";$sid = "";$wid="";$wtype="";
|
|
|
+ $usersp = explode('|',trim($user['shop'],'|'));
|
|
|
+ $userwh = explode('|',trim($user['warehouse'],'|'));
|
|
|
+ foreach ($usersp as $value)
|
|
|
+ {
|
|
|
+ $fgshop .= " shop = ".$value." or";
|
|
|
+ $sid .= " id = ".$value." or";
|
|
|
+ }
|
|
|
+ foreach ($userwh as $value)
|
|
|
+ {
|
|
|
+ $wid .= " id = ".$value." or";
|
|
|
+ $wtype .= " type = ".$value." or";
|
|
|
+ }
|
|
|
+ if($user['userid'] == 'xw')
|
|
|
+ {
|
|
|
+ $xw = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
if(isset($_GET['fexcel']))
|
|
|
{
|
|
|
$dowid = $this->input->get('a');
|