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


PHP Display::displaySuccess方法代码示例

本文整理汇总了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()));
 }
开发者ID:nubissurveying,项目名称:nubis,代码行数:11,代码来源:supervisor.php

示例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);
 }
开发者ID:nubissurveying,项目名称:nubis,代码行数:23,代码来源:catiinterviewer.php

示例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()));
 }
开发者ID:nubissurveying,项目名称:nubis,代码行数:16,代码来源:nurse.php

示例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);
 }
开发者ID:nubissurveying,项目名称:nubis,代码行数:35,代码来源:interviewer.php


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