Beispiel #1
0
<br/>
<?php 
include_once 'prepend.inc.php';
$name = '';
$chkCondition = new QQConditionEqual(QQN::Sharedetails()->Asin, $_ITEM->Asin);
$cnt = Sharedetails::QueryCount($chkCondition);
$objShare = Sharedetails::QueryArray($chkCondition);
foreach ($objShare as $val) {
    $name = $val->FullName;
}
/*
 * If the item is shared so not show it.
 */
if ($cnt == 0) {
    ?>

<table>
	<tr>
		<td>
			<div>
				<?php 
    if ($_ITEM->ImageURL != '') {
        $img = $_ITEM->ImageURL;
    } else {
        $img = '../assets/images/48x48/help.png';
    }
    ?>
 
				<img src='<?php 
    _p($img);
    ?>
Beispiel #2
0
 protected function dtrShareDetails_Bind()
 {
     $condition = $this->GetShareDetails();
     $this->dtrShareDetails->TotalItemCount = Sharedetails::QueryCount($condition);
     $this->dtrShareDetails->DataSource = $this->arrShareDetails;
 }
 /**
  * Count all Sharedetailses
  * @return int
  */
 public static function CountAll()
 {
     // Call Sharedetails::QueryCount to perform the CountAll query
     return Sharedetails::QueryCount(QQ::All());
 }