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


PHP Language::messageSMSTitle方法代码示例

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


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

示例1: showLogin

 public function showLogin($message)
 {
     $extra2 = '<link href="js/formpickers/css/bootstrap-formhelpers.min.css" rel="stylesheet">
               <link href="css/uscicadmin.css" rel="stylesheet">
               <link href="bootstrap/css/sticky-footer-navbar.min.css" rel="stylesheet">';
     $returnStr = $this->showHeader(Language::messageSMSTitle(), $extra2);
     $returnStr .= '<div id = "wrap">';
     $returnStr .= '<div class = "container"><p>';
     $returnStr .= '<center><table style = "width:300px"><tr><td><form method="post" autocomplete="off">';
     $returnStr .= '<h2>' . Language::messageSMSTitle() . '</h2>';
     if ($message != '') {
         $returnStr .= '<span class = "label label-warning">' . $message . '</span><br/><br/>';
     }
     $returnStr .= Language::messageSMSWelcome();
     $returnStr .= '<br/><br/>';
     if ($message != "") {
         $returnStr .= "<input type=hidden name=" . POST_PARAM_SE . " value=" . USCIC_SMS . " />";
     }
     $returnStr .= '<input type = "text" class = "form-control" name = username placeholder = "' . Language::labelUsername() . '" autofocus>';
     $returnStr .= '<input type = "password" class = "form-control" name = password placeholder = "' . Language::labelPassword() . '">';
     $returnStr .= '<button class = "btn btn-lg btn-default btn-block" type = "submit">' . Language::buttonLogin() . '</button>';
     $returnStr .= '</form></td></tr></table></center>';
     $returnStr .= '</p></div> <!--/container-->';
     $returnStr .= '</div>';
     $returnStr .= $this->showBottomBar();
     $returnStr .= $this->showFooter();
     return $returnStr;
 }
开发者ID:nubissurveying,项目名称:nubis,代码行数:28,代码来源:displayloginsms.php

示例2: watch

    function watch()
    {
        $returnStr = $this->showHeader(Language::messageSMSTitle());
        $returnStr .= $this->displayComboBox();
        $returnStr .= "<form method='post'>";
        $params = getSessionParams();
        //$params['reportpage'] = 'reportRes';
        $returnStr .= setSessionParamsPost($params);
        $returnStr .= '<div id="wrap">';
        $returnStr .= '<div class="container"><p>';
        $returnStr .= '<div class="panel panel-default">
                <div class="panel-heading">';
        $returnStr .= '<h4>' . Language::linkWatch() . '</h4>';
        $returnStr .= '                </div>
                <div class="panel-body">';
        require_once 'data.php';
        require_once 'display.php';
        $data = new Data();
        $values = $data->getRespondentData(getFromSessionParams('watchsuid'), getFromSessionParams('watchprimkey'));
        $returnStr .= '</div>
    <div role="panel" class="panel">';
        if (sizeof($values) == 0) {
            $returnStr .= "<br/>" . '<div class="alert alert-warning">' . Language::labelWatchNoData() . '</div>';
        } else {
            $returnStr .= $this->displayDataTablesScripts(array("colvis", "rowreorder"));
            $returnStr .= "<script type='text/javascript'>\n                        \$(document).ready(function(){\n                            \$('#issuetable').dataTable(\n                                {\n                                    \"iDisplayLength\": 5,\n                                    dom: 'C<\"clear\">lfrtip',\n                                    searching: false,\n                                    paging: true\n                                    }    \n                                );\n                                         \n                       });</script>\n\n                        ";
            //
            $returnStr .= "<br/><table id='issuetable' class='table table-bordered table-striped'><thead>";
            $returnStr .= "<th>" . Language::labelWatchVariable() . "</th><th>" . Language::labelWatchValue() . "</th><th>" . Language::labelWatchClean() . "</th><th>" . Language::labelWatchMode() . "</th><th>" . Language::labelWatchLanguage() . "</th><th>" . Language::labelWatchTime() . "</th></tr>";
            $returnStr .= "</thead><tbody>";
            $modes = Common::surveyModes();
            $languages = Language::getLanguagesArray();
            $sesid = session_id();
            require_once 'object.php';
            require_once 'component.php';
            require_once 'setting.php';
            require_once 'type.php';
            require_once 'variabledescriptive.php';
            $survey = new Survey(getFromSessionParams('watchsuid'));
            foreach ($values as $is) {
                $returnStr .= "<tr>";
                $returnStr .= "<td>" . $is["variablename"] . "</td>";
                $returnStr .= "<td>" . $this->getDisplayValue($survey->getVariableDescriptiveByName($is["variablename"]), $is["answer_dec"]) . "</td>";
                $returnStr .= "<td>" . $this->displayDirty([$is["dirty"]]) . "</td>";
                $returnStr .= "<td>" . $modes[$is["mode"]] . "</td>";
                $returnStr .= "<td>" . $languages[str_replace("_", "", getSurveyLanguagePostFix($is["language"]))]['name'] . "</td>";
                $returnStr .= "<td>" . $is["ts"] . "</td>";
                $returnStr .= "</tr>";
            }
            $returnStr .= "</tbody></table>";
        }
        $returnStr .= '</div>
  </div>
</div>';
        $returnStr .= '                </div></div>';
        $returnStr .= '</p></div>    </div>';
        //container and wrap
        $returnStr .= $this->showFooter(false);
        echo $returnStr;
    }
开发者ID:nubissurveying,项目名称:nubis,代码行数:60,代码来源:watchwindow.php

