Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Commit

Permalink
新曲を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
slime-hatena committed Sep 10, 2016
1 parent 06d3032 commit c6ceadf
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 43 deletions.
13 changes: 8 additions & 5 deletions AllUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
exit ("ユーザーデータを取得中にエラーが発生しました。管理者にお問い合わせください。");
}

$sql = "SELECT * FROM `fcmgtuser`";
$sql = "SELECT * FROM `fcmgtuser` ORDER BY `shortid` ASC";
$stmt=$pdo->prepare($sql);
$res=$stmt->execute();

Expand All @@ -27,12 +27,15 @@
';




foreach ($arr as $value) {
if (!($value['name'] == "")){
echo '<p><a href="user.php?s=' . $value['shortid'] . '">' . $value['shortid']. '.' . $value['name'] . ' PLv:' . $value['level']
.'</a><br>' . mb_strimwidth($value['bio'], 0, 60, "...") . '</p>';
if ($value['level'] == ""){
$plevel = "非公開";
}else{
$plevel = $value['level'];
}
echo '<p><a href="user.php?s=' . $value['shortid'] . '">' . $value['shortid']. '.' . $value['name'] . ' PLv.' . $plevel
.'</a><br>' . mb_strimwidth($value['bio'], 0, 100, "...") . '</p>';
}
}

Expand Down
74 changes: 38 additions & 36 deletions addData.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,35 +103,39 @@
<textarea maxlength="120" id="bio" name="bio" placeholder="" rows="3" cols="25"><?php echo str_replace("<br>","",$bio) ?></textarea>
</div>

<div class="pure-controls">
<button type="submit" class="pure-button pure-button-primary">送信</button>
</div>

<?php include ($_SERVER['DOCUMENT_ROOT'] . "/fcMgt4slStage/include/ad.php"); ?>


<table cellpadding="5" cellspacing="1" rules="cols">

<tr class="heading_tr">
<th class="heading">Title</th>
<th class="heading">Debut</th>
<th class="heading">Regular</th>
<th class="heading">Pro</th>
<th class="heading">Master</th>
</tr>
<tr>
<td class="title heading_tr">難易度ごとに全てチェック</td>
<td class="box_cell">
<input class="checkAll music" id="Debut" type="checkbox">
</td>
<td class="box_cell">
<input class="checkAll music" id="Regular" type="checkbox">
</td>
<td class="box_cell">
<input class="checkAll music" id="Pro" type="checkbox">
</td>
<td class="box_cell">
<input class="checkAll music" id="Master" type="checkbox">
</td>
</tr>

<?php
<table cellpadding="5" cellspacing="1" rules="cols">

<tr class="heading_tr">
<th class="heading">Title</th>
<th class="heading">Debut</th>
<th class="heading">Regular</th>
<th class="heading">Pro</th>
<th class="heading">Master</th>
</tr>
<tr>
<td class="title heading_tr">難易度ごとに全てチェック</td>
<td class="box_cell">
<input class="checkAll music" id="Debut" type="checkbox">
</td>
<td class="box_cell">
<input class="checkAll music" id="Regular" type="checkbox">
</td>
<td class="box_cell">
<input class="checkAll music" id="Pro" type="checkbox">
</td>
<td class="box_cell">
<input class="checkAll music" id="Master" type="checkbox">
</td>
</tr>

<?php

// 楽曲の並び替え処理
foreach ($arr as $key => $value){
Expand All @@ -140,7 +144,7 @@
array_multisort ( $sortKey , SORT_ASC , $arr);


foreach ($arr as $key => $value) {
foreach ($arr as $key => $value) {
$k = $key . "_1," . $key . "_2," . $key . "_3," . $key . "_4";
$sql = "SELECT " . $k . " FROM `fcmgt4slstage` WHERE `id` = :id";
$stmt=$pdo->prepare($sql);
Expand Down Expand Up @@ -180,18 +184,16 @@

}
?>
</table>
</table>

&nbsp;ページ上部のメニューにある免責事項、プライバシーポリシーをよくお読みになって同意いただける場合のみご使用ください。
&nbsp;ページ上部のメニューにある免責事項、プライバシーポリシーをよくお読みになって同意いただける場合のみご使用ください。

<div class="pure-controls">
<button type="submit" class="pure-button pure-button-primary">送信</button>
</div>
<div class="pure-controls">
<button type="submit" class="pure-button pure-button-primary">送信</button>
</div>
</form>

<?php
include ($_SERVER['DOCUMENT_ROOT'] . "/fcMgt4slStage/include/ad.php");

include_once ($_SERVER['DOCUMENT_ROOT'] . "/fcMgt4slStage/include/footer.php");

include ($_SERVER['DOCUMENT_ROOT'] . "/fcMgt4slStage/include/ad.php");

include_once ($_SERVER['DOCUMENT_ROOT'] . "/fcMgt4slStage/include/footer.php");
2 changes: 1 addition & 1 deletion dataPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@
imagepng ( $img, $file_name );

echo "全ての処理が完了しました。自動的に移動します。";
echo '<meta http-equiv="refresh" content="3;URL=addData.php">';
echo '<meta http-equiv="refresh" content="1;URL=addData.php">';

ob_flush();
flush();
Expand Down
2 changes: 1 addition & 1 deletion include/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<ul id="global-menu">
<li><a href="index.php">トップページ</a></li>
<li><a href="login.php">ログイン / ログアウト</a></li>
<li><a href="addData.php">データ登録</a></li>
<li><a href="addData.php">プロフィール登録/更新</a></li>
<li><a href="user.php?my">マイページ</a></li>
<li><a href="generate.php">画像生成(準備中)</a></li>
<li><a href="search.php">検索(準備中)</a></li>
Expand Down
1 change: 1 addition & 0 deletions style/bgTableMusic.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,4 @@
#bg075{ background: url("../../slStageMusicDatabase/banner/075.jpg")}
#bg076{ background: url("../../slStageMusicDatabase/banner/076.jpg")}
#bg077{ background: url("../../slStageMusicDatabase/banner/077.jpg")}
#bg078{ background: url("../../slStageMusicDatabase/banner/078.jpg")}

0 comments on commit c6ceadf

Please sign in to comment.