Changeset 19482 for extensions/scheduler/include
- Timestamp:
- Dec 18, 2012, 12:55:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/scheduler/include/admin_events.inc.php
r19232 r19482 33 33 global $page, $template; 34 34 35 if ( 'photo' == $_GET['page'] and (!isset($_GET['tab']) or 'properties' == $_GET['tab']))35 if (!isset($_GET['page'])) 36 36 { 37 // is the current photo on schedule? 38 $query = ' 37 return; 38 } 39 40 if ($_GET['page'] != 'photo') 41 { 42 return; 43 } 44 45 if (isset($_GET['tab']) and $_GET['tab'] != 'properties') 46 { 47 return; 48 } 49 50 // is the current photo on schedule? 51 $query = ' 39 52 SELECT * 40 53 FROM '.SCHEDULER_TABLE.' 41 54 WHERE image_id = '.$_GET['image_id'].' 42 55 ;'; 43 56 $scheduler = pwg_db_fetch_assoc(pwg_query($query)); 44 57 45 46 47 48 58 if (!isset($scheduler['scheduled_for'])) 59 { 60 return; 61 } 49 62 50 51 52 53 54 55 56 57 63 if (isset($_POST['submit'])) 64 { 65 // we have to change the level in the scheduler table 66 single_update( 67 SCHEDULER_TABLE, 68 array('level' => $_POST['level']), 69 array('image_id' => $_GET['image_id']) 70 ); 58 71 59 72 $scheduler['level'] = $_POST['level']; 60 73 61 // then picture_modify.php will update IMAGES_TABLE to level 32 (=scheduled) 62 $_POST['level'] = 32; 63 } 74 // then picture_modify.php will update IMAGES_TABLE to level 32 (=scheduled) 75 $_POST['level'] = 32; 76 } 77 78 $template->set_prefilter('picture_modify', 'scheduler_picture_edit_prefilter'); 64 79 65 $template->set_prefilter('picture_modify', 'scheduler_picture_edit_prefilter'); 66 67 $template->assign('level_options_selected_scheduler', array($scheduler['level'])); 68 } 80 $template->assign('level_options_selected_scheduler', array($scheduler['level'])); 69 81 } 70 82 ?>
Note: See TracChangeset
for help on using the changeset viewer.