<!doctype html>
<html class="no-js">
<head>
<include file="Common/head" />
    <style type="text/css">
        a.am-text-secondary:visited{color:#3bb4f2;}
        a.am-text-danger:visited{color:#dd514c;}
        .am-btn-default {background-color: #fff;}
        th {text-align:center;}
        tr td{text-align:center;}
        select{padding: 4px;border: 1px solid #ccc;}
        .am-popup-bd {background:#fff;}
        .am-popup-bd img {max-width: 100%}
        .am-u-sm-2 {border-top: 1px solid #ddd;margin-top: 10px;}
        .am-u-sm-10 {border-left: 1px solid #ddd;margin-top: 10px;}
    </style>
</head>
<body>
<include file="Common/header" />
<div class="am-cf admin">

    <!-- sidebar start -->
    <include file="Common/sidebar" nav="$nav"/>
    <!-- sidebar end -->

    <!-- Start right Content here -->
        <div class="content-page" style="background: white;">
            <!-- Start content -->
            <div class="content">
                <div class="am-cf am-padding am-padding-bottom-0">
                    <div class="am-fl am-cf">
                        <strong class="am-text-primary am-text-lg">Distributor Management</strong> / <small>Distribution Setting</small>
                    </div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12">
                        <form class="mainForm am-form" action="" method="POST" enctype="multipart/form-data">
                            <input type="hidden" name="id" value="{$item.id}"/>
                            <fieldset>

                              <input type="hidden" name="op" value="save" />
                              <input type="hidden" name="id" value="{$data.id}" />

                              <div class="am-form-group">
                                <label>Distribution Status</label>
                              </div>

                              <div class="am-form-group">
                                <input type="radio" name="switch" value="0" <?php if($info['switch']==0){?> checked="checked" <?php } ?>> Disable
                                <input type="radio" name="switch" value="1" style="margin-left: 30px;" <?php if($info['switch']==1){?> checked="checked" <?php } ?> > Enable
                              </div>

                              <div class="am-form-group">
                                  <label>Amount to Become Distributor<span>(Become Distributor By Spending Amount Reached The Setting)</span></label>
                                  <input type="text" name="amount" value="{$info.amount}" placeholder="Example: 200" style="width: 200px;text-align: center;">
                              </div>
                             
                              <div class="am-form-group">
                                <label>Primary Distribution Share<span>(From Top Tier)</span></label>
                                <input type="text" name="one_share" value="{$info.one_share}" placeholder="Example: 0.1" style="width: 200px;text-align: center;">
                              </div>

                               <div class="am-form-group">
                                <label>Secondary Distribution Share<span>(From Primary)</span></label>
                                <input type="text" name="two_share" value="{$info.two_share}" placeholder="Example:0.1" style="width: 200px;text-align: center;">
                              </div>

                              <p>
                                <button type="submit" class="am-btn am-btn-success" id="submit">Submit</button>
                                <button type="reset" class="am-btn am-btn-info">Reset</button>
                              </p>
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    <!-- end right Content here -->
</div>
<include file="Common/footer" />
</body>
</html>