Skip to content

Instantly share code, notes, and snippets.

@blankdots
Created October 16, 2009 20:10
Show Gist options
  • Save blankdots/212038 to your computer and use it in GitHub Desktop.
Save blankdots/212038 to your computer and use it in GitHub Desktop.
CodeIgniter Demo
<!--
Distributed under the MIT License :
Copyright (c) 2009 <http://blankdots.com>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
-->
<html>
<head>
<title>CodeIgniter Examples</title>
<style type="text/css">
body {
background-color: #fff;
margin: 40px;
font-family: Lucida Grande, Verdana, Sans-serif;
font-size: 14px;
color: #4F5155;
}
a {
color: #003399;
background-color: transparent;
font-weight: normal;
}
h1 {
color: #444;
background-color: transparent;
border-bottom: 1px solid #D0D0D0;
font-size: 16px;
font-weight: bold;
margin: 24px 0 2px 0;
padding: 5px 0 6px 0;
}
</style>
</head>
<body>
<h1>CodeIgniter Examples</h1>
<h2>Flickr</h2>
<form id="flickr" method="post" action="">
<input type="text" name="tags" id="tags" />
<input type="submit" value="search tag" id="button" />
</form>
<?php foreach ($photos as $photo):?>
<a href="<?=$photo['url']?>"><img src="<?=$photo['image_url']?>" /></a>
<?php endforeach; ?>
<h2>Twitter</h2>
<form id="twitter" method="post" action="">
<input type="text" name="message" id="message" />
<input type="submit" value="send" id="button" />
</form>
<h2>Vimeo</h2>
<?php foreach ($clips as $clip):?>
<a href="<?=$clip['url']?>"><img src="<?=$clip['thumbnail_medium']?>" /</a>
<?php endforeach; ?>
<p><br />Page rendered in {elapsed_time} seconds</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment