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
<? | |
$dbHost = 'localhost'; | |
$dbUser = '...'; | |
$dbPass = '...'; | |
$dbDatabase = '...'; |
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 Models; | |
/** | |
* Base model | |
* @link http://wiki.nette.org/cs/cookbook/dynamicke-nacitani-modelu | |
* @author Majkl578 | |
*/ | |
abstract class Base extends \Nette\Object |
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" src="http://www.google.com/jsapi?key={!$googleKey}"></script> | |
<script type="text/javascript" charset="utf-8"> | |
google.load("jquery", "1.6.1"); | |
google.load("jqueryui", "1.8.13"); | |
google.load("maps", "3.x", { other_params:"sensor=false&language=ja" }); | |
</script> |
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
<form enctype="multipart/form-data" class="ajax" id="frm-clocOutletFormExtended" method="post" action="add-new-outlet/?do=clocOutletFormExtended-submit" novalidate=""> | |
<fieldset> | |
<legend>Outlet details</legend> | |
<table><div class="fieldsetIn"> | |
<tbody><tr> | |
<th><label for="frmclocOutletFormExtended-upload">Select photos</label></th> | |
<td><div id="frmclocOutletFormExtended-upload" class="MultipleFileUpload"><input type="hidden" value="1777511084e281310c1d09" name="upload[token]"><div style="display: block;" id="frmclocOutletFormExtended-upload-MFUInterface-MFUUIPlupload"><div class="mfuplupload" id="frmclocOutletFormExtended_upload_box"><div class="plupload_wrapper plupload_scroll"><div class="plupload_container" id="frmclocOutletFormExtended_upload_box_container" title="Using runtime: flash"><div class="plupload"><div class="plupload_header"><div class="plupload_header_content"><div class="plupload_header_title">Select files</div><div class="plupload_header_text">Add files to the upload queue and click the s |
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 linkFormatter(cellvalue, options, rowObject) { | |
return '<a class="ajax" href= {!$editLink}' + rowObject[0] + '>' + cellvalue + '</a>'; | |
} | |
function booleanFormatter(cellvalue, options, rowObject) { | |
var cellValueInt = parseInt(cellvalue); | |
if (cellValueInt === 0) | |
return '<img src="{!$coreBasePath}\/images\/core\/admin\/0.gif" alt="no">'; | |
else | |
return '<img src="{!$coreBasePath}\/images\/core\/admin\/1.gif" alt="yes">'; |
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
see: https://github.com/Kdyby/Framework/blob/master/Kdyby/Forms/Containers/Replicator.php |
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\Control; | |
use Nette; | |
use Nette\String; | |
class LookoutControl extends Nette\Application\Control |
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
$countries = array( | |
'AX' => 'Alandské ostrovy', | |
'AL' => 'Albánská republika', | |
'DZ' => 'Alžírská lidová demokratická republika', | |
'AS' => 'Americká Samoa', | |
'VI' => 'Americké Panenské ostrovy', | |
'AD' => 'Andorrské knížectví', | |
'AO' => 'Angolská republika', | |
'AI' => 'Anguilla', | |
'AQ' => 'Antarktida', |
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
$debugArray = array(); | |
if (!in_array($_SERVER['REMOTE_ADDR'], $debugArray)) { | |
Debug::enable(Debug::PRODUCTION,NULL,'xxx@gmail.com'); | |
$application->catchExceptions = TRUE; | |
} else { | |
Debug::enable(Debug::DEVELOPMENT); | |
$application->catchExceptions = FALSE; | |
} |
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 | |
/** | |
* Image helper with automatic image resize and cache | |
* | |
* @author Roman Ozana, ozana@omdesign.cz | |
* @link www.omdesign.cz | |
* | |
* | |
* add to presenter before render function | |
* |