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
define(['jquery', 'underscore', 'backbone', 'text!templates/category/categoryIndexTemplate.html'], function($, _, Backbone, categoryIndexTemplate) { | |
var CategoryModel = Backbone.Model.extend({}); | |
var CategoryCollection = Backbone.Collection.extend({ | |
model: CategoryModel, | |
url: "https://izify.com/api/izify-api/admin/get_all_categories.php?merchantId=" + localStorage.merchantId, | |
parse: function(data) { | |
// Return people object which is the array from response | |
return data.tbl_category; | |
} | |
}); |
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 | |
$img = imagecreatetruecolor(200, 200); | |
// allocate some colors | |
$white = imagecolorallocate($img, 255, 255, 255); | |
$red = imagecolorallocate($img, 255, 0, 0); | |
$green = imagecolorallocate($img, 0, 255, 0); | |
$blue = imagecolorallocate($img, 0, 0, 255); | |
$blue1 = imagecolorallocate($img, 102, 104, 230); |
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
<html> | |
<head> | |
<style type="text/css"> | |
table table { | |
width: 600px !important; | |
} | |
table div + div { /* main content */ | |
width: 65%; | |
float: left; | |
} |