Ejemplo n.º 1
0
 /**
  * Préparation de la requête de paiement
  * 
  * @param $params Paramètres de l'appel
  */
 function call_request($params = array())
 {
     $this->params = array_merge($this->params, $params);
     // Date remplie ?
     if (empty($this->params['date'])) {
         $this->params['date'] = date('d/m/Y:H:i:s');
     }
     $oTpe = new CMCIC_Tpe($this->params['langue']);
     $oHmac = new CMCIC_Hmac($oTpe);
     $cgi1_fields = sprintf(CMCIC_CGI1_FIELDS, $oTpe->sNumero, $this->params['date'], $this->params['montant'], $this->params['devise'], $this->params['reference'], $this->params['texteLibre'], $oTpe->sVersion, $oTpe->sLangue, $oTpe->sCodeSociete, $this->params['email'], $this->params['nbrEch'], $this->params['dateEch1'], $this->params['montantEch1'], $this->params['dateEch2'], $this->params['montantEch2'], $this->params['dateEch3'], $this->params['montantEch3'], $this->params['dateEch4'], $this->params['montantEch4'], $this->params['options']);
     $sMAC = $oHmac->computeHmac($cgi1_fields);
     return array('url' => $oTpe->sUrlPaiement, 'version' => $oTpe->sVersion, 'TPE' => $oTpe->sNumero, 'date' => $this->params['date'], 'montant' => $this->params['montant'], 'devise' => $this->params['devise'], 'reference' => $this->params['reference'], 'MAC' => $sMAC, 'url_retour' => $oTpe->sUrlKO, 'url_retour_ok' => $oTpe->sUrlOK, 'url_retour_err' => $oTpe->sUrlKO, 'lgue' => $oTpe->sLangue, 'societe' => $oTpe->sCodeSociete, 'texte-libre' => HtmlEncode($this->params['texteLibre']), 'mail' => $this->params['email'], 'nbrech' => $this->params['nbrEch'], 'dateech1' => $this->params['dateEch1'], 'montantech1' => $this->params['montantEch1'], 'dateech2' => $this->params['dateEch2'], 'montantech2' => $this->params['montantEch2'], 'dateech3' => $this->params['dateEch3'], 'montantech3' => $this->params['montantEch3'], 'dateech4' => $this->params['dateEch4'], 'montantech4' => $this->params['montantEch4'], 'options' => $this->params['options']);
 }
Ejemplo n.º 2
0
	<span class="anglais">Form source code.</span>
       </p>
