

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

        <ol class="breadcrumb">
            <li><a href="#"> عروض الاسعار</a></li>
            <li><a href="priceoffersController.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">

                <input type="hidden" name="searchvalue" id="searchvalue" value="{$Programsettingdata->searchvalue}"/>
                <input type="hidden" name="usedParcode" id="usedParcode" value="{$Programsettingdata->usedParcode}"/>
                <input type="hidden" name="path" id="path" value="{$path}"/>

                {literal}
                <form class="nameToBeChecked form-horizontal" role="form" id="offerprice_form" action="" method="post" >

                    {/literal}



                    <div class="form-group">
                        <label class="col-lg-12 control-label"> مقدمة</label>
                        <div class="col-lg-12">
                            <textarea class="form-control" name="introductioncondition" rows="5"> {$lastcondition->introduction}</textarea>
                        </div>
                    </div>

                    <div class="clearfix"></div>
                    <div class="form-group" id="radioDiv">
                        <div class="col-lg-4">
                            <label>
                                <input value="0"  class="radioR" name="clienttype" id="clientyes"  checked=""  type="radio" />عميل </label>

                            <label>
                                <input value="1"  class="noradioR" name="clienttype" id="clientno"   type="radio" /> جديد</label>
                        </div>
                    </div>


                    <div class="row">
                        <div class="form-group">
                            <label for="clientname" class="col-lg-2 control-label">اسم العميل</label>
                            <div class="col-lg-4">
                                <div id="newn_client_div" style="display:none;">
                                    <input class="form-control" placeholder="اسم العميل"   name="newclientname" id="offer_newclient" type="text"  required=""  />
                                </div>

                                <div id="oldn_client_div">
                                    <input type="text" name="oldclientname" id="offer_oldclient"   class="select2product wdt100"  data-placeholder="اختر عميل" required tabindex="301"/>
                                    <input type="hidden" id="edit_hiddenclientId" name="edit_hiddenclientId" value=""  />
                                    <input type="hidden" id="edit_hiddenclientName" name="edit_hiddenclientName" value=""  />
                                </div>
                            </div>

                            <!-- ===============================================buttons ==============================================================-->
                            <div class="col-lg-5">
                                <button type="button" name="addwrite_priceoffer" id="addwrite_priceoffer" class="btn btn-primary pull-left ft-nor"> اضافة كتابة</button>
                            </div>
                            <div class="col-lg-1">
                                <button type="button" name="addwrite_priceoffer" id="addpro_priceoffer" class="btn btn-primary pull-left ft-nor" > اضافة منتج</button>
                            </div>

                        </div>



                    </div>

                    <input type="hidden" name="offerhidden_itr" id="offerhidden_itr" value="1"/>
                    <!-- ======================================Table=============================================================================================== -->
                    <div class="form-group">
                        <div class="table-responsive bd-gr">
                            <table class="table billtable table-bordered table-black" id="priceoffer_tb">
                                <thead>
                                    <tr>
                                        <th class="wdt120">الباركود</th>
                                        <th class="wdt120">اسم المنتج</th>
                                        <th class="wdt120">سعر البيع</th>
                                        <th class="wdt120"> الوصف</th>
                                        <th class="wdt120"> العدد</th>
                                        <th class="wdt120"> اجمالى السعر</th>
                                        <th class="wdt120">حذف</th>

                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>
                                            <input type="text" name="parcode1" id="parcode1"  class="form-control txt-nonraduis" onkeypress="getproductbyParcode(event, this.value, 1);" size="3"  placeholder="الباركود" />

                                        </td>
                                        <td>
                                            <input type="text" name="offerproudctid1" id="offer_proudctid1"  required  class="select2product wdt100 clas_offerproduct" data-itr='1'  data-placeholder="اختر منتج" tabindex="301"/>

                                        </td>
                                        <td>
                                            <input type="text" name="offerproprice1" id="offerproprice1"  required data-itr="1"  class="form-control txt-nonraduis positiveNo calcprice" value="0" />
                                        </td>
                                        <td>
                                            <textarea name="prodescrp1" id="prodescrp1"   class="form-control"></textarea>
                                        </td>
                                        <td>
                                            <input type="text" name="offerpronumber1" id="offerpronumber1" required data-itr="1"  class="form-control txt-nonraduis positiveNo calcprice" value="1" />
                                        </td>
                                        <td class="aw_totalprice_offer">
                                            <input type="text" id="div_pr_offertotal1" name="div_pr_offertotal1" required data-itr="1"  class="form-control txt-nonraduis positivefloat finalprice" value="0">
                                        </td>
                                        <td>
                                            <button type="button" id="remove1" class="offerprice_remove close flt-none" aria-hidden="true"  >&times;</button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>


                        <button type="button" class="btn btn-primary pull-left ft-nor">
                            اجمالى الاسعار <span class="badge wht-clo">
                                <span name="totalsellbillprice" id="offer_sellbillprice">0</span>
                                <input type="hidden" name="offer_sellbillpricenew" id="offer_sellbillpricenew" value="0">
                                </button>
                                <button type="button" class="btn btn-primary pull-left ft-nor">
                                    اجمالى الاسعار كتابة <span class="badge wht-clo">
                                        <span id="offer_sellbillprice_written">&nbsp;</span>
                                </button>

                                </div>

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

                                <div class="form-group">
                                    <label class="col-lg-12 control-label"> شروط عامة</label>
                                    <div class="col-lg-12">
                                        <textarea class="form-control" id="ckeditor" name="generalcondition" rows="5"> {$lastcondition->detail}</textarea>
                                    </div>
                                </div>


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





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

                                <div class="form-group">
                                    <div class="col-lg-offset-2 col-lg-4">
                                        <input type="button"   id="offerprice_save" class="btn btn-primary pull-left" value="حفظ الامر">
                                        <button type="button" id="print_offerprice" class="btn btn-success pull-left">حفظ وطباعة</button>
                                    </div>
                                </div>


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




                                </div>
                                </div>



                                <!--{literal}

                                <script type="text/javascript">
                                    var name = new Spry.Widget.ValidationTextField("name");
                                    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "real");
                                </script>

                                {/literal}-->

