当前位置: 首页>>代码示例>>PHP>>正文


PHP xajaxResponse::addAssign方法代码示例

本文整理汇总了PHP中xajaxResponse::addAssign方法的典型用法代码示例。如果您正苦于以下问题:PHP xajaxResponse::addAssign方法的具体用法?PHP xajaxResponse::addAssign怎么用?PHP xajaxResponse::addAssign使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在xajaxResponse的用法示例。


在下文中一共展示了xajaxResponse::addAssign方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ON

	function get_dokter($id) {
		$kon = new Konek;
		$kon->sql = "
		SELECT 
			d.id as id, 
			d.nama as nama, 
			d.alamat as alamat,
			d.telp as telp,
			d.aktif as aktif,
			sub.id as sub_id, 
			sub.spesialisasi_id as spc_id
		FROM 
			dokter d 
			JOIN subspesialisasi sub ON (sub.id = d.subspesialisasi_id) 
		WHERE 
			d.id = '".$id."'";
		$kon->execute();
		$data = $kon->getOne();
		$objResponse = new xajaxResponse();
		$objResponse->addAssign("id_dokter", "value", $data[id]);
		$objResponse->addAssign("spesialisasi_id", "value", $data[spc_id]);
		$objResponse->addScriptCall("xajax_ref_get_subspesialisasi", "subspesialisasi_id", $data[spc_id], $data[sub_id]);
		$objResponse->addAssign("nama", "value", $data[nama]);
		$objResponse->addAssign("alamat", "value", $data[alamat]);
		$objResponse->addAssign("telp", "value", $data[telp]);
		$objResponse->addAssign("aktif", "value", $data[aktif]);
		$objResponse->addScriptCall("fokus", "spesialisasi_id");
		return $objResponse;
	}
开发者ID:reekoheek,项目名称:srmis,代码行数:29,代码来源:dokter.php

示例2: init

function init()
{
    global $locate, $config;
    $objResponse = new xajaxResponse();
    $objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin, $_SESSION['curuser']['country'], $_SESSION['curuser']['language']));
    $objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
    return $objResponse;
}
开发者ID:ljhcj,项目名称:IRISCC,代码行数:8,代码来源:managerportal.server.php

示例3: BlockPlayer

function BlockPlayer($check, $sid, $num, $type, $length)
{
    $objResponse = new xajaxResponse();
    global $userbank, $username;
    $sid = (int) $sid;
    $length = (int) $length;
    if (!$userbank->HasAccess(ADMIN_OWNER | ADMIN_ADD_BAN)) {
        $objResponse->redirect("index.php?p=login&m=no_access", 0);
        $log = new CSystemLog("w", "Hacking Attempt", $username . " tried to process a playerblock, but doesnt have access.");
        return $objResponse;
    }
    //get the server data
    $sdata = $GLOBALS['db']->GetRow("SELECT ip, port, rcon FROM " . DB_PREFIX . "_servers WHERE sid = '" . $sid . "';");
    //test if server is online
    if ($test = @fsockopen($sdata['ip'], $sdata['port'], $errno, $errstr, 2)) {
        @fclose($test);
        require_once INCLUDES_PATH . "/CServerRcon.php";
        $r = new CServerRcon($sdata['ip'], $sdata['port'], $sdata['rcon']);
        if (!$r->Auth()) {
            $GLOBALS['db']->Execute("UPDATE " . DB_PREFIX . "_servers SET rcon = '' WHERE sid = '" . $sid . "' LIMIT 1;");
            $objResponse->addAssign("srv_{$num}", "innerHTML", "<font color='red' size='1'>Wrong RCON Password, please change!</font>");
            $objResponse->addScript('set_counter(1);');
            return $objResponse;
        }
        $ret = $r->rconCommand("status");
        // show hostname instead of the ip, but leave the ip in the title
        require_once "../includes/system-functions.php";
        $hostsearch = preg_match_all('/hostname:[ ]*(.+)/', $ret, $hostname, PREG_PATTERN_ORDER);
        $hostname = trunc(htmlspecialchars($hostname[1][0]), 25, false);
        if (!empty($hostname)) {
            $objResponse->addAssign("srvip_{$num}", "innerHTML", "<font size='1'><span title='" . $sdata['ip'] . ":" . $sdata['port'] . "'>" . $hostname . "</span></font>");
        }
        $gothim = false;
        $search = preg_match_all(STATUS_PARSE, $ret, $matches, PREG_PATTERN_ORDER);
        //search for the steamid on the server
        foreach ($matches[3] as $match) {
            if (substr($match, 8) == substr($check, 8)) {
                // gotcha!!! kick him!
                $gothim = true;
                $GLOBALS['db']->Execute("UPDATE `" . DB_PREFIX . "_comms` SET sid = '" . $sid . "' WHERE authid = '" . $check . "' AND RemovedBy IS NULL;");
                $requri = substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], "pages/admin.blockit.php"));
                $kick = $r->sendCommand("sc_fw_block " . $type . " " . $length . " " . $match);
                $objResponse->addAssign("srv_{$num}", "innerHTML", "<font color='green' size='1'><b><u>Player Found & blocked!!!</u></b></font>");
                $objResponse->addScript("set_counter('-1');");
                return $objResponse;
            }
        }
        if (!$gothim) {
            $objResponse->addAssign("srv_{$num}", "innerHTML", "<font size='1'>Player not found.</font>");
            $objResponse->addScript('set_counter(1);');
            return $objResponse;
        }
    } else {
        $objResponse->addAssign("srv_{$num}", "innerHTML", "<font color='red' size='1'><i>Can't connect to server.</i></font>");
        $objResponse->addScript('set_counter(1);');
        return $objResponse;
    }
}
开发者ID:CodingDK,项目名称:SourceBans-Fork,代码行数:58,代码来源:admin.blockit.php

