Skip to content

Instantly share code, notes, and snippets.

@jzmwebdevelopment
jzmwebdevelopment / addimage.php
Created March 24, 2011 03:05
My Main Upload Form
<?php
include('includes/session.php');
include('includes/header.php');
include('includes/class/class.form.php');
include('includes/class/class.image.php');
@jzmwebdevelopment
jzmwebdevelopment / style.css
Created August 24, 2011 22:25
Org Opencart Stylesheet
html {
overflow: -moz-scrollbars-vertical;
margin: 0;
padding: 0;
}
body {
color: #000000;
font-family: Arial, Helvetica, sans-serif;
margin: 0px;
@jzmwebdevelopment
jzmwebdevelopment / style.css
Created August 24, 2011 22:27
My CSS (Open Cart)
html {
overflow: -moz-scrollbars-vertical;
margin: 0;
padding: 0;
}
body {
color: #000000;
font-family: Arial, Helvetica, sans-serif;
margin: 0px;
padding: 0px;
@jzmwebdevelopment
jzmwebdevelopment / slideshow.php
Created September 2, 2011 01:44
PHP Random Slideshow
<?php
$dir = 'catalog/view/theme/default/gallery/';
$files = glob($dir.'*.jpg');
shuffle($files);
?>
<div id="Box">
<div id="slideShow">
<ul>
<?php foreach( $files as $file) : ?>
<li><img width="370" height="480" alt="" src="<?=$file?>"/></li>
<?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" dir="ltr" lang="en" xml:lang="en">
<head>
<title>View All | The Trading House</title>
<base href="http://www.domain.co.nz/" />
<link href="http://www.domain.co.nz/image/data/favicon16x16.jpg" rel="icon" />
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/stylesheet.css" />
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.6.1.min.js"></script>
@jzmwebdevelopment
jzmwebdevelopment / view.css
Created September 20, 2011 04:01
View All CSS
html {
overflow: -moz-scrollbars-vertical;
margin: 0;
padding: 0;
}
body {
color: #000000;
font-family: Arial, Helvetica, sans-serif;
margin: 0px;
@jzmwebdevelopment
jzmwebdevelopment / Controller.php
Created September 20, 2011 05:55
OpenCart V5 Product MVC
<?php
class ControllerProductProduct extends Controller {
private $error = array();
public function index() {
$this->language->load('product/product');
$this->data['breadcrumbs'] = array();
$this->data['breadcrumbs'][] = array(
/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
@jzmwebdevelopment
jzmwebdevelopment / common.js
Created November 23, 2011 19:50
The Trading House Product.tpl and Common.js
$(document).ready(function() {
/* Search */
$('.button-search').bind('click', function() {
/*url = 'index.php?route=product/search';*/
url = 'search';
var filter_name = $('input[name=\'filter_name\']').attr('value')
if (filter_name) {
url += '&filter_name=' + encodeURIComponent(filter_name);
@jzmwebdevelopment
jzmwebdevelopment / gist:2155911
Created March 22, 2012 04:27
Wordpress Template CSS
/*
-----------------------------------------------------------------------------------
1. CSS Reset
2. Fonts
3. Body, link and image common rules
4. Typography
5. General Layout
6. Left Pane Layout
7. Navigation