Ticket #402: category_list_ids.2.diff
| File category_list_ids.2.diff, 1.3 KB (added by , 21 years ago) |
|---|
-
mythweb/video_edit.php
87 87 $result = mysql_query('SELECT * FROM videocategory') 88 88 or trigger_error('SQL Error: '.mysql_error(), FATAL); 89 89 while( $cat_data = mysql_fetch_assoc($result) ) { 90 $num_cat++; 91 $cat_str = $cat_data["category"]; ?> 92 <option <?if ($category == $num_cat) print "selected"; ?> value="<?print $num_cat; ?>"><?print $cat_str; ?></option> 90 ?><option <?if ($category == $cat_data["intid"]) print "selected"; ?> value="<?print $cat_data["intid"]; ?>"><?print $cat_data["category"]; ?></option> 93 91 <?} 94 92 ?></td> 95 93 </tr><tr> -
mythweb/themes/Default/video.php
40 40 if( $Filter_Category == -1) 41 41 echo "selected"; 42 42 echo ">All</option>\n"; 43 for ($i=0;$i<=$Total_Categories;$i++) {43 foreach (array_keys($Category_String) as $i) { 44 44 echo "<option value=$i "; 45 45 if( $i == $Filter_Category ) 46 46 echo "selected";
