This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(function(){ | |
$(document).on("change", "#spa_list", function(){ | |
var spaID = $(this).val(); | |
//alert(spaID); | |
window.location = "history.php?var1=3&spaIDjS="+spaID; | |
}); //End of $(document).on("change", ... | |
});//End of $(function(){ | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function tool_save_File($str, $filePathNameExtention) { | |
$myfile = fopen("$filePathNameExtention", "w") or die("Unable to open file!"); | |
fwrite($myfile, $str); | |
fclose($myfile); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function tool_string_filter($str) { | |
if(is_null($str)){ | |
return "NULL"; | |
} | |
else{ | |
if(is_numeric ($str)){ | |
return $str; | |
} | |
else{ | |
return "\"".mysql_escape_string(utf8_encode($str))."\""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function genetare_XML_string(array $arrSetOrder) { | |
//Values by default | |
$arrIni["Object"]=17; | |
$arrIni["Version"]=2; | |
$arrIni["Company"]="US";//Default is not demo Company | |
//Setting user's parameters | |
$arrOrder = array_merge($arrIni,$arrSetOrder); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This function goes to the directory $pathDir, pass trough each all files inside it, | |
seeks for any file that math to the $searchString and reads it. | |
Return the content of all matched xml files within a php Array. | |
Ex: | |
We have inside the FTP the follow files genereted by a CronJob: | |
fileCarAudiRent2015.xml, fileCarAudiRent2016.xml, fileCarAudiSell2015.xm, | |
fileCarBMWRent2015.xml, fileCarBMWSell2016.xml, fileBoatWMBRent2015.xml, fileBoatWMBSell2015.xml, | |
fileBoatAudiRent2015.xml, fileBoatAudiSell2016.xml, ... . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Method 1 | |
//Js is not dynamic. I can not pass variables from PHP->to JS->to PHP, in the same page. | |
//Your php code | |
$arrToJSON = array( | |
"dataPHPtoJs"=>"yourData", | |
"asYouWant"=>"<div class=\".class1\">soemting</div>" | |
); | |
return json_encode(array($arrToJSON)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This is a good aproach to send HTML strings trough JSON. | |
//As the new lines or empty spaces are removed, JSON will not be broked. | |
function html_rows_Event_Details() { | |
$str =<<<eof | |
<tr class='evntdet'> | |
<td colspan='4' style='background-color:#00BABF ; padding: 10px; text-align: center;'> | |
Something | |
</td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Selecionando elemento de uma linha na tabela A, muda o comprtamento de linhas selecionadas em outras tabelas, inclusive a A. | |
https://jsfiddle.net/aj1p62bz/ | |
//Html | |
<table style='width:50% ;height:50%;border: 3px solid #00BABF;border-collapse: collapse;' align='center'> | |
<tr class="rowProducts" id="rowPrd"> | |
<td> | |
<table > | |
<tr> | |
<td>Jill</td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://jsfiddle.net/kvishnudev/7Ut65/1/ | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$arr1v=Array | |
( | |
"2016-04-11 17:16:59"=> "2016-04-11 17:16:59", | |
"2016-04-14 16:47:18"=> "2016-04-14 16:47:18", | |
"2016-04-14 15:39:30" => "2016-04-14 15:39:30", | |
"2016-04-12 15:35:46" => "2016-04-12 15:35:46", | |
'2016-04-14 15:31:43'=> "2016-04-14 15:31:43", | |
'2016-04-14 15:27:10'=> "2016-04-14 15:27:10", | |
'2016-04-14 14:59:45' => '2016-04-14 14:59:45', | |
'2016-04-15 13:41:22'=> '2016-04-15 13:41:22', |
OlderNewer