本文整理汇总了PHP中getTxt函数的典型用法代码示例。如果您正苦于以下问题:PHP getTxt函数的具体用法?PHP getTxt怎么用?PHP getTxt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getTxt函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: delete
public function delete()
{
$sourceid = end($this->uri->segment_array());
if ($sourceid == "delete") {
$data['errorMsg'] = "One of the parameters: SourceID is not defined. An example request would be delete/1";
$this->load->view('templates/apierror', $data);
return;
}
$result = $this->sources->delete($sourceid);
if ($result) {
if ($this->input->get('ui', TRUE)) {
addSuccess(getTxt('SourceMetadataDeleted'));
}
$output = "success";
} else {
if ($this->input->get('ui', TRUE)) {
addError(getTxt('ProcessingError'));
}
$output = "failed";
}
$output = array("status" => $output);
echo json_encode($output);
}
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:23,代码来源:source.php
示例2: HTML_Render_Head
<?php
HTML_Render_Head($js_vars, 'Setup');
echo $JS_JQuery;
echo $CSS_Main;
HTML_Render_Body_StartInstall();
genHeading('InstallationComplete', true);
?>
<p><?php
echo getTxt('CongratsInstall');
?>
</p>
<p><?php
echo getTxt('Login');
?>
</p>
<p><a href='<?php
echo base_url('index.php/' . $db . '/home');
?>
' class="button2"><?php
echo getTxt('GoToSite');
?>
</a></p>
</div>
<?php
HTML_Render_Body_End();
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:27,代码来源:successinstall.php
示例3: add
public function add()
{
if ($_POST) {
$dbName = substr(BASEURL2, 0, -1);
$name = 'topBanner' . $dbName;
//Processing the SiteImage.
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|png|jpeg';
$config['max_size'] = '1024';
$config['max_width'] = '0';
$config['max_height'] = '0';
$config['file_name'] = $name;
$config['overwrite'] = TRUE;
$this->load->library('upload', $config);
if (!$this->upload->do_upload('banner')) {
addError(getTxt('FailMoveFile') . $this->upload->display_errors());
} else {
$uploaddata = $this->upload->data();
$ext = $uploaddata['file_ext'];
//Delete any other files.
$this->deleteOthers($name, $ext);
addSuccess(getTxt('SiteSuccessfullyEdited'));
}
}
$data = $this->StyleData;
$this->load->view('banner/add', $data);
}
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:27,代码来源:banner.php
示例4: check_database
function check_database($password)
{
//Field validation succeeded. Validate against database
$username = $this->input->post('username');
//query the database
$result = $this->users->login($username, $password);
if ($result) {
foreach ($result as $row) {
//Set the SESSION
fetch_session();
$_SESSION['username'] = $username;
$_SESSION['user_auth'] = $row->authority;
addSuccess(getTxt('LogInSuccess'));
}
return TRUE;
} else {
addError(getTxt('Incorrect'));
return false;
}
}
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:20,代码来源:auth.php
示例5: rss_getHeader
function rss_getHeader($charset = 'ISO-8859-1')
{
$now = time();
$year = date("Y", $now);
$build = date("D, j M Y H:i:s T", $now);
$desc = getTxt('rss.desc');
return <<<EOT
<?xml version="1.0" encoding="{$charset}" ?>
<rss version="2.0">
<channel>
<title>PookMail.com</title>
<link>http://www.pookmail.com</link>
<description>{$desc}</description>
<copyright>Copyright 2004-{$year}, PookMail.com</copyright>
<generator>PookMail 1.0</generator>
<managingEditor>[email protected]</managingEditor>
<webMaster>[email protected]</webMaster>
<ttl>10</ttl>
EOT;
}
开发者ID:Git-Host,项目名称:pookmail,代码行数:21,代码来源:ui.rss.php
示例6: getTxt
<span><?php
echo getTxt('CompareTwo');
?>
</span>
</div>
<div style="overflow: hidden;" id="window3Content">
</div>
</div>
<div id="window4">
<div id="window4Header">
<span><?php
echo getTxt('CompareTwo');
?>
</span>
</div>
<div style="overflow: hidden;" id="window4Content">
</div>
</div>
<div id="window5">
<div id="window5Header">
<span><?php
echo getTxt('CompareTwo');
?>
</span>
</div>
<div style="overflow: hidden;" id="window5Content">
</div>
</div>
<?php
HTML_Render_Body_End();
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:31,代码来源:details.php
示例7: addHidden
return false;
}
addHidden('datatype');
checkitem = $('#datatype').jqxDropDownList('getSelectedItem');
if ((checkitem == null)||(checkitem.value=="-1")){
//alert("Please select the Data Type.");
alert(<?php
echo "'" . getTxt('SelectDataTypeMsg') . "'";
?>
);
return false;
}
addHidden('gc');
checkitem = $('#gc').jqxDropDownList('getSelectedItem');
if ((checkitem == null)||(checkitem.value=="-1")){
//alert("Please select the Category.");
alert(<?php
echo "'" . getTxt('SelectCategoryMsg') . "'";
?>
);
return false;
}
//Checking ends
//Controller takes over from this point onwards.
return true;
});
</script>
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:31,代码来源:editvar.php
示例8: getTxt
//Value Check
checkid='value'+j;
if(validatenum(checkid)==false)
{
alert(<?php
echo "'" . getTxt('ErrorInRow') . "'";
?>
+j+": "+<?php
echo "'" . getTxt('EnterValidValue') . "'";
?>
);
return false;
}
valid_rows=valid_rows+1;
}
}
var final_result=1;
if(valid_rows==0)
{
alert(<?php
echo "'" . getTxt('EnterOneValue') . "'";
?>
);
return false;
}
return true;
});
</script>
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:30,代码来源:addmultiplevalues.php
示例9: variables
public function variables()
{
// adds a variable to hydroserver
// reading the POST data
$postdata = file_get_contents('php://input');
// read and check the JSON in the POST data
$data = $this->check_json($postdata);
// checking user name and password
$this->auth($data);
//check the parameters for variable
if (!isset($data->VariableCode)) {
$this->exit_missing_parameter("VariableCode");
}
if (!isset($data->VariableName)) {
$this->exit_missing_parameter("VariableName");
}
if (!isset($data->Speciation)) {
$this->exit_missing_parameter("Speciation");
}
if (!isset($data->VariableUnitsID)) {
$this->exit_missing_parameter("VariableUnitsID");
}
if (!isset($data->SampleMedium)) {
$this->exit_missing_parameter("SampleMedium");
}
if (!isset($data->ValueType)) {
$this->exit_missing_parameter("ValueType");
}
if (!isset($data->IsRegular)) {
$this->exit_missing_parameter("IsRegular");
}
if (!isset($data->TimeSupport)) {
$this->exit_missing_parameter("TimeSupport");
}
if (!isset($data->TimeUnitsID)) {
$this->exit_missing_parameter("TimeUnitsID");
}
if (!isset($data->DataType)) {
$this->exit_missing_parameter("DataType");
}
if (!isset($data->GeneralCategory)) {
$this->exit_missing_parameter("GeneralCategory");
}
if (!isset($data->NoDataValue)) {
$this->exit_missing_parameter("NoDataValue");
}
//check if the VariableCode is valid: can't insert duplicate variable code
$VariableCodes = $this->getIDS($this->variables->getAll(), "VariableCode");
$VariableCode = $data->VariableCode;
if (in_array($VariableCode, $VariableCodes)) {
$this->exit_duplicate_parameter("VariableCode", $VariableCode);
}
$Variable = array('VariableCode' => $VariableCode, 'VariableName' => $data->VariableName, 'Speciation' => $data->Speciation, 'VariableUnitsID' => $data->VariableUnitsID, 'SampleMedium' => $data->SampleMedium, 'ValueType' => $data->ValueType, 'IsRegular' => $data->IsRegular, 'TimeSupport' => $data->TimeSupport, 'TimeUnitsID' => $data->TimeUnitsID, 'DataType' => $data->DataType, 'GeneralCategory' => $data->GeneralCategory, 'NoDataValue' => $data->NoDataValue);
// now we can use the model for adding one variable to the DB
$result = $this->variables->add($Variable);
if ($result <= 0) {
exit_error(getTxt('ProcessingError') . " Error while adding site. ");
}
$variableID = $result;
if ($result) {
//show response status
$response = array('status' => '200 OK', 'message' => 'variable added: ID=' . $variableID);
echo json_encode($response);
exit;
} else {
exit_error(getTxt('ProcessingError') . " Error while adding variable. ");
}
}
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:68,代码来源:api.php
示例10: getTxt
?>
);
return false;
}
});
}
return false;
}
//When the "Save Edits" button is clicked, validate the fields and then submit the request
$("#editmethod").submit(function (){
if(($("#MethodDescription2").val())==''){
alert(<?php
echo "'" . getTxt('MethodNameRequired') . "'";
?>
);
return false;
}else{
return true;
}
});
//When the "Cancel" button is clicked, clear the fields and reload the page
function clearEverything(){
window.open(base_url+"methods/change/","_self");
}
</script>
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:31,代码来源:changemethod.php
示例11: HTML_Render_Head
<?php
HTML_Render_Head($js_vars, getTxt('RemoveUser'));
echo $CSS_Main;
echo $JS_JQuery;
HTML_Render_Body_Start();
genHeading('RemoveExistingUser', true);
$attributes = array('class' => 'form-horizontal');
echo form_open('user/delete', $attributes);
genSelect('UserName', "username", "username", $option_block, 'SelectUsernameEllipisis', true);
genSubmit('RemoveUser');
HTML_Render_Body_End();
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:12,代码来源:delete.php
示例12: base_url
<script type="text/javascript" src="<?php
echo base_url();
?>
assets/services/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<?php
echo base_url();
?>
assets/services/js/jquery-ui-1.10.3.custom.min.js"></script>
</head>
<body>
</script>
<div id="container">
<h1><?php
echo getTxt('Welcome') . ' ' . getTxt('To') . ' Hydroserver Lite JSON API';
?>
</h1>
<div id="body">
<div id="base_info">
<div class="info_container">
<label class="info_label"><a href="<?php
echo site_url('services/api/sources');
?>
" class="info_link">sources</a></label>
<div class="info_content">
<div class="link_desc">
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:30,代码来源:api.php
示例13: getTxt
<div>
<?php
echo getTxt('ToDate');
?>
</div>
<div id="jqxDateTimeInputtoc">
</div></div></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> <input type="button" value="<?php
echo getTxt('PlotAll');
?>
" id='all' /></td>
<td> </td>
<td> <input type="button" value="<?php
echo getTxt('PlotSelectedRange');
?>
" id='selected' /></td>
</tr>
</table>
<input style=" visibility:hidden"id="fromc" type="text" disabled/>
<input style=" visibility:hidden"id="toc" type="text" disabled/>
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:30,代码来源:5.php
示例14: explode
</div>
<?php
}
?>
<?php
if (trim($email) != '@pookmail.com') {
?>
<p id="rss"><span class="rss" title="RSS Version 2.0">RSS 2.0</span>
<a href="/rss/<?php
$_e = explode("@", $email);
echo $_e[0];
?>
.xml" title="Really Symple Syndication (RSS)">
<?php
echo getTxt('rsssubscription');
?>
</a></p>
<?php
}
//end if
?>
<p id="nummails">
<?php
echo getLabel('have');
?>
<b><?php
echo count($mails);
?>
</b> <?php
开发者ID:Git-Host,项目名称:pookmail,代码行数:31,代码来源:mailbox.php
示例15: getTxt
?>
);
return false;
}
if(($("#VerticalDatum option:selected").val())==-1){
alert(<?php
echo "'" . getTxt('SelectVerticalDatum') . "'";
?>
);
return false;
}
if(($("#LatLongDatumID option:selected").val())==-1){
alert(<?php
echo "'" . getTxt('SelectSpatialReference') . "'";
?>
);
return false;
}
//All Validation Checks completed. Now add data to the database.
//Add this to the form.
return true;
});
</script>
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:31,代码来源:addsite.php
示例16: site_url
</a>
<ul style="list-style: none;" class="collapse" id="dataMgmt">';
echo "<li class=\"add_single_value\"><a href='" . site_url('datapoint/addvalue') . "'>" . getTxt('AddSingleValue') . "</a></li>";
echo "<li class=\"add_multiple_value\"><a href='" . site_url('datapoint/addmultiplevalues') . "'>" . getTxt('AddMultipleValues') . "</a></li>";
echo "<li class=\"import_data\"><a href='" . site_url('datapoint/importfile') . "'>" . getTxt('ImportDataFiles') . "</a></li>";
echo "</ul>";
echo "</li>";
}
echo "<li class=\"search\"><a href='" . site_url('sites/map') . "'>" . getTxt('SearchData') . "</a></li>";
echo "<li class=\"help\"><a href='" . site_url('home/help') . "'>" . getTxt('Help') . "</a></li>";
echo "<li class=\"search\"><a href='" . "/climate/services/" . "'>" . getTxt('WebServices') . "</a></li>";
if (isLoggedIn()) {
echo "<li class=\"home\"><a href='" . site_url("home") . "'>" . getTxt('Home') . "</a></li>";
echo "<li class=\"login\"><a href='" . site_url("auth/logout") . "'>" . getTxt('Logout') . "</a></li>";
} else {
echo "<li class=\"login\"><a href='#' onclick='showLogin()';>" . getTxt('LoginButton') . "</a></li>";
}
echo '
</ul>
</div></div>';
if (!isLoggedIn()) {
?>
<script type="text/javascript">
function showLogin(show) {
var loginForm = $("#loginHolder");
if (typeof show == "undefined" || show) {
loginForm.show();
$("#username").focus();
} else {
loginForm.hide();
}
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:31,代码来源:nav_parts.php
示例17: getTxt
</center>
</div>
<p />
<?php
echo getTxt('whatispookmail');
?>
</div>
</td>
</tr>
<!--
<tr><td>
<div id="mod">
<?php
echo getTxt('request4trans');
?>
</div>
</td></tr>
-->
<tr><td>
<div id="copyright">
Copyright (c) pookmail.com 2004-<?php
echo date('Y');
?>
</div>
</td></tr>
</table>
</form>
开发者ID:Git-Host,项目名称:pookmail,代码行数:31,代码来源:index.php
示例18: getTxt
});
}
});
} </script>
<table width="630" border="0">
<tr>
<td colspan="4"></td>
</tr>
<tr>
<td colspan="4"><?php
echo getTxt('SelectMethodVariable');
?>
</td>
</tr>
<tr>
<td width="113"><strong><?php
echo getTxt('Method');
?>
</strong></td>
<td width="241"><div id="methodlistc"></div></td>
<td width="24"> </td>
<td width="234"> </td>
</tr>
</table>
<input style=" visibility:hidden"id="methodidc" type="text" disabled/>
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:31,代码来源:4.php
示例19: getTxt
echo "'" . getTxt('EnterMetadataTitle') . "'";
?>
);
return false;
}
if(($("#Abstract").val())==""){
alert(<?php
echo "'" . getTxt('EnterMetadataAbstract') . "'";
?>
);
return false;
}
if(($("#MetadataLink").val())!=""){
var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
if(!($("#Metadatalink").val().match(regexp))){
alert(<?php
echo "'" . getTxt('InvalidURLMetadata') . "'";
?>
);
return false;
}
}
return true;
});
</script>
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:29,代码来源:addsource.php
示例20: getTxt
}
});
}
</script>
<table width="630" border="0">
<tr>
<td colspan="4"></td>
</tr>
<tr>
<td colspan="4"><?php
echo getTxt('SelectVariable');
?>
</td>
</tr>
<tr>
<td width="67"><strong><?php
echo getTxt('Variable');
?>
</strong></td>
<td width="239"><div id="dropdownlistc"></div></td>
<td width="55"> </td>
<td width="221"> </td>
</tr>
</table>
<input style=" visibility:hidden"id="siteidc" type="text" disabled/>
<input style=" visibility:hidden"id="sitenamec" value="<?php
echo $SiteName;
?>
"type="text" disabled/>
<input style=" visibility:hidden"id="varnamec" type="text" disabled/>
开发者ID:CMIP5,项目名称:HUC8Climate,代码行数:31,代码来源:2.php
注:本文中的getTxt函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论