

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

        <ol class="breadcrumb">
            <li><a href="#">نظام المتدربين</a></li>
            <li><a href="studentsPaymentSystems.php?do=show">عرض انظمة الدفع</a></li>
            {if $studentspaymentsystem->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 $studentspaymentsystem->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="studentsPaymentSystems.php"  id="studentformajax" method="post"  enctype="multipart/form-data" data-dosave="?do=savedata">
                    {/literal}
                    
                    <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="paymentname" class="form-control checkcolumn"   placeholder="اسم النظام" 
                            data-table="studentspaymentsystems" data-tablecol="paymentname" data-tableid="{$studentspaymentsystem->id}" data-parentid="" data-parentcol="" value="{$studentspaymentsystem->paymentname}" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">السعر  </label>
                        <div class="col-lg-4">
                            <input    required=""    type="text" name="paymentprice"    digits="true" class="form-control floats" placeholder="السعر" value="{$studentspaymentsystem->paymentprice}" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">عدد الشهور</label>
                        <div class="col-lg-4">
                            <select class="selectnew " data-placeholder="اختر   " name="paymentmonth"  >
                                <option value="" ></option>
                                {for $foo=1 to 12}
                                <option value="{$foo}" {if $studentspaymentsystem->paymentmonth eq $foo} selected="" {/if}>{$foo} شهر  </option>
                                {/for}
                            </select>

                        </div>
                    </div>
                     <div class="form-group"  >
                         <label for="txtName" class="col-lg-2 control-label">تخصصات المتدربين </label>
                        <div class="col-lg-4">
                             <input id="studentaddsubjects" type="text" name="studentaddsubjectid" class=" getselectjoin"  data-placeholder="اختر  تخصص المتدرب"   data-table="studentaddsubjects" 
                            data-join=""   data-filter=" and studentaddsubjects.del < 2 GROUP BY studentsubjectid " data-parent="" data-itr=""  data-search="subjectname,'/',subjectprice"/>  
                            <input type="hidden" data-table="studentaddsubjects" data-id="{$studentspaymentsystem->studentaddsubjectid}" data-text="{$studentspaymentsystem->studentsubjects}" class="selectedit" />
                        </div>
                    </div>
                    <input type="hidden" name="studentspaymentsystemid" value="{$studentspaymentsystem->id}">
                    
                    <input type="hidden" class="deldata" value="{$studentspaymentsystem->del}" />


                   {if $studentspaymentsystem->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 () {
    selectedit2();
        deldata();

     });
</script>
