<?php /* Smarty version Smarty-3.1.11, created on 2025-01-27 13:02:35
         compiled from "../views/default/projectview/show.html" */ ?>
<?php /*%%SmartyHeaderCode:1305050243679767cb606a15-34572027%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'df334be7e46f8665e0e6bb8cdeed62dcb6504492' => 
    array (
      0 => '../views/default/projectview/show.html',
      1 => 1698089766,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1305050243679767cb606a15-34572027',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'youtubes' => 0,
    'outputString' => 0,
    'alldata' => 0,
    'project' => 0,
    'Programsettingdata' => 0,
    'allprojectkind' => 0,
    'projectkind' => 0,
    'projectstages' => 0,
    'projectstage' => 0,
    'data' => 0,
    'i' => 0,
    'currency' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_679767cb6e4dc5_46377442',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_679767cb6e4dc5_46377442')) {function content_679767cb6e4dc5_46377442($_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>

        </ol>




        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
           <!--  <div class="panel-heading">المشروعات
                <a href="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[240]->url;?>
" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
            </div>
 -->
            <div class="panel-heading" style="padding:5px 15px 15px">
                <h3 class="panel-title" style="display: inline-block;"> عرض       </h3>
                <a href="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[198]->url;?>
" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
                <a href="projectController.php" class="hidden-print"><input type="button"  id="submit" style="margin-left: 12px" class="btn btn-primary pull-left " value="إضافة جديد"/></a>
            </div>


            <div class="panel-body">


                <div id="outputString" class="alert alert-block alert-success fade in" style="display:none">
                    <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">&times;</button>

                    <p id="outputStringValue"><?php echo $_smarty_tpl->tpl_vars['outputString']->value;?>
</p>

                    <div class="clearfix"></div>
                </div>



            </div>

            <form class="form-inline hidden-print" method="post" action="projectController.php?do=show">
                    
                     <div class="form-group"  >
                        <label class="sr-only">المشروعات</label>
                            <select class="select2 wdt100" name="projectid" id="projectid" >
                                <option value="-1" >اختر </option>
                                <?php  $_smarty_tpl->tpl_vars['project'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['project']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['alldata']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['project']->key => $_smarty_tpl->tpl_vars['project']->value){
$_smarty_tpl->tpl_vars['project']->_loop = true;
?>
                                <option value="<?php echo $_smarty_tpl->tpl_vars['project']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['project']->value->name;?>
</option>
                                <?php } ?>
                            </select>
                    </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="sr-only">انواع المشروعات</label>
                            <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>
                    <?php }?>




                    <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->realestatedev==0){?> 
                    <div class="form-group" >
                         <label class="sr-only">مراحل المشروعات</label>
                        <select class="select2 wdt100" name="projectstageid" id="projectstageid" >
                            <option value="-1">اختر</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>
                    </div>

                    <div class="form-group" style="    margin-left: 30px;">
                        <label class="sr-only">نوع الاعمال   </label>
                        <br>
                        <input type="radio"  name="business_type" value="1" >
                        <label >انشاءات </label>
                        <input type="radio"  name="business_type" value="2">
                        <label >تشطيبات </label>
                        <input type="radio"  name="business_type" value="3">
                        <label >اخرى  </label>
                    </div>
                    <div class="form-group">
                        <label class="sr-only"> نوع مبلغ الاشراف    </label>
                        <br>
                        <input type="radio"  name="supervision_type" value="1"  >
                        <label >قيمه </label>
                        <input type="radio"  name="supervision_type" value="2" >
                        <label >نسبه</label>
                    </div>
                   
                    <?php }?>  




                    <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->projectshownew==0){?> 
                    <div class="form-group" style="    margin-left: 30px;">
                        <label class="sr-only"> تم تصميم البانر </label>
                        <br>
                          <input type="radio"  name="bannerdesigned" value="1">
                          <label >نعم </label>
                          <input type="radio"  name="bannerdesigned" value="2">
                          <label >لا</label>
                    </div>
                    <div class="form-group">
                        <label class="sr-only"> حالة المشروع </label>
                        <br>
                          <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>
                    <?php }?> 
                   

                    <br />
                    <div class="form-group">
                        <label class="sr-only">من التاريخ</label>
                        <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" name="from" >
                    </div>
                    <div class="form-group">
                        <label class="sr-only">إلى التاريخ</label>
                        <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" name="to" >
                    </div>
                    <button type="submit" class="btn btn-primary hidden-print">بحث</button>
                </form>
            <hr/>



            <table class="table table-black">
                <thead>
                    <tr>
                        <th style="width:50px;">م</th>
                        <th>اسم المشروع</th>

                        <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->projectshownew==0||$_smarty_tpl->tpl_vars['Programsettingdata']->value->realestatedev==0){?> 
                          <th>نوع المشروع</th>
                        <?php }?>

                        <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->realestatedev==0){?> 
                        <th>مراحل المشروع</th>
                        <th>اسم المالك</th>
                        <th>نوع الاعمال</th>
                        <th>مبلغ الاشراف</th>
                       <?php }?> 


                        <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->projectshownew==0){?> 
                       
                        <th>تم تصميم البانر</th>
                        <th>حالة المشروع</th>
                        <th>تاريخ الاضافه</th>
                        <th>تاريخ الانتهاء</th>
                       <?php }?> 
                        <th> اجمالى التعاقد</th>
                        <th>المستخدم </th>
                        <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->realestatedev==0){?> 
                        <th class="noprint"> بيانات مراحل المشروع</th>
                        <th class="noprint">البرنامج الزمنى</th>
                        <th class="noprint"> التقرير اليومى للمشروع  </th>
                        <?php }?>
                        <th class="noprint">تعديل</th>
                        <th class="noprint">انهاء</th>
                        <th class="noprint">حذف</th>
                    </tr>
                </thead>
                <tbody>



                    <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                    <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['alldata']->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;
?>

                    <tr <?php if ($_smarty_tpl->tpl_vars['data']->value->finish==1){?> class="danger" <?php }?>>

                        <td><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['data']->value->name;?>
</td>
                        <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->projectshownew==0||$_smarty_tpl->tpl_vars['Programsettingdata']->value->realestatedev==0){?> 
                          <td><?php echo $_smarty_tpl->tpl_vars['data']->value->projectkindname;?>
</td>
                        <?php }?>
                        <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->realestatedev==0){?> 
                            <td>
                            <?php  $_smarty_tpl->tpl_vars['projectstage'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['projectstage']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['data']->value->projectstages; 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;
?>
                             <?php echo $_smarty_tpl->tpl_vars['projectstage']->value['name'];?>
  / 
                            <?php } ?>
                            </td>
                            <td><?php echo $_smarty_tpl->tpl_vars['data']->value->owner_name;?>
</td>
                            <td><?php if ($_smarty_tpl->tpl_vars['data']->value->business_type==1){?> انشاءات   <?php }elseif($_smarty_tpl->tpl_vars['data']->value->business_type==2){?> تشطيبات  <?php }elseif($_smarty_tpl->tpl_vars['data']->value->business_type==3){?>  اخرى <?php }?></td>
                            <td><?php echo $_smarty_tpl->tpl_vars['data']->value->supervision_amount;?>
 <?php if ($_smarty_tpl->tpl_vars['data']->value->supervision_type==1){?> <?php echo $_smarty_tpl->tpl_vars['currency']->value;?>
 <?php }else{ ?> % <?php }?></td>
                        <?php }?> 
                        <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->projectshownew==0){?> 
                        <td><?php if ($_smarty_tpl->tpl_vars['data']->value->bannerdesigned==1){?> نعم  <?php }elseif($_smarty_tpl->tpl_vars['data']->value->bannerdesigned==2){?>  لا <?php }?></td>
                        <td><?php if ($_smarty_tpl->tpl_vars['data']->value->projectsuit==1){?> تم   <?php }elseif($_smarty_tpl->tpl_vars['data']->value->projectsuit==2){?>  تحت التنفيذ  <?php }elseif($_smarty_tpl->tpl_vars['data']->value->projectsuit==3){?> لم يبدا بعد <?php }?></td>
                        <td><?php echo $_smarty_tpl->tpl_vars['data']->value->addeddate;?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['data']->value->expirydate;?>
</td>
                        <?php }?>
                        <td><?php echo $_smarty_tpl->tpl_vars['data']->value->totalcontract;?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['data']->value->employeename;?>
</td>

                        <?php if ($_smarty_tpl->tpl_vars['Programsettingdata']->value->realestatedev==0){?> 
                        <td class="noprint">
                            <a href="projectstagesdataController.php?do=detail&id=<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" type="button" class="btn btn-default btn-md">بيانات مراحل المشروع</a>
                        </td>
                         <td class="noprint">
                            <a href="projectController.php?do=timetableitems&id=<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" type="button" class="btn btn-default btn-md">البرنامج الزمنى</a>
                        </td>
                         <td class="noprint">
                            <a href="projectdailyreportController.php?do=prodetail&id=<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" type="button" class="btn btn-default btn-md">التقرير اليومى للمشروع  </a>
                        </td>
                         <?php }?>


                        <td class="noprint">
                            <a href="projectController.php?do=edit&id=<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" type="button" class="btn btn-default btn-lg editicon"></a>
                        </td>



                        <td class="noprint">
                            <?php if ($_smarty_tpl->tpl_vars['data']->value->finish==0){?>
                            <a href="#" name="dd" type="button" class="btn btn-default btn-lg deleteicon showfinishmsg" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-go="projectController.php" ></a>
                            <?php }else{ ?>
                            -----
                            <?php }?>
                        </td>

                        <td class="noprint">
                            <?php if ($_smarty_tpl->tpl_vars['data']->value->finish==0){?>
                            <a href="#" name="dd" type="button" class="btn btn-default btn-lg deleteicon showdeletemsg" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-go="projectController.php" ></a>

                            <?php }else{ ?>
                            -----
                            <?php }?>
                        </td>



                    </tr>
                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                    <?php } ?>


                </tbody>
            </table>





            <div class="clearfix"></div>


            <hr />

            <div  class="noprint">
                <div class="col-lg-12">


                    <div class="form-group">
                        <div class="col-lg-4">
                            <button type="button" onclick="print_Custom('mycustomheader');" class="btn btn-success pull-right">طباعة</button>
                        </div>
                    </div>

                </div>
                <div class="clearfix"></div>
            </div>






            <div class="clearfix"></div>


        </div>



    </div>

</div>





<!-- Modal -->
<div class="modal fade noprint" id="small" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content bg-modal">
            <div class="modal-header">
                <button type="button" class="close pull-left" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">تأكيد حذف المشروع</h4>
            </div>
            <div class="modal-body">
                <label> هل تريد حذف هذا المشروع؟</label>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">لا</button>
                <button type="button" class="btn btn-primary deleteit">نعم</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->





<!-- Modal -->
<div class="modal fade noprint" id="finishsmall" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content bg-modal">
            <div class="modal-header">
                <button type="button" class="close pull-left" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">تأكيد  انهاء المشروع</h4>
            </div>
            <div class="modal-body">
                 <label> هل تريد حذف هذا المشروع؟</label>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">لا</button>
                <button type="button" class="btn btn-primary finishit">نعم</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<?php }} ?>