

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

        <ol class="breadcrumb">
            <li><a href="#"> صرف مواد للمشروع</a></li>
            <li><a href="projectmaterialController.php?do=show"> طلبات الخامات للمشروع</a></li>
            <li class="active">عرض </li>
        </ol>




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


             <div class="panel-heading" style="padding:5px 15px 15px">
                <h3 class="panel-title" style="display: inline-block;"> عرض       </h3>
                <a href="{$youtubes[198]->url}" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
                <a href="projectmaterialController.php" class="hidden-print"><input type="button"  id="submit" style="margin-left: 12px" class="btn btn-primary pull-left " value="إضافة جديد"/></a>
            </div>
            


            <form class="form-inline hidden-print" action="projectmaterialController.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=""  />
                    <input type="hidden" id="edit_hiddenprojectName" name="edit_hiddenprojectName" value=""  />
                </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-heading"> صرف مواد للمشروع</div>
            <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 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->projectname}</td>
                        <td>{$data->billdate}</td>
                        <td>{$data->employeename}</td>
                        <td class="noprint">
                            <a href="projectmaterialController.php?do=edit&id={$data->id}" type="button" class="btn btn-default btn-lg editicon"></a>
                        </td>

                        <td class="noprint">
                            <a href="projectmaterialController.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="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>