示例3: jump

    function jump()
    {
        $returnStr = $this->showHeader(Language::messageSMSTitle());
        $returnStr .= "<form method='post'>";
        $params = getSessionParams();
        $params['testpage'] = 'jumpbackRes';
        $returnStr .= setSessionParamsPost($params);
        $returnStr .= '<div id="wrap">';
        $returnStr .= '<div class="container"><p>';
        $returnStr .= $this->displayComboBox();
        $returnStr .= '<div class="panel panel-default">
                <div class="panel-heading">';
        $returnStr .= '<h4>' . Language::jumpBack() . '</h4>';
        $returnStr .= '                </div>
                <div class="panel-body">';
        $states = $this->getStates(getFromSessionParams('jumpsuid'), getFromSessionParams('jumpprimkey'), getFromSessionParams('jumpstateid'));
        $returnStr .= "<br/><table>";
        $returnStr .= "<tr><td>" . Language::jumpBackTo() . "</td><td>";
        $returnStr .= "<select class='selectpicker show-tick' name='jumpto'>";
        if (sizeof($states) == 0) {
            $returnStr .= "<option value=" . $k . ">" . Language::noJumpBack() . "</option>";
        } else {
            $cnt = 1;
            foreach ($states as $k => $option) {
                $option = str_replace(ROUTING_SUBGROUP, "", $option);
                $option = str_replace(ROUTING_ENDSUBGROUP, "", $option);
                $option = str_replace(ROUTING_ENDGROUP, "", $option);
                $option = str_replace(ROUTING_GROUP, "", $option);
                $returnStr .= "<option value=" . $k . ">" . Language::jumpScreen() . " " . $cnt . ": " . $option . "</option>";
                $cnt++;
            }
        }
        $returnStr .= "</select></td></tr>";
        //$returnStr .= "<tr><td valign=top>" . Language::reportProblemDescription() . "</td><td>";
        //$returnStr .= "<textarea name='reportcomment' class='form-control' style='min-width: 400px;' rows=6></textarea>";
        //$returnStr .= "</td></tr>";
        $returnStr .= '</table><br/>';
        $returnStr .= '<button type="submit" class="btn btn-success" style="min-width:100px">' . Language::buttonJump() . '</button>';
        $returnStr .= '<button onclick="window.close();" type="cancel" class="btn btn-default" style="min-width:100px">' . Language::buttonClose() . '</button>';
        $returnStr .= "</form>";
        $returnStr .= '</div>';
        $returnStr .= '</div>
</div>';
        $returnStr .= '                </div></div>';
        $returnStr .= '</p></div>    </div>';
        //container and wrap
        $returnStr .= $this->showFooter(false);
        echo $returnStr;
    }
开发者ID:nubissurveying,项目名称:nubis,代码行数:49,代码来源:jumpback.php

示例4: showCalculator


//.........这里部分代码省略.........
      <div class="modal-body">
      <style>
.calculator {
  padding: 20px;
  margin-top: 20px;
  background-color: #ccc;
  border-radius: 5px;
  /*this is to remove space between divs that are inline-block*/
  font-size: 0;
}
 
.calculator > input[type=text] {
  width: 100%;
  height: 50px;
  border: none;
  background-color: #eee;
  text-align: right;
  font-size: 30px;
  padding-right: 10px;
}
 
.calculator .row { margin-top: 10px; }
 
.calculator .key {
  width: 78.7px;
  display: inline-block;
  background-color: black;
  color: white;
  font-size: 3rem;
  margin-right: 5px;
  border-radius: 5px;
  height: 50px;
  line-height: 50px;
  text-align: center;
}
.calculator .key:hover { cursor: pointer; }
.key.last { margin-right: 0px; }
.key.action { background-color: #646060; }
</style>
<div class="calculator">
  <input type="text" readonly id=answercalc>
  <div class="row">
    <div class="key">1</div>
    <div class="key">2</div>
    <div class="key">3</div>
    <div class="key last">0</div>
  </div>
  <div class="row">
    <div class="key">4</div>
    <div class="key">5</div>
    <div class="key">6</div>
    <div class="key last action instant">cl</div>
  </div>
  <div class="row">
    <div class="key">7</div>
    <div class="key">8</div>
    <div class="key">9</div>
    <div class="key last action instant">=</div>
  </div>
  <div class="row">
    <div class="key action">+</div>
    <div class="key action">-</div>
    <div class="key action">x</div>
    <div class="key last action">/</div>
  </div>
</div>
</div>
    </div>
  </div>
</div> 

<script>

function moveToSurvey(){
  $("#answer1").val($("#answercalc").val());
}

</script>


      <script src="js/jquery.calc.js"></script>
      <script src="js/calculator.js"></script>

';
        $returnStr .= '
      <!-- Fixed navbar -->
      <div class="navbar navbar-default navbar-fixed-top">
        <div class="container">
          <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">' . Language::messageSMSTitle() . '</a>
          </div>
          <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav navbar-right">';
        return $returnStr;
    }
开发者ID:nubissurveying,项目名称:nubis,代码行数:101,代码来源:displayquestionsms.php

示例5: getHeader

 function getHeader()
 {
     $returnStr .= '
   <!-- Fixed navbar -->
   <div class="navbar navbar-default navbar-fixed-top">
     <div class="container">
       <div class="navbar-header">
         <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
           <span class="icon-bar"></span>
           <span class="icon-bar"></span>
           <span class="icon-bar"></span>
         </button>
         <a class="navbar-brand" href="#">' . Language::messageSMSTitle() . '</a>
       </div>
       <div class="collapse navbar-collapse">
         <ul class="nav navbar-nav navbar-right">';
     return $returnStr;
 }
开发者ID:nubissurveying,项目名称:nubis,代码行数:18,代码来源:displayquestiontest.php