<pre>
&lt;form <span class="name">action</span>="<span class="value"><?php echo $oEpt->sUrlPaiement;?>"</span> method="post" id="PaymentRequest"&gt;
&lt;input type="hidden" name="<span class="name">version</span>"          value="<span class="value"><?php echo $oEpt->sVersion;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">TPE</span>"              value="<span class="value"><?php echo $oEpt->sNumero;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">date</span>"             value="<span class="value"><?php echo $sDate;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">montant</span>"          value="<span class="value"><?php echo $sMontant . $sDevise;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">reference</span>"        value="<span class="value"><?php echo $sReference;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">MAC</span>"              value="<span class="value"><?php echo $sMAC;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">url_retour</span>"       value="<span class="value"><?php echo $oEpt->sUrlKO;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">url_retour_ok</span>"    value="<span class="value"><?php echo $oEpt->sUrlOK;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">url_retour_err</span>"   value="<span class="value"><?php echo $oEpt->sUrlKO;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">lgue</span>"             value="<span class="value"><?php echo $oEpt->sLangue;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">societe</span>"          value="<span class="value"><?php echo $oEpt->sCodeSociete;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">texte-libre</span>"      value="<span class="value"><?php echo HtmlEncode($sTexteLibre);?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">mail</span>"             value="<span class="value"><?php echo $sEmail;?></span>" /&gt;
&lt;!-- Uniquement pour le Paiement fractionn&eacute; / Only for installment payment --&gt;
&lt;input type="hidden" name="<span class="name">nbrech</span>"           value="<span class="value"><?php echo $sNbrEch;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">dateech1</span>"         value="<span class="value"><?php echo $sDateEcheance1;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">montantech1</span>"      value="<span class="value"><?php echo $sMontantEcheance1;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">dateech2</span>"         value="<span class="value"><?php echo $sDateEcheance2;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">montantech2</span>"      value="<span class="value"><?php echo $sMontantEcheance2;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">dateech3</span>"         value="<span class="value"><?php echo $sDateEcheance3;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">montantech3</span>"      value="<span class="value"><?php echo $sMontantEcheance3;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">dateech4</span>"         value="<span class="value"><?php echo $sDateEcheance4;?></span>" /&gt;
&lt;input type="hidden" name="<span class="name">montantech4</span>"      value="<span class="value"><?php echo $sMontantEcheance4;?></span>" /&gt;
&lt;!-- --&gt;
&lt;input type="submit" name="<span class="name">bouton</span>"           value="<span class="value">Connexion / Connection</span>" /&gt;
&lt;/form&gt;
</pre>
Ejemplo n.º 3
0
?>
</span>" /&gt;
&lt;input type="hidden" name="<span class="name">url_retour_err</span>"   value="<span class="value"><?php 
echo $oEpt->sUrlKO;
?>
</span>" /&gt;
&lt;input type="hidden" name="<span class="name">lgue</span>"             value="<span class="value"><?php 
echo $oEpt->sLangue;
?>
</span>" /&gt;
&lt;input type="hidden" name="<span class="name">societe</span>"          value="<span class="value"><?php 
echo $oEpt->sCodeSociete;
?>
</span>" /&gt;
&lt;input type="hidden" name="<span class="name">texte-libre</span>"      value="<span class="value"><?php 
echo HtmlEncode($sTexteLibre);
?>
</span>" /&gt;
&lt;input type="hidden" name="<span class="name">mail</span>"             value="<span class="value"><?php 
echo $sEmail;
?>
</span>" /&gt;
&lt;!-- Uniquement pour le Paiement fractionn&eacute; --&gt;
&lt;input type="hidden" name="<span class="name">nbrech</span>"           value="<span class="value"><?php 
echo $sNbrEch;
?>
</span>" /&gt;
&lt;input type="hidden" name="<span class="name">dateech1</span>"         value="<span class="value"><?php 
echo $sDateEcheance1;
?>
</span>" /&gt;
 private function displayAttempt(EPMessage $epmessage)
 {
     $output = $this->getOutput();
     $lang = $this->getLanguage();
     # The form that is gonna send the user to the bank payment interface
     $html = '<form  class="visualClear" action="' . $epmessage->oTpe->sUrlPaiement . '" method="post" id="PaymentRequest">
                 <div class="form_header informations">' . wfMessage('ep-attempt-formheader', $lang->formatNum($epmessage->order->epo['epo_amount']))->parse() . '</div>
                 <div class="edit_col_1">
                     <fieldset>
                         <legend>' . wfMessage('ep-section2')->text() . '</legend>
                         <div id="mw-htmlform-you" class="content_block">
                             <p class="mw-htmlform-field-HTMLFloatField ">
                                 <label for="mw-input-wpamount">' . wfMessage('ep-cd-amountlabel')->text() . '</label>
                                 <input id="mw-input-wpamount" class="disabled" disabled="" value="' . $lang->formatNum($epmessage->order->epo['epo_amount']) . '" size="27" name="wpamount">
                                 <span class="sread help htmlform-tip">' . wfMessage('ep-help-amount')->text() . '</span>
                             </p>
                             <p class="mw-htmlform-field-HTMLTextField ">
                                 <label for="mw-input-wpemail">' . wfMessage('youremail')->text() . '</label>
                                 <input id="mw-input-wpemail" class="disabled" disabled="" value="' . $epmessage->order->epo['epo_mail'] . '" size="27" name="wpemail">
                                 <span class="sread help htmlform-tip">' . wfMessage('ep-help-mail')->text() . '</span>
                             </p>
                         </div>
                     </fieldset>
                     <input type="hidden" name="version"             id="version"        value="' . $epmessage->oTpe->sVersion . '" />
                     <input type="hidden" name="TPE"                 id="TPE"            value="' . $epmessage->oTpe->sNumero . '" />
                     <input type="hidden" name="date"                id="date"           value="' . $epmessage->epm_date_message_bank_format . '" />
                     <input type="hidden" name="montant"             id="montant"        value="' . $epmessage->order->epo['epo_amount'] . $epmessage->order->epo['epo_currency'] . '" />
                     <input type="hidden" name="reference"           id="reference"      value="' . $epmessage->epm['epm_epo_id'] . '" />
                     <input type="hidden" name="MAC"                 id="MAC"            value="' . $epmessage->epm['epm_mac'] . '" />
                     <input type="hidden" name="url_retour"          id="url_retour"     value="' . $epmessage->oTpe->sUrlKO . '" />
                     <input type="hidden" name="url_retour_ok"       id="url_retour_ok"  value="' . $epmessage->oTpe->sUrlOK . '" />
                     <input type="hidden" name="url_retour_err"      id="url_retour_err" value="' . $epmessage->oTpe->sUrlKO . '" />
                     <input type="hidden" name="lgue"                id="lgue"           value="' . $epmessage->oTpe->sLangue . '" />
                     <input type="hidden" name="societe"             id="societe"        value="' . $epmessage->oTpe->sCodeSociete . '" />
                     <input type="hidden" name="texte-libre"         id="texte-libre"    value="' . HtmlEncode($epmessage->epm['epm_free_text']) . '" />
                     <input type="hidden" name="mail"                id="mail"           value="' . $epmessage->order->epo['epo_mail'] . '" />
                     <p class="submit">
                         <input type="submit" name="bouton" class="mw-htmlform-submit" id="bouton"  value="' . wfMsg('ep-connect') . '" />
                     </p>
                 </div>
                 <div class="edit_col_2">
                     <div id="help_zone" class="content_block">
                         <h4>' . wfMessage('sz-htmlform-helpzonetitle')->text() . '</h4>
                         <p>' . wfMessage('sz-htmlform-helpzonedefault')->parse() . '</p>
                     </div>
                 </div>
                 <div class="clearfix"></div>
                 <div class="form_footer informations">' . wfMessage('ep-attempt-formfooter')->parse() . '</div>
             </form>';
     $output->addHTML($html);
 }
