<?php /* Smarty version Smarty-3.1.11, created on 2024-07-15 17:09:26
         compiled from "..\views\default\saveview\add.html" */ ?>
<?php /*%%SmartyHeaderCode:2280166953ba6885130-71981094%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6b1edea4ba06589d23b7a2ed928ebb75b37f43bb' => 
    array (
      0 => '..\\views\\default\\saveview\\add.html',
      1 => 1687376151,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2280166953ba6885130-71981094',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'allCurrency' => 0,
    'data' => 0,
    'currency' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66953ba68b2554_07230886',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66953ba68b2554_07230886')) {function content_66953ba68b2554_07230886($_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=add" method="post" >

                    

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


                            <input type="text" name="savename" id="savename"   placeholder="اسم الخزنة" class="form-control" />


                            <div id="saveerror"></div>


                            <div id="nameError" style="display:none">

                            </div>


                        </div>
                    </div>
                    <!-- =================================================   -->



                    <div class="form-group">
                        <label class="col-lg-2 control-label">عملة الخزنة</label>
                        <div class="col-lg-4">
                            <span id="spryselect1">
                                <select class="select2" name="currencyId" id="currencyId">
                                    <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allCurrency']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
                                    <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['data']->value->name;?>
</option>
                                    <?php } ?>
                                </select>
                                <span class="selectRequiredMsg">*</span></span>
                        </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="قيمة الخزنة الحالية" />

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

                                <span class="input-group-addon" id="currencyText"><?php echo $_smarty_tpl->tpl_vars['currency']->value;?>
</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="الترتيب" />
                        </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" checked="">

                                    خزنة </label>
                            </div>
                            <div class="radio-inline">
                                <label>
                                    <input value="1" class="noradioR" name="saveTreeParentType" type="radio">
                                    عهدة </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"></textarea>

                        </div>
                    </div>

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

                    <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");
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
</script>



<?php }} ?>