<?php echo $header; ?>
<div id="content">
<br>
<?php if ($error_warning) { ?>
<?php echo p3html::tb_alert('error', $error_warning, true, 'warning'); ?>
<?php } ?>
  <div class="box">
    <div class="heading">
      <h1><i class="icon-dollar"></i> <?php echo $heading_title; ?></h1>
      <div class="buttons form-actions form-actions-top">
				<?php echo p3html::tb_form_button_save($button_save); ?>
				<?php echo p3html::tb_form_button_cancel($button_cancel, $cancel); ?>
			</div>
    </div>
    <div class="content">
	  <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
	    <table class="form">
                <tr>
                    <td><?php echo $entry_status; ?><br /><br /></td>
                    <td><select name="moip_status">
                            <?php if ($moip_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><br /><br /></td>
                </tr>
                <tr>
                    <td width="18%"><span class="required">*</span> <?php echo $entry_email; ?><br /><br /></td>
                    <td width="82%"><input type="text" name="moip_email" value="<?php echo $moip_email; ?>" /><br /><br /></td>
                </tr>
                <tr>
                    <td><span class="required">*</span> <?php echo $entry_encryption; ?><br /><br /></td>
                    <td>
                        <input type="text" name="moip_encryption" value="<?php echo $moip_encryption; ?>" /><br /><br /></td>
                </tr>
                <tr>
                    <td><?php echo $entry_test; ?><br /><br /></td>
                    <td><div class="controls">
							<?php if ($this->config->get('p3adminrebooted_toggle_buttons')) { ?>
							<?php echo p3html::tb_bool_buttons_radio($this->language, 'moip_test', $moip_test); ?>
							<?php } else { ?>
							<?php echo p3html::tb_bool_radio_buttons($this->language, 'moip_test', $moip_test); ?>
							<?php } ?>
						</div><br /><br /></td>
                </tr>
                <tr>
                    <td><?php echo $entry_aguardando; ?><br /><br /></td>
                    <td><select name="moip_aguardando" id="moip_aguardando">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $moip_aguardando) { ?>
                            <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><br /><br /></td>
                </tr>
                <tr>
                    <td><?php echo $entry_cancelado; ?><br /><br /></td>
                    <td><select name="moip_cancelado" id="moip_cancelado">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $moip_cancelado) { ?>
                            <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><br /><br /></td>
                </tr>
                <tr>
                    <td><?php echo $entry_aprovado; ?><br /><br /></td>
                    <td><select name="moip_aprovado" id="moip_aprovado">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $moip_aprovado) { ?>
                            <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><br /><br /></td>
                </tr>
                <tr>
                    <td><?php echo $entry_analize; ?><br /><br /></td>
                    <td><select name="moip_analize" id="moip_analize">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $moip_analize) { ?>
                            <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><br /><br /></td>
                </tr>
                <tr>
                    <td><?php echo $entry_completo; ?><br /><br /></td>
                    <td><select name="moip_completo" id="moip_completo">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $moip_completo) { ?>
                            <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><br /><br /></td>
                </tr>
                <tr>
                    <td><?php echo $entry_order_status; ?><br /><br /></td>
                    <td><select name="moip_order_status_id">
                            <?php foreach ($order_statuses as $order_status) { ?>
                            <?php if ($order_status['order_status_id'] == $moip_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><br /><br /></td>
                </tr>
                <tr>
                    <td><?php echo $entry_geo_zone; ?><br /><br /></td>
                    <td><select name="moip_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'] == $moip_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><br /><br /></td>
                </tr>
                <tr>
                    <td><?php echo $entry_sort_order; ?><br /><br /></td>
                    <td><input type="text" name="moip_sort_order" value="<?php echo $moip_sort_order; ?>" size="1" /><br /><br /></td>
                </tr>
            </table>
        </form>
    </div>
</div>
<?php echo $footer; ?>
