<script src="../../../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link href="../../../SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />

<div class="row">
    <div class="container">
        <ol class="breadcrumb">
            <li><a href="#">خصائص عامة</a></li>
            <li><a href="programsettingsController.php">اعدادات البرنامج</a></li>
            <li class="active">تعديل اعدادات البرنامج</li>
        </ol>
        <div class="panel panel-default">
            <!-- Default panel contents -->
            <div class="panel-heading">
                <h3 class="panel-title">تعديل اعدادات البرنامج</h3>
            </div>
            <div class="panel-body">
                <form class="form-horizontal" action="programsettingsController.php?do=update" method="post" enctype="multipart/form-data" >
                    <div class="form-group">
                        <label for="companyname" class="col-lg-2 control-label">اسم الشركة</label>
                        <div class="col-lg-4"> <span id="name">
                                <input type="text" name="companyname" id="companyname" class="form-control" placeholder="اسم الشركة" value="{$programsettingsdata->companyname}" />
                                <span class="textfieldRequiredMsg">*</span></span> </div>
                    </div>

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

                    <div class="form-group">
                        <label for="specializtion" class="col-lg-2 control-label">التخصص</label>
                        <div class="col-lg-4">
                            <input type="text" name="specializtion" id="specializtion" class="form-control" placeholder="التخصص" value="{$programsettingsdata->specializtion}" />
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="address" class="col-lg-2 control-label">العنوان</label>
                        <div class="col-lg-4">
                            <input type="text" name="address" id="address" class="form-control" placeholder="العنوان" value="{$programsettingsdata->address}" />
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="phone" class="col-lg-2 control-label">رقم التليفون</label>
                        <div class="col-lg-4">
                            <span id="sprytextfield2">
                                <input type="text" name="phone" id="phone" class="form-control positiveNo" placeholder="رقم التليفون" value="{$programsettingsdata->phone}" />
                                <span class="textfieldRequiredMsg">***.</span><span class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="faxnumber" class="col-lg-2 control-label"> رقم الفاكس</label>
                        <div class="col-lg-4">
                            <span id="sprytextfield3">
                                <input type="text" name="faxnumber" id="faxnumber" class="form-control positiveNo" placeholder="رقم الفاكمس" value="{$programsettingsdata->faxnumber}" />
                                <span class="textfieldRequiredMsg">***.</span><span class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="email" class="col-lg-2 control-label">الايميل</label>
                        <div class="col-lg-4">
                            <input type="text" name="email" id="email" class="form-control" placeholder="الايميل" value="{$programsettingsdata->email}" />
                        </div>
                    </div>

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

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

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

                    <div class="form-group">
                        <label for="email" class="col-lg-2 control-label">الشعار</label>
                        <div class="col-lg-4"> <img src="../views/default/images/upload/{$programsettingsdata->logo}" alt="" width="122" height="75" />
                            <input type="file" name="logo" id="logo" class="form-control" placeholder="الشعار" />
                            <input type="hidden" name="oldlogo" id="oldlogo"  value="{$programsettingsdata->logo}" />
                        </div>
                    </div>

                    <!--==============================-->
                    <div class="form-group">
                        <label for="email" class="col-lg-2 control-label">بطاقة ضريبية</label>
                        <div class="col-lg-4">
                            <input type="text" name="taxcard" id="taxcard" class="form-control" placeholder="بطاقة ضريبية" value="{$programsettingsdata->taxcard}" />
                        </div>
                    </div>
                    <!--==============================-->
                    <div class="form-group">
                        <label for="email" class="col-lg-2 control-label">سجل تجارى</label>
                        <div class="col-lg-4">
                            <input type="text" name="commercialregistration" id="commercialregistration" class="form-control" placeholder="سجل تجارى" value="{$programsettingsdata->commercialregistration}" />
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="email" class="col-lg-2 control-label">طباعة المخزن</label>
                        <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="saveprinting"  value="1" {if {$programsettingsdata->
                                    saveprinting} eq 1}  checked {/if}>
                                    نعم </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="saveprinting"  value="0" {if {$programsettingsdata->
                                    saveprinting} eq 0}  checked {/if}>
                                    لا </label>
                            </div>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="email" class="col-lg-2 control-label">طباعة الدين</label>
                        <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="deptprinting"  value="0" {if {$programsettingsdata->
                                    deptprinting} eq 0}  checked {/if}>
                                    نعم </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="deptprinting"  value="1" {if {$programsettingsdata->
                                    deptprinting} eq 1}  checked {/if}>
                                    لا </label>
                            </div>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="email" class="col-lg-2 control-label">تفعيل خاصية تقريب الأرقام</label>
                        <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="roundnumbers"  value="0" {if {$programsettingsdata->
                                    roundnumbers} eq 0}  checked {/if}>
                                    نعم </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="roundnumbers"  value="1" {if {$programsettingsdata->
                                    roundnumbers} eq 1}  checked {/if}>
                                    لا </label>
                            </div>
                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="email" class="col-lg-2 control-label">عدد حروف البحث</label>
                        <div class="col-lg-4"><span id="sprytextfield1">
                                <input name="searchvalue" type="text"   value="{$programsettingsdata->searchvalue}" class="form-control positiveNo"   />
                                <span class="textfieldRequiredMsg">***.</span><span class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span></div>
                    </div>
                    <!--==============================-->


                    <!--<div class="form-group">
                      <label for="partition" class="col-lg-2 control-label">بارتيشن</label>
                      <div class="col-lg-4">
                        <input type="text" name="partition" id="partition" class="form-control" placeholder="ادخل مكان البارتيشن" value="{$programsettingsdata->partition}" />
                      </div>
                    </div>
                    <!--==============================-->

                    <!--<div class="form-group">
                      <label for="email" class="col-lg-2 control-label"> نوع الطباعه</label>
                      <div class="col-lg-offset-2 col-lg-4">
                        <div class="radio-inline">
                          <label>
                              <input type="radio" name="printingpapersize"  value="1" {if {$programsettingsdata->
                            printingpapersize} eq 1}  checked {/if}>
                             A5 </label>

                        </div>

                        <--<div class="radio-inline">
                            <label>
                              <input type="radio" name="printingpapersize"  value="1" {if {$programsettingsdata->printingpapersize} eq 1}  checked {/if}>
                              A5
                            </label>
                          </div->

                        <div class="radio-inline">
                          <label>


                             <input type="radio" name="printingpapersize"  value="0" {if {$programsettingsdata->
                            printingpapersize} eq 0}  checked {/if}>
                         A4  </label>
                        </div>
                      </div>
                    </div>

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

                    <!--<div class="form-group">
                      <label for="email" class="col-lg-2 control-label">عرض سعر البيع السابق للعميل</label>
                      <div class="col-lg-offset-2 col-lg-4">
                        <div class="radio-inline">
                          <label>
                            <input type="radio" name="previousPrice"  value="0" {if {$programsettingsdata->
                            showPreviousPrice} eq 0}  checked {/if}>
                            نعم </label>
                        </div>
                        <div class="radio-inline">
                          <label>
                            <input type="radio" name="previousPrice"  value="1" {if {$programsettingsdata->
                            showPreviousPrice} eq 1}  checked {/if}>
                            لا </label>
                        </div>
                      </div>
                    </div>



                    <div class="form-group">
                      <label for="email" class="col-lg-2 control-label"> البركود </label>
                      <div class="col-lg-offset-2 col-lg-4">
                        <div class="radio-inline">
                          <label>
                            <input type="radio" name="parcode"  value="0" {if {$programsettingsdata->
                            parcode} eq 0}  checked {/if}>
                            نعم </label>
                        </div>
                        <div class="radio-inline">
                          <label>
                            <input type="radio" name="parcode"  value="1" {if {$programsettingsdata->
                            parcode} eq 1}  checked {/if}>
                            لا </label>
                        </div>
                      </div>
                    </div>


                    <div class="form-group">
                      <label for="email" class="col-lg-2 control-label"> الاسعار </label>
                      <div class="col-lg-offset-2 col-lg-4">
                        <div class="radio-inline">
                          <label>
                            <input type="radio" name="priceing"  value="0" {if {$programsettingsdata->
                            priceing} eq 0}  checked {/if}>
                            نعم </label>
                        </div>
                        <div class="radio-inline">
                          <label>
                            <input type="radio" name="priceing"  value="1" {if {$programsettingsdata->
                            priceing} eq 1}  checked {/if}>
                            لا </label>
                        </div>
                      </div>
                    </div>



                    <div class="form-group">
                      <label for="email" class="col-lg-2 control-label"> تقيم البضاعة باخر سعر شراء </label>
                      <div class="col-lg-offset-2 col-lg-4">
                        <div class="radio-inline">
                          <label>
                            <input type="radio" name="lastprice"  value="0" {if {$programsettingsdata->
                            lastprice} eq 0}  checked {/if}>
                            نعم </label>
                        </div>
                        <div class="radio-inline">
                          <label>
                            <input type="radio" name="lastprice"  value="1" {if {$programsettingsdata->
                            lastprice} eq 1}  checked {/if}>
                            لا </label>
                        </div>
                      </div>
                    </div>




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

                    <!--<div class="form-group">
                      <label for="email" class="col-lg-2 control-label"> تعديل سعر شراء المنتج عند الشراء </label>
                      <div class="col-lg-offset-2 col-lg-4">
                        <div class="radio-inline">
                          <label>
                      <input type="radio" name="updateproductprice"  value="0" {if {$programsettingsdata->updateproductprice} eq 0}  checked {/if}>
                            نعم </label>
                        </div>
                        <div class="radio-inline">
                          <label>
            <input type="radio" name="updateproductprice"  value="1" {if {$programsettingsdata->updateproductprice} eq 1}  checked {/if} >
                            لا </label>
                        </div>
                      </div>
                    </div>




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

                    <!--<div class="form-group">
                      <label for="email" class="col-lg-2 control-label"> اتاحه المسح النهائى </label>
                      <div class="col-lg-offset-2 col-lg-4">
                        <div class="radio-inline">
                          <label>
                      <input type="radio" name="allowfinsldelete"  value="0" {if {$programsettingsdata->allowfinsldelete} eq 0}  checked {/if}>
                            نعم </label>
                        </div>
                        <div class="radio-inline">
                          <label>
            <input type="radio" name="allowfinsldelete"  value="1" {if {$programsettingsdata->allowfinsldelete} eq 1}  checked {/if} >
                            لا </label>
                        </div>
                      </div>
                    </div>

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

                    <!--<div class="form-group">
                      <label for="email" class="col-lg-2 control-label">الغاء الاسعار الخاصه بعملاء عن تغير سعر شراء المنتج </label>
                      <div class="col-lg-offset-2 col-lg-4">
                        <div class="radio-inline">
                          <label>
                      <input type="radio" name="updateclientprice"  value="0" {if {$programsettingsdata->updateclientprice} eq 0}  checked {/if}>
                            نعم </label>
                        </div>
                        <div class="radio-inline">
                          <label>
            <input type="radio" name="updateclientprice"  value="1" {if {$programsettingsdata->updateclientprice} eq 1}  checked {/if} >
                            لا </label>
                        </div>
                      </div>
                    </div>


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

                    <!--<div class="form-group">
                      <label for="email" class="col-lg-2 control-label">  مراكز التكلفه </label>
                      <div class="col-lg-offset-2 col-lg-4">
                        <div class="radio-inline">
                          <label>
                      <input type="radio" name="costcenter"  value="0" {if {$programsettingsdata->costcenter} eq 0}  checked {/if}>
                            نعم </label>
                        </div>
                        <div class="radio-inline">
                          <label>
            <input type="radio" name="costcenter"  value="1" {if {$programsettingsdata->costcenter} eq 1}  checked {/if} >
                            لا </label>
                        </div>
                      </div>
                    </div>

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

                    <!--<div class="form-group">
                      <label for="email" class="col-lg-2 control-label">  تفعيل نسخة طرفية </label>
                      <div class="col-lg-offset-2 col-lg-4">
                        <div class="radio-inline">
                          <label>
                      <input type="radio" name="copytype"  value="1" {if {$copytype} eq 1}  checked {/if}>
                            نعم </label>
                        </div>
                        <div class="radio-inline">
                          <label>
            <input type="radio" name="copytype"  value="0" {if {$copytype} eq 0}  checked {/if} >
                            لا </label>
                        </div>
                      </div>
                    </div>


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


                    <!--==============================-->
                    <!--<div class="form-group">
                      <label for="email" class="col-lg-2 control-label">اضافة رابط السرفر</label>
                      <div class="col-lg-4">
                        <input type="text" name="urlcopy" id="urlcopy" class="form-control" placeholder="اضافة رابط السرفر" value="{$programsettingsdata->urlcopy}" />
                      </div>
                    </div>

                    <!--==============================-->
                    <!--==============================-->
                    <!--<div class="form-group">
                      <label for="email" class="col-lg-2 control-label">اضافة رابط المحلي</label>
                      <div class="col-lg-4">
                        <input type="text" name="internalcopy" id="internalcopy" class="form-control" placeholder="اضافة رابط المحلي" value="{$programsettingsdata->internalcopy}" />
                      </div>
                    </div>

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

                    <!-- new fatma==============================-->
                    <!--==============================-->
                    <div class="form-group">
                        <label for="email" class="col-lg-2 control-label">يوجد عيادات</label>
                        <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="clinic"  value="0" {if {$programsettingsdata->
                                    clinic} eq 0}  checked {/if}>
                                    نعم </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="clinic"  value="1" {if {$programsettingsdata->
                                    clinic} eq 1}  checked {/if}>
                                    لا </label>
                            </div>
                        </div>
                    </div>

                    <!--==============================-->
                    <div class="form-group">
                        <label for="email" class="col-lg-2 control-label">يوجد ورش</label>
                        <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="workshop"  value="0" {if {$programsettingsdata->
                                    workshop} eq 0}  checked {/if}>
                                    نعم </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="workshop"  value="1" {if {$programsettingsdata->
                                    workshop} eq 1}  checked {/if}>
                                    لا </label>
                            </div>
                        </div>
                    </div>
                    <!--==============================-->
                    <div class="form-group">
                        <label for="email" class="col-lg-2 control-label">يوجد نقل</label>
                        <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="transport"  value="0" {if {$programsettingsdata->
                                    transport} eq 0}  checked {/if}>
                                    نعم </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="transport"  value="1" {if {$programsettingsdata->
                                    transport} eq 1}  checked {/if}>
                                    لا </label>
                            </div>
                        </div>
                    </div>
                    <!--==============================-->
                    <div class="form-group">
                        <label for="email" class="col-lg-2 control-label">يوجد تصنيع</label>
                        <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="manufacturing"  value="0" {if {$programsettingsdata->
                                    manufacturing} eq 0}  checked {/if}>
                                    نعم </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="manufacturing"  value="1" {if {$programsettingsdata->
                                    manufacturing} eq 1}  checked {/if}>
                                    لا </label>
                            </div>
                        </div>
                    </div>
                    <!--==============================-->
                    <div class="form-group">
                        <label for="email" class="col-lg-2 control-label">النسخة</label>
                        <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="masterCopy"  value="0" {if {$programsettingsdata->
                                    masterCopy} eq 0}  checked {/if}>
                                    فرعى </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="masterCopy"  value="1" {if {$programsettingsdata->
                                    masterCopy} eq 1}  checked {/if}>
                                    رئيسى </label>
                            </div>
                        </div>
                    </div>
                    <!--==============================-->
                    <div class="form-group">
                        <label for="email" class="col-lg-2 control-label">يوجد عامل توصيل للنقل بين المخازن</label>
                        <div class="col-lg-offset-2 col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="workerbetweenstores"  value="0" {if {$programsettingsdata->
                                    workerbetweenstores} eq 0}  checked {/if}>
                                    نعم </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input type="radio" name="workerbetweenstores"  value="1" {if {$programsettingsdata->
                                    workerbetweenstores} eq 1}  checked {/if}>
                                    لا </label>
                            </div>
                        </div>
                    </div>
                    <!--==============================-->

                    <div class="form-group">
                        <label for="phone" class="col-lg-2 control-label">مدة انجاز الورشة بالساعة</label>
                        <div class="col-lg-4">
                            <span id="sprytextfield4">
                                <input type="text" name="workshoptimeout" id="workshoptimeout" class="form-control positiveNo" placeholder="مدة انجاز الورشة بالساعة" value="{$programsettingsdata->workshoptimeout}" />
                                <span class="textfieldRequiredMsg">***.</span><span class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span>
                        </div>
                    </div>
                    <!--==============================-->

                    <div class="form-group">
                        <label for="phone" class="col-lg-2 control-label">مدة انجاز السائق بالساعة</label>
                        <div class="col-lg-4">
                            <span id="sprytextfield5">
                                <input type="text" name="drivertimeout" id="drivertimeout" class="form-control positiveNo" placeholder="مدة انجاز السائق بالساعة" value="{$programsettingsdata->drivertimeout}" />
                                <span class="textfieldRequiredMsg">***.</span><span class="textfieldInvalidFormatMsg">مسموح بارقام فقط</span></span>
                        </div>
                    </div>
                    <!--==============================-->
                    <div class="form-group">
                        <label for="currancy" class="col-lg-2 control-label">العملة</label>
                        <div class="col-lg-4">
                            <span id="sprytextfield6">
                                <input type="text" name="currancy" id="currancy" class="form-control" value="{$programsettingsdata->currancy}" />
                                <span class="textfieldRequiredMsg">***.</span></span>
                        </div>
                    </div>

                    <!--==============================-->
                    <!--end new fatma==============================-->
                    <input type="hidden" name="programsettingsid" id="programsettingsid" value="{$programsettingsdata->programsettingsid}">

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

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button name="btnAdd" type="submit" id="btnAdd" class="btn btn-primary pull-left">حفظ</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{literal}
<script type="text/javascript">
    var name = new Spry.Widget.ValidationTextField("name");
</script>
{/literal}
<script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer");
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "integer");
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "integer");
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "integer");
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "integer");
    var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6");
</script>
