Actual
This commit is contained in:
parent
b72b3e7763
commit
36a5986ab6
@ -28,12 +28,21 @@ if(isset($_POST['step'])){
|
||||
$files[] = array('guid' => $file_r['guid'],'isUpload' => true, 'uploads' => false, 'name' => $file_r['name'], 'path' => $path);
|
||||
}
|
||||
$res['files'] = $files;
|
||||
|
||||
if (isset($_POST['req']) && (int)$_POST['req'] > 0) {
|
||||
$reqId = (int)$_POST['req'];
|
||||
|
||||
$reqResult = mysql_query("SELECT deal_id FROM requisitions WHERE id = $reqId LIMIT 1");
|
||||
if (mysql_num_rows($reqResult) > 0) {
|
||||
$reqRow = mysql_fetch_assoc($reqResult);
|
||||
$res['is_deal'] = (!empty($reqRow['deal_id']) && $reqRow['deal_id'] > 0) ? 1 : 0;
|
||||
} else {
|
||||
$res['is_deal'] = 0;
|
||||
}
|
||||
} else {
|
||||
$res['is_deal'] = 0;
|
||||
}
|
||||
|
||||
}
|
||||
echo json_encode($res, JSON_UNESCAPED_UNICODE);
|
||||
}
|
||||
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user