<?php /* Smarty version Smarty-3.1.11, created on 2025-01-27 13:02:18
         compiled from "../views/default/projectview/add.html" */ ?>
<?php /*%%SmartyHeaderCode:1833365176679767ba048412-51958448%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a8b3896f5b36c4c4b632b7ac083bc54eb4b9474d' => 
    array (
      0 => '../views/default/projectview/add.html',
      1 => 1699214982,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1833365176679767ba048412-51958448',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'Programsettingdata' => 0,
    'allprojectkind' => 0,
    'projectkind' => 0,
    'projectstages' => 0,
    'projectstage' => 0,
    'currency' => 0,
    'today' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_679767ba18ba38_25370335',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_679767ba18ba38_25370335')) {function content_679767ba18ba38_25370335($_smarty_tpl) {?>

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

        <ol class="breadcrumb">
            <li><a href="#">المشروعات</a></li>
            <li><a href="projectController.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 class="form-horizontal nameToBeChecked" role="form" action="projectController.php?do=add" method="post" id="project-form" enctype="multipart/form-data" >

                    


                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">اسم المشروع</label>
                        <div class="col-lg-4">
                            <input type="text" name="txtName" id="projectName" data-id='' class="form-control" placeholder=" اسم المشروع" required=""/>

                        </div>
                    </div>

                    <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->projectshownew==0||$_smarty_tpl->tpl_vars['Programsettingdata']->value->realestatedev==0){?> 
                    <div class="form-group" >
                         <label class="col-lg-2 control-label">انواع  المشروعات</label>
                        <div class="col-lg-4">
                            <select class="select2 wdt100" name="projectkindid" id="projectkindid" >
                                <option value="-1">اختر</option>
                                <?php  $_smarty_tpl->tpl_vars['projectkind'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['projectkind']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allprojectkind']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['projectkind']->key => $_smarty_tpl->tpl_vars['projectkind']->value){
$_smarty_tpl->tpl_vars['projectkind']->_loop = true;
?>
                                <option value="<?php echo $_smarty_tpl->tpl_vars['projectkind']->value->projectkindid;?>
"><?php echo $_smarty_tpl->tpl_vars['projectkind']->value->projectkindname;?>
</option>
                                <?php } ?>
                            </select>
                        </div>
                    </div>
                    <?php }?>

                    <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->realestatedev==0){?> 

                    <div class="form-group" >
                        <label for="userstoreid" class="col-lg-2 control-label">مراحل المشروعات</label>
                        <div class="col-lg-4">

                            <span id="spryselect4">
                                <select class="select2 wdt100" name="projectstageids[]" id="projectstageids" multiple="" data-placeholder="اختر ">
                                    <option value="" > </option>
                                     <?php  $_smarty_tpl->tpl_vars['projectstage'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['projectstage']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['projectstages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['projectstage']->key => $_smarty_tpl->tpl_vars['projectstage']->value){
$_smarty_tpl->tpl_vars['projectstage']->_loop = true;
?>

                                    <option value="<?php echo $_smarty_tpl->tpl_vars['projectstage']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['projectstage']->value->name;?>
</option>

                                    <?php } ?>

                                </select>
                                <span class="selectInvalidMsg"> *</span></span>
                        </div>
                    </div>


                    <div class="form-group">
                        <label for="owner_name" class="col-lg-2 control-label">اسم المالك  </label>
                        <div class="col-lg-4">
                            <input type="text" name="owner_name" id="owner_name" data-id='' class="form-control" placeholder=" اسم المالك " required=""/>

                        </div>
                    </div>
                    
                    
                    <div class="form-group">
                        <label  class="col-lg-2 control-label"> نوع الاعمال  </label>
                        <div class="col-lg-4">
                          <input type="radio"  name="business_type" value="1" checked="">
                          <label >انشاءات </label>
                          <input type="radio"  name="business_type" value="2">
                          <label >تشطيبات </label>
                          <input type="radio"  name="business_type" value="3">
                          <label >اخرى  </label>
                        </div>
                    </div>

                     <div class="form-group">
                        <label  class="col-lg-2 control-label"> نوع مبلغ الاشراف   </label>
                        <div class="col-lg-4">
                          <input type="radio"  name="supervision_type" value="1" checked="" data-supervisionamount="<?php echo $_smarty_tpl->tpl_vars['currency']->value;?>
">
                          <label >قيمه </label>
                          <input type="radio"  name="supervision_type" value="2" data-supervisionamount="%">
                          <label >نسبه</label>
                        </div>
                    </div>

                     <div class="form-group">
                        <label for="supervision_amount" class="col-lg-2 control-label"> مبلغ الاشراف   </label>
                        <div class="col-lg-4">
                               <div class="input-group">
                                <input type="text" name="supervision_amount"  id="supervision_amount" data-id='' class="form-control numberinput positiveNo" placeholder="  مبلغ الاشراف  " required=""/>
                                <span class="input-group-addon" id="supervisionamount" ><?php echo $_smarty_tpl->tpl_vars['currency']->value;?>
</span>
                            </div>

                        </div>
                    </div>
                    
                        <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">كشف حساب مشروع  </label>
                        <div class="col-lg-4">
                            
                            <input    type="file" name="filepdf" />
                        </div>
                    </div>


                    <div class="form-group">
                            <label for="txtName" class="col-lg-2 control-label"> اظهار كشف حساب مشروع</label>
                        <div class="col-lg-4">

                        <label class="sr-only"></label>
                          <input type="checkbox" class="form-control" name="showpdf" id="showpdf"  value="1" style="   width: 23px;"   >  
                        </div>
                    </div>

                    
                   
                   
                    <?php }?>  

                    <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->projectshownew==0){?> 
                    
                    <div class="form-group">
                        <label  class="col-lg-2 control-label"> تم تصميم البانر </label>
                        <div class="col-lg-4">
                          <input type="radio"  name="bannerdesigned" value="1">
                          <label >نعم </label>
                          <input type="radio"  name="bannerdesigned" value="2">
                          <label >لا</label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-lg-2 control-label"> حالة المشروع </label>
                        <div class="col-lg-4">
                          <input type="radio"  name="projectsuit" value="1">
                          <label >تم </label>
                          <input type="radio"  name="projectsuit" value="2">
                          <label >تحت التنفيذ</label>
                          <input type="radio"  name="projectsuit" value="3">
                          <label >لم يبدا بعد</label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-lg-2 control-label">تاريخ  الاضافه</label>
                        <div class="col-lg-4">
                           <input type="text" class="form-control awdatepicker " autocomplete="off"   data-date-format="yyyy-mm-dd" name="addeddate" value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
">
                        </div>
                    </div>
                     <div class="form-group">
                        <label  class="col-lg-2 control-label">تاريخ الانتهاء</label>
                        <div class="col-lg-4">
                           <input type="text" class="form-control awdatepicker " autocomplete="off"   data-date-format="yyyy-mm-dd" name="expirydate">
                        </div>
                    </div>
                    <?php }?>  



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


                    <div class="form-group">
                        <label for="txtName" class="col-lg-2 control-label">صورة  التعاقد </label>
                        <div class="col-lg-4">
                            <input type="file" name="imagecontract" id="imagecontract" class="form-control"  />
                        </div>
                    </div>
                    <!-- =================================================   -->



                    <div class="form-group">
                        <label for="txtDebt" class="col-lg-2 control-label"> اجمالى التعاقد</label>
                        <div class="col-lg-4">

                            <div class="input-group">
                                <input type="text" name="txtDebt" id="txtDebt"  class="form-control numberinput positiveNo" placeholder="اجمالى التعاقد" required />
                                <span class="input-group-addon"><?php echo $_smarty_tpl->tpl_vars['currency']->value;?>
</span>
                            </div>

                        </div>
                    </div>
                    <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->realestatedev==0){?>
                    <input type="hidden" name="chwckaddclient" id="chwckaddclient"  value="1"  />
                    <?php }else{ ?>
                    <div class="form-group">
                        
                     <label for="chwckaddclient" class="col-lg-2 control-label"> اضافه عميل</label>
                        <div class="col-lg-4">

                            <div class="input-group">
                                <input type="checkbox" name="chwckaddclient" id="chwckaddclient"  value="1" />اضافه عميل
                            </div>

                        </div>
                    </div>
                    <?php }?>
                    

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

                    <div class="form-group">
                        <label for="textDetails" class="col-lg-2 control-label">بيانات عامة</label>
                        <div class="col-lg-4">

                            <textarea  class="form-control" rows="3" name="textDetails" id="textDetails" ></textarea>

                        </div>
                    </div>

                    <!-- =================================================   -->
                    <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->realestatedev==0){?> 


                     <div class="form-group">
                        <label  class="col-lg-2 control-label"> بيانات مراحل المشروع </label>
                        <div class="col-lg-4">
                          <input type="radio"  name="projectstagesdata" value="1">
                          <label >اظهار </label>
                          <input type="radio"  name="projectstagesdata" value="2" checked="">
                          <label >اخفاء</label>
                        </div>
                    </div>


                     <div class="form-group">
                        <label  class="col-lg-2 control-label"> برنامج زمنى </label>
                        <div class="col-lg-4">
                          <input type="radio"  name="projecttimetableitems" value="1">
                          <label >اظهار </label>
                          <input type="radio"  name="projecttimetableitems" value="2" checked="">
                          <label >اخفاء</label>
                        </div>
                    </div>


                      <div class="form-group">
                        <label  class="col-lg-2 control-label"> المصروفات </label>
                        <div class="col-lg-4">
                          <input type="radio"  name="expenses" value="1">
                          <label >اظهار </label>
                          <input type="radio"  name="expenses" value="2" checked="">
                          <label >اخفاء</label>
                        </div>
                    </div>



                    <div class="form-group">
                        <label  class="col-lg-2 control-label"> التحصيل </label>
                        <div class="col-lg-4">
                          <input type="radio"  name="income" value="1">
                          <label >اظهار </label>
                          <input type="radio"  name="income" value="2" checked="">
                          <label >اخفاء</label>
                        </div>
                    </div>



                    <div class="form-group">
                        <div class="col-md-12">
                             <div style="text-align: center;font-size: 19px;">
                                 برنامج زمنى به بنود
                              </div>
                              <div>
                                 <button type="button" class="btn green-meadow btn-sm pull-left addappend" data-container="timetableitems" data-itr='' data-link="projectControllerAjaxnew.php" data-views="projectview/timetableitems.html"  style="font-size: 10px;background: #ccc">اضافه البند </button>
                                  <input type="hidden" id="timetableitemsitr" name="timetableitemsitr" value="2" />
                              </div>
                              <div class="clearfix"></div>
                              <ul class="timetableitemscontainer" >
                                  <li   style="list-style-type: none;">
                                      <div class="col-lg-3">
                                        البند
                                      </div>
                                      <div class="col-lg-2">
                                         المبلغ
                                      </div>
                                      <div class="col-lg-2">
                                       المده
                                      </div>
                                      <div class="col-lg-2">
                                         ت اريخ بدايه
                                      </div>
                                      <div class="col-lg-2">
                                     تاريخ نهايه
                                      </div>
                                  </li>
                                  <li  class="container"  id="timetableitemsremove01" style="list-style-type: none;">
                                   <div class="col-lg-3">
                                       <input  required="required"    type="text" name="clause1" class="form-control " placeholder="البند" data-table="" data-tablecol="" data-tableid="" data-parentid="" data-parentcol="" />
                                   </div>
                                   <div class="col-lg-2">
                                       <input  required="required"    type="text" name="amount1" class="form-control floats amounts" placeholder="المبلغ" data-table="" data-tablecol="" data-tableid="" data-parentid="" data-parentcol="" />
                                   </div>
                                   <div class="col-lg-2">
                                     <input  required="required"    type="text" name="duration1" class="form-control nummbers durations" placeholder="المده" data-table="" data-tablecol="" data-tableid="" data-parentid="" data-parentcol="" />
                                   </div>
                                   <div class="col-lg-2">
                                    <input     type="text" name="startdate1" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" placeholder="تاريخ بدايه" data-table="" data-tablecol="" data-tableid="" data-parentid="" data-parentcol="" />
                                   </div>
                                   <div class="col-lg-2">
                                    <input     type="text" name="enddate1" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" placeholder=" تاريخ نهايه" data-table="" data-tablecol="" data-tableid="" data-parentid="" data-parentcol="" />
                                   </div>
                                 
                                  </li>
                              </ul>

                              <div class="clearfix"></div>
                              <div class="container" style="    text-align: center;">
                                   <div class="col-lg-3">
                                      <h3> الاجمالى   </h3>
                                   </div>
                                   <div class="col-lg-2">
                                     <span id="amounts" style="font-size: 20px">0 </span> <?php echo $_smarty_tpl->tpl_vars['currency']->value;?>

                                   </div>
                                   <div class="col-lg-2" >
                                     <span id="durations" style="font-size: 20px">0 </span> يوم
                                   </div>
                                   <div class="col-lg-2">
                                     
                                   </div>
                                   <div class="col-lg-2">
                                    
                                   </div>
                              </div>
                            
                        </div>
                    </div>
                    <?php }?>

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




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




    </div>
</div>




<script type="text/javascript">
   
    // $('input[name="storeSupervisor"]').live('change', function () {
    //     if ($('input[name="storeSupervisor"]:checked').val() == 1) {
    //         $('#storeSupervisorStoresDiv').show();
    //     } else {
    //         $('#storeSupervisorStoresDiv').hide();
    //     }
    // });

    $('input[name="supervision_type"]').live('change', function () {
      $('#supervisionamount').html($('input[name="supervision_type"]:checked').attr('data-supervisionamount'));
    });

  
</script>
<?php }} ?>