This file contains 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
DELETE `cl` | |
FROM `ContentLink` `cl` | |
WHERE `cl`.`lorder` = 34; |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title>jQuery Modal Demo</title> | |
<style> | |
* { | |
margin:0; | |
padding:0; | |
} |
This file contains 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
$.fn.toggleInputValue = function(){ | |
return $(this).each(function(){ | |
var input = $(this); | |
var defaultValue = input.val(); | |
input.focus(function() { | |
if(input.val() == defaultValue) input.val(""); | |
}).blur(function(){ | |
if(input.val().length == 0) input.val(defaultValue); | |
}); |
This file contains 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
function pridatPopisky(el) { | |
var popisky = el.getElementsByTagName("th"); | |
var radky = el.getElementsByTagName("tr"); | |
for (var i = 1; i < radky.length; i++) { | |
var bunky = radky[i].getElementsByTagName("td"); | |
for (var j = 0; j < bunky.length; j++) { | |
bunky[j].setAttribute("popisek", $(popisky[j]).html()); | |
} | |
} | |
} |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
form {height:1.2em;border:1px solid black; overflow:hidden; float:left; padding-right:0.5em;} | |
form:hover, form:active {height:5.2em; overflow:scroll; overflow-x:hidden;} | |
</style> | |
</head> | |
<body> | |
<form> |
This file contains 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
DELETE FROM table | |
WHERE ID IN | |
( | |
SELECT ID | |
FROM | |
( | |
SELECT ID | |
FROM table | |
WHERE Type = 'TEST' | |
ORDER BY ID |
This file contains 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
<?php | |
use Nette\Application\UI; | |
class FooControl extends UI\Control | |
{ | |
public function __construct(...) | |
{ | |
//predani parametru a zavislosti | |
} | |
This file contains 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
$connection = ftp_connect($server); | |
$login = ftp_login($connection, $ftp_user_name, $ftp_user_pass); | |
if (!$connection || !$login) { die('Connection attempt failed!'); } | |
$upload = ftp_put($connection, $dest, $source, $mode); | |
if (!$upload) { echo 'FTP upload failed!'; } |
This file contains 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
<? | |
//The Youtube's API url | |
define('YT_API_URL', 'http://gdata.youtube.com/feeds/api/videos?q='); | |
//Change below the video id. | |
$video_id = '66Wi3isw3NY'; | |
//Using cURL php extension to make the request to youtube API | |
$ch = curl_init(); |
This file contains 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
<?php | |
$im = imagecreatefromjpeg("match-trailer.jpg"); | |
$font = 'fonts/calibrib.ttf'; | |
$fontNormal = 'fonts/calibri.ttf'; | |
$teams = mb_strtoupper("FC Combix - FC Bohemians Praha B", 'UTF-8'); |