本文整理汇总了PHP中getTxt函数的典型用法代码示例。如果您正苦于以下问题:PHP getTxt函数的具体用法?PHP getTxt怎么用?PHP getTxt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getTxt函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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();
示例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);
}
示例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;
}
}
示例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>pookinfo@pookmail.com</managingEditor>
<webMaster>pookinfo@pookmail.com</webMaster>
<ttl>10</ttl>
EOT;
}
示例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();
示例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>
示例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>
示例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. ");
}
}
示例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>
示例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();
示例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">
示例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/>
示例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
示例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>