示例6: showOutputHeader

 function showOutputHeader($actions, $navbar = true, $extra = '')
 {
     $user = new User($_SESSION['URID']);
     $utype = $user->getUserType();
     switch ($utype) {
         case USER_SYSADMIN:
             $returnStr = $this->showSysAdminHeader(Language::messageSMSTitle(), $extra);
             break;
         case USER_TRANSLATOR:
             $dt = new DisplayTranslator();
             $returnStr = $dt->showTranslatorHeader(Language::messageSMSTitle(), $extra);
             break;
         case USER_INTERVIEWER:
             $dt = new DisplayInterviewer();
             $returnStr = $dt->showHeader(Language::messageSMSTitle(), $extra);
             break;
         case USER_RESEARCHER:
             $dt = new DisplayResearcher();
             $returnStr = $dt->showResearchHeader(Language::messageSMSTitle(), $extra);
             break;
         default:
             $returnStr = $this->showSysAdminHeader(Language::messageSMSTitle(), $extra);
             break;
     }
     $returnStr .= '<div id="wrap">';
     if ($navbar) {
         switch ($utype) {
             case USER_SYSADMIN:
                 $returnStr .= $this->showNavBar();
                 break;
             case USER_INTERVIEWER:
                 $dt = new DisplayInterviewer();
                 $returnStr .= $dt->showNavBar();
                 break;
             case USER_RESEARCHER:
                 $dt = new DisplayResearcher();
                 $returnStr .= $dt->showNavBar();
                 break;
             default:
                 $dt = new DisplayTranslator();
                 $returnStr .= $dt->showNavBar();
                 break;
         }
     }
     $returnStr .= '<div class="container">';
     if ($navbar) {
         $returnStr .= '<ol class="breadcrumb">';
         for ($i = 0; $i < sizeof($actions); $i++) {
             $action = $actions[$i];
             if ($action['link'] == '') {
                 $returnStr .= '<li class="active">' . $action['label'] . '</li>';
             } else {
                 $returnStr .= '<li>' . $action['link'] . '</li>';
             }
         }
         $returnStr .= '</ol>';
     }
     //        $returnStr .= '<div class="row row-offcanvas row-offcanvas-right">';
     //        $returnStr .= '<div id=sectiondiv class="col-xs-12 col-sm-9">';
     //        $returnStr .= $message;
     return $returnStr;
 }
开发者ID:nubissurveying,项目名称:nubis,代码行数:62,代码来源:displayoutput.php

示例7: showSearchRes

 function showSearchRes($respondentsOrHouseholds)
 {
     //        $returnStr = $this->showHeader(Language::messageSMSTitle(), '<link href="bootstrap/css/sticky-footer-navbar.min.css" rel="stylesheet">');
     $returnStr = $this->displayHeaderForTable(Language::messageSMSTitle(), $message);
     $returnStr .= '<div id="wrap">';
     $returnStr .= $this->showNavBar();
     $returnStr .= '<div class="container"><p>';
     $returnStr .= '<br/><br/><br/>';
     $returnStr .= '<ol class="breadcrumb">';
     $returnStr .= '<li class="active">' . Language::labelSuperVisorInterviewers() . '</li>';
     //        $returnStr .= '<li>' . Language::labelInterviewers() . '</li>';
     $returnStr .= '</ol>';
     //CONTENT
     if (sizeof($respondentsOrHouseholds) > 0) {
         //$returnStr .= $this->displaySuccess($message, "outcomehelp"); // 'Assigned respondents to ' . $interviewer->getName();
         $returnStr .= sizeof($respondentsOrHouseholds) . ' ' . Language::messageRespondentsFoundSupervisor();
         $arr = array_values($respondentsOrHouseholds);
         if ($arr[0] instanceof Respondent) {
             //this is a respondent
             $returnStr .= $this->showRespondentsTable($respondentsOrHouseholds, 'supervisor.interviewer.respondent');
         } else {
             //household
             $returnStr .= $this->showHouseholdsTable($respondentsOrHouseholds, 'supervisor.');
         }
     } else {
         $returnStr .= $this->displayWarning(Language::messageNoRespondentsSearchResSupervisor(), "outcomehelp");
         // '<div class="alert alert-warning" id="outcomehelp">' . Language::errorNoRespondentsAssigned() . '</div>';
     }
     //END CONTENT
     $returnStr .= '</p></div></div>   ';
     // </div>'; //container and wrap
     $returnStr .= $this->showBottomBar();
     $returnStr .= $this->showFooter(false);
     return $returnStr;
 }
开发者ID:nubissurveying,项目名称:nubis,代码行数:35,代码来源:displaysupervisor.php