示例4: objectscount

function objectscount($fid, $confid)
{
    $objResponse = new xajaxResponse();
    $pp = do_objectscount($fid, $confid);
    //½«ÌíÈëÊýÁ¿
    $objResponse->addAssign("objectnum", "disabled", false);
    $objResponse->addAssign("objectnum", "value", $pp);
    $objResponse->addAssign("max", "value", $pp);
    $objResponse->addAssign("doit", "disabled", false);
    return $objResponse->getXML();
}
开发者ID:yunsite,项目名称:gloryroad,代码行数:11,代码来源:confraternity.server.php

示例5: onclickUpOrDown

/**
 * OpenX Schema Management Utility
 */
function onclickUpOrDown($param)
{
    $objResponse = new xajaxResponse();
    if ($param == 'up') {
        $objResponse->addAssign('img_up', "style.display", 'none');
        $objResponse->addAssign('img_down', "style.display", 'inline');
    } else {
        $objResponse->addAssign('img_up', "style.display", 'inline');
        $objResponse->addAssign('img_down', "style.display", 'none');
    }
    return $objResponse;
}
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:15,代码来源:demoXajax.inc.php

示例6: xajaxResponse

	function get_bhp($id) {
		$kon = new Konek;
		$kon->sql = "SELECT id, nama, biaya FROM bhp WHERE id = '".$id."'";
		$kon->execute();
		$data = $kon->getOne();
		$objResponse = new xajaxResponse();
		$objResponse->addAssign("id_bhp", "value", $data[id]);
		$objResponse->addAssign("nama", "value", $data[nama]);
		$objResponse->addAssign("biaya", "value", $data[biaya]);
		$objResponse->addScriptCall("fokus", "nama");
		return $objResponse;
	}
开发者ID:reekoheek,项目名称:srmis,代码行数:12,代码来源:bhp.php

示例7: sendmail

function sendmail($formValues, $mailbody)
{
    $resp = new xajaxResponse();
    $resp->addAssign("state", "innerHTML", "<img src=\"images/loading.gif\">正在发送...");
    if (send_mail($formValues['mailto'], $formValues['subject'], $mailbody)) {
        $resp->addAssign("state", "innerHTML", "");
        $resp->addAlert("send ok");
    } else {
        $resp->addAlert($mailbody);
    }
    return $resp;
}
开发者ID:haseok86,项目名称:millkencode,代码行数:12,代码来源:mail.php

