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); }
<?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();
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); }
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; } }
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; }
<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();
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>
//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>
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. "); } }
?> ); 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>
<?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();
<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">
<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/>
</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
?> ); 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>
</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(); }
</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>
}); } }); } </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/>
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>
} }); } </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/>
function genSubmit($labelKey, $end = true) { echo '<div class="col-md-3 col-md-offset-9"> <input type="SUBMIT" name="submit" value="' . getTxt($labelKey) . '" class="button"/></div> </FORM>'; if ($end) { echo "</div>"; } }
<?php $attributes = array('class' => 'form-horizontal', 'name' => 'editmethod', 'id' => 'editmethod'); echo form_open('methods/change', $attributes); genInputT('MethodId', 'MethodID2', 'MethodID2', false, 'value="' . $Method['MethodID'] . '" readonly', 'MayNotEdit'); //echo '<span class="help-block"><br/>'.getTxt('MayNotEdit').'</span>'; genInputT('MethodName', 'MethodDescription2', 'MethodDescription2', true, 'value="' . $Method['MethodDescription'] . '"', 'ExMethodName'); //echo '<span class="help-block"><br/>'.getTxt('ExMethodName').'</span>'; genInputT('MethodLinkColon', 'MethodLink2', 'MethodLink2', false, 'value="' . $Method['MethodLink'] . '"', 'ExMethodLink'); //echo '<span class="help-block"><br/>'.getTxt('ExMethodLink').'</span>'; ?> <div class="col-md-5 col-md-offset-5"> <input type='SUBMIT' name='submit' value='<?php echo getTxt('SaveEdits'); ?> ' class='button' style='width: auto'/> <input type='button' name='delete' value='<?php echo getTxt('Delete'); ?> ' class='button' style='width: auto' onClick='confirmBox()'/> <input type='button' name='Reset' value='<?php echo getTxt('Cancel'); ?> ' class='button' style='width: auto' onClick='clearEverything()'/> </FORM> </div>
function show_card_in_torget($cardid, $inpopup = false, $exp_kvittar = false) { global $langarray; global $uid; include_once "langfunctions.php"; $langarray = run_lang($_SERVER['DOCUMENT_ROOT'] . '/kortparmen/cardcollection'); $namnet = mysql_result(mysql_query("SELECT name FROM cards WHERE id = {$cardid}"), 0); $checken = "kortid = '{$cardid}'"; $checken_want = "(kortid = '{$cardid}' OR IF(exp_kvittar = 'on',cards.name ='" . addslashes($namnet) . "',NULL))"; if ($exp_kvittar) { $checken = "cards.name = '" . addslashes($namnet) . "'"; } if ($inpopup) { $blanklink = " target=\"_blank\""; } else { $blanklink = ""; } $text = ''; $query = mysql_query("SELECT username, medlemmar.id AS hansid, suid, SUM(antal) AS antal, MAX(expiry), foil, sign FROM medlemmar, torget_have \n\t\tINNER JOIN cards ON kortid = cards.id\n\t\tLEFT OUTER JOIN sessions ON medlemmar.ID = sessions.suid \n\t\tWHERE {$checken} AND uid = medlemmar.id AND dold != 'on' AND byte = '1' AND biz = '0' AND DATEDIFF(CURDATE( ) , lastlogin) < 30 \n\t\tAND FIND_IN_SET(SUBSTRING(language_settings,1,1), '{$_SESSION['lang_string']}') GROUP BY hansid ORDER BY lastlogin DESC"); $antal = mysql_num_rows($query); ?> <div class="box bla"><h1><?php echo getTxt("ON HAVE"); ?> </h1> <div> <?php if ($antal) { while ($res = mysql_fetch_array($query)) { if ($res[foil] == 'Ja') { $foil = "<img src=\"../bilder/hw_foil.gif\" align=\"absmiddle\"> "; } else { $foil = ""; } if ($res[sign] == 'Ja') { $sign = "<img src=\"../bilder/hw_signerad.gif\" align=\"absmiddle\"> "; } else { $sign = ""; } if ($res[suid]) { $text .= "<b>"; } $text .= '<a href="../medlem/kort.php?ID=' . $res[hansid] . '"' . $blanklink . '>' . $res[username] . '</a>'; if ($res[suid]) { $text .= "</b>"; } $text .= ' ' . $foil . $sign . '(' . $res[antal] . '), '; } echo substr($text, 0, -2); } else { echo '- ' . getTxt("none") . ' -'; } ?> </div> </div> <!-- vi har kortet på vår want!!! --> <?php $text = ''; $query = mysql_query("SELECT username, medlemmar.id AS hansid, suid, SUM(antal) AS antal, foil, MAX(expiry), sign FROM medlemmar, torget_want\n\t\tINNER JOIN cards ON kortid = cards.id\n\t\tLEFT OUTER JOIN sessions ON medlemmar.ID = sessions.suid\n\t\tWHERE {$checken_want} AND uid = medlemmar.id AND dold != 'on' AND (byte = '1' OR kopes = '1') AND biz = '0' AND DATEDIFF(CURDATE( ) , lastlogin) < 30 \n\t\tAND FIND_IN_SET(SUBSTRING(language_settings,1,1), '{$_SESSION['lang_string']}') GROUP BY hansid ORDER BY lastlogin DESC"); $antal = mysql_num_rows($query); ?> <div class="box gron"><h1><?php echo getTxt("ON WANT"); ?> </h1> <div> <?php if ($antal) { while ($res = mysql_fetch_array($query)) { if ($res[foil] == 'Ja') { $foil = "<img src=\"../bilder/hw_foil.gif\" align=\"absmiddle\"> "; } else { $foil = ""; } if ($res[sign] == 'Ja') { $sign = "<img src=\"../bilder/hw_signerad.gif\" align=\"absmiddle\"> "; } else { $sign = ""; } if ($res[suid]) { $text .= "<b>"; } $text .= '<a href="../medlem/kort.php?ID=' . $res[hansid] . '&h_or_w=want"' . $blanklink . '>' . $res[username] . '</a>'; if ($res[suid]) { $text .= "</b>"; } $text .= ' ' . $foil . $sign . '(' . $res[antal] . getTxt("st") . '), '; } echo substr($text, 0, -2); } else { echo '- ' . getTxt("none") . ' -'; } ?> </div> </div> <!-- Till salu --> <?php $text = ''; $query = mysql_query($kennet = "SELECT username, medlemmar.id AS hansid, torget_have.lang_id, IF(antal > 1,ROUND(pris/antal),pris) AS pris, MAX(expiry), SUM(antal) AS antal, foil, sign, suid, cards.name FROM medlemmar, torget_have \n\t\t\tINNER JOIN cards ON kortid = cards.id\n\t\t\tLEFT OUTER JOIN sessions ON medlemmar.ID = sessions.suid\n\t\t\tLEFT OUTER JOIN torget_auctions ON torget_auctions.aID = torget_have.auktion\n\t\t\tWHERE {$checken} AND uid = medlemmar.id AND dold != 'on' AND biz = '0' AND saljes = '1' AND pris > 0 \n\t\t\tAND IF(auktion > 0,torget_auctions.status = 'active',true)\n\t\t\tAND currentbid != pris AND DATEDIFF(CURDATE( ) , lastlogin) < 30 \n\t\t\tAND FIND_IN_SET(SUBSTRING(language_settings,1,1), '{$_SESSION['lang_string']}') GROUP BY hansid ORDER BY pris"); # if($uid == 1) echo $kennet; $antal = mysql_num_rows($query); ?> <div class="box rod"><h1><?php echo getTxt("FOR SALE"); ?> </h1><div> <?php if ($antal) { while ($res = mysql_fetch_array($query)) { if ($res[foil] == 'Ja') { $foil = "<img src=\"../bilder/hw_foil.gif\" align=\"absmiddle\"> "; } else { $foil = ""; } if ($res[sign] == 'Ja') { $sign = "<img src=\"../bilder/hw_signerad.gif\" align=\"absmiddle\"> "; } else { $sign = ""; } if ($res[suid]) { $text .= "<b>"; } $text .= '<a href="../medlem/kort.php?ID=' . $res[hansid] . '&h_or_w=have&kortnamn=' . $res[name] . '&saljes=1"' . $blanklink . '>' . $res[username] . '</a>'; if ($res[suid]) { $text .= "</b>"; } $text .= ' ' . $res[pris] . valuta($res[lang_id], 2) . ' ' . $foil . $sign . '(' . $res[antal] . getTxt("st") . ')<br>'; } echo substr($text, 0, -4); } else { echo "- " . getTxt("none") . " -"; } ?> </div></div> <!-- Köpes --> <div class="box gra"><h1><?php echo getTxt("WANTS TO BUY"); ?> </h1><div> <?php $text = ''; $query = mysql_query("SELECT username, SUM(antal) AS antal, lang_id, medlemmar.id AS hansid, IF(antal > 1,ROUND(pris/antal),pris) AS pris, MAX(expiry), foil, suid, cards.name FROM medlemmar, torget_want\n\t\t\tINNER JOIN cards ON kortid = cards.id\n\t\t\tLEFT OUTER JOIN sessions ON medlemmar.ID = sessions.suid\n\t\t\tWHERE {$checken} AND uid=medlemmar.id AND dold != 'on' AND biz = '0' AND kopes = '1' AND pris > 0 AND DATEDIFF(CURDATE( ) , lastlogin) < 30 \n\t\t\tAND FIND_IN_SET(SUBSTRING(language_settings,1,1), '{$_SESSION['lang_string']}') GROUP BY hansid ORDER BY pris DESC"); if (mysql_num_rows($query)) { while ($res = mysql_fetch_array($query)) { if ($res[foil] == 'Ja') { $foil = "<img src=\"../bilder/hw_foil.gif\" align=\"absmiddle\"> "; } else { $foil = ""; } if ($res[sign] == 'Ja') { $sign = "<img src=\"../bilder/hw_signerad.gif\" align=\"absmiddle\"> "; } else { $sign = ""; } if ($res[suid]) { $text .= "<b>"; } $text .= '<a href="../medlem/kort.php?ID=' . $res[hansid] . '&h_or_w=want&kortnamn=' . $res[name] . '&kopes=1"' . $blanklink . '>' . $res[username] . '</a>'; if ($res[suid]) { $text .= "</b>"; } $text .= ' ' . $res[pris] . valuta($res[lang_id], 2) . ' ' . $foil . $sign . '(' . $res[antal] . getTxt("st") . ')<br>'; } echo substr($text, 0, -4); } else { echo "- " . getTxt("none") . " -"; } ?> </div></div> <?php inline_popup("click", "100", " <b class='text_gra brodtext'>" . getTxt("Info about the lists") . "</b>", getTxt("THE LISTS"), "../bilder/help_gray.gif", getTxt("Lists_info"), "gra", "layer1", ""); ?> <div class="prickrad_x"> </div> <!-- S‰ljauktion --> <?php $query = mysql_query("SELECT COUNT(torget_auctions_autobid.ID) AS antal_bud, cards.name AS kortnamn, torget_have.lang_id, torget_auctions.topic, IF( enddate > now( ) , IF( HOUR( timediff( enddate, now( ) ) ) >24, concat( DATEDIFF( enddate, now( ) ) , ' " . getTxt("days left") . "' ) , concat( HOUR( timediff( enddate, now( ) ) ) , 'h ', minute( timediff( enddate, now( ) ) ) , '" . getTxt("min left") . "' ) ) , '" . getTxt("overtime") . "' ) AS slutdatum, torget_auctions.aID, username, medlemmar.id, currentbid, auktion, foil, sign, count(torget_auctions.aID) AS antal FROM medlemmar, torget_have, torget_auctions\n\t\t\tINNER JOIN cards ON kortid = cards.id\n\t\t\tLEFT OUTER JOIN torget_auctions_autobid ON torget_auctions_autobid.hID = torget_have.hID\n\t\t\tWHERE {$checken} AND uid=medlemmar.id AND auktion > 0 AND currentbid != pris AND status = 'active' AND torget_auctions.aID = auktion \n\t\t\tAND FIND_IN_SET(SUBSTRING(language_settings,1,1), '{$_SESSION['lang_string']}') GROUP BY torget_auctions.aID ORDER BY enddate"); $antal = mysql_num_rows($query); ?> <div class="box gron"><h1><?php echo getTxt("ON AUCTION"); ?> (<?php echo $antal; ?> )</h1><div> <?php if ($antal) { while ($res = mysql_fetch_array($query)) { $topic = stripslashes($res[topic]); if (strlen($topic) > 33) { $topic = substr($topic, 0, 30) . '...'; } if ($res[foil] == 'Ja') { $foil = "<img src=\"../bilder/hw_foil.gif\" align=\"absmiddle\"> "; } else { $foil = ""; } if ($res[sign] == 'Ja') { $sign = "<img src=\"../bilder/hw_signerad.gif\" align=\"absmiddle\"> "; } else { $sign = ""; } echo "- <a href='../torget/index.php?what=auktionen&ID=" . $res[aID] . "&action=sok&kortnamn=" . $res[kortnamn] . "&show_filterbox=1'.{$blanklink}.''>" . $topic . "</a> " . $res[currentbid] . valuta($res[lang_id], 2) . " " . $foil . " " . $sign . " (" . $res[antal] . getTxt("st") . ", {$res['antal_bud']} bud), " . $res[slutdatum] . "<br>"; } } else { echo "- " . getTxt("none") . " -"; } ?> </div></div> <?php }
: RE: <?php echo $e["subject"]; ?> </div> <p /> <textarea name="body" rows="10" cols="76"> <?php echo printBody($e["body"]); ?> </textarea> </div> <div style="background: #aaa; margin-top:0; width: 645px; padding: 0.1em; margin-bottom: 1.5em;"> <img style="padding: 0.2em;" id="dust" name="dustn" src="/img/dot.png?pid=2701" /><br /> <input type="text" name="lod" value="<?php echo getTxt('captcha'); ?> " size="36" onfocus="this.value=''"/><br /> <input class="sendbt" type="submit" name="send" value="<?php echo getLabel('send.email'); ?> " /> </div> </form> </center> </td></tr> <tr><td id="copyright">Copyright (c) pookmail.com 2004-<?php echo date('Y'); ?> </td></tr>
<?php HTML_Render_Head($js_vars, getTxt('ChangePassword')); echo $CSS_Main; echo $JS_JQuery; HTML_Render_Body_Start(); genHeading('ChangeUserPassword', true); $attributes = array('class' => 'form-horizontal'); echo form_open('user/changepass', $attributes); genSelect('UserName', "username", "username", $option_block, 'SelectUsernameEllipisis', true); genInput('NewPassword', 'password', 'password', true); genSubmit('ChangePassword'); HTML_Render_Body_End();
</strong><br> <?php echo getTxt('StillQuestionsPara'); ?> </p> <!-- <p><strong><a name="CreatSite" id="CreatSite"></a>Ready to create a website of your own?</strong><br> The HydroServer Lite Interactive Web Client is an open source software developed in connection with HydroDesktop through a grant provided by <a href="http://idahoepscor.org/" target="_blank">Idaho EPSCoR</a>. HydroServer and HydroDesktop are part of the <a href="http://www.cuahsi.org/" title="Link to CUAHSI" target="_blank">Consortium of Universities for the Advancement of Hydrologic Sciences</a>, or commonly referred to as CUAHSI (pronounced "kwä-ze"). To learn more about this software or find out how your school or organization can get their own version of the HydroServer Lite Interactive Web Client, please visit us <a href="http://hydroserverlite.codeplex.com/" target="_blank">here</a>.</p>--> <p><strong><a name="CreatSite" id="CreatSite"></a><?php echo getTxt('CreateWebsite'); ?> </strong><br> <?php echo getTxt('CreateWebsitePara1'); ?> <a href="http://idahoepscor.org/" target="_blank">Idaho EPSCoR</a>. <?php echo getTxt('CreateWebsitePara2'); ?> <a href="http://www.cuahsi.org/" title="Link to CUAHSI" target="_blank"><?php echo getTxt('Consortium'); ?> </a>, <?php echo getTxt('CreateWebsitePara3'); ?> <a href="http://hydroserverlite.codeplex.com/" target="_blank"><?php echo getTxt('Here'); ?> </a>.</p> <p> </p> </div> <?php HTML_Render_Body_End();
</div> </div> </div> </form> <br /> <div id="generated_url"></div> </div> <p class="footer"><?php echo getTxt('CopyRight'); ?> © <?php echo date('Y'); ?> . <a href='http://hydroserverlite.codeplex.com/' target='_blank' class='reversed'><?php echo getTxt('SystemName'); ?> </a>. <?php echo getTxt('AllRightsReserved'); ?> <a href='http://hydroserverlite.codeplex.com/team/view' target='_blank' class='reversed'><?php echo getTxt('MeetDevelopers'); ?> </a></p> </div> </body> </html>
public function importfile() { if ($_POST) { $result = $this->fileUploadHandler(); if ($result) { $dataset = $this->processFiles($result); if ($dataset) { $rows = count($dataset); $result = $this->datapoints->addPoints($dataset); if ($result) { addSuccess(getTxt('Success')); $this->updateSC(); } else { addError(getTxt('ProcessingError') . "Error in data input"); } } } } //GetSources $sources = $this->sources->getAll(); $sourceOptions = optionsSource($sources); //Get Variables $variables = $this->variables->getAll(); $varOptions = optionsVariable($variables); //List of CSS to pass to this view $data = $this->StyleData; $data['sourcesOptions'] = $sourceOptions; $data['variableOptions'] = $varOptions; $this->load->view('datapoint/importfile', $data); }
<label class="info_label"><a href="<?php echo site_url('wfs/write_xml?service=WFS&request=GetCapabilities&version=2.0.0'); ?> " class="info_link">WFS <?php echo getTxt('WebServices'); ?> </a></label> <div class="info_content"> <div class="link_desc"> WFS 2.0.0. </div> </div> </div> <div class="info_container"> <label class="info_label"><a href="<?php echo site_url('services/api'); ?> " class="info_link">JSON API <?php echo getTxt('API'); ?> </a></label> <div class="info_content"> <div class="link_desc"> JSON API for data upload </div> </div> </div> </div> <?php $this->load->view('services/footer');
public function update() { $updatedSeries = array(); $seriesID = $this->input->post('SeriesID'); $actualSeries = $this->sc->get($seriesID); $actualSeries = $actualSeries[0]; //Check if any editable fields have been changed. if ($actualSeries['SiteID'] != $this->input->post('SiteID')) { $this->load->model('site', '', TRUE); $site = $this->site->getSite($this->input->post('SiteID')); if (count($site) > 0) { $updatedSeries['SiteID'] = $site[0]['SiteID']; $updatedSeries['SiteCode'] = $site[0]['SiteCode']; $updatedSeries['SiteType'] = $site[0]['SiteType']; $updatedSeries['SiteName'] = $site[0]['SiteName']; } else { $output = array("status" => "failed", "reason" => getTxt('invalid') . ' ' . getTxt('siteid')); echo json_encode($output); return; } } if ($actualSeries['VariableID'] != $this->input->post('VariableID')) { $this->load->model('variables', '', TRUE); $site = $this->variables->getVariableWithUnit($this->input->post('VariableID')); if (count($site) > 0) { $unitname = $this->variables->getUnitName($site[0]['VariableunitsID']); $timeunitname = $this->variables->getUnitName($site[0]['TimeunitsID']); $updatedSeries['VariableID'] = $site[0]['VariableID']; $updatedSeries['VariableCode'] = $site[0]['VariableCode']; $updatedSeries['VariableName'] = $site[0]['VariableName']; $updatedSeries['Speciation'] = $site[0]['Speciation']; $updatedSeries['VariableunitsID'] = $site[0]['VariableunitsID']; $updatedSeries['VariableunitsName'] = $unitname[0]['unitsName']; $updatedSeries['SampleMedium'] = $site[0]['SampleMedium']; $updatedSeries['ValueType'] = $site[0]['ValueType']; $updatedSeries['TimeSupport'] = $site[0]['TimeSupport']; $updatedSeries['TimeunitsID'] = $site[0]['TimeunitsID']; $updatedSeries['TimeunitsName'] = $timeunitname[0]['unitsName']; $updatedSeries['DataType'] = $site[0]['DataType']; $updatedSeries['GeneralCategory'] = $site[0]['GeneralCategory']; } else { $output = array("status" => "failed", "reason" => getTxt('invalid') . ' ' . getTxt('varid')); echo json_encode($output); return; } } if ($actualSeries['MethodID'] != $this->input->post('MethodID')) { $this->load->model('method', '', TRUE); $site = $this->method->getByID($this->input->post('MethodID')); if (count($site) > 0) { $updatedSeries['MethodID'] = $site[0]['MethodID']; $updatedSeries['MethodDescription'] = $site[0]['MethodDescription']; } else { $output = array("status" => "failed", "reason" => getTxt('invalid') . ' ' . getTxt('methodid')); echo json_encode($output); return; } } if ($actualSeries['SourceID'] != $this->input->post('SourceID')) { $this->load->model('sources', '', TRUE); $site = $this->sources->get($this->input->post('SourceID')); if (count($site) > 0) { $updatedSeries['SourceID'] = $site[0]['SourceID']; $updatedSeries['Organization'] = $site[0]['Organization']; $updatedSeries['SourceDescription'] = $site[0]['SourceDescription']; } else { $output = array("status" => "failed", "reason" => getTxt('invalid') . ' ' . getTxt('sourceid')); echo json_encode($output); return; } } if ($actualSeries['ValueCount'] != $this->input->post('ValueCount')) { $updatedSeries['ValueCount'] = $this->input->post('ValueCount'); } $result = $this->sc->update($updatedSeries, $seriesID); if ($result) { addSuccess("Series Updated"); $output = array("status" => "success"); } else { $output = array("status" => "failed", "reason" => getTxt('ProcessingError')); } echo json_encode($output); }