本文整理汇总了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);
}