예제 #1
0
function TarfiMsg()
{
    $pt = 0;
    if (!empty($_GET['emp']) == 1) {
        $pt = 2;
    } elseif (!empty($_GET['gharardadi']) == 1) {
        $pt = 5;
    }
    $where = " where (1=1) and  p.person_type = " . $pt;
    $whereParam["PT"] = $pt;
    $no = manage_staff::CountTarfiMsg($where, $whereParam, $pt);
    $temp = manage_staff::SelectTarfiMsg($where, $whereParam, $pt);
    echo dataReader::getJsonData($temp, $no, $_GET["callback"]);
    die;
}