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 id="sForm" name="sForm" method="POST"> | |
<!-- DIV containing textfield, always display --> | |
<div id="inside" name="inside" class="inside"> | |
<input type="text" id="searchText" name="searchText" maxlength="25" placeholder="search for games" autocomplete="off" tabindex="1" style="z-index:500" /> | |
</div> | |
<!-- DIV of wrapping block --> | |
<div id="outside" name="outside" class="outside hidden"> | |
<div class="hd"> | |
<div id="closeBtn" name="closeBtn" class="right btnClose">X</div> |
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
var processDialog = new YAHOO.widget.Dialog('procDialog', { | |
width: '400px', | |
height: '350px', | |
underlay: 'shadow', | |
visible: false, | |
modal: true, | |
}); | |
window.onbeforeunload = (function() { | |
if ( processDialog.cfg.getProperty('visible') && |
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 http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Moving Fonts</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript" src="plax.js"></script> | |
<style type="text/css"> | |
* { | |
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
class Badge { | |
public function __construct() { | |
// Define all the achievements | |
Events::register('badges', array($this, 'badgeCommentator')); | |
Events::register('badges', array($this, 'badgeContributor')); | |
} | |
public function badgeCommentator($comment = '') { | |
if (!empty($comment) && strlen($comment) > 5) { | |
return 'Achievement: Badass Commentator'; |
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
/** | |
* Step #4: Database | |
* The validator of this form checks database connection | |
* and creates the database if it doesn\'t exists | |
* See lib/validator/dbConnectionValidator.class.php | |
* File location: siwapp/apps/installer/modules/static/actions/actions.class.php | |
* | |
* @param $request | |
*/ | |
public function executeStep4(sfWebRequest $request) |
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 PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html lang="{{lang}}" xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Invoice</title> | |
<style type="text/css"> | |
@page { margin:0.5cm 0.5cm 0.8cm 1.5cm; } | |
body { margin:0.8cm auto;font:1em;} | |
div { display:block; } | |
table { border-collapse:collapse; border-spacing:0; width:99%;} |
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
// File location: siwapp/apps/siwapp/modules/common/templates/_invoiceRow.php | |
//connect the selection of a product to update the row item | |
$('#".$invoiceItemForm['product_autocomplete']->renderId()."') | |
.autocomplete('".$urlAjaxSelectProduct."', jQuery.extend({}, { | |
dataType: 'json', | |
parse: function(data) { | |
var parsed = []; | |
for (key in data) { | |
parsed[parsed.length] = { |
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
// File location: siwapp/lib/templating/Common_Twig_Extension.php | |
function common_twig_extension_round($amount, $decimals = 2) | |
{ | |
//return round($amount, $decimals); | |
return number_format(round($amount, $decimals), $decimals, '.', ''); | |
} |
OlderNewer