comparison channelInfo.php @ 78:ded62b253bca

new file: channelInfo.php new file: channelSetSID.php new file: install/grscan.php
author Sushi-k <epgrec@park.mda.or.jp>
date Wed, 24 Feb 2010 20:23:03 +0900
parents
children cb04c9ca1cb0
comparison
equal deleted inserted replaced
77:cb7da56c4198 78:ded62b253bca
1 <?php
2 include_once('config.php');
3 include_once( INSTALL_PATH . "/DBRecord.class.php" );
4 include_once( INSTALL_PATH . "/Settings.class.php" );
5
6 if( isset($_GET['channel_disc']) ) {
7
8 try {
9 $crec = new DBRecord( CHANNEL_TBL, "channel_disc", $_GET['channel_disc'] );
10
11 echo '<div class="prg_title">';
12 echo $crec->name . "</div>";
13
14 // 種別
15 echo '<div class="prg_channel"><span class="labelLeft">種別:</span><span class="bold">';
16 echo $crec->type;
17 echo '</span></div>';
18
19 // チャンネル
20 echo '<div class="prg_channel"><span class="labelLeft">物理チャンネル:</span><span class="bold">';
21 echo $crec->channel;
22 echo '</span></div>';
23
24 // フォーム
25 echo '<form method="post" action="channelSetSID.php">';
26 echo '<div class="prg_channel"><span class="labelLeft">サービスID:</span>';
27 echo '<span><input type="text" name="n_sid" size="20" id="id_sid" value="'. $crec->sid .'" /></span>';
28 echo '<input type="hidden" name="n_channel_disc" id="id_disc" value="'. $crec->channel_disc .'" />';
29 echo '</div>';
30 echo '</form>';
31 }
32 catch( Exception $e ) {
33 echo "error:チャンネル情報の取得に失敗";
34 }
35 }
36 ?>