
<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">فرن عيش </a></li>
            <li><a href="tamweenbill.php?do=show">صرف فرق العيش</a></li>
            <li class="active">صرف</li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading">صرف<br />
                {if $message != ""}
                {$message}
                {/if}
                <a href="{$youtubes[259]->url}" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
            </div>
            <div class="panel-body">

                <div id="outputString" class="alert alert-block alert-success fade in hidden-print" style="display:none">
                    <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">&times;</button>
                    <p id="outputStringValue">{$outputString}</p>
                    <div class="clearfix"></div>
                </div>
                <form class="form-inline hidden-print" action="tamweenda3mstatus.php" method="post">

                    <div class="form-group">
                        <label class="sr-only">الشهر</label>
                        <input type="text" class="form-control awdatepicker" autocomplete="off" data-date-format="yyyy-mm" name="month" id="month">
                    </div>
                    <button type="submit" class="btn btn-primary">بحث</button>
                </form>
            </div>

            <hr/>


            <form class="form-inline hidden-print" action="tamweenda3mstatus.php?do=save" method="post">
                <table class="table table-black dataTableClassNoPaging">
                    <thead>
                        <tr>

                            <th>#</th>
                            <th>رقم البطاقة</th>
                            <th>الرقم السرى</th>
                            <th>العميل</th>
                            <th>عدد الافراد</th>
                            <th>فرق العيش</th>
                            <th>التاريخ</th>
                            <th>المستخدم</th>
                        </tr>
                    </thead>
                    <tbody>
                        {assign var=i value=1}
                        {foreach $monthData as $data}
                        <tr>
                            <td>{$data->clientcode}<!--{*$i*}--><input type="hidden" name="tamweenda3mstatusid{$i}" id="tamweenda3mstatusid{$i}" value="{$data->tamweenda3mstatusid}"/></td>
                            <td>{$data->cardNum}</td>
                            <td>{$data->cardPassword}</td>
                            <td>{$data->clientname}<input type="hidden" name="clientid{$i}" id="clientid{$i}" value="{$data->clientid}"/></td>
                            <td>{$data->noOfPersonsDa3m}</td>
                            <td class="noprint">
                                <input type="checkbox" id="da3mStatus{$i}" name="da3mStatus{$i}" value="1" {if $data->da3mStatus == 1}checked{/if}>
                                <input type="hidden" name="oldStatus{$i}" value="{$data->da3mStatus}"/>
                            </td>
                            <td>{if $data->da3mStatus == 1}{$data->sysdate}{/if}</td>
                            <td>{if $data->da3mStatus == 1}{$data->employeename}{/if}</td>
                        </tr>
                        {assign var=i value=$i+1}
                        {/foreach}
                    </tbody>
                </table>
                <input type="hidden" name="itr" value="{$i}"/>
                <input type="hidden" name="month_result" id="month_result" value="{$month}"/>
                <div class="clearfix"></div>
                <div class="row">
                    <button type="submit" class="btn btn-primary center-block" style="margin-right: 47%">حفظ</button>
                </div>
            </form>

            <div class="clearfix"></div>



        </div>

    </div>
</div>
