Skip to content

Instantly share code, notes, and snippets.

View kodi's full-sized avatar

Dragan Bajcic kodi

View GitHub Profile
<?php
class user_shop extends DPLS_Controller{
function __construct(){
global $_user;
$this->_user=$_user;
global $db;
$this->db=$db;
<?php
class User{
function setUsername($username){
$this->internalUsername=$username;
}
<html>
<head>
<script type="text/javascript" charset="utf-8">
function mySubmit(){
var q=document.getElementById('q');
var s=document.getElementById('s');
<div id="keywords">
<div class="kw" name="solarijum"></div>
<div class="kw" name="solarijumi"></div>
<div class="kw" name="oprema za frizerske salone"></div>
<div class="kw" name="frizerska oprema"></div>
<div class="kw" name="oprema za kozmeticke salone"></div>
<div class="kw" name="megasun solarijumi"></div>
<div class="kw" name="mega sun solarijumi"></div>
<div class="kw" name="uwe solarijumi"></div>
<div class="kw" name="novi solarijumi"></div>
<?php
/*
* simple mysql database class
CREATE TABLE IF NOT EXISTS `kategorije` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`name` varchar(128) collate latin1_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=3 ;
<?php
Class Osoba{
public $ime;
function podesiIme($ime){
$this->ime=$ime;
}
function pozdrav(){
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>fields test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js"></script>
<script type="text/javascript">
Event.observe(window, 'load', function() {
Event.observe(window,'click',function(){
if($('date2').value==''){
@kodi
kodi / gist:187651
Created September 15, 2009 21:15
usage of timeout in Object Oriented Javascript
<html>
<head>
<script type="text/javascript">
var Counter=function(){
//public properties
this.counter=1;
this.resultDiv=document.getElementById('result');
//methods
<html>
<head>
<style type="text/css">
table{
border-collapse:collapse;
}
table td{
border:solid 1px #cacaca;
}
1)tabela tipovi-karakteristika
id |ime
---------------------------
1 |proizvodjac
2 |rezolucija
3 |color spaces
2)tabekla karakteristike