Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 84 lines (80 sloc) 3.471 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
<?php
/*
MultiTweet by Christian Heilmann (index file)
Version: 1.0
Homepage: http://icant.co.uk/multitweet/
Copyright (c) 2009, Christian Heilmann
Code licensed under the BSD License:
http://wait-till-i.com/license.txt
*/
include('controller.php');?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MultiTweet - send Twitter updates from several accounts</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css">
<link rel="stylesheet" href="http://yui.yahooapis.com/2.7.0/build/base/base.css" type="text/css">
<link rel="stylesheet" href="styles.css" type="text/css">
</head>
<body>
<div id="doc" class="yui-t7">
<div id="hd" role="banner"><h1>Multi<span>Tweet</span></h1></div>
<div id="bd" role="main">
<p id="intro">MultiTweet is a simple interface to send Twitter updates from several accounts at the same time. Simply check the accounts you want to send the message from, enter your update and hit "send twitter update".</p>
<form action="index.php" method="post" accept-charset="utf-8">
<div class="yui-gd">
<div class="yui-u first">
<h2>Accounts <span>check the ones you want to use</span></h2>
<ul id="accounts">
<?php
              $count = 0;
              foreach(array_keys($accounts) as $a){
                echo '<li><input type="checkbox" value="'.$a.
                     '" name="account[]" id="acc'.$count.
                     '"><label for="acc'.$count.'">'.$a;
                if(isset($_POST['account'])){
                if(isset($results[$a])){
                  echo ' <span>sent</span> ';
                  if($results[$a]===true){
                    echo '<span class="success">success</span> ';
                  } else {
                    echo '<span class="error">failure</span> ';
                  }
                } else {
                    echo ' <span class="skipped">not requested</span> ';
                  }

                }
                echo '</label></li>';
                $count++;
              }
            ?>
</ul>
<div class="inline"><label for="retweet">Retweet: </label>
<select name="retweet" id="retweet">
<option value="none" selected="selected">none</option>
<option value="random">random</option>
<?php
                foreach(array_keys($accounts) as $a){
                  echo '<option value="'.$a.'">'.$a.'</option>';
                }
              ?>
</select>
</div>
</div>
<div class="yui-u">
<div><h2>Your twitter message</h2>
<?php if(isset($_POST['account'])){?>
<p>Your update has been sent. Check the status messages next to the accounts.</p>
<?php }?>
<label for="tweet">Twitter update</label><textarea name="tweet" id="tweet"></textarea></div>
<div class="submit"><input type="submit" value="send twitter update"></div>
</div>
</div>
</form>
</div>
<div id="ft" role="contentinfo"><p>MultiTweet written by <a href="http://icant.co.uk">Christian Heilmann</a> using <a href="http://developer.yahoo.com/yui">YUI</a> and <a href="http://developer.yahoo.com/yql">YQL</a></p></div>
</div>
</body>
</html>


Something went wrong with that request. Please try again.