<?php
///////////////////////////////////////////////////////////////////////////////////////
// opencart1.4.2【日本語版】
// opencart.jp
// remise.tpl
// ver 1.0.0 Coding By sae  2010/03/21 seagreenzzz@gmail.com
// GPL ver 3
///////////////////////////////////////////////////////////////////////////////////////
?>
<?php echo $header; ?>
<?php if ($error_warning) { ?>
<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>
<div class="box">
  <div class="left"></div>
  <div class="right"></div>
  <div class="heading">
    <h1 style="background-image: url('view/image/payment.png');"><?php echo $heading_title; ?></h1>
    <div class="buttons"><a onclick="$('#form').submit();" class="button"><span><?php echo $button_save; ?></span></a><a onclick="location='<?php echo $cancel; ?>';" class="button"><span><?php echo $button_cancel; ?></span></a></div>
  </div>
  <div class="content">
    <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
      <table class="form">
        <tr>
        	<td colspan="2">
        		<?php echo $text_result_url; ?>
        	</td>
        </tr>
        <tr>
          <td><?php echo $entry_title; ?></td>
          <td><input type="text" name="remise_title" value="<?php echo $remise_title; ?>" />
          <?php if ($error_title) { ?>
            <span class="error"><?php echo $error_title; ?></span>
            <?php } ?>
            </td>
        </tr>
        <tr>
          <td><?php echo $entry_use_price; ?></td>
          <td><input type="text" name="remise_use_price" value="<?php echo $remise_use_price; ?>" />
            </td>
        </tr>
        <tr>
          <td><span class="required">*</span> <?php echo $entry_store_code; ?></td>
          <td><input type="text" name="remise_store_code" value="<?php echo $remise_store_code; ?>" />
            <?php if ($error_store_code) { ?>
            <span class="error"><?php echo $error_store_code; ?></span>
            <?php } ?></td>
        </tr>
        <tr>
          <td><span class="required">*</span> <?php echo $entry_host_no; ?></td>
          <td><input type="text" name="remise_host_no" value="<?php echo $remise_host_no; ?>" />
            <?php if ($error_host_no) { ?>
            <span class="error"><?php echo $error_host_no; ?></span>
            <?php } ?></td>
        </tr>
       <tr>
          <td><span class="required">*</span> <?php echo $entry_url_pc; ?></td>
          <td><input type="text" name="remise_url_pc" value="<?php echo $remise_url_pc; ?>" />
            <?php if ($error_url_pc) { ?>
            <span class="error"><?php echo $error_url_pc; ?></span>
            <?php } ?></td>
        </tr>
        <tr>
          <td><span class="required">*</span> <?php echo $entry_url_mob; ?></td>
          <td><input type="text" name="remise_url_mob" value="<?php echo $remise_url_mob; ?>" />
            <?php if ($error_url_mob) { ?>
            <span class="error"><?php echo $error_url_mob; ?></span>
            <?php } ?></td>
        </tr>
        <tr>
          <td><span class="required">*</span> <?php echo $entry_product_code; ?></td>
          <td>
          	<select name="remise_product_code">
            <?php
          		if( $remise_product_code == '0000120' || $remise_product_code == '' ){
          	?>
          		<option value="0000120" selected="selected">通販（物販）</option>
          		<option value="0000990">その他（サービス課金）</option>
          	<?php
          		}else{
          	?>
          		<option value="0000120">通販（物販）</option>
          		<option value="0000990" selected="selected">その他（サービス課金）</option>
          	<?php
          		}//if-end
          	?>
          	</select>
          </td>
        </tr>
        <tr>
          <td><span class="required">*</span> <?php echo $entry_payquick; ?></td>
          <td>
          	<select name="remise_payquick">
            <?php
          		if( $remise_payquick == '1' || $remise_payquick == '' ){
          	?>
          		<option value="1" selected="selected">利用する</option>
          		<option value="0">利用しない</option>
          	<?php
          		}else{
          	?>
          		<option value="1">利用する</option>
          		<option value="0" selected="selected">利用しない</option>
          	<?php
          		}//if-end
          	?>
          	</select>
          </td>
        </tr>
        <tr>
          <td><?php echo $entry_order_status; ?></td>
          <td><select name="remise_order_status_id">
              <?php foreach ($order_statuses as $order_status) { ?>
              <?php if ($order_status['order_status_id'] == $remise_order_status_id) { ?>
              <option value="<?php echo $order_status['order_status_id']; ?>" selected="selected"><?php echo $order_status['name']; ?></option>
              <?php } else { ?>
              <option value="<?php echo $order_status['order_status_id']; ?>"><?php echo $order_status['name']; ?></option>
              <?php } ?>
              <?php } ?>
            </select></td>
        </tr>
        <tr>
          <td><?php echo $entry_geo_zone; ?></td>
          <td><select name="remise_geo_zone_id">
              <option value="0"><?php echo $text_all_zones; ?></option>
              <?php foreach ($geo_zones as $geo_zone) { ?>
              <?php if ($geo_zone['geo_zone_id'] == $remise_geo_zone_id) { ?>
              <option value="<?php echo $geo_zone['geo_zone_id']; ?>" selected="selected"><?php echo $geo_zone['name']; ?></option>
              <?php } else { ?>
              <option value="<?php echo $geo_zone['geo_zone_id']; ?>"><?php echo $geo_zone['name']; ?></option>
              <?php } ?>
              <?php } ?>
            </select></td>
        </tr>
        <tr>
          <td><?php echo $entry_status; ?></td>
          <td><select name="remise_status">
              <?php if ($remise_status) { ?>
              <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
              <option value="0"><?php echo $text_disabled; ?></option>
              <?php } else { ?>
              <option value="1"><?php echo $text_enabled; ?></option>
              <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
              <?php } ?>
            </select></td>
        </tr>
        <tr>
          <td><?php echo $entry_sort_order; ?></td>
          <td><input type="text" name="remise_sort_order" value="<?php echo $remise_sort_order; ?>" size="1" /></td>
        </tr>
      </table>
    </form>
  </div>
</div>
<?php echo $footer; ?>