

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

        <ol class="breadcrumb">
            <li><a href="#">المنتجات</a></li>
            <li><a href="companyproduces.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"  action="companyproduces.php?do=savedata"  method="post"  enctype="multipart/form-data">
                    {/literal}
                     
                    <div class="form-group">
                        <label for="companyname" class="col-lg-2 control-label">اسم الشركة <!--span class="text-danger">*</span>--></label>
                        <div class="col-lg-4">
                            <input required type="text" name="companyname" id="companyname" 
                            class="form-control" value="{$companyproduces->companyname}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="name_en" class="col-lg-2 control-label">اسم الشركة بالإنجليزية <!--span class="text-danger">*</span>--></label>
                        <div class="col-lg-4">
                            <input required type="text" name="name_en" id="name_en" 
                            class="form-control" value="{$companyproduces->name_en}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="description_ar" class="col-lg-2 control-label">الوصف بالعربية</label>
                        <div class="col-lg-4">
                            <textarea name="description_ar" id="description_ar" 
                            class="form-control" rows="3">{$companyproduces->description_ar}</textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="description_en" class="col-lg-2 control-label">الوصف بالإنجليزية</label>
                        <div class="col-lg-4">
                            <textarea name="description_en" id="description_en" 
                            class="form-control" rows="3">{$companyproduces->description_en}</textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">شعار الشركة الحالي</label>
                        <div class="col-lg-4">
                            {if $companyproduces->logo}
                                <img src="../upload/companyproduces/{$companyproduces->logo}" class="img-thumbnail" style="max-width: 200px; max-height: 200px;">
                                <br><br>
                            {/if}
                            <input type="hidden" name="oldlogo" id="oldlogo" value="{$companyproduces->logo}">
                            <input type="file" name="logo" id="logo" class="form-control" accept="image/*">
                        </div>
                    </div>
                    <input type="hidden" name="companyid" value="{$companyproduces->id}">

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="submit" class="btn btn-primary pull-left " >تعديل </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

