diff --git a/award.php b/award.php index fd61675..2a28884 100644 --- a/award.php +++ b/award.php @@ -104,25 +104,36 @@ /////////////////////////////////////////////////////////// -$ary = [ - "title" => "PHPPresentationを利用した表彰状の作成", - "authors" => ["苗字 名前"], -]; -addHSJ($phpPres, $ary); -array_push($ary["authors"], "苗字 名前"); -addHSJ($phpPres, $ary); -array_push($ary["authors"], "苗字 名前"); -addHSJ($phpPres, $ary); -array_push($ary["authors"], "苗字 名前"); -addHSJ($phpPres, $ary); -array_push($ary["authors"], "苗字 名前"); -addHSJ($phpPres, $ary); -array_push($ary["authors"], "苗字 名前"); -addHSJ($phpPres, $ary); -array_push($ary["authors"], "苗字 名前"); -addHSJ($phpPres, $ary); -array_push($ary["authors"], "苗字 名前"); -addHSJ($phpPres, $ary); +// 投稿システムからの読み込み +// https://confman.interaction-ipsj.org/awards/json_booth_title_author + +$url = "https://confman.interaction-ipsj.org/awards/json_booth_title_author"; +$json = file_get_contents($url); +$obj = json_decode($json, true); +// var_dump($obj); +foreach($obj as $booth=>$ary){ + addHSJ($phpPres, $ary); +} + +// $ary = [ +// "title" => "PHPPresentationを利用した表彰状の作成", +// "authors" => ["苗字 名前"], +// ]; +// addHSJ($phpPres, $ary); +// array_push($ary["authors"], "苗字 名前"); +// addHSJ($phpPres, $ary); +// array_push($ary["authors"], "苗字 名前"); +// addHSJ($phpPres, $ary); +// array_push($ary["authors"], "苗字 名前"); +// addHSJ($phpPres, $ary); +// array_push($ary["authors"], "苗字 名前"); +// addHSJ($phpPres, $ary); +// array_push($ary["authors"], "苗字 名前"); +// addHSJ($phpPres, $ary); +// array_push($ary["authors"], "苗字 名前"); +// addHSJ($phpPres, $ary); +// array_push($ary["authors"], "苗字 名前"); +// addHSJ($phpPres, $ary); $phpPres->removeSlideByIndex(0); // 最初のスライドを削除する diff --git a/lib_16x9.php b/lib_16x9.php index f585e48..348c400 100644 --- a/lib_16x9.php +++ b/lib_16x9.php @@ -26,7 +26,7 @@ ) { $oLayout = $pres->getLayout(); // $intw = 600;//(int)( ($oLayout->getCX($oLayout::UNIT_PIXEL) * 0.8)); - $inth = 300; // 固定値 (int)($oLayout->getCY($oLayout::UNIT_PIXEL)); + $inth = 100; // 固定値 (int)($oLayout->getCY($oLayout::UNIT_PIXEL)); $intoffx = (int)(($oLayout->getCX($oLayout::UNIT_PIXEL) - $intw) / 2); $intoffy = (int)(($oLayout->getCY($oLayout::UNIT_PIXEL) * $ypercent / 100)); // echo $oLayout->getCX($oLayout::UNIT_PIXEL) . " " . $intw . " " . $inth . " " . $intoffx . " " . $intoffy . "\n"; @@ -66,8 +66,8 @@ $w576 = (int)(382*576/794); $w520 = (int)(382*520/794); - addRTShape($pres, $slide, $w600, 15, "インタラクション2023", 11); - addRTShape($pres, $slide, $w600, 20, "インタラクティブ発表賞(PC推薦)", 12); + addRTShape($pres, $slide, $w600, 12, "インタラクション2023", 11); + addRTShape($pres, $slide, $w600, 17, "インタラクティブ発表賞(PC推薦)", 12); $authors = ""; //著者名 $aindex = 0; @@ -85,13 +85,16 @@ $additionalline = floor((count($ary["authors"]) - 1) / 2); // echo "additional " . $additionalline . "\n"; } - addRTShape($pres, $slide, $w600, 6.2 + $additionalline * 0.6, $authors, 11, Alignment::HORIZONTAL_CENTER, Alignment::VERTICAL_CENTER); - addRTShape($pres, $slide, $w576, 36.5 + $additionalline * 2, "貴殿が本学会シンポジウム インタラクション2023において発表された" . + addRTShape($pres, $slide, $w600, 22 + $additionalline * 0.5, $authors, 10, Alignment::HORIZONTAL_CENTER, Alignment::VERTICAL_CENTER); + addRTShape($pres, $slide, $w576, 34 + $additionalline * 2, "貴殿が本学会シンポジウム インタラクション2023において発表された" . "「{$ary['title']}」" . "は本シンポジウムプログラム委員会にて厳正な審査を行った結果新たなインタラクション研究の方向性を示すものであり" . "今後の情報処理分野の発展に寄与する優秀な発表として認められました\r\nよってここに表彰いたします", 9, Alignment::HORIZONTAL_GENERAL); - addRTShape($pres, $slide, $w520, 66 + $additionalline, "令和5年3月10日\r\n" . + // タイトルの長さによって、すこし下げる + $title_additionalline = (mb_strlen($ary['title'])/20) ; + + addRTShape($pres, $slide, $w520, 65 + $additionalline + $title_additionalline*1.7, "令和5年3月10日\r\n" . "一般社団法人 情報処理学会\r\n" . "インタラクション2023\r\n" . "大会委員長 寺田 努 \r\n" .