organization Auto Fill

This commit is contained in:
arindam85
2016-10-25 14:41:58 +05:30
parent 296736f092
commit d5d71893e9
5 changed files with 110 additions and 42 deletions

View File

@@ -0,0 +1,19 @@
<?php
$term = $_GET["term"];
$organizations =App\Model\helpdesk\Agent_panel\Organization::where('name', 'LIKE', '%' . $term . '%')->get();
$json = array();
foreach ($organizations as $organization) {
$json[] = array(
'value' => $organization["name"],
'label' => $organization["name"],
'org' => $organization["name"],
);
}
echo json_encode($json);