Ejemplo n.º 5
0
 public function payment_action($payment)
 {
     $this->debug(__FUNCTION__, 2, __LINE__);
     $sOptions = "";
     $sReference = substr(md5(microtime()), 0, 12);
     $sMontant = $this->price;
     $sDevise = $this->currency;
     $sTexteLibre = $payment;
     $sDate = date("d/m/Y:H:i:s");
     $sLangue = $this->lang;
     $sEmail = $this->customer_mail;
     $sNbrEch = "";
     $sDateEcheance1 = "";
     $sMontantEcheance1 = "";
     $sDateEcheance2 = "";
     $sMontantEcheance2 = "";
     $sDateEcheance3 = "";
     $sMontantEcheance3 = "";
     $sDateEcheance4 = "";
     $sMontantEcheance4 = "";
     $oTpe = new CMCIC_Tpe($sLangue);
     $oHmac = new CMCIC_Hmac($oTpe);
     // Control String for support
     $CtlHmac = sprintf(CMCIC_CTLHMAC, $oTpe->sVersion, $oTpe->sNumero, $oHmac->computeHmac(sprintf(CMCIC_CTLHMACSTR, $oTpe->sVersion, $oTpe->sNumero)));
     // Data to certify
     $PHP1_FIELDS = sprintf(CMCIC_CGI1_FIELDS, $oTpe->sNumero, $sDate, $sMontant, $sDevise, $sReference, $sTexteLibre, $oTpe->sVersion, $oTpe->sLangue, $oTpe->sCodeSociete, $sEmail, $sNbrEch, $sDateEcheance1, $sMontantEcheance1, $sDateEcheance2, $sMontantEcheance2, $sDateEcheance3, $sMontantEcheance3, $sDateEcheance4, $sMontantEcheance4, $sOptions);
     // MAC computation
     $sMAC = $oHmac->computeHmac($PHP1_FIELDS);
     // Setting the parametters
     $successSession = $this->linker->payment->setCallPage(0, $this->bank_code, 'payment_success', $payment);
     $this->successUrl = $this->linker->path->getLink('payment/callPage/' . $successSession);
     $failureSession = $this->linker->payment->setCallPage(0, $this->bank_code, 'payment_failure', $payment);
     $this->failureUrl = $this->linker->path->getLink('payment/callPage/' . $failureSession);
     $autoresponseSession = $this->linker->payment->setCallPage(0, $this->bank_code, 'payment_autoresponse', $payment);
     $this->autoresponseUrl = $this->linker->path->getLink('payment/callPage/' . $autoresponseSession);
     $baseUri = $this->linker->path->getBaseUri();
     $values['payment']['version'] = $oTpe->sVersion;
     $values['payment']['tpeVersion'] = $oTpe->sNumero;
     $values['payment']['date'] = $sDate;
     $values['payment']['amount'] = $sMontant;
     $values['payment']['currency'] = $sDevise;
     $values['payment']['reference'] = $sReference;
     $values['payment']['smac'] = $sMAC;
     $values['payment']['url_ko'] = $oTpe->sUrlKO;
     $values['payment']['url_ok'] = $oTpe->sUrlOK;
     $values['payment']['lang'] = $oTpe->sLangue;
     $values['payment']['companyCode'] = $oTpe->sCodeSociete;
     $values['payment']['freeText'] = HtmlEncode($sTexteLibre);
     $values['payment']['email'] = $sEmail;
     $rendered = $this->render('show', $values, false, false);
     echo $rendered;
     return true;
 }
