Пример #1
0
function setStatus($clid, $status)
{
    $affectrows = astercc::setStatus($clid, $status);
    $objResponse = new xajaxResponse();
    if ($affectrows == 0) {
        //$objResponse->addAssign($peer."-limitstatus","value","");
        $objResponse->addAlert($locate->Translate("falied to lock or unlock"));
    } else {
        if ($status == 1) {
            $objResponse->addAssign($clid . "-lock", "style.backgroundColor", "");
        } else {
            $objResponse->addAssign($clid . "-lock", "style.backgroundColor", "red");
        }
        //$objResponse->addAlert("lock/unlock success");
    }
    return $objResponse;
}