87 | | SELECT |
---|
88 | | foltia_program.tid,foltia_program.title,foltia_subtitle.subtitle |
---|
89 | | FROM foltia_subtitle , foltia_program |
---|
90 | | WHERE foltia_program.tid = foltia_subtitle.tid |
---|
91 | | AND foltia_subtitle.tid = ? |
---|
| 81 | SELECT |
---|
| 82 | foltia_subtitle.pspfilename, |
---|
| 83 | foltia_program.title, |
---|
| 84 | foltia_subtitle.countno, |
---|
| 85 | foltia_subtitle.subtitle |
---|
| 86 | FROM foltia_subtitle,foltia_program |
---|
| 87 | WHERE foltia_subtitle.tid = foltia_program.tid AND foltia_subtitle.pspfilename = ? |
---|
| 88 | LIMIT 1"; |
---|
| 89 | |
---|
| 90 | $rs = sql_query($con, $query, "DBクエリに失敗しました",array($fName)); |
---|
| 91 | $rall = $rs->fetch(); |
---|
| 92 | $rowdata = $rall[0]; |
---|
| 93 | |
---|
| 94 | $title = htmlspecialchars($rall[1]); |
---|
| 95 | $count = htmlspecialchars($rall[2]); |
---|
| 96 | $subtitle = htmlspecialchars($rall[3]); |
---|
| 97 | |
---|
| 98 | print " |
---|
| 99 | <tr> |
---|
| 100 | <td>$fName<br></td> |
---|
| 101 | <td>"; |
---|
| 102 | |
---|
| 103 | if ($tid > 0 ){ |
---|
| 104 | print "<a href=\"http://cal.syoboi.jp/tid/$tid\" target=\"_blank\">$title</a>"; |
---|
| 105 | }else{ |
---|
| 106 | print "$title"; |
---|
| 107 | } |
---|
| 108 | |
---|
| 109 | print "</td> |
---|
| 110 | <td>$count<br></td> |
---|
| 111 | <td>$subtitle<br></td> |
---|
| 112 | </tr>\n |
---|
93 | | $rs = sql_query($con, $query, "DBクエリに失敗しました",array($filesplit[0])); |
---|
94 | | $rall = $rs->fetchAll(); |
---|
95 | | //$rowdata = $rall[$row]; |
---|
96 | | $rowdata = $rall[0]; |
---|
97 | | $title = $rowdata[1]; |
---|
98 | | $subtitle = ""; |
---|
99 | | $count = ""; |
---|
100 | | */ |
---|
101 | | //}else{ |
---|
| 114 | |
---|
| 115 | //DBから削除 |
---|
| 116 | if ($demomode){ |
---|
| 117 | }else{ |
---|
| 118 | |
---|
| 119 | $query = " |
---|
| 120 | DELETE FROM foltia_mp4files |
---|
| 121 | WHERE mp4filename = ? |
---|
| 122 | "; |
---|
| 123 | //$rs = m_query($con, $query, "DBクエリに失敗しました"); |
---|
| 124 | $rs = sql_query($con, $query, "DBクエリに失敗しました",array($fName)); |
---|
| 125 | |
---|
| 126 | //削除処理 |
---|
| 127 | $oserr = system("$toolpath/perl/deletemovie.pl $fName"); |
---|
| 128 | }//end if demomode |
---|
| 129 | |
---|
| 130 | }else{ //拡張子がMP4以外なら 録画一覧(録画順・番組順)の削除(showplaylist.php) |
---|