Ejemplo n.º 6
0
    public static function display_form($oid)
    {
        global $wpdb;
        $output = '';
        $order = get_post_meta($oid, '_order_postmeta', true);
        $order_customer_info = get_post_meta($oid, '_order_info', true);
        //$currency_code = wpshop_tools::wpshop_get_currency($code=true);
        $current_currency = get_option('wpshop_shop_default_currency');
        $query = $wpdb->prepare('SELECT code_iso FROM ' . WPSHOP_DBT_ATTRIBUTE_UNIT . ' WHERE id =%d ', $current_currency);
        $currency_code = $wpdb->get_var($query);
        if (!empty($order) && !empty($currency_code)) {
            $sOptions = "";
            // ----------------------------------------------------------------------------
            //  CheckOut Stub setting fictious Merchant and Order datas.
            //  That's your job to set actual order fields. Here is a stub.
            // -----------------------------------------------------------------------------
            $sReference = $oid;
            // Reference: unique, alphaNum (A-Z a-z 0-9), 12 characters max
            $sMontant = number_format($order['order_grand_total'], 2, '.', '');
            // Amount : format  "xxxxx.yy" (no spaces)
            $sDevise = $currency_code;
            // Currency : ISO 4217 compliant
            $sTexteLibre = "";
            // free texte : a bigger reference, session context for the return on the merchant website
            $sDate = date("d/m/Y:H:i:s");
            // transaction date : format d/m/y:h:m:s
            $sLangue = "FR";
            // Language of the company code
            $sEmail = $order_customer_info['billing']['address']['address_user_email'];
            //"*****@*****.**"; // customer email
            ///////////////////////////////////////////////////////////////////////////////////////////
            $sNbrEch = "";
            //$sNbrEch = "4"; // between 2 and 4
            $sDateEcheance1 = "";
            // date echeance 1 - format dd/mm/yyyy //$sDateEcheance1 = date("d/m/Y");
            $sMontantEcheance1 = "";
            // montant �ch�ance 1 - format  "xxxxx.yy" (no spaces) //$sMontantEcheance1 = "0.26" . $sDevise;
            $sDateEcheance2 = "";
            // date echeance 2 - format dd/mm/yyyy
            $sMontantEcheance2 = "";
            // montant �ch�ance 2 - format  "xxxxx.yy" (no spaces) //$sMontantEcheance2 = "0.25" . $sDevise;
            $sDateEcheance3 = "";
            // date echeance 3 - format dd/mm/yyyy
            $sMontantEcheance3 = "";
            // montant �ch�ance 3 - format  "xxxxx.yy" (no spaces) //$sMontantEcheance3 = "0.25" . $sDevise;
            $sDateEcheance4 = "";
            // date echeance 4 - format dd/mm/yyyy
            $sMontantEcheance4 = "";
            // montant �ch�ance 4 - format  "xxxxx.yy" (no spaces) //$sMontantEcheance4 = "0.25" . $sDevise;
            // ----------------------------------------------------------------------------
            $oTpe = new CMCIC_Tpe($sLangue);
            $oHmac = new CMCIC_Hmac($oTpe);
            // Control String for support
            $CtlHmac = sprintf(CMCIC_CTLHMAC, $oTpe->sVersion, $oTpe->sNumero, $oHmac->computeHmac(sprintf(CMCIC_CTLHMACSTR, $oTpe->sVersion, $oTpe->sNumero)));
            // Data to certify
            $PHP1_FIELDS = sprintf(CMCIC_CGI1_FIELDS, $oTpe->sNumero, $sDate, $sMontant, $sDevise, $sReference, $sTexteLibre, $oTpe->sVersion, $oTpe->sLangue, $oTpe->sCodeSociete, $sEmail, $sNbrEch, $sDateEcheance1, $sMontantEcheance1, $sDateEcheance2, $sMontantEcheance2, $sDateEcheance3, $sMontantEcheance3, $sDateEcheance4, $sMontantEcheance4, $sOptions);
            // MAC computation
            $sMAC = $oHmac->computeHmac($PHP1_FIELDS);
            ob_start();
            ?>
		<script type="text/javascript">jQuery(document).ready(function(){ jQuery('#PaymentRequest_cic').submit(); });</script>
		<div class="paypalPaymentLoading"><span><?php 
            _e('Redirect to the CIC site in progress, please wait...', 'wpshop');
            ?>
</span></div>
		<form action="<?php 
            echo $oTpe->sUrlPaiement;
            ?>
" method="post" id="PaymentRequest_cic">
			<input type="hidden" name="version"             id="version"        value="<?php 
            echo $oTpe->sVersion;
            ?>
" />
			<input type="hidden" name="TPE"                 id="TPE"            value="<?php 
            echo $oTpe->sNumero;
            ?>
" />
			<input type="hidden" name="date"                id="date"           value="<?php 
            echo $sDate;
            ?>
" />
			<input type="hidden" name="montant"             id="montant"        value="<?php 
            echo $sMontant . $sDevise;
            ?>
" />
			<input type="hidden" name="reference"           id="reference"      value="<?php 
            echo $sReference;
            ?>
" />
			<input type="hidden" name="MAC"                 id="MAC"            value="<?php 
            echo $sMAC;
            ?>
" />
			<input type="hidden" name="url_retour"          id="url_retour"     value="<?php 
            echo $oTpe->sUrlKO;
            ?>
" />
			<input type="hidden" name="url_retour_ok"       id="url_retour_ok"  value="<?php 
            echo $oTpe->sUrlOK;
            ?>
" />
			<input type="hidden" name="url_retour_err"      id="url_retour_err" value="<?php 
            echo $oTpe->sUrlKO;
            ?>
" />
			<input type="hidden" name="lgue"                id="lgue"           value="<?php 
            echo $oTpe->sLangue;
            ?>
" />
			<input type="hidden" name="societe"             id="societe"        value="<?php 
            echo $oTpe->sCodeSociete;
            ?>
" />
			<input type="hidden" name="texte-libre"         id="texte-libre"    value="<?php 
            echo HtmlEncode($sTexteLibre);
            ?>
" />
			<input type="hidden" name="mail"                id="mail"           value="<?php 
            echo $sEmail;
            ?>
" />
			<!-- Uniquement pour le Paiement fractionn� -->
			<input type="hidden" name="nbrech"              id="nbrech"         value="<?php 
            echo $sNbrEch;
            ?>
" />
			<input type="hidden" name="dateech1"            id="dateech1"       value="<?php 
            echo $sDateEcheance1;
            ?>
" />
			<input type="hidden" name="montantech1"         id="montantech1"    value="<?php 
            echo $sMontantEcheance1;
            ?>
" />
			<input type="hidden" name="dateech2"            id="dateech2"       value="<?php 
            echo $sDateEcheance2;
            ?>
" />
			<input type="hidden" name="montantech2"         id="montantech2"    value="<?php 
            echo $sMontantEcheance2;
            ?>
" />
			<input type="hidden" name="dateech3"            id="dateech3"       value="<?php 
            echo $sDateEcheance3;
            ?>
" />
			<input type="hidden" name="montantech3"         id="montantech3"    value="<?php 
            echo $sMontantEcheance3;
            ?>
" />
			<input type="hidden" name="dateech4"            id="dateech4"       value="<?php 
            echo $sDateEcheance4;
            ?>
" />
			<input type="hidden" name="montantech4"         id="montantech4"    value="<?php 
            echo $sMontantEcheance4;
            ?>
" />
			<!-- -->
			<noscript><input type="submit" name="bouton"              id="bouton"         value="Connexion / Connection" /></noscript>
		</form>
<?php 
            $output = ob_get_contents();
            ob_end_clean();
        }
        return $output;
    }
