本文整理匯總了PHP中Display::displaySuccess方法的典型用法代碼示例。如果您正苦於以下問題:PHP Display::displaySuccess方法的具體用法?PHP Display::displaySuccess怎麽用?PHP Display::displaySuccess使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Display
的用法示例。
在下文中一共展示了Display::displaySuccess方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: showPreferencesRes
function showPreferencesRes()
{
//$this->user->setFilter(loadvar('filter'));
$this->user->setRegionFilter(loadvar('region'));
$this->user->setTestMode(loadvar('testmode'));
$this->user->setCommunication(loadvar('communication'));
$this->user->setPuid(loadvar('puid'));
$this->user->saveChanges();
$display = new Display();
return $this->mainPage($display->displaySuccess(Language::messagePreferencesSaved()));
}
示例2: showEditRes
function showEditRes($primkey)
{
$respondent = new Respondent($primkey);
$respondent->setFirstName(loadvar('firstname'));
$respondent->setLastName(loadvar('lastname'));
$respondent->setAddress1(loadvar('address1'));
$respondent->setAddress2(loadvar('address2'));
$respondent->setZip(loadvar('zip'));
$respondent->setCity(loadvar('city'));
$respondent->setTelephone1(loadvar('telephone1'));
$respondent->setTelephone2(loadvar('telephone2'));
$respondent->setEmail(loadvar('email'));
//log???
$errorMessage = $respondent->saveChanges();
$display = new Display();
$messageEditError = $display->displaySuccess(Language::messageRespondentChanged($primkey));
//'<div class="alert alert-info">Changes saved.</div>';
if (sizeof($errorMessage) > 0) {
$messageEditError = $display->displayError(implode('<br/>', $errorMessage));
}
$displayCatiInterviewer = new DisplayCatiInterviewer();
return $displayCatiInterviewer->showInfo($respondent, $messageEditError);
}
示例3: ShowRespondentFieldNurseAssignRes
function ShowRespondentFieldNurseAssignRes($primkey)
{
$respondent = new Respondent($primkey);
$household = $respondent->getHousehold();
$lab = new Lab($primkey);
$selurid = loadvar('urid');
$lab->setUrid($selurid);
$lab->saveChanges();
// echo '<br/><br/><br/>' . loadvar('urid');
//set urid for lab
//add to communication: _lab, _household, _respondent
$communication = new Communication();
$communication->assignLab($household, $respondent, $lab, $selurid);
$display = new Display();
return $this->showRespondentInfo($primkey, $display->displaySuccess(Language::labelNurseFieldNurseAssigned()));
}
示例4: showEditRes
function showEditRes($primkey, $type = 1)
{
if ($type == 1) {
$respondent = new Respondent($primkey);
$respondent->setFirstName(loadvar('firstname'));
$respondent->setLastName(loadvar('lastname'));
} else {
$respondent = new Household($primkey);
$respondent->setName(loadvar('name'));
$respondent->setAddress1(loadvar('address1'));
$respondent->setAddress2(loadvar('address2'));
$respondent->setZip(loadvar('zip'));
$respondent->setCity(loadvar('city'));
}
if (dbConfig::defaultPanel() == PANEL_RESPONDENT) {
//only save for respondent panels
$respondent->setAddress1(loadvar('address1'));
$respondent->setAddress2(loadvar('address2'));
$respondent->setZip(loadvar('zip'));
$respondent->setCity(loadvar('city'));
}
$respondent->setTelephone1(loadvar('telephone1'));
//$respondent->setTelephone2(loadvar('telephone2'));
$respondent->setEmail(loadvar('email'));
//log???
$errorMessage = $respondent->saveChanges();
$display = new Display();
$messageEditError = $display->displaySuccess(Language::messageRespondentChanged($respondent));
//'<div class="alert alert-info">Changes saved.</div>';
if (sizeof($errorMessage) > 0) {
$messageEditError = $display->displayError(implode('<br/>', $errorMessage));
}
$displayInterviewer = new DisplayInterviewer();
return $displayInterviewer->showInfo($respondent, $messageEditError);
}