示例8: xajaxResponse

	function get_pelayanan($id) {
		$kon = new Konek;
		$kon->sql = "SELECT * FROM pelayanan WHERE id = '".$id."'";
		$kon->execute();
		$data = $kon->getOne();
		$objResponse = new xajaxResponse();
		$objResponse->addAssign("id_pelayanan", "value", $data[id]);
		$objResponse->addAssign("nama", "value", $data[nama]);
		$objResponse->addAssign("spesialisasi_id", "value", $data[spesialisasi_id]);
		$objResponse->addAssign("hari_buka", "value", $data[hari_buka]);
		$objResponse->addScriptCall("fokus", "nama");
		return $objResponse;
	}
开发者ID:reekoheek,项目名称:srmis,代码行数:13,代码来源:poliklinik.php

示例9: doSearch

function doSearch($formValues)
{
    $res = new xajaxResponse();
    $inputsMissing = false;
    //do check wheter all needed parameters have been set before klicking GO
    if ($formValues['dep_country_select'] == "invalid") {
        $inputsMissing = true;
    } elseif ($formValues['arv_country_select'] == "invalid") {
        $inputsMissting = true;
    } elseif ($formValues['arv_region_select'] == "invalid") {
        $inputsMissing = true;
    } elseif ($formValues['dep_region_select'] == "invalid") {
        $inputsMissing = true;
    } elseif ($formValues['arv_apcode_select'] == "invalid") {
        $inputsMissing = true;
    } elseif ($formValues['dep_apcode_select'] == "invalid") {
        $inputsMissing = true;
    }
    if ($inputsMissing) {
        $res->addAssign("contentView", "innerHTML", "At least one of the specified arguments is invalid");
        return $res;
    }
    $flightDays = "%%%%%%%";
    if (!isset($formValues['flyOnAnyDay'])) {
        /*checkbox fly on any Day is not checked*/
        foreach ($formValues['weekDay'] as $day) {
            $flightDays[$day - 1] = $day;
        }
    }
    $returnRoute = false;
    if (isset($formValues['return_route'])) {
        $returnRoute = true;
    }
    $rtModel = new RoutesModel();
    $searchResults = $rtModel->doSearch($formValues['dep_apcode_select'], $formValues['arv_apcode_select'], $flightDays, $returnRoute);
    //Got the results. Now make a table and show results within that table in contentView div
    $resultTable = "<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\">\n";
    $resultTable .= "<thead<tr><th>Airline</th><th>IATA Code</th><th>Flight Number</th><th>Depart From</th>\n";
    $resultTable .= "<th>Arrive To</th><th>Departure Time</th><th>Arrival Time</th><th>Days later</th><th>On Days</th>\n";
    $resultTable .= "</tr></thead><tbody>";
    foreach ($searchResults as $key => $result) {
        $resultTable .= "<tr>";
        foreach ($result as $resultKey => $resultValue) {
            $resultTable .= "<td style=\"text-align:center;\">" . $resultValue . "</td>";
        }
        $resultTable .= "</tr>\n";
    }
    $resultTable .= "</tbody></table>\n";
    $res->addAssign("contentView", "innerHTML", $resultTable);
    return $res;
}
开发者ID:JordanChin,项目名称:Ingres,代码行数:51,代码来源:routes.ajax.php

示例10: AJAXCheckMail

function AJAXCheckMail($mail)
{
    $objResponse = new xajaxResponse();
    if (empty($mail)) {
        $objResponse->addAssign("checkmail", "innerHTML", tra("empty"));
    } else {
        if (!eregi("^[_a-z0-9\\.\\-]+@[_a-z0-9\\.\\-]+\\.[a-z]{2,4}\$", $mail)) {
            $objResponse->addAssign("checkmail", "innerHTML", tra('This is not a valid mail adress'));
        } else {
            $objResponse->addAssign("checkmail", "innerHTML", tra('Valid') . ' ' . tra('mail adress'));
        }
    }
    return $objResponse;
}
开发者ID:Kraiany,项目名称:kraiany_site_docker,代码行数:14,代码来源:tiki-register_ajax.php

