value .= yii\helpers\Html::a(
modelItem->material->name,
[
'class' => 'btn-link',
'style' => 'cursor:pointer;'._var2,
'title' => 'Click to delete this item',
'onclick' => '(functionJS(){
var productionDate = \''._varJS.'\';
deleteItemGroup(productionDate);
})();',
]
);
/*$.ajax({
url: \'".Url::to(["memberpresence/search-insert-presence/?id=\'+id"]).",
type: 'post',
data: $(this).serialize(),
success: function(data) {
document.getElementById('viewContent').innerHTML = data;
},
error: function(jqXHR, textStatus, errorThrown) {
alert('incoming Text ' + jqXHR.responseText);
},
});*/
url: "'.Url::to(['membershiptrxhead/save-referencedby/?id="+membershipTrxHead_id+"&_referencedBy="+_referencedBy']).',
if (_jobTitle_id == '') {
alert('Please select the PT/Coach/Therapist name!');
} else {
if (confirm('Are you sure to save this PT/Coach/Therapist ?')) {
$.ajax({
url: '".Url::to(['member/save-addjobtitle/?id="+membermembershipitem_id+"&_strJobTitle="+_jobTitle_id']).",
type: 'post',
data: $(this).serialize(),
success: function(data) {
if (data == 0) {
alert('Simpan PT/Coach/Therapist tidak bisa dilakukan !');
} else {
location.reload();
}
},
error: function(jqXHR, textStatus, errorThrown) {
//alert(errorThrown);
//alert('error ' + textStatus);
alert('incoming Text ' + jqXHR.responseText);
},
});
}
}
$.ajax({
url: saveUrl;
type: 'post',
data: $(this).serialize(),
success: function(data) {
if (data == 0) {
alert('Simpan PT/Coach/Therapist tidak bisa dilakukan !');
} else {
location.reload();
}
},
error: function(jqXHR, textStatus, errorThrown) {
//alert(errorThrown);
//alert('error ' + textStatus);
alert('incoming Text ' + jqXHR.responseText);
},
});