예제 #1
0
 /**
  * @return int
  */
 public static function add()
 {
     $id = self::getId(false);
     if ($id > 0) {
         return $id;
     }
     $result = 0;
     $res = PaySystemTable::add(array('NAME' => Loc::getMessage('ORDER_PS_INNER_NAME'), 'DESCRIPTION' => Loc::getMessage('ORDER_PS_INNER_DESCRIPTION'), 'SORT' => 10, 'LID' => '', 'CURRENCY' => ''));
     if ($res->isSuccess()) {
         $cacheManager = \Bitrix\Main\Application::getInstance()->getManagedCache();
         $cacheManager->set(self::CACHE_ID, $res->getId());
         $res = PaySystemActionTable::add(array('PAY_SYSTEM_ID' => $res->getId(), 'PERSON_TYPE_ID' => 0, 'NAME' => Loc::getMessage('ORDER_PS_INNER_NAME'), 'ACTION_FILE' => self::ACTION_FILE_TEXT));
         if ($res->isSuccess()) {
             $result = $res->getId();
         }
     }
     return $result;
 }
예제 #2
0
파일: order.php 프로젝트: Satariall/izurit
			</select>
		</td>
	</tr>
	<tr>
		<td><?php 
echo Loc::getMessage("SALE_F_PAY_SYSTEM");
?>
:</td>
		<td>
			<select name="filter_pay_system[]" multiple size="3">
				<option value=""><?php 
echo GetMessage("SALE_F_ALL");
?>
</option>
				<?php 
$l = Sale\Internals\PaySystemTable::getList(array('order' => array("SORT" => "ASC", "NAME" => "ASC")));
while ($paySystem = $l->fetch()) {
    ?>
<option value="<?php 
    echo htmlspecialcharsbx($paySystem["ID"]);
    ?>
"<?php 
    if (is_array($filter_pay_system) && in_array($paySystem["ID"], $filter_pay_system)) {
        echo " selected";
    }
    ?>
>[<?php 
    echo htmlspecialcharsbx($paySystem["ID"]);
    ?>
] <?php 
    echo htmlspecialcharsbx($paySystem["NAME"]);