Location: PHPKode > projects > Multimedia2Multimedia > mm2mm/include/step1.php
<?php
if ( $config['htmlcomm'] == true ) echo ("<!-- step1.php BEGIN -->
");


// Quellen-Wahl BEGIN
{
echo ("				<ul id=\"ContentList\">
");

$count = 0;
$handle = opendir ($config['InputFolder']);
while ($file = readdir ($handle)) {
	if ( ( $file != "." ) AND ( $file != ".." ) AND ( $file[0] != "." ) AND ( $file != "README.txt" ) ) {
		$count++;
		require ($config['InputFolder']."/".$file."/input.php");
		echo ("					<li>
						<input type=\"radio\" name=\"source\" value=\"".$file."\"");
		$function_source_name = $function_source_config['name'];
		if ( $file == $source ) echo (" checked");
		echo (">".$function_source_name."
					</li>
");
		if ( $config['debug_messages'] == true )
			echo ("<li>\$file = ".$file."<br>\$source = ".$function_source_name."</li>");
		}

}

closedir($handle);

if ( $count == 0 ) echo ("					<li><font color=\"#C0C0C0\">".$lang['error_nosource']."</font></li>
");
echo ("				</ul>
");
// Quellen-Wahl END
}
{
echo ("				<br>
");
}
// Medien-Wahl BEGIN
{
// DIV-Kontainer BEGIN
{
echo ("				<ul id=\"");
if ( $source == "" )
		echo ("ContentListMediaPoll_unset");
		else
		echo ("ContentListMediaPoll_set");
echo ("\">
					<li>".$lang['provide_header']."</li>
");
if ( $config['debug_messages'] == true ) echo ("					<li>\$source = ".$source."<br>
					\$source_media = ".$source_media."<br>
					\$destination = ".$destination."<br>
					\$destination_media = ".$destination_media."<br>
					['provide_image'] = ".$function_source_config['image']['provide']."<br>
					['provide_imageaudio'] = ".$function_source_config['imageaudio']['provide']."<br>
					['provide_video'] = ".$function_source_config['video']['provide']."<br>
					['provide_videoaudio'] = ".$function_source_config['videoaudio']['provide']."<br>
					['provide_audio'] = ".$function_source_config['audio']['provide']."</li>
");
// DIV-Kontainer END
}

// Bilder BEGIN
{
echo ("					<li>");
	if ( ( $source != "" ) AND ( $function_source_config['image']['provide'] == true) ) {
		echo ("<input type=\"radio\" name=\"source_media\" value=\"provide_image\"");
		if ( $source_media == "provide_image" ) echo (" checked");
		echo ("> ");
		} else
		echo ("<img src=\"".$config['ImagesFolder']."/forbidden.png\" alt=\"forbidden\"> ");
echo ($lang['provide_image']."</li>
");
// Bilder END
}

// Bilder mit Audio BEGIN
{
echo ("					<li>");
	if ( ( $source != "" ) AND ( $function_source_config['imageaudio']['provide'] == true) ) {
		echo ("<input type=\"radio\" name=\"source_media\" value=\"provide_imageaudio\"");
		if ( $source_media == "provide_imageaudio" ) echo (" checked");
		echo ("> ");
		} else
		echo ("<img src=\"".$config['ImagesFolder']."/forbidden.png\" alt=\"forbidden\"> ");
echo ($lang['provide_imageaudio']."</li>
");
// Bilder mit Audio END
}

// Video BEGIN
{
echo ("					<li>");
	if ( ( $source != "" ) AND ( $function_source_config['video']['provide'] == true) ) {
		echo ("<input type=\"radio\" name=\"source_media\" value=\"provide_video\"");
		if ( $source_media == "provide_video" ) echo (" checked");
		echo ("> ");
		} else
		echo ("<img src=\"".$config['ImagesFolder']."/forbidden.png\" alt=\"forbidden\"> ");
echo ($lang['provide_video']."</li>
");
// Video END
}

// Video und Audio BEGIN
{
echo ("					<li>");
	if ( ( $source != "" ) AND ( $function_source_config['videoaudio']['provide'] == true) ) {
		echo ("<input type=\"radio\" name=\"source_media\" value=\"provide_videoaudio\"");
		if ( $source_media == "provide_videoaudio" ) echo (" checked");
		echo ("> ");
		} else
		echo ("<img src=\"".$config['ImagesFolder']."/forbidden.png\" alt=\"forbidden\"> ");
echo ($lang['provide_videoaudio']."</li>
");
// Video und Audio END
}

// Audio BEGIN
{
echo ("					<li>");
	if ( ( $source != "" ) AND ( $function_source_config['audio']['provide'] == true) ) {
		echo ("<input type=\"radio\" name=\"source_media\" value=\"provide_audio\"");
		if ( $source_media == "provide_audio" ) echo (" checked");
		echo ("> ");
		} else
		echo ("<img src=\"".$config['ImagesFolder']."/forbidden.png\" alt=\"forbidden\"> ");
echo ($lang['provide_audio']."</li>
");
// Audio END
}

echo ("				</ul>
");
// Medien-Wahl END
}

echo ("				<p>".$help['step1']."</p>
");
if ( $config['htmlcomm'] == true ) echo ("<!-- step1.php END -->
");
?>
Return current item: Multimedia2Multimedia