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
{gridito usersGrid} | |
{* top toolbar *} | |
{gridito.toolbar.button addUser text => "Nový uživatel", icon => "plusthick", plink => "add"} | |
{* columns *} | |
{gridito.column username text => "Uživatelské jméno", sortable => true} | |
{gridito.column name text => "Jméno", sortable => true} | |
{gridito.column mail text => "E-mail", sortable => true} | |
{gridito.column allowed text => "Aktivní", sortable => true} | |
{gridito.column created text => "Datum založení", sortable => true, dateTimeFormat => "j.n.Y"} |
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 Kdyby\Security; | |
use Nette; | |
use Kdyby; | |
/** | |
* Globální zámek pro aplikaci, vyžaduje auth handler, ideálně napojit http_authentication |
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 Tools; | |
use Nette\Debug; | |
use Nette\Environment; | |
use Nette\Finder; | |
/** | |
* Shows exceptions thrown in CLI mode in browser. |
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 | |
function wc($level = 1) { | |
if (\Nette\Debug::$productionMode) { return; } | |
$o = function ($t) { return (isset($t->class) ? htmlspecialchars($t->class) . "->" : NULL) . htmlspecialchars($t->function) . '()'; }; | |
$f = function ($t) { | |
$file = defined('APP_DIR') ? 'app' . str_replace(realpath(APP_DIR), '', realpath($t->file)) : $t->file; | |
return '<a href="' . \Nette\DebugHelpers::editorLink($t->file, $t->line) . '">' . htmlspecialchars($file) . ':' . (int)$t->line . '</a>'; | |
}; |
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
Tento článek pojednává o hlavním městě České republiky. Další významy jsou uvedeny v článku Praha (rozcestník). | |
Hlavní město Praha | |
Interaktivní mapa Městské části | |
Praha je hlavní a současně největší město České republiky. Leží mírně na sever od středu Čech na řece Vltavě, uvnitř Středočeského kraje, jehož je správním centrem, ale jako samostatný kraj není jeho součástí. Je sídlem velké části státních institucí a množství dalších organizací a firem. Sídlí zde prezident republiky, vláda, ústřední státní orgány a vrchní soud. Mimoto je Praha sídlem řady dalších úřadů, jak ústředních, tak i územních samosprávných celků; sídlí zde též ústředí většiny politických stran a centrály téměř všech církví, náboženských a dalších sdružení s celorepublikovou působností registrovaných v ČR. | |
Do dnešní podoby se Praha vyvíjela jedenáct století. Coby historická metropole Čech byla v minulosti sídelním městem českých knížat a králů, římsko-německých císařů a hlavním městem Československa. V současnosti se rozkládá na území 4 |
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 | |
/** | |
* @see https://github.com/HosipLan/Nette-addDynamic | |
*/ | |
class CreatePresenter extends BasePresenter | |
{ | |
protected function startup() | |
{ |
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 Doctrine\ORM\Query\Filter; | |
abstract class SQLFilter | |
{ | |
final public function __construct(Connection $conn); | |
final function setParameter($name, $value, $type); | |
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
export PS1="\u:\W $ " | |
#GIT bash by HABR (modified by Dundee) | |
export PSORIG="$PS1" | |
function GITBRANCH() { | |
BRANCH="$(git branch 2>/dev/null | grep '*' | cut -d" " -f2-)" | |
if [ -n "$BRANCH" ] ; then | |
export PS1="\u:\W " | |
export PS1=$PS1$(echo -en "\[\033[00;37m\]$BRANCH \[\033[00m\]") |
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
/** | |
* Beta | |
* | |
* Sibling of netteForms.js "rewritten to jQuery" | |
* @author Pavel Kučera | |
* @author David Grudl author of netteForms.js, of the idea and the one who I copied from | |
* | |
* Disclaimer: I'm not a javascript programmer, actually I hate javascript, so consider that please if you want to complain about quality of this utility. | |
* | |
* Dependencies |
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 | |
/** | |
* Venne:CMS (version 2.0-dev released on $WCDATE$) | |
* | |
* Copyright (c) 2011 Josef Kříž pepakriz@gmail.com | |
* | |
* For the full copyright and license information, please view | |
* the file license.txt that was distributed with this source code. | |
*/ |
OlderNewer