bhq@iemsoft.cn
2018-11-27 e2b48dac099e43f4b3243cdf19a7522e4b5eccbe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!-- $Id -->
<!DOCTYPE html>
<html>
<head>
<?php echo $this->fetch('html_header.htm'); ?>
</head>
<?php echo $this->fetch('page_header.htm'); ?>
<body>
<form name="theForm" method="get" action="order.php" onsubmit="return check()">
  <div class="order_info_con">
    <div class="list-div order_operate">
      <table width="100%" cellpadding="3" cellspacing="1">
        <tr>
          <td width="30%"><span><?php echo $this->_var['lang']['label_action_note']; ?></span></td>
          <td><textarea name="action_note" cols="60" rows="3"><?php echo $this->_var['action_note']; ?></textarea>
            <?php if ($this->_var['require_note']): ?><?php echo $this->_var['lang']['require_field']; ?><?php endif; ?></td>
        </tr>
        <?php if ($this->_var['show_cancel_note']): ?>
        <tr>
          <td><span><?php echo $this->_var['lang']['label_cancel_note']; ?></span></td>
          <td><textarea name="cancel_note" cols="60" rows="3" id="cancel_note"><?php echo $this->_var['cancel_note']; ?></textarea><?php echo $this->_var['lang']['require_field']; ?><br><span><?php echo $this->_var['lang']['notice_cancel_note']; ?></span></td>
        </tr>
        <?php endif; ?>
        <?php if ($this->_var['show_invoice_no']): ?>
        <tr>
          <td><span><?php echo $this->_var['lang']['label_invoice_no']; ?></span></td>
          <td><input name="invoice_no" type="text" size="30" /></td>
        </tr>
        <?php endif; ?>
        <?php if ($this->_var['show_refund']): ?>
        <tr>
          <td><span><?php echo $this->_var['lang']['label_handle_refund']; ?></span></td>
          <td><p><?php if (! $this->_var['anonymous']): ?>
              <label>
                <input type="radio" name="refund" value="1" class="input_radio no-ml"/>
                <?php echo $this->_var['lang']['return_user_money']; ?></label>
              <br>
              <?php endif; ?>
              <label>
                <input type="radio" name="refund" value="2" class="input_radio no-ml"/>
                <?php echo $this->_var['lang']['create_user_account']; ?></label>
              <br>
              <label>
                <input name="refund" type="radio" value="3" class="input_radio no-ml"/>
                <?php echo $this->_var['lang']['not_handle']; ?></label>
              <br>
            </p></td>
        </tr>
        <tr>
          <td><span><?php echo $this->_var['lang']['label_refund_note']; ?></span></td>
          <td><textarea name="refund_note" cols="60" rows="3" id="refund_note"><?php echo $this->_var['refund_note']; ?></textarea></td>
        </tr>
        <?php endif; ?>
      </table>
    </div>
    <p class="order_btn_p">
        <span>
            <input type="submit" name="submit" value="<?php echo $this->_var['lang']['button_submit']; ?>" s/></span>
        <span> <input type="button" name="back" value="<?php echo $this->_var['lang']['back']; ?>" onclick="history.back()" /></span>
          <input type="hidden" name="order_id" value="<?php echo $this->_var['order_id']; ?>" />
          <input type="hidden" name="operation" value="<?php echo $this->_var['operation']; ?>" />
          <input type="hidden" name="act" value="<?php if ($this->_var['batch']): ?>batch_operate_post<?php else: ?>operate_post<?php endif; ?>" />
    </p>
  </div>
</form>
<script language="JavaScript">
  var require_note = '<?php echo $this->_var['require_note']; ?>';
  var show_refund  = '<?php echo $this->_var['show_refund']; ?>';
  var show_cancel = '<?php echo $this->_var['show_cancel_note']; ?>';
 
  function check()
  {
    if (require_note && document.forms['theForm'].elements['action_note'].value == '')
    {
      alert(pls_input_note);
      return false;
    }
    if (show_cancel && document.forms['theForm'].elements['cancel_note'].value == '')
    {
      alert(pls_input_cancel);
      return false;
    }
    if (show_refund)
    {
      var selected = false;
      for (var i = 0; i < document.forms['theForm'].elements.length; i++)
      {
        ele = document.forms['theForm'].elements[i];
        if (ele.tagName == 'INPUT' && ele.name == 'refund' && ele.checked)
        {
          selected = true;
          break;
        }
      }
      if (!selected)
      {
        alert(pls_select_refund);
        return false;
      }
    }
    return true;
  }
 
</script> 
<?php echo $this->fetch('page_footer.htm'); ?>
</body>
</html>