示例11: xajaxResponse

	function get_karcis($id) {
		$kon = new Konek;
		$kon->sql = "SELECT * FROM karcis WHERE id = '".$id."'";
		$kon->execute();
		$data = $kon->getOne();
		$objResponse = new xajaxResponse();
		/*
				$data[$i][kelas], 
				$data[$i][biaya_bhp], 
				$data[$i][biaya_jasa], 
				$data[$i][bhp_p], 
				$data[$i][bhp_rs], 
				$data[$i][bhp_rs_adm], 
				$data[$i][bhp_rs_op], 
				$data[$i][jasa_p], 
				$data[$i][jasa_rs], 
				$data[$i][jasa_rs_op], 
				$data[$i][jasa_rs_kembang], 
				$data[$i][jasa_rs_adm], 
				$data[$i][jasa_rs_sdm], 
				$data[$i][spesialis], 
				$data[$i][spesialis_pendamping], 
				$data[$i][ugp], 
				$data[$i][grabaf], 
				$data[$i][perawat], 
				$data[$i][penunjang], 
				$data[$i][zakat], 
				$data[$i][pajak], 
				$data[$i][netto], 
		
		*/
		$objResponse->addAssign("id_karcis", "value", $data[id]);
		$objResponse->addAssign("nama", "value", $data[nama]);
		$objResponse->addAssign("jenis", "value", $data[jenis]);
		$objResponse->addAssign("kelas", "value", $data[kelas]);
		$objResponse->addAssign("biaya_bhp", "value", $data[biaya_bhp]);
		$objResponse->addAssign("biaya_jasa", "value", $data[biaya_jasa]);
		$objResponse->addAssign("bhp_p", "value", $data[bhp_p]);
		$objResponse->addAssign("bhp_rs", "value", $data[bhp_rs]);
		$objResponse->addAssign("bhp_rs_adm", "value", $data[bhp_rs_adm]);
		$objResponse->addAssign("bhp_rs_op", "value", $data[bhp_rs_op]);
		$objResponse->addAssign("jasa_p", "value", $data[jasa_p]);
		$objResponse->addAssign("jasa_rs", "value", $data[jasa_rs]);
		$objResponse->addAssign("jasa_rs_op", "value", $data[jasa_rs_op]);
		$objResponse->addAssign("jasa_rs_kembang", "value", $data[jasa_rs_kembang]);
		$objResponse->addAssign("jasa_rs_adm", "value", $data[jasa_rs_adm]);
		$objResponse->addAssign("jasa_rs_sdm", "value", $data[jasa_rs_sdm]);
		$objResponse->addAssign("spesialis", "value", $data[spesialis]);
		$objResponse->addAssign("spesialis_pendamping", "value", $data[spesialis_pendamping]);
		$objResponse->addAssign("ugp", "value", $data[ugp]);
		$objResponse->addAssign("grabaf", "value", $data[grabaf]);
		$objResponse->addAssign("perawat", "value", $data[perawat]);
		$objResponse->addAssign("penunjang", "value", $data[penunjang]);
		$objResponse->addAssign("zakat", "value", $data[zakat]);
		$objResponse->addAssign("pajak", "value", $data[pajak]);
		$objResponse->addAssign("netto", "value", $data[netto]);
		$objResponse->addScriptCall("fokus", "nama");
		return $objResponse;
	}
开发者ID:reekoheek,项目名称:srmis,代码行数:59,代码来源:karcis.php

示例12: showEditEmpStatForm

