<?php /* Smarty version Smarty-3.1.11, created on 2025-01-19 18:46:52
         compiled from "../views/default/partnerview/edit.html" */ ?>
<?php /*%%SmartyHeaderCode:360140355678d2c7c348612-33016874%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1536713920105dc869a5189f5a6c99a7cc1f63f3' => 
    array (
      0 => '../views/default/partnerview/edit.html',
      1 => 1672089200,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '360140355678d2c7c348612-33016874',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'loadData' => 0,
    'currency' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_678d2c7c46caf2_39512562',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_678d2c7c46caf2_39512562')) {function content_678d2c7c46caf2_39512562($_smarty_tpl) {?>

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

        <ol class="breadcrumb">
            <li><a href="#">خصائص عامة</a></li>
            <li><a href="partnerController.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">

                <form id="submitnew"  class="form-horizontal nameToBeChecked" role="form" action="partnerController.php?do=update" method="post">

                    <div class="form-group">
                        <label for="partnername" class="col-lg-2 control-label">اسم الشريك</label>
                        <div class="col-lg-4">
                            <input type="text" name="partnername" id="partnername" class="form-control" placeholder="اسم الشريك" value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->partnername;?>
" />
                            <div id="partnerError" style="display:none;"></div>
                        </div>
                    </div>

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



                    <div class="form-group">
                        <label for="partnermoney" class="col-lg-2 control-label">قيمة الشراكة</label>
                        <div class="col-lg-4">


                            <div class="input-group">
                                <input type="text" class="form-control positivefloat" placeholder="القيمة الشراكة" name="partnermoney" id="partnermoney"  value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->partnermoney;?>
" onKeyUp="calculatePercentage();">
                                <span class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value;?>
</span>
                            </div>
                            <div id="valueError" style="display:none;"></div>

                        </div>
                    </div>

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

                    <div class="form-group">
                        <label for="partnerpercentage" class="col-lg-2 control-label">نسبة الشراكة</label>
                        <div class="col-lg-4">
                            <div class="input-group">
                                <input type="text" readonly="readonly" class="form-control positivefloat" placeholder="نسبة الشراكة" name="partnerpercentage" id="partnerpercentage" value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->partnerpercentage;?>
">
                                <span class="input-group-addon">%</span>
                            </div>
                            <div id="precntError" style="display:none;"></div>


                        </div>
                    </div>


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


                    <div class="form-group">
                        <label for="comment" class="col-lg-2 control-label">التعليق</label>
                        <div class="col-lg-4">

                            <textarea  class="form-control" rows="3" name="comment"><?php echo $_smarty_tpl->tpl_vars['loadData']->value->comment;?>
</textarea>

                        </div>
                    </div>

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

                    <input type="hidden" name="oldname" id="oldname" value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->partnername;?>
"/>
                    <input type="hidden" name="partnerid" id="partnerid" value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->partnerid;?>
"/>
                    <input type="hidden" name="conditions" value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->conditions;?>
"/>
                    <input type="hidden" name="partnerdate" value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->partnerdate;?>
"/>

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

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




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




    </div>
</div>

<?php }} ?>