Subversion Repositories SmartDukaan

Rev

Rev 11064 | Rev 11136 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11064 Rev 11067
Line 70... Line 70...
70
          foreach($payments->options as $payment){
70
          foreach($payments->options as $payment){
71
         if($payment->label == 'CREDIT CARDS'){
71
         if($payment->label == 'CREDIT CARDS'){
72
          if((!isset($codCaptcha) && $codCaptcha !=1) || (!isset($cod) || $cod == 0)){
72
          if((!isset($codCaptcha) && $codCaptcha !=1) || (!isset($cod) || $cod == 0)){
73
            $defaultPayment = $payment->type;
73
            $defaultPayment = $payment->type;
74
          }?>
74
          }?>
75
        <div  id="<?php echo $payment->type;?>"class="card <?php if((!isset($codCaptcha) && $codCaptcha !=1) || (!isset($cod) || $cod ==0)){echo 'selected';}?>" onclick="changePayment(event);"><?php echo $payment->label;?> <span>-</span></div>
75
        <div  id="<?php echo $payment->type;?>"class="card <?php if((!isset($codCaptcha) && $codCaptcha !=1) || (!isset($cod) || $cod ==0)){echo 'selected';}?>" onclick="changePayment(event);"><?php echo $payment->label;?> <span><?php if((!isset($codCaptcha) && $codCaptcha !=1) || (!isset($cod) || $cod == 0)){echo '-';} else { echo '+';}?></span></div>
76
        <div style="display:<?php if((!isset($codCaptcha) && $codCaptcha !=1) || (isset($cod) || $cod == 0)){echo 'none';} else { echo 'block'; }?>" class="credit-cards clearfix">
76
        <div style="display:<?php if((!isset($codCaptcha) && $codCaptcha !=1) || (isset($cod) || $cod == 0)){echo 'none';} else { echo 'block'; }?>" class="credit-cards clearfix">
77
          <div class="c-info">You will be taken to our Bank's payment gateway for making this payment.</div>
77
          <div class="c-info">You will be taken to our Bank's payment gateway for making this payment.</div>
78
          <form id="creditcard" method="post" data-key="<?php echo $payment->label;?>" action="<?php echo base_url().'payment';?>" onsubmit="return paymentValidation(event)">
78
          <form id="creditcard" method="post" data-key="<?php echo $payment->label;?>" action="<?php echo base_url().'payment';?>" onsubmit="return paymentValidation(event)">
79
            <fieldset>
79
            <fieldset>
80
           <div class="cc-hldr clearfix">
80
           <div class="cc-hldr clearfix">
Line 164... Line 164...
164
        <?php if($payment->label == 'CASH ON DELIVERY'){
164
        <?php if($payment->label == 'CASH ON DELIVERY'){
165
        if(isset($cod) && $cod == 1){
165
        if(isset($cod) && $cod == 1){
166
          if((isset($codCaptcha) && $codCaptcha == 1) || (isset($cod) && $cod == 1)){
166
          if((isset($codCaptcha) && $codCaptcha == 1) || (isset($cod) && $cod == 1)){
167
            $defaultPayment = $payment->type;
167
            $defaultPayment = $payment->type;
168
          }?>
168
          }?>
169
        <div id="<?php echo $payment->type;?>" class="card <?php if((isset($codCaptcha) && $codCaptcha == 1) || (isset($cod) && $cod == 1)) {echo 'selected';}?>" onclick="changePayment(event);"><?php echo $payment->label;?><span>+</span></div>
169
        <div id="<?php echo $payment->type;?>" class="card <?php if((isset($codCaptcha) && $codCaptcha == 1) || (isset($cod) && $cod == 1)) {echo 'selected';}?>" onclick="changePayment(event);"><?php echo $payment->label;?><span><?php if((isset($codCaptcha) && $codCaptcha == 1) || (isset($cod) && $cod == 1)){echo '-';} else {echo '+';}?></span></div>
170
        <div style="display:<?php if((isset($codCaptcha) && $codCaptcha == 1) || (isset($cod) && $cod == 1)){echo 'block';} else { echo 'none'; }?>" class="info-hldr">
170
        <div style="display:<?php if((isset($codCaptcha) && $codCaptcha == 1) || (isset($cod) && $cod == 1)){echo 'block';} else { echo 'none'; }?>" class="info-hldr">
171
          <!-- <p class="c-info">You will be taken to our Bank's payment gateway for making this payment.</p> -->
171
          <!-- <p class="c-info">You will be taken to our Bank's payment gateway for making this payment.</p> -->
172
          <div id="captcha" class="tcenter"><?php print_r($captcha['image']);?></div>
172
          <div id="captcha" class="tcenter"><?php print_r($captcha['image']);?></div>
173
              <div id="clickCaptcha" class="tcenter" onclick="changeCaptcha()">Click here to change image</div>
173
              <div id="clickCaptcha" class="tcenter" onclick="changeCaptcha()">Click here to change image</div>
174
          <form id="cashod" method="post" data-key="<?php echo $payment->label;?>" action="<?php echo base_url().'payment';?>" onsubmit="return paymentValidation(event)">
174
          <form id="cashod" method="post" data-key="<?php echo $payment->label;?>" action="<?php echo base_url().'payment';?>" onsubmit="return paymentValidation(event)">