<?php /* Smarty version Smarty-3.1.11, created on 2024-10-01 17:00:03
         compiled from "../views/default/saveview/edit.html" */ ?>
<?php /*%%SmartyHeaderCode:55551787866fc0063936b83-72755775%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b0a6612ac2ee0caee2308bd104b609b9c054a267' => 
    array (
      0 => '../views/default/saveview/edit.html',
      1 => 1693253994,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '55551787866fc0063936b83-72755775',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'loadData' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66fc0063df00b6_34021993',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66fc0063df00b6_34021993')) {function content_66fc0063df00b6_34021993($_smarty_tpl) {?>

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

        <ol class="breadcrumb">
            <li><a href="#">المصروفات والايرادات</a></li>
            <li><a href="saveController.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="saveform"   class="nameToBeChecked form-horizontal" role="form" action="saveController.php?do=update" method="post">

                    




                    <div class="form-group">
                        <label for="savename" id="saveform" class="col-lg-2 control-label">اسم الخزنة</label>
                        <div class="col-lg-4">



                            <input type="text" name="savename" id="savename"   placeholder="اسم الخزنة" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->savename;?>
" />
                            <input type="hidden" name="oldname" id="oldname"   value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->savename;?>
" />
                            <div id="nameError"  style="display:none"> </div>
                        </div>
                    </div>

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



                    <div class="form-group">
                        <label for="savecurrentvalue" class="col-lg-2 control-label">القيمة الحالية</label>
                        <div class="col-lg-4">


                            <div class="input-group">

                                <span id="sprytextfield1">
                                    <input type="text" name="savecurrentvalue" id="savecurrentvalue"  class="form-control positivefloat" placeholder="قيمة الخزنة الحالية" value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->savecurrentvalue;?>
" readonly="readonly" />

                                    <span class="textfieldRequiredMsg">*</span><span class="textfieldInvalidFormatMsg">ادخل القيمة صحيحة</span></span>

                                <span class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['loadData']->value->currencyName;?>
</span><!---->
                            </div>

                        </div>
                    </div>

                    <div class="form-group">
                        <label for="sortby" class="col-lg-2 control-label">الترتيب</label>
                        <div class="col-lg-4">
                            <input type="text" name="sortby" id="sortby"  class="form-control positivefloat" placeholder="الترتيب"
                                   value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->sortby;?>
" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label">نوع الخزنة فى الشجرة</label>
                        <div class="col-lg-4">
                            <div class="radio-inline">
                                <label>
                                    <input value="0" class="radioR" name="saveTreeParentType" type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->saveTreeParentType==0){?>checked<?php }?>>

                                    خزنة </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input value="1" class="noradioR" name="saveTreeParentType" type="radio" <?php if ($_smarty_tpl->tpl_vars['loadData']->value->saveTreeParentType==1){?>checked<?php }?>>
                                    عهدة </label>
                            </div>

                        </div>
                    </div>

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



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

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

                        </div>
                    </div>

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


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


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


                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="button" id="savebtn" class="btn btn-primary pull-left">حفظ الامر</button>
                        </div>
                    </div>


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




    </div>
</div>





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


<?php }} ?>