示例8: update

    function update()
    {
        $returnStr = $this->showHeader(Language::messageSMSTitle());
        $returnStr .= $this->displayComboBox();
        $returnStr .= '<div id="wrap">';
        $returnStr .= '<div class="container"><p>';
        $returnStr .= '<div class="panel panel-default">
                <div class="panel-heading">';
        $returnStr .= '<h4>' . Language::linkUpdate() . '</h4>';
        $returnStr .= '                </div>
                <div class="panel-body">';
        require_once 'data.php';
        require_once 'display.php';
        $data = new Data();
        $values = $data->getRespondentData(getFromSessionParams('watchsuid'), getFromSessionParams('watchprimkey'));
        $returnStr .= '</div>
    <div role="panel" class="panel">';
        if (sizeof($values) == 0) {
            $returnStr .= "<br/>" . '<div class="alert alert-warning">' . Language::labelWatchNoData() . '</div>';
        } else {
            $display = $this->engine->getDisplayObject();
            $returnStr .= $display->displayDataTablesScripts(array("colvis", "rowreorder"));
            $returnStr .= "<script type='text/javascript'>\n                        \$(document).ready(function(){\n                            \$('#issuetable').dataTable(\n                                {\n                                    \"iDisplayLength\": 4,\n                                    dom: 'C<\"clear\">lfrtip',\n                                    searching: false,\n                                    paging: true\n                                    }    \n                                );\n                                         \n                       });</script>\n\n                        ";
            //
            $returnStr .= "<br/><table id='issuetable' class='table table-bordered table-striped'><thead>";
            $returnStr .= "<th>" . Language::labelUpdateVariable() . "</th><th>" . Language::labelUpdateQuestion() . "</th><th>" . Language::labelUpdateCurrent() . "</th><th>" . Language::labelUpdateChangeTo() . "</th></tr>";
            $returnStr .= "</thead><tbody>";
            $modes = Common::surveyModes();
            $languages = Language::getLanguagesArray();
            $sesid = session_id();
            require_once 'object.php';
            require_once 'component.php';
            require_once 'setting.php';
            require_once 'type.php';
            require_once 'variabledescriptive.php';
            global $survey;
            $survey = new Survey(getFromSessionParams('watchsuid'));
            $cnt = 1;
            $params = getSessionParams();
            $params[SESSION_PARAM_SURVEY] = getFromSessionParams('watchsuid');
            // add for getSurvey
            $params['testpage'] = 'updateRes';
            $paramstring = setSessionParamsPost($params);
            foreach ($values as $is) {
                $var = $survey->getVariableDescriptiveByName($is["variablename"]);
                $returnStr .= "<tr>";
                $returnStr .= "<td>" . $is["variablename"] . "</td>";
                $returnStr .= "<td>" . $var->getQuestion() . "</td>";
                $returnStr .= "<td>" . $this->getDisplayValue($var, $is["answer_dec"]) . "</td>";
                $returnStr .= "<td>" . $this->displayInput($paramstring, $is["variablename"], $var, $is["answer_dec"], $cnt) . "</td>";
                $returnStr .= "</tr>";
                $cnt++;
            }
            $returnStr .= "</tbody></table>";
        }
        $returnStr .= '</div>
  </div>
</div>';
        $returnStr .= '                </div></div>';
        $returnStr .= '</p></div>    </div>';
        //container and wrap
        $returnStr .= $this->showFooter(false);
        echo $returnStr;
    }
开发者ID:nubissurveying,项目名称:nubis,代码行数:64,代码来源:updater.php

示例9: reportRes

 function reportRes()
 {
     global $db;
     $query = "insert into " . Config::dbSurvey() . "_issues (urid,suid,primkey,mainseid,seid,rgid,displayed,category,comment,status,language,mode,version) values (";
     $query .= getFromSessionParams('reporturid') . ",";
     $query .= getFromSessionParams('reportsuid') . ",";
     $query .= "'" . getFromSessionParams('reportprimkey') . "',";
     $query .= "'" . getFromSessionParams('reportmainseid') . "',";
     $query .= "'" . getFromSessionParams('reportseid') . "',";
     $query .= "'" . getFromSessionParams('reportrgid') . "',";
     $query .= "'" . getFromSessionParams('reportdisplayed') . "',";
     $query .= "'" . loadvar('reportcategory') . "',";
     $query .= "'" . loadvar('reportcomment') . "',";
     $query .= ISSUE_REPORTED . ", ";
     $query .= "'" . getFromSessionParams('reportlanguage') . "',";
     $query .= "'" . getFromSessionParams('reportmode') . "',";
     $query .= "'" . getFromSessionParams('reportversion') . "'";
     $query .= ")";
     //echo $query;
     $db->executeQuery($query);
     $returnStr = $this->showHeader(Language::messageSMSTitle());
     $returnStr .= '<div id="wrap">';
     $returnStr .= '<div class="container"><p>';
     $returnStr .= $this->reportSub('<div class="alert alert-success">' . Language::reportProblemConfirmation() . '</div>');
     //'<button onclick="window.close();" type="cancel" class="btn btn-default" style="min-width:100px">' . Language::buttonClose() . '</button>';
     $returnStr .= '                </div></div>';
     $returnStr .= '</p></div>    </div>';
     //container and wrap
     $returnStr .= $this->showFooter();
     echo $returnStr;
 }
开发者ID:nubissurveying,项目名称:nubis,代码行数:31,代码来源:reportissue.php

示例10: showPreferences

 function showPreferences($message = "")
 {
     $user = new User($_SESSION['URID']);
     $returnStr = $this->showSysAdminHeader(Language::messageSMSTitle());
     $returnStr .= '<div id="wrap">';
     $returnStr .= $this->showNavBar();
     $returnStr .= '<div class="container"><p>';
     $returnStr .= '<ol class="breadcrumb">';
     $returnStr .= '<li>' . Language::headerPreferences() . '</li>';
     $returnStr .= '</ol>';
     $returnStr .= $message;
     $returnStr .= '<form id="editform" method="post">';
     $returnStr .= setSessionParamsPost(array('page' => 'sysadmin.preferences.res'));
     $checked = '';
     if ($user->hasNavigationInBreadCrumbs()) {
         $checked = ' CHECKED';
     }
     $returnStr .= '<div class="checkbox"><label><input name=navigationinbreadcrumbs value="1" type="checkbox"' . $checked . '>' . Language::labelNavigationInBreadCrumbs() . '</label></div>';
     $checked = '';
     if ($user->hasHTMLEditor()) {
         $checked = ' CHECKED';
     }
     $returnStr .= '<div class="checkbox"><label><input name=htmleditor value="1" type="checkbox"' . $checked . '>' . Language::labelHTMLEditor() . '</label></div>';
     $checked = '';
     if ($user->hasRoutingAutoIndentation()) {
         $checked = ' CHECKED';
     }
     $returnStr .= '<div class="checkbox"><label><input name=routingautoindentation value="1" type="checkbox"' . $checked . '>' . Language::labelRoutingAutoIndentation() . '</label></div>';
     $count = $user->itemsInTable();
     if ($count == -1) {
         $count = "";
     }
     $returnStr .= "<table>";
     $helpstart = '<div class="input-group">';
     $message = Language::helpFollowEmpty();
     $helpend = '<span class="input-group-addon"><i>' . $message . '</i></span></div>';
     $returnStr .= "<tr><td>" . Language::labelTableListNumber() . "</td><td>" . $helpstart . ' <input name="itemsintable" type=text class="form-control" value="' . $count . '">' . $helpend . "</td></tr>";
     $returnStr .= "</table>";
     $returnStr .= '<br/>';
     $returnStr .= '<input type="submit" class="btn btn-default" value="' . Language::buttonSave() . '"/>';
     $returnStr .= '</form>';
     $returnStr .= '</p></div>    </div>';
     //container and wrap
     $returnStr .= $this->showBottomBar();
     $returnStr .= $this->showFooter(false);
     return $returnStr;
 }