Ejemplo n.º 7
0
 function BBCode2HTMLInstance($_x29)
 {
     if ($_x29 == null) {
         return "";
     }
     $_x177 = new RTEStringBuilder();
     $_x164 = $this->ParseBBCode($_x29);
     $this->BuildRelation($_x164);
     for ($_x45 = $_x164; $_x45 != null; $_x45 = $_x45->NextNode) {
         if ($_x45->Name == null) {
             if ($_x45->Value != null) {
                 $_x177->Append(str_replace("\n", "<br/>", str_replace("\r", "", htmlentities($_x45->Value))));
             }
             continue;
         }
         switch (strtolower($_x45->Name)) {
             case "*":
                 $_x177->Append("<li>");
                 break;
             case "list":
                 $_x177->Append("<ol>");
                 break;
             case "/list":
                 $_x177->Append("</ol>");
                 break;
             case "sub":
                 $_x177->Append("<sub>");
                 break;
             case "/sub":
                 $_x177->Append("</sub>");
                 break;
             case "sup":
                 $_x177->Append("<sup>");
                 break;
             case "/sup":
                 $_x177->Append("</sup>");
                 break;
             case "s":
                 $_x177->Append("<s>");
                 break;
             case "/s":
                 $_x177->Append("</s>");
                 break;
             case "u":
                 $_x177->Append("<u>");
                 break;
             case "/u":
                 $_x177->Append("</u>");
                 break;
             case "i":
                 $_x177->Append("<i>");
                 break;
             case "/i":
                 $_x177->Append("</i>");
                 break;
             case "b":
                 $_x177->Append("<b>");
                 break;
             case "/b":
                 $_x177->Append("</b>");
                 break;
             case "h":
                 if ($_x45->EndTag == null) {
                     break;
                 }
                 $_x45->EndTag->Value = $_x45->Value;
                 $_x177->Append("<h" . $_x45->Value . ">");
                 break;
             case "/h":
                 if ($_x45->Value == null) {
                     break;
                 }
                 $_x177->Append("</h" . $_x45->Value . ">");
                 break;
             case "img":
                 $_x177->Append("<img src='");
                 if ($_x45->Value != null) {
                     $_x177->Append(HttpUtility . HtmlEncode($_x45->Value));
                     $_x177->Append("'/>");
                 }
                 break;
             case "/img":
                 $_x177->Append("'/>");
                 break;
             default:
                 $_x177->Append("[");
                 $_x177->Append($_x45->Name);
                 $_x177->Append("]");
                 break;
             case "url":
                 $_x177->Append("<a href='");
                 if ($_x45->Value != null) {
                     $_x177->Append(HttpUtility . HtmlEncode($_x45->Value));
                 } else {
                     $_x177->Append($_x45->GetInnerText());
                 }
                 $_x177->Append("'>");
                 break;
             case "/url":
                 $_x177->Append("</a>");
                 break;
             case "email":
                 $_x177->Append("<a href='mailto:");
                 if ($_x45->Value != null) {
                     $_x177->Append(HttpUtility . HtmlEncode($_x45->Value));
                 } else {
                     $_x177->Append($_x45->GetInnerText());
                 }
                 $_x177->Append("'>");
                 break;
             case "/email":
                 $_x177->Append("</a>");
                 break;
             case "color":
                 $_x177->Append("<font");
                 if ($_x45->Value != null) {
                     $_x177->Append(" color='");
                     $_x177->Append(HttpUtility . HtmlEncode($_x45->Value));
                     $_x177->Append("'");
                 }
                 $_x177->Append(">");
                 break;
             case "/color":
                 $_x177->Append("</font>");
                 break;
             case "face":
                 $_x177->Append("<font");
                 if ($_x45->Value != null) {
                     $_x177->Append(" name='");
                     $_x177->Append(HttpUtility . HtmlEncode($_x45->Value));
                     $_x177->Append("'");
                 }
                 $_x177->Append(">");
                 break;
             case "/face":
                 $_x177->Append("</font>");
                 break;
             case "size":
                 $_x177->Append("<font");
                 if ($_x45->Value != null) {
                     if ($this->OnlyNumber($_x45->Value)) {
                         $_x177->Append(" size='");
                         $_x177->Append(HttpUtility . HtmlEncode($_x45->Value));
                         $_x177->Append("'");
                     } else {
                         $_x177->Append(" style='font-size:");
                         $_x177->Append(HttpUtility . HtmlEncode($_x45->Value));
                         $_x177->Append("'");
                     }
                 }
                 $_x177->Append(">");
                 break;
             case "/size":
                 $_x177->Append("</font>");
                 break;
             case "align":
                 $_x177->Append("<div style='");
                 if ($_x45->Value != null) {
                     $_x177->Append("text-align:");
                     $_x177->Append(HttpUtility . HtmlEncode($_x45->Value));
                 }
                 $_x177->Append("'>");
                 break;
             case "/align":
                 $_x177->Append("</div>");
                 break;
             case "quote":
                 $_x177->Append("<blockquote>");
                 break;
             case "/quote":
                 $_x177->Append("</blockquote>");
                 break;
             case "pre":
                 $_x177->Append("<pre>");
                 break;
             case "/pre":
                 $_x177->Append("</pre>");
                 break;
             case "p":
                 $_x177->Append("<p>");
                 break;
             case "/p":
                 $_x177->Append("</p>");
                 break;
             case "table":
                 $_x177->Append("<table>");
                 break;
             case "/table":
                 $_x177->Append("</table>");
                 break;
             case "tr":
                 $_x177->Append("<tr>");
                 break;
             case "/tr":
                 $_x177->Append("</tr>");
                 break;
             case "td":
                 $_x177->Append("<td>");
                 break;
             case "/td":
                 $_x177->Append("</td>");
                 break;
             case "code":
                 $_x177->Append("<textarea class='ubb_tag_code' style='width:400px;height:240px;'>");
                 break;
             case "/code":
                 $_x177->Append("</textarea>");
                 break;
         }
     }
     return $_x177->ToString();
 }
Ejemplo n.º 8
0
?>
" />
    <input type="hidden" name="url_retour_err"      id="url_retour_err" value="<?php 
echo $vars->oTpe->sUrlKO;
?>
" />
    <input type="hidden" name="lgue"                id="lgue"           value="<?php 
echo $vars->oTpe->sLangue;
?>
" />
    <input type="hidden" name="societe"             id="societe"        value="<?php 
echo $vars->oTpe->sCodeSociete;
?>
" />
    <input type="hidden" name="texte-libre"         id="texte-libre"    value="<?php 
echo HtmlEncode($vars->texteLibre);
?>
" />
    <input type="hidden" name="mail"                id="mail"           value="<?php 
echo $vars->email;
?>
" />
    <?php 
if ($vars->sNbrEch) {
    ?>
        <!-- Uniquement pour le Paiement fractionné -->
        <input type="hidden" name="nbrech"              id="nbrech"         value="<?php 
    echo $vars->nbrEch;
    ?>
" />
    <?php