本文整理汇总了PHP中language::messageImportSurvey方法的典型用法代码示例。如果您正苦于以下问题:PHP language::messageImportSurvey方法的具体用法?PHP language::messageImportSurvey怎么用?PHP language::messageImportSurvey使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类language
的用法示例。
在下文中一共展示了language::messageImportSurvey方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showImport
function showImport($content = "")
{
$returnStr = $this->showToolsHeader(Language::headerToolsImporter());
$returnStr .= $this->displayComboBox();
$returnStr .= $content;
$returnStr .= "<form id=refreshform method=post>";
$returnStr .= '<input type=hidden name=page value="sysadmin.tools.import">';
$returnStr .= '<input type=hidden name="' . SMS_POST_IMPORTTYPE . '" id="' . SMS_POST_IMPORTTYPE . '_hidden" value="">';
$returnStr .= "</form>";
$returnStr .= '<form method="post" enctype="multipart/form-data">';
$returnStr .= setSessionParamsPost(array('page' => 'sysadmin.tools.importres'));
$returnStr .= '<span class="label label-default">' . Language::labelToolsImportSettings() . '</span>';
$returnStr .= '<div class="well well-sm">';
$returnStr .= '<table>';
$sel = array(IMPORT_TYPE_BLAISE => "", IMPORT_TYPE_MMIC => "", IMPORT_TYPE_NUBIS => "");
if (loadvar(SMS_POST_IMPORTTYPE) != "") {
$sel[loadvar(SMS_POST_IMPORTTYPE)] = "SELECTED";
}
$returnStr .= '<tr><td>' . Language::labelToolsImportType() . "</td>\n <td><select onchange='document.getElementById(\"" . SMS_POST_IMPORTTYPE . "_hidden\").value=this.value; document.getElementById(\"refreshform\").submit();' class='selectpicker show-tick' name='" . SETTING_IMPORT_TYPE . "'>" . '
<option ' . $sel[IMPORT_TYPE_NUBIS] . ' value=' . IMPORT_TYPE_NUBIS . '>' . Language::labelToolsImportTypeNubis() . '</option>
<option ' . $sel[IMPORT_TYPE_MMIC] . ' value=' . IMPORT_TYPE_MMIC . '>' . Language::labelToolsImportTypeMMIC() . '</option>
</select></td>
</tr>';
$returnStr .= '<tr><td>' . Language::labelToolsImportTarget() . '</td>
<td><select class="selectpicker show-tick" name="' . SETTING_IMPORT_AS . '">
<option value=' . IMPORT_TARGET_ADD . '>' . Language::labelToolsImportTargetAdd() . '</option>
<option value=' . IMPORT_TARGET_REPLACE . '>' . Language::labelToolsImportTargetReplace() . '</option>';
$returnStr .= '</select></td>
</tr>';
$returnStr .= '</table>';
$returnStr .= '</div>';
if (loadvar(SMS_POST_IMPORTTYPE) == IMPORT_TYPE_MMIC) {
$returnStr .= '<span class="label label-default">' . Language::labelToolsImportDatabase() . '</span>';
$returnStr .= '<div class="well well-sm">';
$returnStr .= '<table>';
$returnStr .= '<tr><td>' . Language::labelDatabaseServer() . '</td><td><input class="form-control" type=text name="' . SETTING_IMPORT_SERVER . '" placeholder="localhost" /></td></tr>';
$returnStr .= '<tr><td>' . Language::labelDatabaseName() . '</td><td><input class="form-control" type=text name="' . SETTING_IMPORT_DATABASE . '" value="" /></td></tr>';
$returnStr .= '<tr><td>' . Language::labelDatabaseUsername() . '</td><td><input class="form-control" type=text name="' . SETTING_IMPORT_USER . '" value="" /></td></tr>';
$returnStr .= '<tr><td>' . Language::labelDatabasePassword() . '</td><td><input class="form-control" type=password name="' . SETTING_IMPORT_PASSWORD . '" /></td></tr>';
$returnStr .= '<tr><td>' . Language::labelDatabaseTablename() . '</td><td><input class="form-control" type=text name="' . SETTING_IMPORT_TABLE . '" value="" /></td></tr>';
$returnStr .= '</table>';
$returnStr .= '</div>';
} else {
$returnStr .= '<span class="label label-default">' . Language::labelToolsImportFile() . '</span>';
$returnStr .= '<div class="well well-sm">';
//$returnStr .= "<textarea placeholder='Paste contents of export file here' class='form-control' style='min-width: 300px; width: 100%; min-height: 300px;' name='" . SETTING_IMPORT_TEXT . "'></textarea>";
$returnStr .= '<div style="position:relative;"><a class="btn btn-primary" href="javascript:;">' . Language::buttonBrowse() . '
<input type="file" style="position:absolute;z-index:2;top:0;left:0;filter: alpha(opacity=0);-ms-filter:\'progid:DXImageTransform.Microsoft.Alpha(Opacity=0)\';opacity:0;background-color:transparent;color:transparent;" name="' . SETTING_IMPORT_TEXT . '" size="40" onchange=\'$("#upload-file-info").html($(this).val());\'>
</a>
<span class="label label-info" id="upload-file-info"></span></div>';
$returnStr .= '</div>';
}
$returnStr .= '<input type="submit" class="btn btn-default" ' . confirmAction(language::messageImportSurvey(), 'IMPORT') . ' value="' . Language::buttonImport() . '"/>';
$returnStr .= '</form>';
//END CONTENT
$returnStr .= '</p></div> </div>';
//container and wrap
$returnStr .= $this->showBottomBar();
$returnStr .= $this->showFooter(false);
return $returnStr;
}