CIM63 - asset search on email
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
<?php
|
||||
defined(page_security_key) or exit;
|
||||
|
||||
$page = 'communication';
|
||||
//SET ORIGIN FOR NAVIGATION
|
||||
$_SESSION['prev_origin'] = $_SERVER['REQUEST_URI'];
|
||||
$page = $_SESSION['origin'] = 'communication';
|
||||
|
||||
//Check if allowed
|
||||
if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
||||
header('location: index.php');
|
||||
@@ -117,6 +120,15 @@ $view .= '<div class="tabs">
|
||||
</div>
|
||||
';
|
||||
|
||||
//GET PARTNERID
|
||||
$view_partners = '';
|
||||
if(isset($communication['partnerID']) && $communication['partnerID'] !=''){
|
||||
$partner_ID = strtok($communication['partnerID'],'-');
|
||||
$view_partners = '
|
||||
<label for="">'.$partner_view_assigned_assets.'</label>
|
||||
<a href="index.php?page=equipments&partnerid='.$partner_ID.'" class="btn" style="width: 15%;">'.$button_view.'</a>';
|
||||
}
|
||||
|
||||
$view .= '<div class="content-block tab-content active">
|
||||
<div class="form responsive-width-100">
|
||||
<label for="status">'.$communication_status.'</label>
|
||||
@@ -148,7 +160,8 @@ $view .= '<div class="content-block tab-content active">
|
||||
<option value="1" '.($communication['type_3']==1?' selected':'').'>'.$coms_status_1 .'</option>
|
||||
<option value="0" '.($communication['type_3']==0?' selected':'').'>'.$coms_status_0 .'</option>
|
||||
</select>
|
||||
<input type="hidden" name="rowID" value="'.$communication['rowID'].'">
|
||||
<input type="hidden" name="rowID" value="'.$communication['rowID'].'">
|
||||
'.$view_partners.'
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user