示例#1
0
 private static function getImgPathList()
 {
     $dbRes = PaySystemServiceTable::getList(array('select' => array('ID', 'PAYSYS_LOGOTIP' => 'ACTION.LOGOTIP')));
     $paySystems = $dbRes->fetchAll();
     $logotypes = array('/bitrix/images/sale/nopaysystem.gif');
     foreach ($paySystems as $paySystem) {
         if (empty($paySystem['PAYSYS_LOGOTIP'])) {
             $logotypes[$paySystem['ID']] = $logotypes[0];
         } else {
             $logotypes[$paySystem['ID']] = \CFile::GetPath($paySystem['PAYSYS_LOGOTIP']);
         }
     }
     return $logotypes;
 }
 protected static function getEntityItemsFullList($entityType)
 {
     static $result = array();
     if (isset($result[$entityType])) {
         return $result[$entityType];
     }
     $result[$entityType] = array();
     if ($entityType == self::ENTITY_TYPE_DELIVERY) {
         $dbRes = Services\Table::getList(array('filter' => array("ACTIVE" => "Y"), 'select' => array("ID")));
         while ($dsrv = $dbRes->fetch()) {
             $result[$entityType][] = $dsrv["ID"];
         }
     } else {
         $dbRes = PaySystemServiceTable::getList(array('filter' => array("ACTIVE" => "Y"), 'select' => array("ID")));
         while ($ps = $dbRes->fetch()) {
             $result[$entityType][] = $ps["ID"];
         }
     }
     return $result[$entityType];
 }
示例#3
0
 /**
  * @param array $parameters
  * @return \Bitrix\Main\DB\Result
  */
 public static function getList(array $parameters)
 {
     return PaySystemServiceTable::getList($parameters);
 }
示例#4
0
		<select name="filter_site_id">
			<option value="NOT_REF">(<?php 
echo GetMessage("PAYMENT_ORDER_PAID_ALL");
?>
)</option>
			<?php 
foreach ($siteInfo as $id => $siteName) {
    echo '<option value="' . $id . '">' . htmlspecialcharsbx($siteName) . '</option>';
}
?>
		</select>
	</td>
</tr>
<?php 
$params = array('select' => array('ID', 'NAME'));
$res = \Bitrix\Sale\Internals\PaySystemServiceTable::getList($params);
$paySystems = $res->fetchAll();
?>
<tr>
	<td><?php 
echo GetMessage("PAYMENT_PAY_SYSTEM_ID");
?>
:</td>
	<td>
		<select name="filter_pay_system_id">
			<option value="NOT_REF">(<?php 
echo GetMessage("PAYMENT_ORDER_PAID_ALL");
?>
)</option>
			<?php 
foreach ($paySystems as $paySystem) {