示例#1
0
		}
		
		$smarty->assign("smin",$_POST['smin']);
		$smarty->assign("ssec",$_POST['ssec']);
		$smarty->assign("emin",$_POST['emin']);
		$smarty->assign("esec",$_POST['esec']);
	}
	
	
	################## SHOW DATA ##########################################
	$smarty->assign("file",$file);
	
	//seconds drop down
	for($i=0;$i<60;$i++){
		$seconds[] = $i;
	}
	$smarty->assign("seconds",$seconds);

	//minutes drop down
	$tminutes = floor($mp3info['playtime_seconds'] / 60);
	for($i=0;$i<=$tminutes;$i++){
		$minutes[] = $i;
	}
	$smarty->assign("minutes",$minutes);
	
	$smarty->assign("path",PROG_URL . $_GET['id'] . "/XBMF/" . "audio/");
	$smarty->assign("id",$_GET['id']);
	
	//page output :)	
	pageFinishPopup('cutaudio.htm');	# enter the desired template name as a parameter
?>
示例#2
0
			$smarty->assign(array("window_destroy"=>true,"destination"=>"myseries.php","get_data"=>$get_stuff));
		}
	}else if($_GET['action'] == 'unpublish'){
		if($myError->getLength()==0){
			//remove files
		
			//notify node of changes
		
			//update database
			$db->query("UPDATE programme SET published = NULL WHERE id = '$_GET[pid]'");
		
			//close window
			unset($_GET['pid']);
			unset($_GET['action']);
			reset($_GET);
			while(list($key,$val) = each($_GET)){
				$get_stuff[] = $key . "=" . $val;
			}
			$get_stuff = implode("&",$get_stuff);
		
			$smarty->assign(array("window_destroy"=>true,"destination"=>"myseries.php","get_data"=>$get_stuff));
		}	
	}//end if action
	
	//create help message
	//$myHelp = new helpBox(1);				# this will fetch a help message from the database and output it
											# in the template (if allowed to do so)																						
	//page output :)
	//pageFinish('noaccess.htm');			# enter the desired template name as a parameter
	pageFinishPopup('publish.htm');			# same as above but in a popop
?>
													"series_owner" 					=> $db->getAssoc("SELECT auth_id, name || ': '::\"varchar\" || role AS name FROM user_map WHERE access_id < 4 ORDER BY name"),
													"series_active" 				=> array('t'=>$STRING['ACTIVE'],'f'=>$STRING['NOTACTIVE']),
													"prog_active" 					=> array('t'=>$STRING['ACTIVE'],'f'=>$STRING['NOTACTIVE']),
													"submit_special_needs" 			=> $prog_special,
													"submit_series_owner"			=> $programme_data['series_owner_id'],
													"series_id" 					=> $programme_data['series_id'],
													"programme_id" 					=> $my_id,
													"get_stuff"						=> $get_stuff,
													
													"submit_alt_title"				=> $programme_data['prog_alt_title'],
													"submit_keywords"				=> $programme_data['prog_keywords'],
													"submit_programme_desc"			=> $programme_data['prog_description'],
													"submit_contrib"				=> $programme_data['prog_contrib'],
													"dcrtime"						=> $programme_data['prog_created'],
													"distime"						=> $programme_data['prog_issued'],
													"dcrdate"						=> $programme_data['prog_created_date'],
													"disdate"						=> $programme_date['prog_issued_date'],
													"submit_sotf_topic"				=> $programme_data['prog_topic'],
													"submit_sotf_genre"				=> $programme_data['prog_genre'],
													"submit_sotf_lang"				=> $programme_data['prog_lang'],
													"submit_rights"					=> $programme_data['prog_rights'],
													
													"sotf_lang"						=> $langs,
													"sotf_genres"					=> $mygenres,
													"sotf_topics"					=> $mytopics
												));
	}//end IF NO Submit
	
	//page output :)	
	pageFinishPopup('showprogrammedetails.htm');							# enter the desired template name as a parameter
?>