

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

        <ol class="breadcrumb">
            <li><a href="#">المشروعات </a></li>
            <li><a href="projectstagesdataController.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="projectstagesdataController.php"  id="studentformajax" method="post"  enctype="multipart/form-data" data-dosave="?do=savedata">
                    {/literal}
                     <div class="form-group"  style="text-align: center;">
                        <label  class="control-label">المشروع </label> : 
                           <h4>{$project->name}</h4>
                    </div>
                    <div id="projectstages">


                         <div class="form-group">
                                <div class="col-md-12">
                                     <div style="text-align: center;font-size: 19px;">
                                         مراحل المشروع
                                      </div>
                                      <div>
                                        
                                          <input type="hidden" id="projectstagechosseitr" name="projectstagechosseitr" value="{$projectstagechosse|@count}" />
                                      </div>
                                      <div class="clearfix"></div>
                                      <ul class="timetableitemscontainer" >
                                          <li   style="list-style-type: none;">
                                            <div class="col-lg-2">
                                                المرحلة 
                                             </div>
                                             <div class="col-lg-2">
                                                عنوان
                                             </div>
                                             <div class="col-lg-2">
                                                 وصف
                                             </div>
                                             <div class="col-lg-3">
                                               صور
                                             </div>
                                             <div class="col-lg-3">
                                           ملفات
                                             </div>
                                           
                                           
                                       </li>
                                        {assign var=it1r value=1}
                                        {foreach $projectstagechosse as $projectstagecho}
                                         <li  id="timetableitemsremove1{$projectstagecho->id}" style="list-style-type: none;" class="row">
                                            <input type="hidden" name="projectstagechoid{$it1r}" value="{$projectstagecho->id}">
                                           <div class="col-lg-2">
                                               <input     type="text" class="form-control " placeholder="البند"  readonly="" style="border: 0px;background: #fff" value="{$projectstagecho->projectstage->name}"/>
                                           </div>
                                           <div class="col-lg-2">
                                               <input  required="required"    type="text" name="title{$it1r}" class="form-control " placeholder="عنوان" data-table="" data-tablecol="" data-tableid="" data-parentid="" data-parentcol="" value="{$projectstagecho->title}" />
                                           </div>
                                           <div class="col-lg-2">
                                             <input  required="required"    type="text" name="descripe{$it1r}" class="form-control " placeholder="وصف" data-table="" data-tablecol="" data-tableid="" data-parentid="" data-parentcol="" value="{$projectstagecho->descripe}" />
                                           </div>
                                           <div class="col-lg-3">
                                            <input     type="file" name="projectstageimages{$it1r}[]" class="form-control " multiple="" placeholder="تاريخ بدايه" data-table="" data-tablecol="" data-tableid="" data-parentid="" data-parentcol="" />
                                             <input type="hidden" name="oldeimages{$it1r}" value="{$projectstagecho->projectstageimages}" />
                                             {foreach $projectstagecho->images as $image}
                                             <img src="../upload/project/{$image}" style=" width: 30px;height: 30px;">
                                             {/foreach}
                                           </div>
                                           <div class="col-lg-3">
                                            <input    type="file" name="projectstagefiles{$it1r}[]" class="form-control " multiple="" placeholder=" تاريخ نهايه" data-table="" data-tablecol="" data-tableid="" data-parentid="" data-parentcol=""  />
                                             <input type="hidden"  name="oldefiles{$it1r}" value="{$projectstagecho->projectstagefiles}" />
                                             {foreach $projectstagecho->files as $file}
                                             <a href="../upload/project/{$file.file}"  target="_blank" download="" style=" width: 30px;height: 30px;">{$file.name}</a>
                                             {/foreach}
                                           </div>
                                            <!-- <div class="col-lg-1 pull-right">
                                             <a href="javascript:;"  data-id="{$projecttimetableitem->id}" data-edit="1" data-link="projectControllerAjaxnew.php" data-table="projecttimetableitems"  data-container="timetableitems" class="btn btn-xs red pull-right removeappend"> x
                                             </a>
                                            </div>  -->
                                        </li>

                                        {capture assign=it1r}{$it1r+1}{/capture}
                                        {/foreach}
                                    </ul>  
                                </div>
                            </div>

                    </div>
                    

                    <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>








