Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flexydial
/
hdfc-beu-v2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
93fe7796
authored
2019-04-02 20:38:56 +0530
by
G Manojkumar
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Minor bug fixed
1 parent
93b4094f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
application/app/Http/Controllers/DialerController.php
application/app/Jobs/KFormLib.php
application/app/Http/Controllers/DialerController.php
View file @
93fe779
...
...
@@ -161,7 +161,7 @@ class DialerController extends Controller {
}
if
(
!
empty
(
$users
))
{
$searchresult
.=
"<div id=divworking></div><div style='clear:both'></div><script>kSetDData('C','previewcrmid','"
.
$users
[
0
][
'id'
]
.
"');showRecruit(
\"
"
.
$users
[
0
][
'id'
]
.
"
\"
,'
1234
');</script>"
;
$searchresult
.=
"<div id=divworking></div><div style='clear:both'></div><script>kSetDData('C','previewcrmid','"
.
$users
[
0
][
'id'
]
.
"');showRecruit(
\"
"
.
$users
[
0
][
'id'
]
.
"
\"
,'
0
');</script>"
;
$searchresult
.=
"<div id=internalid_matchlist></div><script>
doAjax('record?action=quicksearch','maintextsearch_1_txt="
.
$users
[
0
][
'clientinternalid'
]
.
"&maintextsearch_1_span=InternalID','internalid_matchlist','searchMutex', 'searchxhr','POST',function(retstr){
...
...
application/app/Jobs/KFormLib.php
View file @
93fe779
...
...
@@ -3361,12 +3361,9 @@ function createRLP()
}
function
createSMSForm
()
{
//echo "Manoj";
{
$dataarr
=
$this
->
recruitdata
[
"peopledata"
];
$number
=
$this
->
number
;
//echo "number=".$number;
$number
=
$this
->
number
;
$smstemplates
=
DB
::
table
(
'oncall_sms_template'
)
->
where
(
'status'
,
'='
,
'active'
)
->
select
(
'sms'
,
'id'
)
->
get
();
$data
=
""
;
$data
.=
"<div style='clear:both;margin:2% 0 0 1%;border-style: dotted solid dashed;padding:2%'>
...
...
@@ -3390,7 +3387,6 @@ function createSMSForm()
<div style='clear:both;width:100%;'>
<div>"
;
foreach
(
$smstemplates
as
$smstemplate
){
//print_r($smstemplate->sms);
$data
.=
"<input type='radio' name='templateid' value="
.
$smstemplate
->
id
.
"><label>"
.
$smstemplate
->
sms
.
"</label>"
;
}
$data
.=
"</div>
...
...
@@ -3406,16 +3402,18 @@ function createSMSForm()
var postdata='mobile='+$('#mobilenumber').val();
postdata+='&smsid='+$('input[name=
\"
templateid
\"
]:checked').val();
var checkvalue=$('input[name=
\"
templateid
\"
]:checked').val();
var number=$('#mobilenumber').val();
//alert(checkvalue);
if(number!=='0'){
if(checkvalue === undefined){
alert('Please select any option');
}else{
//alert('entered');
doAjax('record?action=sendsms',postdata,'createtaskdiv','ajaxMutex_recSaveData','singlethis','POST');
//alert('your template is given '+$('input[name=
\"
templateid
\"
]:checked').val());
}
}else{
alert('Your not in Call');
}
})
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment