예제 #1
0
		<div>Number of Discs: <?php 
    isset($_ITEM->NumberOfDiscs) ? _p($_ITEM->NumberOfDiscs) : _p('');
    ?>
</div>

		<?php 
}
?>
		<?php 
$btnLend = new QLinkButton($this);
$btnLend->Text = 'Lend this to...';
$btnLend->AddAction(new QClickEvent(), new QServerAction('LendThis_Click'));
$btnLend->ActionParameter = $_ITEM->Id;
$objCondition = array();
$objCondition = QQ::Equal(QQN::Sharedetails()->Asin, $_ITEM->Asin);
$result = Sharedetails::QuerySingle($objCondition);
?>
		<br/><br/><br/><br/><br/>
		<div>
			<?php 
if (sizeof($result) != 0) {
    ?>
				<img src = '../assets/images/32x32/tag_green.png' />
				<?php 
    _p('This item is shared with ' . $result->FullName);
}
?>
		</div>
		</td>

	</tr>
예제 #2
0
 /**
  * Load a single Sharedetails object,
  * by Id Index(es)
  * @param integer $intId
  * @return Sharedetails
  */
 public static function LoadById($intId)
 {
     return Sharedetails::QuerySingle(QQ::Equal(QQN::Sharedetails()->Id, $intId));
 }