Location: PHPKode > projects > Library Accounting System > library/movie_module/m_addedit.php
<?
/*
Unlike the majority of files in LAS this one includes unparsed HTML, this is done to speed up the code. However this is not done in the majority of files to keep them from being confusing when editing them.
*/
?>	
<tr><td align="left"><?=$lang_[medium]?></td><td align="right"> 
	<select name="medium" id="medium" class="combow">
<?

//select current medium and list them all
	$result = mysql_query ("SELECT * FROM medium WHERE digit > 6");

	if ($row = mysql_fetch_array($result)) {
	  do {
	  $binding = $row['medium'];
	  $digit =  $row['digit'];
	   if($digit == $res[medium] || $digit == $medium){
	   print("<option selected=\"selected\" value=\"$digit\">$binding</option>");
}else{
	   print("<option value=\"$digit\">$binding</option>");
}
}while ($row = mysql_fetch_array($result)) ;
}
//back to printing the form
?>
	</select></td></tr>
<tr><td colspan = "2"><b>Movie details:</b></td></tr>
	<tr id="title"><td align="left"><?=$lang_[title]?></td><td align="right"><textarea name="title" cols="50" rows="1" class="combow"><?=$title?></textarea></td></tr>

        <tr><td align="left"><?=$lang_[actors]?></td><td align="right"><textarea name="actors" cols="50" rows="1" class="combow"><?=$actors?></textarea></td></tr>

	<tr><td align="left"><?=$lang_[director]?></td><td align="right"><textarea name="director" cols="50" rows="1" class="combow"><?=$director?></textarea></td></tr>
	
	<tr><td align="left"><?=$lang_[writer]?></td><td align="right"><textarea name="writer" cols="50" rows="1" class="combow"><?=$writer?></textarea></td></tr>

	<tr><td align="left"><?=$lang_[rating]?></td><td align="right"><textarea name="rating" cols="50" rows="1" class="combow"><?=$rating?></textarea></td></tr>
	
	<tr><td align="left"><?=$lang_[genres]?></td>
<td align="left" class="combow">
<table class="forText">
<tr>
<td><input type="checkbox" name="genre[]" value="Action" <?if(strpos($genres, "Action") !== false){print('checked="checked"');}?>/> <?=$lang_[action]?></td>
<td><input type="checkbox" name="genre[]" value="Adult" <?if(strpos($genres, "Adult") !== false){print('checked="checked"');}?>/> <?=$lang_[adult]?></td>
<td><input type="checkbox" name="genre[]" value="Adventure" <?if(strpos($genres, "Adventure") !== false){print('checked="checked"');}?>/> <?=$lang_[adventure]?></td>
</tr><tr>
<td><input type="checkbox" name="genre[]" value="Animation" <?if(strpos($genres, "Animation") !== false){print('checked="checked"');}?>/> <?=$lang_[animation]?></td>
<td><input type="checkbox" name="genre[]" value="Biography" <?if(strpos($genres, "Biography") !== false){print('checked="checked"');}?>/> <?=$lang_[biography]?></td>
<td><input type="checkbox" name="genre[]" value="Comedy"<?if(strpos($genres, "Comedy") !== false){print('checked="checked"');}?>/> <?=$lang_[comedy]?></td>
</tr><tr>
<td><input type="checkbox" name="genre[]" value="Crime" <?if(strpos($genres, "Crime") !== false){print('checked="checked"');}?>/> <?=$lang_[crime]?></td>
<td><input type="checkbox" name="genre[]" value="Documentary" <?if(strpos($genres, "Documentary") !== false){print('checked="checked"');}?>/> <?=$lang_[documentary]?></td>
<td><input type="checkbox" name="genre[]" value="Drama" <?if(strpos($genres, "Drama") !== false){print('checked="checked"');}?>/> <?=$lang_[drama]?></td>
</tr><tr>
<td><input type="checkbox" name="genre[]" value="Family" <?if(strpos($genres, "Family") !== false){print('checked="checked"');}?> /> <?=$lang_[family]?></td>
<td><input type="checkbox" name="genre[]" value="Fantasy" <?if(strpos($genres, "Fantasy") !== false){print('checked="checked"');}?> /> <?=$lang_[fantasy]?></td>
<td><input type="checkbox" name="genre[]" value="Film-Noir" <?if(strpos($genres, "Film-Noir") !== false){print('checked="checked"');}?> /> <?=$lang_[film_Noir]?></td>
</tr><tr>
<td><input type="checkbox" name="genre[]" value="History" <?if(strpos($genres, "History") !== false){print('checked="checked"');}?> /> <?=$lang_[history]?></td>
<td><input type="checkbox" name="genre[]" value="Horror" <?if(strpos($genres, "Horror") !== false){print('checked="checked"');}?> /> <?=$lang_[horror]?></td>
<td><input type="checkbox" name="genre[]" value="Music" <?if(strpos($genres, "Music") !== false){print('checked="checked"');}?> /> <?=$lang_[music]?><br/></td>
</tr><tr>
<td><input type="checkbox" name="genre[]" value="Musical" <?if(strpos($genres, "Musical") !== false){print('checked="checked"');}?> /> <?=$lang_[musical]?></td>
<td><input type="checkbox" name="genre[]" value="Mystery" <?if(strpos($genres, "Mystery") !== false){print('checked="checked"');}?> /> <?=$lang_[mystery]?></td>
<td><input type="checkbox" name="genre[]" value="News" <?if(strpos($genres, "News") !== false){print('checked="checked"');}?> /> <?=$lang_[news]?><br/></td>
</tr><tr>
<td><input type="checkbox" name="genre[]" value="Romance" <?if(strpos($genres, "Romance") !== false){print('checked="checked"');}?> /> <?=$lang_[romance]?></td>
<td><input type="checkbox" name="genre[]" value="Sci-Fi" <?if(strpos($genres, "Sci-Fi") !== false){print('checked="checked"');}?> /> <?=$lang_[sci_Fi]?></td>
<td><input type="checkbox" name="genre[]" value="Sport" <?if(strpos($genres, "Sport") !== false){print('checked="checked"');}?> /> <?=$lang_[sport]?><br/></td>
</tr><tr>
<td><input type="checkbox" name="genre[]" value="Thriller" <?if(strpos($genres, "Thriller") !== false){print('checked="checked"');}?> /> <?=$lang_[thriller]?></td>
<td><input type="checkbox" name="genre[]" value="War" <?if(strpos($genres, "War") !== false){print('checked="checked"');}?> /> <?=$lang_[war]?></td>
<td><input type="checkbox" name="genre[]" value="Western" <?if(strpos($genres, "Western") !== false){print('checked="checked"');}?> /> <?=$lang_[western]?></td>
</tr>
</table>
</td></tr>
        <tr><td align="left"><?=$lang_[outline]?></td><td align="right"><textarea name="outline" cols="50" rows="3" class="combow"><?=$outline?></textarea></td></tr>

        <tr><td align="left"><?=$lang_[synopsis]?></td><td align="right"><textarea name="synopsis" cols="50" rows="3" class="combow"><?=$synopsis?></textarea></td></tr>


	<tr><td align="left"><?=$lang_[prodcomp]?></td><td align="right"><textarea name="prodcomp" cols="50" rows="1" class="combow"><?=$prodcomp?></textarea></td></tr>

	<tr><td align="left"><?=$lang_[studio]?></td><td align="right"><textarea name="studio" cols="50" rows="1" class="combow"><?=$studio?></textarea></td></tr>

	<tr><td align="left"><?=$lang_[length]?></td><td align="right"><textarea name="length" cols="50" rows="1" class="combow"><?=$length?></textarea></td></tr>
	