开发者ID:nubissurveying,项目名称:nubis,代码行数:47,代码来源:displaysysadmin.php

示例11: showFollowupInfo

    function showFollowupInfo($respondent, $message = '')
    {
        $returnStr = $this->showNurseHeader(Language::messageSMSTitle());
        $returnStr .= '<div id="wrap">';
        $returnStr .= $this->showNavBar();
        $returnStr .= '<div class="container"><p>';
        $returnStr .= '<ol class="breadcrumb">';
        //        $returnStr .= '<li>' . setSessionParamsHref(array('page' => 'nurse.home'), 'Home') . '</li>';
        $returnStr .= '<li class="active">' . Language::labelNurseFollowUp() . '</li>';
        $returnStr .= '</ol>';
        //CONTENT
        $returnStr .= $message;
        $returnStr .= '<table>';
        $returnStr .= '<tr><td>' . Language::labelNurseFollowUpPhone1() . '</td><td>' . getData($respondent->getPrimkey(), 'TG003', 2) . '</td></tr>';
        $returnStr .= '<tr><td>' . Language::labelNurseFollowUpPhone2() . '</td><td>' . getData($respondent->getPrimkey(), 'TG004', 2) . '</td></tr>';
        $returnStr .= '<tr><td>' . Language::labelNurseFollowUpHouseholdHead() . '</td><td>' . getData($respondent->getPrimkey(), 'TG008', 2) . '</td></tr>';
        $returnStr .= '<tr><td>' . Language::labelNurseFollowUpSomeoneElse() . '</td><td>' . getData($respondent->getPrimkey(), 'TG010', 2) . '</td></tr>';
        $returnStr .= '</table>';
        //CALL AND INFO
        $returnStr .= '<hr>';
        $refpage = 'nurse.followup';
        $returnStr .= '<form method=post>';
        $returnStr .= setSessionParamsPost(array('page' => $refpage . '.addcontactres', 'primkey' => $respondent->getPrimkey()));
        $returnStr .= '<input type="hidden" name="contactwith" id="contactwith" value="' . loadvar('contactwith') . '">';
        $returnStr .= '<table width=100%>';
        $returnStr .= '<tr><td style="width:80px">' . Language::labelNurseFollowUpDateTime() . '</td><td style="width:220px">';
        if (loadvar('contactts') != '') {
            $returnStr .= $this->displayDateTimePicker('contactts', 'contactts', loadvar('contactts'), getSMSLanguagePostFix(getSMSLanguage()), "true", "true", Config::usFormatSMS());
        } else {
            $returnStr .= $this->displayDateTimePicker('contactts', 'contactts', date('m/d/Y h:i a'), getSMSLanguagePostFix(getSMSLanguage()), "true", "true", Config::usFormatSMS());
        }
        $returnStr .= '</td><td colspan=2></td></tr>';
        $returnStr .= '<tr><td style="width:90px">' . Language::labelOutcome() . '</td><td valign=top colspan=2>';
        $returnStr .= '<select class="form-control" name=contactcode id=outcomecode style="width:300px"><option value=-1>' . Language::labelPleaseSelect() . '</option>';
        $dispositionCodes = Language::optionsDispositionFollowupContactCode($respondent);
        foreach ($dispositionCodes as $option => $dispositionCode) {
            if ($dispositionCode[5] == 1) {
                //display in dropdown
                $selected = '';
                if (loadvar('contactcode') == $option) {
                    $selected = ' SELECTED';
                }
                $returnStr .= '<option value="' . $option . '"' . $selected . '>' . $option . ': ' . $dispositionCode[1] . '</option>';
            }
        }
        $returnStr .= '</select></td><td>

    <div id="contactwithdiv" style="display: none"><table width=100%><tr><td style="width:90px">' . Language::labelContactWith() . '</td><td>

			<div id="selector" class="btn-group">

				<button type="button" class="btn btn-default" value=1>' . Language::labelHouseholdMember() . '</button>

				<button type="button" class="btn btn-default" value=2>' . Language::labelProxy() . '</button>

			</div></td></tr></table>

      <div id="contactperson" style="display: none"><table width=100%><tr><td style="width:90px">' . Language::labelProxyName() . '</td><td>

        <input type=text class="form-control" name="contactperson"></td></tr></table>

      </div>



    </div>';
        $returnStr .= '<tr><td valign=top>' . Language::labelRemark() . '</td><td colspan=3>';
        $returnStr .= '<textarea class="form-control" name="contactremark">' . loadvar('contactremark') . '</textarea>';
        $returnStr .= '</td></tr>';
        /*
         $returnStr .= '<tr><td style="width:80px">' . Language::labelAppointment() . '</td><td style="width:220px">';
         $returnStr .= $this->displayDateTimePicker('contactappointment', 'contactappointment', loadvar('contactappointment'), getSMSLanguagePostFix(getSMSLanguage()), "true", "true", Config::usHourFormatSMS());
         $returnStr .= '</td><td colspan=2></td></tr>';
        */
        $returnStr .= '</table>';
        $returnStr .= '<hr>';
        $returnStr .= '<button type="submit" class="btn btn-default navbar-btn">' . Language::buttonAddContact() . '</button>';
        $returnStr .= '</form> <b> OR </b>';
        $returnStr .= $this->showStartButton($respondent, 7, false, 'Start follup survey', false);
        $returnStr .= '<br/>';
        $returnStr .= '

<script>





$(document).ready(function() {

    $(\'#outcomecode\').change(function() {

        $(\'#contactwithdiv\').css("display", "none");

        var element = $(this).find(\'option\').filter(\':selected\').val();';
        $check = array();
        $followup = Language::optionsDispositionFollowupContactCode($respondent);
        foreach ($followup as $option => $follow) {
            if ($follow[0] == '1') {
                $check[] = $option;
//.........这里部分代码省略.........
开发者ID:nubissurveying,项目名称:nubis,代码行数:101,代码来源:displaynurse.php

示例12: showReportsParadataVariable

 function showReportsParadataVariable($seid, $vsid)
 {
     if (loadvar(DATA_OUTPUT_TYPEDATA) != "") {
         if (loadvar(DATA_OUTPUT_TYPEDATA) == DATA_TEST) {
             $_SESSION[SURVEY_EXECUTION_MODE] = SURVEY_EXECUTION_MODE_TEST;
         } else {
             $_SESSION[SURVEY_EXECUTION_MODE] = SURVEY_EXECUTION_MODE_NORMAL;
         }
     } else {
         $_SESSION[SURVEY_EXECUTION_MODE] = SURVEY_EXECUTION_MODE_NORMAL;
     }
     $survey = new Survey($_SESSION['SUID']);
     $section = $survey->getSection($seid);
     $variable = $survey->getVariableDescriptive($vsid);
     $headers[] = array('link' => setSessionParamsHref(array('page' => 'researcher.reports'), Language::headerOutput()), 'label' => Language::headerOutputData());
     $headers[] = array('link' => setSessionParamsHref(array('page' => 'researcher.reports.statistics'), Language::headerOutputStatistics()), 'label' => Language::headerOutputStatistics());
     $headers[] = array('link' => setSessionParamsHref(array('page' => 'researcher.reports.paradata'), Language::headerOutputStatisticsParadata()), 'label' => Language::headerOutputStatisticsParadata());
     $headers[] = array('link' => setSessionParamsHref(array('page' => 'researcher.reports.paradata', 'suid' => $suid), $survey->getName()), 'label' => $survey->getName());
     $headers[] = array('link' => setSessionParamsHref(array('page' => 'researcher.reports.paradata.section', 'seid' => $seid), $section->getName()), 'label' => $section->getName());
     $headers[] = array('link' => '', 'label' => $variable->getName());
     $returnStr = $this->showResearchHeader(Language::messageSMSTitle());
     $returnStr .= '<div id="wrap">';
     $returnStr .= $this->showNavBar();
     $returnStr .= '<div class="container"><p>';
     $returnStr .= '<ol class="breadcrumb">';
     $returnStr .= '<li>' . setSessionParamsHref(array('page' => 'researcher.reports'), Language::headerReports()) . '</li>';
     $returnStr .= '<li>' . setSessionParamsHref(array('page' => 'researcher.reports.paradata'), Language::headerReportsParadata()) . '</li>';
     $returnStr .= '<li>' . setSessionParamsHref(array('page' => 'researcher.reports.paradata', 'suid' => $suid), $survey->getName()) . '</li>';
     $returnStr .= '<li>' . setSessionParamsHref(array('page' => 'researcher.reports.paradata.section', 'suid' => $suid), $section->getName()) . '</li>';
     $returnStr .= '<li class="active">' . $variable->getName() . '</li>';
     $returnStr .= '</ol>';
     $returnStr .= '<form id=surveyform method="post">';
     $returnStr .= '<span class="label label-default">' . Language::labelParadataDetails() . '</span>';
     $returnStr .= '<div class="well well-sm">';
     $returnStr .= '<table>';
     $returnStr .= $this->displayComboBox();
     $returnStr .= '<tr><td>' . Language::labelOutputDataType() . '</td><td>';
     $returnStr .= "<select id='typedata' class='selectpicker show-tick' name=" . DATA_OUTPUT_TYPEDATA . ">";
     $selected = array('', '');
     if (loadvar(DATA_OUTPUT_TYPEDATA) != "") {
         $selected[loadvar(DATA_OUTPUT_TYPEDATA)] = "selected";
     }
     //print_r($selected);
     $returnStr .= "<option " . $selected[0] . " value=" . DATA_REAL . ">" . Language::optionsDataReal() . "</option>";
     $returnStr .= "<option " . $selected[1] . " value=" . DATA_TEST . ">" . Language::optionsDataTest() . "</option>";
     $returnStr .= "</select>";
     $returnStr .= "</td></tr>";
     $returnStr .= '<script type=text/javascript>
                     $(document).ready(function(){
                         $("#typedata").on("change", function(event) {
                             document.getElementById("surveyform").submit();
                         });
                     });
                 </script>';
     $returnStr .= "</form>";
     $returnStr .= '</table>';
     $returnStr .= '<br/><table>';
     $returnStr .= '<tr><td valign=top style="min-width: 100px;">' . Language::labelTypeEditGeneralQuestion() . ": </td><td valign=top>";
     $returnStr .= $variable->getQuestion() . "</td></tr>";
     $returnStr .= '<tr><td valign=top>' . Language::labelTypeEditGeneralAnswerType() . ": </td><td valign=top>";
     $answertype = $variable->getAnswerType();
     $arr = Language::getAnswerTypes();
     $returnStr .= $arr[$answertype] . "</td></tr>";
     if (inArray($answertype, array(ANSWER_TYPE_ENUMERATED, ANSWER_TYPE_SETOFENUMERATED, ANSWER_TYPE_DROPDOWN, ANSWER_TYPE_MULTIDROPDOWN))) {
         $returnStr .= '<tr><td valign=top>' . Language::labelTypeEditGeneralCategories() . ": </td><td valign=top>";
         $returnStr .= str_replace("\r\n", "<br/>", $variable->getOptionsText()) . "</td></tr>";
     } else {
         if (inArray($answertype, array(ANSWER_TYPE_RANGE, ANSWER_TYPE_SLIDER))) {
             $returnStr .= '<tr><td valign=top>' . Language::labelTypeEditRangeMinimum() . ": </td><td valign=top>";
             $returnStr .= $variable->getMinimum() . "</td></tr>";
             $returnStr .= '<tr><td valign=top>' . Language::labelTypeEditRangeMaximum() . ": </td><td valign=top>";
             $returnStr .= $variable->getMaximum() . "</td></tr>";
         }
     }
     if ($variable->isArray()) {
         $returnStr .= $this->displayComboBox();
         $returnStr .= '<tr><td valign=top>' . Language::labelTypeEditGeneralArrayInstance() . ": </td><td valign=top>";
         $options = $this->getArrayData($_SESSION['SUID'], $variable->getName());
         $returnStr .= "<form id=instanceform method=post>";
         $returnStr .= "<select class='selectpicker show-tick' id='arrayinstance' name='arrayinstance'>";
         foreach ($options as $op) {
             $returnStr .= "<option value='" . $op . "'>" . $op . "</option>";
         }
         $returnStr .= "</select>";
         $returnStr .= "</td></tr>";
         $params = getSessionParams();
         $params['vsid'] = $variable->getVsid();
         $returnStr .= setSessionParamsPost($params);
         $returnStr .= "</form>";
         $returnStr .= "<script type='text/javascript'>";
         $returnStr .= "\$('#arrayinstance').change(function () {\n                                \$('#instanceform').submit();\n                            });";
         $returnStr .= "</script>";
     }
     $returnStr .= "</table></div>";
     $returnStr .= '<span class="label label-default">' . Language::labelAggregateData() . '</span>';
     $returnStr .= '<div class="well well-sm">';
     $data = new Data();
     $brackets = array();
     $varname = $variable->getName();
     if ($variable->isArray()) {
//.........这里部分代码省略.........
开发者ID:nubissurveying,项目名称:nubis,代码行数:101,代码来源:displayresearcher.php

示例13: showEditUser

 function showEditUser($urid, $message = "")
 {
     $user = new User($urid);
     $returnStr = $this->showSysAdminHeader(Language::messageSMSTitle());
     $returnStr .= '<div id="wrap">';
     $returnStr .= $this->showNavBar();
     $returnStr .= '<div class="container"><p>';
     $returnStr .= '<ol class="breadcrumb">';
     $returnStr .= '<li>' . setSessionParamsHref(array('page' => 'sysadmin.users'), Language::headerUsers()) . '</li>';
     if ($user->getUsername() == '') {
         $returnStr .= '<li>' . Language::labelUserAddUser() . '</li>';
     } else {
         $returnStr .= '<li>' . Language::labelEdit() . ' ' . $user->getUsername() . '</li>';
     }
     $returnStr .= '</ol>';
     $returnStr .= $message;
     $returnStr .= $this->displayComboBox();
     $returnStr .= '<form id="editform" method="post">';
     $returnStr .= '<span class="label label-default">' . Language::labelUserGeneral() . '</span>';
     $returnStr .= '<div class="well">';
     $returnStr .= setSessionParamsPost(array('page' => 'sysadmin.users.edituserres', 'urid' => $urid));
     $returnStr .= '<div class="row">';
     $returnStr .= '<div class="col-md-6">';
     $returnStr .= '<table>';
     $returnStr .= '<tr><td>' . Language::labelUserUserName() . '</td><td><input type="text" class="form-control" name="username" value="' . convertHTLMEntities($user->getUsername(), ENT_QUOTES) . '"></td></tr>';
     $returnStr .= '<tr><td>' . Language::labelUserUserNameName() . '</td><td><input type="text" class="form-control" name="name" value="' . convertHTLMEntities($user->getName(), ENT_QUOTES) . '"></td></tr>';
     $returnStr .= '<tr><td align=top>' . Language::labelUserActive() . '</td><td>';
     $returnStr .= $this->showDropDown(array(VARIABLE_ENABLED => Language::labelEnabled(), VARIABLE_DISABLED => Language::labelDisabled()), $user->getStatus(), 'status');
     $returnStr .= '</td></tr>';
     $returnStr .= '<tr><td align=top>' . Language::labelUserUserType() . '</td><td>';
     $returnStr .= $this->showDropDown(array(USER_INTERVIEWER => Language::labelInterviewer(), USER_NURSE => Language::labelNurse(), USER_SUPERVISOR => Language::labelSupervisor(), USER_TRANSLATOR => Language::labelTranslator(), USER_RESEARCHER => Language::labelResearcher(), USER_SYSADMIN => Language::labelSysadmin(), USER_TESTER => Language::labelTester()), $user->getUserType(), 'usertype', 'usertype');
     $returnStr .= '</td></tr>';
     $returnStr .= "<script type='text/javascript'>";
     $returnStr .= '$( document ).ready(function() {
                                             $("#usertype").change(function (e) {
                                                 if (this.value == ' . USER_NURSE . ') {
                                                     $("#subtype").show(); 
                                                     $("#subtype2").hide();                                                         
                                                 }   
                                                 else if (this.value == ' . USER_SYSADMIN . ') {
                                                     $("#subtype2").show(); 
                                                     $("#subtype").hide(); 
                                                 }
                                                 else {
                                                     $("#subtype").hide();                                                       
                                                     $("#subtype2").hide();
                                                 }
                                                 
                                                 if (this.value == ' . USER_INTERVIEWER . ' || this.value == ' . USER_CATIINTERVIEWER . ' || this.value == ' . USER_NURSE . ' || this.value == ' . USER_SUPERVISOR . ') {
                                                     $("#super").show();
                                                     $("#accessdiv").hide();
                                                     $("#surveyaccess").hide();
                                                 }
                                                 else {
                                                     $("#super").hide();
                                                     $("#accessdiv").show();
                                                     $("#surveyaccess").show();
                                                 }
                                             });
                                             })';
     $returnStr .= "</script>";
     if (inArray($user->getUserType(), array(USER_NURSE))) {
         $returnStr .= '<tr id=subtype><td align=top>' . Language::labelUserUserSubType() . '</td><td>';
         $returnStr .= $this->showDropDown(array(USER_NURSE_MAIN => Language::labelNurseMain(), USER_NURSE_LAB => Language::labelNurseLab(), USER_NURSE_FIELD => Language::labelNurseField(), USER_NURSE_VISION => Language::labelNurseVision()), $user->getUserSubType(), 'usersubtype');
         $returnStr .= '</td></tr>';
     } else {
         if (inArray($user->getUserType(), array(USER_SYSADMIN))) {
             $returnStr .= '<tr id=subtype2><td align=top>' . Language::labelUserUserSubType() . '</td><td>';
             $returnStr .= $this->showDropDown(array(USER_SYSADMIN_MAIN => Language::labelSysadminMain(), USER_SYSADMIN => Language::labelSysadminAdmin()), $user->getUserSubType(), 'usersubtype');
             $returnStr .= '</td></tr>';
         } else {
             $returnStr .= '<tr id=subtype style="display: none;"><td align=top>' . Language::labelUserUserSubType() . '</td><td>';
             $returnStr .= $this->showDropDown(array(USER_NURSE_MAIN => Language::labelNurseMain(), USER_NURSE_LAB => Language::labelNurseLab(), USER_NURSE_FIELD => Language::labelNurseField(), USER_NURSE_VISION => Language::labelNurseVision()), $user->getUserSubType(), 'usersubtype');
             $returnStr .= '</td></tr>';
             $returnStr .= '<tr id=subtype2 style="display: none;"><td align=top>' . Language::labelUserUserSubType() . '</td><td>';
             $returnStr .= $this->showDropDown(array(USER_SYSADMIN_MAIN => Language::labelSysadminMain(), USER_SYSADMIN => Language::labelSysadminAdmin()), $user->getUserSubType(), 'usersubtype');
             $returnStr .= '</td></tr>';
         }
     }
     if (inArray($user->getUserType(), array(USER_INTERVIEWER, USER_CATIINTERVIEWER, USER_NURSE, USER_SUPERVISOR))) {
         $returnStr .= '<tr id=super><td>' . Language::labelUserSupervisor() . '</td><td>';
         $users = new Users();
         $users = $users->getUsersByType(USER_SUPERVISOR);
         $returnStr .= $this->displayUsers($users, $user->getSupervisor(), 'uridsel', true);
         $returnStr .= '</td></tr>';
     }
     $extra = '';
     if (inArray($user->getUserType(), array(USER_NURSE, USER_INTERVIEWER, USER_SUPERVISOR, USER_CATIINTERVIEWER))) {
         $extra = "style='display: none;'";
     }
     $returnStr .= '<tr id="surveyaccess"' . $extra . '><td>' . Language::labelUserSurveyAllowed() . '</td><td>' . $this->displaySurveys(SETTING_USER_SURVEYS . "[]", SETTING_USER_SURVEYS, implode("~", $user->getSurveysAccess()), '', "multiple") . '</td></tr>';
     $returnStr .= '</table></div>';
     $returnStr .= '<div class="col-md-6">';
     $returnStr .= '<table>';
     $returnStr .= '<tr><td align=top>' . Language::labelUserPassword() . '</td><td><input type="text" class="form-control" name="pwd1"></td></tr>';
     $returnStr .= '<tr><td align=top>' . Language::labelUserPassword2() . '</td><td><input type="text" class="form-control" name="pwd2"></td></tr>';
     $returnStr .= '</table></div></div>';
     if ($urid != "") {
         $returnStr .= '<br/><input type="submit" class="btn btn-default" value="' . Language::buttonEdit() . '"/>';
     } else {
//.........这里部分代码省略.........
开发者ID:nubissurveying,项目名称:nubis,代码行数:101,代码来源:displayusers.php

示例14: showSmsHeader

 function showSmsHeader($actions, $navbar = true, $extra = '')
 {
     $returnStr = $this->showSysAdminHeader(Language::messageSMSTitle(), $extra);
     $returnStr .= '<div id="wrap">';
     if ($navbar) {
         $returnStr .= $this->showNavBar();
     }
     $returnStr .= '<div class="container">';
     if ($navbar) {
         $returnStr .= '<ol class="breadcrumb">';
         for ($i = 0; $i < sizeof($actions); $i++) {
             $action = $actions[$i];
             if ($action['link'] == '') {
                 $returnStr .= '<li class="active">' . $action['label'] . '</li>';
             } else {
                 $returnStr .= '<li>' . $action['link'] . '</li>';
             }
         }
         $returnStr .= '</ol>';
     }
     //        $returnStr .= '<div class="row row-offcanvas row-offcanvas-right">';
     //        $returnStr .= '<div id=sectiondiv class="col-xs-12 col-sm-9">';
     //        $returnStr .= $message;
     return $returnStr;
 }
开发者ID:nubissurveying,项目名称:nubis,代码行数:25,代码来源:displaysms.php

示例15: showHeader

 function showHeader()
 {
     $displaySysAdmin = new DisplaySysAdmin();
     $returnStr = $displaySysAdmin->showSysAdminHeader(Language::messageSMSTitle());
     return $returnStr;
 }
开发者ID:nubissurveying,项目名称:nubis,代码行数:6,代码来源:sysadmin.php


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