チェンジセット 70: trunk/install/php/listreserve.php
- コミット日時:
- 2008/01/24 18:27:18 (17 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
trunk/install/php/listreserve.php
r63 r70 17 17 18 18 */ 19 20 include("./foltialib.php"); 21 $con = m_connect(); 22 23 if ($useenvironmentpolicy == 1){ 24 if (!isset($_SERVER['PHP_AUTH_USER'])) { 25 header("WWW-Authenticate: Basic realm=\"foltia\""); 26 header("HTTP/1.0 401 Unauthorized"); 27 redirectlogin(); 28 exit; 29 } else { 30 login($con,$_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']); 31 } 32 }//end if login 33 $userclass = getuserclass($con); 34 19 35 ?> 20 36 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> … … 28 44 29 45 <?php 30 31 include("./foltialib.php"); 32 33 $con = m_connect(); 34 46 $mymemberid = getmymemberid($con); 35 47 $now = getgetnumform(startdate); 48 36 49 if ($now > 200501010000){ 37 50 }else{ … … 49 62 foltia_tvrecord.bitrate , 50 63 foltia_subtitle.startoffset , 51 foltia_subtitle.pid 64 foltia_subtitle.pid , 65 foltia_subtitle.epgaddedby 52 66 FROM foltia_subtitle , foltia_program ,foltia_station ,foltia_tvrecord 53 67 WHERE foltia_tvrecord.tid = foltia_program.tid AND foltia_tvrecord.stationid = foltia_station .stationid AND foltia_program.tid = foltia_subtitle.tid AND foltia_station.stationid = foltia_subtitle.stationid … … 64 78 foltia_tvrecord.bitrate , 65 79 foltia_subtitle.startoffset , 66 foltia_subtitle.pid 80 foltia_subtitle.pid , 81 foltia_subtitle.epgaddedby 67 82 FROM foltia_tvrecord 68 83 LEFT OUTER JOIN foltia_subtitle on (foltia_tvrecord.tid = foltia_subtitle.tid ) … … 130 145 $tid = htmlspecialchars($rowdata[0]); 131 146 $title = htmlspecialchars($rowdata[2]); 132 $subtitle = htmlspecialchars($rowdata[4]); 147 $subtitle = htmlspecialchars($rowdata[4]); 148 $dbepgaddedby = htmlspecialchars($rowdata[10]); 149 133 150 //重複検出 134 151 //開始時刻 $rowdata[5] … … 268 285 print "<td><a href=\"http://cal.syoboi.jp/tid/$tid/time#$pid\" target=\"_blank\">$subtitle<br></td>\n"; 269 286 }else{ 270 if ($protectmode) { 271 print "<td>$subtitle<br></td>\n"; 287 //if ( $userclass <= 2){ 288 if (($mymemberid == $dbepgaddedby)||($userclass <= 1)){ 289 if ($userclass <= 1 ){//管理者なら 290 $membername = getmemberid2name($con,$dbepgaddedby); 291 $membername = ":" . $membername ; 292 }else{ 293 $membername = ""; 294 } 295 print "<td>$subtitle [<a href=\"delepgp.php?pid=$pid\">予約解除</a>$membername]<br></td>\n"; 272 296 }else{ 273 print "<td>$subtitle [ <a href=\"delepgp.php?pid=$pid\">予約解除</a>]<br></td>\n";297 print "<td>$subtitle [解除不能]<br></td>\n"; 274 298 } 275 299 } … … 345 369 echo("<tr>\n"); 346 370 //予約解除 347 if ($protectmode) { 348 echo("<td>−</td>"); 371 if ( $userclass <= 1){ 372 echo("<td><a href=\"delreserve.php?tid=$tid&sid=" . 373 htmlspecialchars($rowdata[4]) . "\">解除</a></td>\n"); 349 374 }else{ 350 echo("<td><a href=\"delreserve.php?tid=$tid&sid=" . 351 htmlspecialchars($rowdata[4]) . "\">解除</a></td>\n"); 375 echo("<td>−</td>"); 352 376 } 353 377 //TID