function showEditEmpStatForm($estatCode)
{
    $view_controller = new ViewController();
    $editArr = $view_controller->xajaxObjCall($estatCode, 'JOB', 'editEmpStat');
    $objResponse = new xajaxResponse();
    $objResponse->addScript("document.frmJobTitle.txtEmpStatDesc.disabled = false;");
    $objResponse->addScript("document.frmJobTitle.txtEmpStatID.value = '" . $editArr[0][0] . "';");
    $objResponse->addScript("document.frmJobTitle.txtEmpStatDesc.value = '" . $editArr[0][1] . "';");
    $objResponse->addScript("document.frmJobTitle.txtEmpStatDesc.focus();");
    $objResponse->addScript("document.frmJobTitle.txtEmpStatDesc.selectAll();");
    $objResponse->addScript("document.getElementById('layerEmpStat').style.visibility='visible';");
    $objResponse->addAssign('buttonLayer', 'innerHTML', "<input type='button' value='" . $GLOBALS['lang_Common_Save'] . "' onclick='editFormData();'>");
    $objResponse->addAssign('status', 'innerHTML', '');
    return $objResponse->getXML();
}
开发者ID:noikiy,项目名称:owaspbwa,代码行数:15,代码来源:jobtitle.php

示例13: deleteEntry

 function deleteEntry($entry_id)
 {
     $CI =& get_instance();
     $CI->load->model('feedback_model');
     $xajax_response = new xajaxResponse();
     if (is_numeric($entry_id) && $CI->feedback_model->DeleteFeedback($entry_id)) {
         $xajax_response->addAssign('new_entries', 'innerHTML', $CI->feedback_model->GetFeedbackCount());
         $xajax_response->addAssign('deleted_entries', 'innerHTML', $CI->feedback_model->GetFeedbackCount(1));
         $xajax_response->addAssign('feedback' . $entry_id, 'innerHTML', 'DELETED!');
         $xajax_response->addScript('Effect.BlindUp(\'container' . $entry_id . '\');');
     } else {
         $xajax_response->addAlert('Error deleting entry ' . $entry_id . ', reload the page and try again.');
     }
     return $xajax_response;
 }
开发者ID:TheYorkerArchive,项目名称:codebase-2006-2012,代码行数:15,代码来源:feedback.php

示例14: VALUES

	function simpan_propinsi($value) {
		$kon = new Konek;
		if(!$value['id_propinsi'])
			$kon->sql = "INSERT INTO ref_propinsi(nama) VALUES ('".$value[nama]."')";
		else 
			$kon->sql = "UPDATE ref_propinsi SET nama = '".$value[nama]."' WHERE id = '".$value[id_propinsi]."'";
		$kon->execute();
		$objResponse = new xajaxResponse();
		$objResponse->addScriptCall("show_status_simpan");
		$objResponse->addAssign("id_propinsi", "value", "");
		$objResponse->addAssign("nama", "value", "");
		$objResponse->addScriptCall("xajax_list_data", $_SESSION[setting_propinsi][hal]);
		$objResponse->addScriptCall("fokus", "nama");
		return $objResponse;
	}
开发者ID:reekoheek,项目名称:srmis,代码行数:15,代码来源:propinsi.php

示例15: updateProgress

/**
 * This function updates the progress bar
 * @param div_id where the progress bar is displayed
 * @param upload_id the identifier given in the field UPLOAD_IDENTIFIER
 */
function updateProgress($div_id, $upload_id, $waitAfterupload = false)
{
    $objResponse = new xajaxResponse();
    $ul_info = uploadprogress_get_info($upload_id);
    $percent = intval($ul_info['bytes_uploaded'] * 100 / $ul_info['bytes_total']);
    if ($waitAfterupload && $ul_info['est_sec'] < 2) {
        $percent = 100;
        $objResponse->addAssign($div_id . '_label', 'innerHTML', get_lang('UploadFile') . ' : ' . $percent . ' %');
        $objResponse->addAssign($div_id . '_waiter_frame', 'innerHTML', '<img src="' . api_get_path(WEB_CODE_PATH) . 'img/progress_bar.gif" />');
        $objResponse->addScript('clearInterval("myUpload.__progress_bar_interval")');
    }
    $objResponse->addAssign($div_id . '_label', 'innerHTML', get_lang('UploadFile') . ' : ' . $percent . ' %');
    $objResponse->addAssign($div_id . '_filled', 'style.width', $percent . '%');
    return $objResponse;
}
开发者ID:omaoibrahim,项目名称:chamilo-lms,代码行数:20,代码来源:upload.xajax.php


注:本文中的xajaxResponse::addAssign方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。