예제 #1
0
<?php

include_once '../../config/symbini.php';
include_once $serverRoot . '/classes/SpecLoans.php';
$collId = $_REQUEST['collid'];
$exchangeId = array_key_exists('exchangeid', $_REQUEST) ? $_REQUEST['exchangeid'] : 0;
$loanManager = new SpecLoans();
if ($collId) {
    $loanManager->setCollId($collId);
}
$transInstList = $loanManager->getTransInstList($collId);
if ($transInstList) {
    ?>
	<div id="exchangeToggle" style="float:right;margin:10px;">
		<a href="#" onclick="displayNewExchange()">
			<img src="../../images/add.png" alt="Create New Exchange" />
		</a>
	</div>
	<?php 
} else {
    echo '<script type="text/javascript">displayNewExchange();</script>';
}
?>
<div id="newexchangediv" style="display:<?php 
echo $transInstList ? 'none' : 'block';
?>
;width:550px;">
	<form name="newexchangegiftform" action="index.php" method="post" onsubmit="return verfifyExchangeAddForm(this)">
		<fieldset>
			<legend>New Gift/Exchange</legend>
			<div style="padding-top:10px;float:left;">