Provide information of thirdparty, contact or project to SMS handler
This commit is contained in:
parent
303961b0a6
commit
03b261d54c
@ -47,6 +47,11 @@ class CSMSFile
|
|||||||
public $message;
|
public $message;
|
||||||
public $nostop;
|
public $nostop;
|
||||||
|
|
||||||
|
public $socid;
|
||||||
|
public $contactid;
|
||||||
|
|
||||||
|
public $fk_project;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CSMSFile
|
* CSMSFile
|
||||||
@ -125,7 +130,12 @@ class CSMSFile
|
|||||||
$sms->class=$this->class;
|
$sms->class=$this->class;
|
||||||
$sms->nostop=$this->nostop;
|
$sms->nostop=$this->nostop;
|
||||||
|
|
||||||
|
$sms->socid=$this->socid;
|
||||||
|
$sms->contactid=$this->contactid;
|
||||||
|
$sms->project=$this->fk_project;
|
||||||
|
|
||||||
$res=$sms->SmsSend();
|
$res=$sms->SmsSend();
|
||||||
|
|
||||||
if ($res <= 0)
|
if ($res <= 0)
|
||||||
{
|
{
|
||||||
$this->error=$sms->error;
|
$this->error=$sms->error;
|
||||||
@ -155,7 +165,12 @@ class CSMSFile
|
|||||||
$sms->message=$this->message;
|
$sms->message=$this->message;
|
||||||
$sms->nostop=$this->nostop;
|
$sms->nostop=$this->nostop;
|
||||||
|
|
||||||
|
$sms->socid=$this->socid;
|
||||||
|
$sms->contactid=$this->contactid;
|
||||||
|
$sms->fk_project=$this->fk_project;
|
||||||
|
|
||||||
$res=$sms->SmsSend();
|
$res=$sms->SmsSend();
|
||||||
|
|
||||||
$this->error = $sms->error;
|
$this->error = $sms->error;
|
||||||
$this->errors = $sms->errors;
|
$this->errors = $sms->errors;
|
||||||
if ($res <= 0)
|
if ($res <= 0)
|
||||||
|
|||||||
@ -293,7 +293,7 @@ function limitChars(textarea, limit, infodiv)
|
|||||||
//var_dump($_REQUEST);exit;
|
//var_dump($_REQUEST);exit;
|
||||||
print $form->selectarray("receiver", $liste, GETPOST("receiver"), 1);
|
print $form->selectarray("receiver", $liste, GETPOST("receiver"), 1);
|
||||||
}
|
}
|
||||||
print ' '.$langs->trans("SmsInfoNumero");
|
print ' <span class="opacitymedium">'.$langs->trans("SmsInfoNumero").'</span>';
|
||||||
}
|
}
|
||||||
print "</td></tr>\n";
|
print "</td></tr>\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user