

<div class="row">
    <div class="container">

        <ol class="breadcrumb">
            <li><a href="#">صرف مصروف</a></li>
            <li><a href="projectoperationController.php?do=show">عرض صرف مصروف </a></li>
            <li class="active">عرض </li>
        </ol>




        <div class="panel panel-default panel-m">

            <form class="form-inline hidden-print" action="expenseexchange.php?do=show" method="post">
                <div class="form-group">
                    <label class="sr-only">اسم المشروع</label>
                    <input type="hidden" name="searchvalue" id="searchvalue" value="0"/>
                    <input type="text" name="projectname" id="project_id"   class="select2product wdt100"  data-placeholder="اختر مشروع" />
                    <input type="hidden" id="edit_hiddenprojectId" name="edit_hiddenprojectId" value="{$projectid}"  />
                    <input type="hidden" id="edit_hiddenprojectName" name="edit_hiddenprojectName" value="{$projname}"  />
                </div>
                <div class="form-group">
                    <label class="sr-only">نوع المصروف</label>
                    <select class="select2 wdt100" name="expensetype" id="expensetype" required>
                        <option value=""></option>
                        {foreach $expenseType as $data}
                        <option value="{$data->expensestypeid}">{$data->expensestypename}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="form-group">
                    <label class="sr-only">الرقم</label>
                    <input type="text" class="form-control" placeholder="الرقم" name="serialno" id="serialno">
                </div>


                <br/>
                <div class="form-group">
                    <label class="sr-only">من التاريخ</label>
                    <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" name="datefrom" >
                </div>
                <div class="form-group">
                    <label class="sr-only">إلى التاريخ</label>
                    <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" name="dateto" >
                </div>
                <button type="submit" class="btn btn-primary">بحث</button>
            </form>
            <!-- Default panel contents -->
            <div class="panel-body">


                <div id="outputString" class="alert alert-block alert-success fade in" 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>



            </div>
            <hr/>



            <table class="table table-black">
                <thead>
                    <tr>
                        <th style="width:50px;">م</th>
                        <th>الرقم</th>
                        <th>اسم المشروع</th>
                        <th>قيمة المصروف</th>
                        <th> التاريخ</th>
                        <th class="noprint">تعديل</th>
                        <th class="noprint">حذف</th>

                    </tr>
                </thead>
                <tbody>



                    {assign var=i value=1}
                    {foreach $alldata as $data}

                    <tr>

                        <td>{$i}</td>
                        <td>{$data->serialno}</td>
                        <td>{$data->projectid}</td>
                        <td>{$data->thevalue}</td>
                        <td>{$data->expensedate}</td>

                        <td class="noprint">
                            <a href="expenseexchange.php?do=edit&id={$data->id}" type="button" class="btn btn-default btn-lg editicon"></a>
                        </td>

                        <td class="noprint">
                            <a href="expenseexchange.php?do=delete&id={$data->id}" type="button" class="btn btn-default btn-lg removeicon"></a>
                        </td>



                    </tr>
                    {capture assign=i}{$i+1}{/capture}
                    {/foreach}


                </tbody>
            </table>


            <div class="col-lg-offset-8 col-lg-4 ">
                <div class="well well-sm">
                    <h4 class="text-center">إجمالي المصروف :  {$total}</h4>
                </div>
            </div>


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


            <hr />

            <div  class="noprint">
                <div class="col-lg-12">


                    <div class="form-group">
                        <div class="col-lg-4">
                            <button type="button" onclick="print_Custom('mycustomheader');" class="btn btn-success pull-right">طباعة</button>
                        </div>
                    </div>

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


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


        </div>



    </div>

</div>

