

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

        <ol class="breadcrumb">
            <li><a href="#">نظام المتدربين</a></li>
            <li><a href="projectclientsController.php?do=show">عرض المتدربين</a></li>
             {if $studentdata->del lt 2}
            <li class="active">تعديل  </li> 
            {else}
            <li class="active">تفاصيل  </li> 
            {/if}
        </ol>
        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                  {if $studentdata->del lt 2}
                <h3 class="panel-title">تعديل  </h3>
                 {else}
            <h3 class="panel-title">تفاصيل  </h3> 
            {/if}
            </div>
            <div class="panel-body">


                {literal}
               <form class="form-horizontal"  action="projectclientsController.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="clientids[]"   data-placeholder="اختر " class="selectnew" multiple="">
                               <option value="0" {if 0|in_array:$webclientdata->clientids} selected="selected" {/if}>كل العملاء </option>
                               {foreach $projects as $single}
                                <option value="{$single.clientid}" {if $single.clientid|in_array:$webclientdata->clientids} selected="selected" {/if}  >{$single.name}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">اسم </label>
                        <div class="col-lg-4">
                            <input    required="required"    type="text" name="name" 
                            class="form-control "  placeholder="اسم "  
                            data-table="" data-tablecol=""  data-tableid="{$webclientdata->id}" data-parentid="" data-parentcol="" value="{$webclientdata->name}"  />
                            
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">التليفون</label>
                        <div class="col-lg-4">
                            <input    required="required"    type="text" name="mobile" 
                             class="form-control checkcolumn nummbers" placeholder="رقم التليفون"  
                             data-table="webclients" data-tablecol="mobile"  data-tableid="{$webclientdata->id}" data-parentid="" data-parentcol="" value="{$webclientdata->mobile}"  />
                            
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">اسم المستخدم</label>
                        <div class="col-lg-4">
                            <input    required="required"    type="text" name="user_name" 
                             class="form-control checkcolumn " placeholder="اسم المستخدم "  
                             data-table="webclients" data-tablecol="user_name"  data-tableid="{$webclientdata->id}" data-parentid="" data-parentcol="" value="{$webclientdata->user_name}" />
                            
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">كلمة المرور</label>
                        <div class="col-lg-4">
                            <input    required="required"    type="password" name="password" 
                             class="form-control " placeholder="كلمة المرور"  
                             data-table="webclients" data-tablecol="password"  data-tableid="{$webclientdata->id}" data-parentid="" data-parentcol="" value="{$webclientdata->password}" />
                            
                        </div>
                    </div>

                         <div class="form-group">
                            <label class="col-lg-2 control-label"> الحاله </label>
                            <div class="col-lg-6">
                                <div class="radio-inline">
                                    <label>
                                        <input value="1"  class="is_active" name="is_active"  {if $webclientdata->is_active eq 1}  checked {/if} type="radio" />

                                        مفعل </label>
                                </div>
                                <div class="radio-inline">
                                    <label>
                                        <input value="0"  class="is_active"   name="is_active" {if $webclientdata->is_active eq 0} checked {/if} type="radio" />
                                         معطل </label>
                                </div>
                              

                            </div>
                        </div>
                   
                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">كشف حساب عميل  </label>
                        <div class="col-lg-4">
                            {if $webclientdata->filepdf !="." && $webclientdata->filepdf}
                            <a href="../views/default/images/webclients/{$webclientdata->filepdf}"  target="_blank"  download="">  open file </a>
                            {/if}
                            <input type="hidden" name="oldfilepdf" id="oldfilepdf"  value="{$webclientdata->filepdf}" />
                            <input   type="file" name="filepdf" />
                        </div>
                    </div>


                    <div class="form-group">
                            <label for="txtName" class="col-lg-2 control-label"> اظهار كشف حساب عميل</label>
                        <div class="col-lg-4">

                        <label class="sr-only"></label>
                          <input type="checkbox" class="form-control" name="showpdf" id="showpdf"  value="1" {if $webclientdata->showpdf eq 1} checked {/if} style="   width: 23px;" >  
                        </div>
                    </div>


                    <input type="hidden" name="webclientid" value="{$webclientdata->id}" />
                    <input type="hidden" class="deldata" value="{$webclientdata->del}" />


                   {if $webclientdata->del lt 2}
                    <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>
                    {/if}




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




    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
    deldata();
     });
</script>


