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 | |
/** | |
* Component multiplier. | |
*/ | |
class ControlMultiplier extends Nette\Application\UI\Control | |
{ | |
/** @var Nette\Callback */ | |
private $factory; |
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 | |
public static function renderSnippets($control, $local, $params) | |
{ | |
$control->snippetMode = FALSE; | |
$payload = $control->getPresenter()->getPayload(); | |
if (isset($local->blocks)) { | |
foreach ($local->blocks as $name => $function) { | |
if ($name[0] !== '_' || !$control->isControlInvalid(substr($name, 1))) { | |
continue; | |
} |
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 | |
$data = '+11234567890'; | |
if( preg_match( '/^\+\d(\d{3})(\d{3})(\d{3})$/', $data, $matches ) ) | |
{ | |
$result = $matches[1] . ' ' .$matches[2] . ' ' . $matches[3]; | |
return $result; | |
} |
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
<nav> | |
<ul id="navigation">...</ul> | |
<!-- NOVE <div id="instant-search-header">Instant Search Results</div> --> | |
</nav> | |
<style type="text/css"> | |
#instant-search-header { | |
position: absolute; |
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
<? | |
public static function renderSnippets($control, $local, $params) | |
{ | |
$control->snippetMode = FALSE; | |
$payload = $control->getPresenter()->getPayload(); | |
if (isset($local->blocks)) { | |
foreach ($local->blocks as $name => $function) { | |
if ($name[0] !== '_' || !$control->isControlInvalid(substr($name, 1))) { | |
continue; | |
} |
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
http://code.google.com/p/es-lab/wiki/Traits | |
http://webreflection.blogspot.com/2010/01/es5-es5-classes-as-descriptor-objects.html | |
http://javascript.crockford.com/prototypal.html | |
http://jsclass.jcoglan.com/ | |
http://ejohn.org/blog/simple-javascript-inheritance/ | |
https://github.com/Kambfhase/Din | |
http://github.com/tobeytailor/def.js | |
http://mootools.net/docs/core/Class/Class | |
http://github.com/polvero/klass | |
http://github.com/Joose/Joose |
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
<script type="text/javascript"> | |
function remove(id) {if (confirm("Jste si jisti?")) window.location = "primar.php?m=lekari&s=vymazat&i=" + id; } | |
</script> | |
<?php | |
$vys=mysql_query('SELECT * FROM osetrujici LEFT JOIN uvazek ON rodne_cislo LIKE osetrujici WHERE jmeno like "%'.$fjm.'%" AND prijmeni like "%'.$fpr.'%" | |
AND rodne_cislo like "%'.$fro.'%" AND (oddeleni LIKE "%'.$fod.'%" OR oddeleni IS NULL) AND active=true GROUP BY rodne_cislo ORDER BY prijmeni;'); | |
if ($vys==false) die('Invalid query: '.mysql_error()); | |
while ($row = mysql_fetch_row($vys)) { | |
if ($row[8] == NULL && strlen($fod)) continue; |
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 | |
class IdiormConnection extends \Nette\Object | |
{ | |
public $conn; | |
public function __construct() | |
{ | |
ORM::configure('mysql:host=localhost;dbname=language_exchange'); | |
ORM::configure('username', 'root'); |
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 | |
namespace ApiModule; | |
use Nette\Application\Responses\JsonResponse; | |
class ProfilePresenter extends BasePresenter | |
{ | |
public function renderDefault($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
<div class="paginator" data-centerize> | |
<a href="#" class="first">První</a> | |
<div class="group clearfix"> | |
<a href="#" class="buttonPrevious"><</a> | |
<a href="#">1</a> | |
<a href="#">2</a> | |
<a href="#" class="active">3</a> | |
<a href="#">...</a> | |
<a href="#">20</a> | |
<a href="#">21</a> |
OlderNewer