<tr><td colspan = "2"> <b>Other details:</b></td></tr>

	<tr id="release"><td align="left"><?=$lang_[release]?></td><td align="right"><textarea name="release" cols="50" rows="1" class="combow"><?=$release?></textarea></td>	</tr>

	<tr ><td align="left"><?=$lang_[discnum]?></td><td align="right"><textarea name="discnum" cols="50" rows="1" class="combow"><?=$discnum?></textarea></td></tr>
	
        <tr><td align="left"><?=$lang_[format]?></td><td align="right"><textarea name="format" cols="50" rows="1" class="combow"><?=$format?></textarea></td></tr>

	<tr><td align="left"><?=$lang_[subtitles]?></td>
<td align="left" class="combow">
<table class="forText">
<tr>
<td><input type="checkbox" name="subtitles[]" value="English" <?if(strpos($subtitles, "English") !== false){print('checked="checked"');}?>/> <?=$lang_[english]?></td>
<td><input type="checkbox" name="subtitles[]" value="French" <?if(strpos($subtitles, "French") !== false){print('checked="checked"');}?>/> <?=$lang_[french]?></td>
<td><input type="checkbox" name="subtitles[]" value="Italian" <?if(strpos($subtitles, "Italian") !== false){print('checked="checked"');}?>/> <?=$lang_[italian]?></td>
</tr><tr>
<td><input type="checkbox" name="subtitles[]" value="Spanish" <?if(strpos($subtitles, "Spanish") !== false){print('checked="checked"');}?>/> <?=$lang_[spanish]?></td>
<td><input type="checkbox" name="subtitles[]" value="German" <?if(strpos($subtitles, "German") !== false){print('checked="checked"');}?>/> <?=$lang_[german]?></td>
<td><input type="checkbox" name="subtitles[]" value="Russian" <?if(strpos($subtitles, "Russian") !== false){print('checked="checked"');}?>/> <?=$lang_[russian]?></td>
</tr><tr>
<td><input type="checkbox" name="subtitles[]" value="Japanese" <?if(strpos($subtitles, "Japanese") !== false){print('checked="checked"');}?>/> <?=$lang_[japanese]?></td>
<td><input type="checkbox" name="subtitles[]" value="Chinese" <?if(strpos($subtitles, "Chinese") !== false){print('checked="checked"');}?>/> <?=$lang_[chinese]?></td>
<td><input type="checkbox" name="subtitles[]" value="Arabic"<?if(strpos($subtitles, "Arabic") !== false){print('checked="checked"');}?>/> <?=$lang_[arabic]?></td>
</tr>
</table>
</td></tr>

	<tr><td align="left"><?=$lang_[audio]?></td><td align="right"><textarea name="audio" cols="50" rows="3" class="combow"><?=$audio?></textarea></td></tr>

	<tr><td align="left"><?=$lang_[encoding]?></td><td align="right"><textarea name="encoding" cols="50" rows="1" class="combow"><?=$encoding?></textarea></td></tr>
	
		<tr><td align="left"><?=$lang_[callnum]?></td><td align="right"><textarea name="callnum" cols="50" rows="1" class="combow"><?=$callnum?></textarea></td></tr>
Return current item: Library Accounting System