<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dacelo.info</title>
	<atom:link href="http://www.dacelo.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dacelo.info</link>
	<description>Just another Daceloネットワーク site</description>
	<lastBuildDate>Wed, 16 Nov 2011 01:57:40 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>抽選プログラム</title>
		<link>http://www.dacelo.info/2008/12/15/lottery/</link>
		<comments>http://www.dacelo.info/2008/12/15/lottery/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 06:04:58 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<guid isPermaLink="false">http://www.dacelo.info/?p=13</guid>
		<description><![CDATA[テキストエリアに抽選対象を入れてください。 次のテキストボックスに当選する人数を入れ、「抽選」ボタンを押します。 「抽選結果」に、当選者名が表示されます。 既知のバグ： 　・当選者が1名だけだとエラーになります。 　・当 [...]]]></description>
			<content:encoded><![CDATA[<p>テキストエリアに抽選対象を入れてください。<br />
次のテキストボックスに当選する人数を入れ、「抽選」ボタンを押します。<br />
「抽選結果」に、当選者名が表示されます。</p>
<p class="postmetadata alt">
既知のバグ：<br />
　・当選者が1名だけだとエラーになります。<br />
　・当選者が抽選対象より多いとエラーになります。
</p>
<form action="lottery.html" method="post">
<p>抽選対象：（半角のカンマで区切って抽選対象リストを入力してください）<br /><textarea name="area" id="area" style="width:90%;height:80px;"><?php<br />
if (isset($_POST["area"])) {<br />
	echo $_POST["area"];<br />
}?></textarea></p>
<p>当選人数：（2以上の数字を入力してください）<br />
<input type="test" name="num" value="<?php<br />
if (isset($_POST["num"])) {<br />
	echo $_POST["num"];<br />
}?>&#8220;/></p>
<input type="submit" name="regist" value="<?php<br />
if (isset($_POST["area"])) {<br />
	echo 'もう一度';<br />
}?>抽選する&#8221;><br />
</form>
<p><?php<br />
if (isset($_POST["area"]))<br />
{<br />
	$string= $_POST["area"];<br />
	$num = $_POST["num"];<br />
		if($string =="" || $num==""){<br />
			echo '入力項目に不備があります';<br />
			exit;<br />
			}<br />
	$ary = split(",", $string); // $ary = ()</p>
<p>	$input =$ary;<br />
	$rand_keys = array_rand($input, $num);</p>
<p>	if ($num == "1"){<br />
		echo $input[$rand_keys[0]] . "n";<br />
		//echo '2以上の数を入れてください';<br />
	}else{<br />
		echo '<strong>抽選結果：</strong><br />
<blockquote>&#8216;;<br />
		for( $i = 1; $i<= $num; $i++ ){<br />
		echo $input[$rand_keys[$i-1]] . "<br />&#8220;; //改行しながら値を表示<br />
		}<br />
		echo &#8216;</p></blockquote>
<p>&#8216;;<br />
	}<br />
}</p>
<p>?></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dacelo.info/2008/12/15/lottery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>本体サイトを公開しました</title>
		<link>http://www.dacelo.info/2008/12/11/main-site-publish/</link>
		<comments>http://www.dacelo.info/2008/12/11/main-site-publish/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 01:15:38 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<guid isPermaLink="false">http://www.dacelo.info/?p=7</guid>
		<description><![CDATA[ブログだけあって本体部分が真っ白というのもなんなので、本体サイトを公開しました。Joomlaでやろうかとも考えていたんですが、結局いちばんなじんだWordPressで作成することに。]]></description>
			<content:encoded><![CDATA[<p>ブログだけあって本体部分が真っ白というのもなんなので、本体サイトを公開しました。Joomlaでやろうかとも考えていたんですが、結局いちばんなじんだWordPressで作成することに。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dacelo.info/2008/12/11/main-site-publish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>このサイトは</title>
		<link>http://www.dacelo.info/2008/12/10/%e3%81%93%e3%81%ae%e3%82%b5%e3%82%a4%e3%83%88%e3%81%af/</link>
		<comments>http://www.dacelo.info/2008/12/10/%e3%81%93%e3%81%ae%e3%82%b5%e3%82%a4%e3%83%88%e3%81%af/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 14:55:32 +0000</pubDate>
		<dc:creator></dc:creator>
		
		<guid isPermaLink="false">http://www.dacelo.info/?p=28</guid>
		<description><![CDATA[こんにちは。このサイトは、システム、プログラム関連の習作を発表するサイトです。]]></description>
			<content:encoded><![CDATA[<p>こんにちは。このサイトは、システム、プログラム関連の習作を発表するサイトです。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dacelo.info/2008/12/10/%e3%81%93%e3%81%ae%e3%82%b5%e3%82%a4%e3%83%88%e3%81%af/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

