Location: PHPKode > projects > Library Accounting System > library/movie_module/m_viewing.php
<?php if($url_blocker != "75726C00"){Header("Location: ./"); exit;}?> 
 <?
if($logcheck['Option1'] == 1 && $logcheck['Option7'] == 0 && $logcheck['Option4'] == 0 || $logcheck['Option1'] == 0 ){

//this is a very simple script, it just retrieves and displays records
$result = mysql_query("SELECT * FROM visual WHERE refurl = '$refurl'") or die(mysql_error());

$res = mysql_fetch_array($result) or die(mysql_error());
if ($res['medium'] == 6){$res['medium'] = "DVD";}elseif ($res['medium'] == 7){$res['medium'] = "VHS";}

if ($res['status'] == 1){$res['status'] = "Yes";}else{$res['status'] = "No";}

print("<br />
<div class=\"forViewt\"><br /></div><div class=\"forView\">
<div style=\"float: right;\">
<img src=\"images.php?doing=$res[refurl]\" alt=\"$res[title]\"></img>
</div>
<b>$lang_[mdetails] </b><br />
<a href=\"javascript:document.form1.submit()\">(<u>$lang_[clicktedit]</u>)</a><br />
<a href=\"javascript:document.form2.submit()\">(<u>$lang_[clicktpost]</u>)</a><br />
<a href=\"javascript:document.form3.submit()\">(<u>$lang_[clicktloan]</u>)</a><br />
$lang_[medium] $res[medium] <br />
$lang_[title]  $res[title]<br />
$lang_[actors]  $res[actors]<br />
$lang_[director]  $res[director]<br />
$lang_[writer]  $res[writer]<br />
$lang_[prodcomp]  $res[prodcomp]<br />
$lang_[studio]  $res[studio]<br />
$lang_[genres] $res[genre]<br />
$lang_[rating]  $res[rating]<br />
$lang_[length]  $res[length]<br />
</div><div class=\"forViewb\"><br /></div><br />

<div class=\"forViewt\"><br /></div><div class=\"forView\">
<b>$lang_[odetails]</b><br />
$lang_[release] $res[release]<br />
$lang_[discnum] $res[discnum]<br />
$lang_[format] $res[format]<br />
$lang_[subtitles] $res[subtitles]<br />
$lang_[audio] $res[audio]<br />
$lang_[encoding] $res[encoding]<br />
</div><div class=\"forViewb\"><br /></div><br />

<div class=\"forViewt\"><br /></div><div class=\"forView\">
<b>$lang_[rdetails]</b><br />
$lang_[callnum] $res[callnum]<br />
</div><div class=\"forViewb\"><br /></div><br />

<div class=\"forViewt\"><br /></div><div class=\"forView\">
<b>$lang_[pdetails]</b><br />
$lang_[outline] ".html_entity_decode($res['outline'])."<br /><br />
$lang_[synopsis] ".html_entity_decode($res['synopsis'])."<br /><br />
</div><div class=\"forViewb\"><br /></div>");

//placing the forms down here removes unwanted line breaks
print("<form action=\"index.php?mode=edit\" name=\"form1\" method=\"post\"><input type=\"hidden\" name=\"entry\" value =\"$doing\" /></form>
<form action=\"index.php?mode=loan\" name=\"form3\" method=\"post\"><input type=\"hidden\" name=\"entry\" value =\"$doing\" /></form>
<form action=\"index.php?mode=notes\" name=\"form2\" method=\"post\">
<input type=\"hidden\" name=\"entry\" value =\"$res[refurl]\" />
<input type=\"hidden\" name=\"doing\" value =\"list\" />
</form>");
}else{
echo $lang_['nlogin'];
}
?>
Return current item: Library Accounting System