

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

        
        <ol class="breadcrumb">
            <li><a href="#">المشروعات </a></li>
            <li><a href="projectdailyreportController.php?do=show">    التقرير اليومى للمشروع</a></li>
            <li class="active">تعديل  </li>
        </ol>


        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                <h3 class="panel-title"> تعديل  </h3>
            </div>
            <div class="panel-body">


                {literal}
                <form class="form-horizontal"  action="projectdailyreportController.php"  id="studentformajax" method="post"  enctype="multipart/form-data" data-dosave="?do=savedata">
                    {/literal}


                     <div class="form-group"  >
                        <label  class="col-lg-2 control-label">المشروعات </label>
                        <div class="col-lg-4">
                            <select name="projectid"    data-placeholder="اختر " class="selectnew" >
                               <option value="-1" > اختر</option>
                               {foreach $projects as $single}
                                <option value="{$single->id}"  {if $projectdailyreport->projectid eq $single->id} selected="" {/if}>{$single->name} </option>
                                {/foreach}
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="owner_name" class="col-lg-2 control-label">تاريخ    </label>
                        <div class="col-lg-4">
                          <input     type="text" name="datechosse" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" placeholder=" تاريخ " required=""  value="{$projectdailyreport->datechosse}" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="owner_name" class="col-lg-2 control-label">عنوان التقرير   </label>
                        <div class="col-lg-4">
                            <input type="text" name="title" id="title"    value="{$projectdailyreport->title}" class="form-control" placeholder=" عنوان التقرير    " required=""/>

                        </div>
                    </div>

                    <div class="form-group">
                        <label for="owner_name" class="col-lg-2 control-label">الوضف</label>
                        <div class="col-lg-4">
                            <textarea class="form-control" rows="5" name="descripe">{$projectdailyreport->descripe}</textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="owner_name" class="col-lg-2 control-label">الصور</label>
                        <div class="col-lg-4">
                            <input type="file" name="images[]" multiple="" class="form-control" />
                            <input type="hidden" name="oldimages" value="{$projectdailyreport->allimages}" />
                             {foreach $projectdailyreport->allimages as $image}
                             <img src="../upload/project/{$image}" style=" width: 30px;height: 30px;">
                             {/foreach}
                        </div>
                    </div>


                    <div class="form-group">
                        <label for="owner_name" class="col-lg-2 control-label">الملفات</label>
                        <div class="col-lg-4">
                            <input type="file" name="files[]" multiple=""  class="form-control" />
                            <input type="hidden"  name="oldfiles" value="{$projectdailyreport->allfiles}" />
                           {foreach $projectdailyreport->allfiles as $file}
                           <a href="../upload/project/{$file.file}"  target="_blank" download="" style=" width: 30px;height: 30px;">{$file.name}</a><br>
                           {/foreach}
                        </div>
                    </div>

                    <input type="hidden"  name="projectdailyreportid" value="{$projectdailyreport->id}" />



                    
                    


                  
                    

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                             <button type="button" class="btn btn-primary pull-left studentformajax" >تعديل الامر</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>








