( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
$themeid = (int)$_GET["theme_id"];exit("$themeid");
$row = getParamJSONTheme($themeid);
if(!empty($row['params'])){
$params = json_decode("[".$row['params']."]");
$width = $params[0]->width;
$height = $params[0]->height;
}
else
{
$width =600;
$height = 600;
}
//display grid
//makeGrid($background,$gridWidth, $gridHeight, $width, $height)
/* makeGrid($background,10, 10, $width,$height);*/
//Make rectangle
// makeRectangle($background,$sizeW, $sizeH, $posX, $posY,$gridWidth,$gridHeight, $width, $height)
/*makeRectangle($background,5, 5, 3, 2,10,10, $width,$height); */
$count = $rowCount;
/* MakeGridPictureTwitter($background, $brand, 100,$sizeW, $sizeH, $posX, $posY,$gridWidth,$gridHeight, $width, $height); */
switch ($count) {
case "1": //1
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,10,10, 0, 0,10,10, $width,$height);
break;
case "2"://2
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,5,10, 0, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",1);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,5,10, 5, 0,10,10, $width,$height);}
break;
case "3"://3
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,10, 0, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",1);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,4,10, 3, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",2);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,10, 7, 0,10,10, $width,$height);
break;
case "4": // 4
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100, 5,5,0, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",1);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100, 5,5, 5, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",2);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,5,5, 0, 5,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",3);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,5,5, 5, 5,10,10, $width,$height);
}
break;
case "5"://5
$row = getEachTweetPicture("$tweetIDX",0);
echo $url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,5, 0, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",1);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,4,10, 3, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",2);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,5, 7, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",3);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,5, 0, 5,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",4);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,5, 7, 5,10,10, $width,$height);
break;
case "6"://6
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,5, 0, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",1);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,4,5, 3, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",2);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,5, 7, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",3);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,5, 0, 5,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",4);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,4,5, 3, 5,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",5);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,5, 7, 5,10,10, $width,$height);
break;
case "7"://7
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,5, 0, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",M_1_PI);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,4,3, 3, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",2);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,4,3, 3, 3,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",3);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,4,4, 3, 3,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",4);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,5, 7, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",5);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,5, 0, 5,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",6);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,5, 7, 5,10,10, $width,$height);
break;
case "8":
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,3, 0, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",1);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,4,3, 3, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",2);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,3, 7, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",3);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,5,4, 0, 3,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",4);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,5,4, 5, 3,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",5);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,4,3, 3, 7,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",6);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,3, 0, 7,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",7);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,3, 7, 7,10,10, $width,$height);
break;
case "9":
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,3, 0, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",1);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,4,3, 3, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",2);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,3, 7, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",3);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,4, 0, 3,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",4);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,4,4, 3, 3,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",5);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,4,7, 3,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",6);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,4,3, 3, 7,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",7);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,3, 0, 7,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",8);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,3, 7, 7,10,10, $width,$height);
break;
case "10":
MakeGridPictureTwitter($background, $url, 100,7,3, 0, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,3, 7, 0,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,2, 0, 3,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,4,2, 3, 3,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,2,7, 3,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,2, 0, 5,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,4,2, 3, 5,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,2,7, 5,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,7,3, 3, 7,10,10, $width,$height);
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,3,3, 0, 7,10,10, $width,$height);
break;
default:
$row = getEachTweetPicture("$tweetIDX",0);
$url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,10,10, 0, 0,10,10, $width,$height); }
?>