Example #1
0
    ?>
                            <?php 
    echo $form->hiddenField($transaction, 'guid');
    ?>
                        <?php 
}
?>

                        <?php 
if ($config->EMULATION === 'false') {
    ?>
                            <?php 
    echo CHtml::hiddenField('LMI_PAYMENT_AMOUNT', number_format($transaction->amount, 2));
    ?>
                            <?php 
    echo CHtml::hiddenField('LMI_PAYMENT_DESC', CHtml::encode(Translit::Encode($transaction->spec->title)));
    ?>
                            <?php 
    echo CHtml::hiddenField('LMI_PAYMENT_NO', $transaction->id);
    ?>
                            <?php 
    echo CHtml::hiddenField('LMI_PAYEE_PURSE', $PAYEE_PURSE);
    ?>
                            <?php 
    if (!empty($config->sim_mode)) {
        echo CHtml::hiddenField('LMI_SIM_MODE', $config->sim_mode);
        ?>
 <?php 
    }
    ?>
                            <?php 
Example #2
0
 /**
  * @param mixed $title
  * @param mixed $pattern
  * @return string
  */
 public function _get_title_src($title, $pattern = '')
 {
     $pattern = empty($pattern) ? "[^a-zA-Z0-9-]+" : $pattern;
     $title = strtolower(\Translit::Encode($title));
     $title = preg_replace("#" . $pattern . "#us", '', $title);
     preg_match_all("#(\\d+-\\d+)+#us", $title, $matches);
     if (!empty($matches)) {
         foreach ($matches[0] as $match) {
             $title = str_replace($match, str_replace('-', '&', $match), $title);
         }
     }
     return md5(str_replace('&', '-', str_replace('-', '', $title)));
 }