

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

        <ol class="breadcrumb">
            <li><a href="#">المشروعات</a></li>
            <li><a href="projectController.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 nameToBeChecked" role="form" action="projectController.php?do=update" method="post" id="project-form" enctype="multipart/form-data" >

                    {/literal}


                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">اسم المشروع</label>
                        <div class="col-lg-4">
                            <input type="text" name="txtName" id="projectName" class="form-control" data-id='{$editelement->id}' placeholder=" اسم المشروع" required="" value="{$editelement->name}"/>

                        </div>
                    </div>

                      {if $Programsettingdata->projectshownew eq 0} 
                    <div class="form-group" >
                         <label class="col-lg-2 control-label">انواع  المشروعات</label>
                        <div class="col-lg-4">
                            <select class="select2 wdt100" name="projectkindid" id="projectkindid" >
                                <option value="-1" >اختر</option>
                                {foreach $allprojectkind as $projectkind}
                                <option value="{$projectkind->projectkindid}" {if $editelement->projectkindid eq $projectkind->projectkindid} selected="" {/if}>{$projectkind->projectkindname}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-lg-2 control-label"> تم تصميم البانر </label>
                        <div class="col-lg-4">
                          <input type="radio"  name="bannerdesigned" value="1"  {if $editelement->bannerdesigned eq 1} checked="" {/if}>
                          <label >نعم </label>
                          <input type="radio"  name="bannerdesigned" value="2"  {if $editelement->bannerdesigned eq 2} checked="" {/if}>
                          <label >لا</label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-lg-2 control-label"> حالة المشروع </label>
                        <div class="col-lg-4">
                          <input type="radio"  name="projectsuit" value="1"  {if $editelement->projectsuit eq 1} checked="" {/if}>
                          <label >تم </label>
                          <input type="radio"  name="projectsuit" value="2"  {if $editelement->projectsuit eq 2} checked="" {/if}>
                          <label >تحت التنفيذ</label>
                          <input type="radio"  name="projectsuit" value="3"  {if $editelement->projectsuit eq 3} checked="" {/if}>
                          <label >لم يبدا بعد</label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-lg-2 control-label">تاريخ  الاضافه</label>
                        <div class="col-lg-4">
                           <input type="text" class="form-control awdatepicker " autocomplete="off"   data-date-format="yyyy-mm-dd" name="addeddate" value="{$editelement->addeddate}">
                        </div>
                    </div>
                     <div class="form-group">
                        <label  class="col-lg-2 control-label">تاريخ الانتهاء</label>
                        <div class="col-lg-4">
                           <input type="text" class="form-control awdatepicker " autocomplete="off"   data-date-format="yyyy-mm-dd" name="expirydate" value="{$editelement->expirydate}">
                        </div>
                    </div>
                    {/if} 




                    <!-- =================================================   -->

                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">صورة  التعاقد </label>
                        <div class="col-lg-4">
                            <input type="file" name="imagecontract" id="imagecontract" accept="image/*"     class="form-control"  />
                            <input id="hiddenfile" type="hidden" name="hiddenfile"  value="{$editelement->image}" />
                            {if {$editelement->image} neq '' && $editelement->image neq '.'}
                            <a href='../upload/project/{$editelement->image}' target="_new"><img src='../upload/project/{$editelement->image}' style=" width: 200px; height: 90px; "/></a>

                            {/if}
                        </div>
                    </div>
                    <!-- =================================================   -->



                    <div class="form-group">
                        <label for="txtDebt" class="col-lg-2 control-label"> اجمالى التعاقد</label>
                        <div class="col-lg-4">

                            <div class="input-group">
                                <input type="text" name="txtDebt" id="txtDebt"  class="form-control numberinput positiveNo" placeholder="اجمالى التعاقد" required  value="{$editelement->totalcontract}"/>
                                <span class="input-group-addon">{$currency}</span>
                            </div>

                        </div>
                    </div>

                    <!-- =================================================   -->

                    <div class="form-group">
                        <label for="textDetails" class="col-lg-2 control-label">بيانات عامة</label>
                        <div class="col-lg-4">

                            <textarea  class="form-control" rows="3" name="textDetails" id="textDetails" >{$editelement->detail}</textarea>

                        </div>
                    </div>

                    <!-- =================================================   -->
                    <input type="hidden" name="editid" value="{$editelement->id}" />
                    <input type="hidden" name="clientid" value="{$editelement->clientid}" />
                    <input type="hidden" name="costcenterid"  value="{$editelement->costcenterid}"/>
                    <input type="hidden" name="treeid" value='{$editelement->treeid}'/>
                    <input type="hidden" name="treeproid" value='{$editelement->treeproid}'/>
                    <input type="hidden" name="entryid" value='{$editelement->entryid}'/>
                    <input type="hidden" name="sysdate" value="{$editelement->sysdate}" />
                    <input type="hidden" name="del" value="{$editelement->del}" />

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="submit" id="project_save_btn" class="btn btn-primary pull-left">حفظ الامر</button>
                        </div>
                    </div>




                </form>
            </div>
        </div>




    </div>
</div>



