<!DOCTYPE html>
<html>
    <head>
        <title>برنامج البسيط للمحاسبة</title>
        <meta charset="utf-8">
        <!-- read and write any langs -->
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <link rel="shortcut icon" href="{$path}/assets/2.ico" type="image/ico" />
        <!-- Favicons
                ================================================== -->
        <!--link rel="shortcut icon" href="assets/images/favicon/favicon.ico"-->

        <link rel="apple-touch-icon" href="assets/images/favicon/apple-touch-icon.png">
        <link rel="apple-touch-icon" sizes="72x72" href="assets/images/favicon/apple-touch-icon-72x72.png">
        <link rel="apple-touch-icon" sizes="114x114" href="assets/images/favicon/apple-touch-icon-114x114.png">

        <!-- Bootstrap -->
        <link href="{$path}/assets/css/bootstrap.min.css" rel="stylesheet" media="screen">
        <!-- Custom styles for project -->
        <link href="{$path}/assets/css/store.css" rel="stylesheet">
        <link href="{$path}/assets/css/print.css" rel="stylesheet">

        <!-- clock face -->
        <link href="{$path}/assets/plugins/clockface/css/clockface.css" rel="stylesheet">
        <!-- datepicker -->
        <link href="{$path}/assets/plugins/datepicker/css/datepicker.css" rel="stylesheet">
        <!-- datetimepicker -->
        <link href="{$path}/assets/plugins/datepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
        <!-- calislamic -->
        <link rel="stylesheet" href="{$path}/assets/plugins/calislamic/humanity.calendars.picker.css">
        <!-- tree -->
        <link href="{$path}/assets/plugins/bootstrap-tree/css/bootstrap-tree-rtl.css" rel="stylesheet">
        <!-- tree new-->
        <!--link href="{$path}/assets/plugins/bootstrap-tree-new/css/bootstrap-combined.min.css" rel="stylesheet"-->
        <!-- select 2 -->
        <link href="{$path}/assets/plugins/select2/select2_metro_rtl.css" rel="stylesheet">
        <!-- valadition -->
        <link href="{$path}/assets/css/validtextfield.css" rel="stylesheet">
        <link href="{$path}/assets/css/validselect.css" rel="stylesheet">
        <link href="{$path}/assets/css/validtextarea.css" rel="stylesheet">
        <!-- valadition -->

        <link href="{$path}/assets/plugins/datatables/datatables.min.css" rel="stylesheet" type="text/css" />
        <link href="{$path}/assets/plugins/datatables/plugins/bootstrap/datatables.bootstrap-rtl.css" rel="stylesheet" type="text/css" />


        <script src="{$path}/assets/js/validtextfield.js"></script>
        <script src="{$path}/assets/js/validselect.js"></script>
        <script src="{$path}/assets/js/validtextarea.js"></script>
        <script type="text/javascript" charset="utf-8" src="media/js/jquery.js"></script>
        <style type="text/css" title="currentStyle">
            @import "media/css/demo_page.css";
            @import "media/css/demo_table.css";
            @import "media/css/TableTools.css";
            @import "media/css/ColVis.css";
        </style>
        <script type="text/javascript" charset="utf-8" src="media/js/jquery.dataTables.js"></script>
        <script type="text/javascript" charset="utf-8" src="media/js/ZeroClipboard.js"></script>
        <script type="text/javascript" charset="utf-8" src="media/js/TableTools.js"></script>
        <script type="text/javascript" charset="utf-8" src="media/js/ColVis.js"></script>
        <!--script src="media/js/jquery.dataTables.columnFilter.js" type="text/javascript"></script-->

    </head>
    <div id="mac" style="display:none"></div>
    <body class="usedfont">
        <div class="container">
            {if $daysremaining neq "-1"}
            <div class="remaindays">هذة نسخة تجريبية  باقي من  عدد الدخول <span class="ddd">{$daysremaining}</span>
                <a style="color:#0066FF !important;" href="../exper.html"> للترخيص اضغط هنا</a> او اتصل علي 00201110070880</div>
            {/if}
            <header class="masthead st-hbg noprint">
                <!--h1>برنامج البسيط للمحاسبة</h1>
                <p class="titleft">برمجة وتصميم شركة GT4</p-->
                {if $copytype eq "1"}
                <div style="width:100%;height:20px; background-color:red; float:left; color:white;text-align:center; font-weight:bold;"> تم تفعيل الخيار المحلي</div>
                {/if}
                <img src="{$path}/images/img04.jpg" />
                <div class="logbutton">
                    <a  href="logout.php" class="pull-left btn-danger mgtp3 linkpad">خروج </a> <span class="pull-left">&nbsp;</span>
                    <a href="userController.php?do=edit&userid={$sessionUserId}"><span class=" pull-left btn-primary mgtp3 linkpad">{$sessionEmployeename}</span> </a>
                    <div class="pull-left btn-group">

                        <!---notices---->
                        <a href="noticesController.php">
                            <span class="pull-left">&nbsp;</span>

                            <button type="button"  {if {$sum} eq "0"} class="btn btn-default dropdown-toggle" {else} class="btn btn-danger dropdown-toggle" {/if} >

                                    ملاحظات  {$sum}



                        </button>

                    </a>
                </div>
                <!-----end notices div---->
        </header>
        <!--div class="clearfix"></div-->
        <input type="hidden" name="thecurrency" id="thecurrency" value="{$currency}"/>
        <nav  role="navigation" class="hidden-print"> <!--class="navbar navbar-default  noprint"-->


            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class=" navbar-collapse navbar-ex1-collapse" id="mymenu">
                {if $cashedheaderSize >0}
                {$cashedheader}
                {else}
                <ul class="nav navbar-nav" >
                    <!--------------------- rule------------------------->
                    {assign var=i value=1}
                    {foreach $reluseData as $reluse}
                    <li class="dropdown">
                        {if $reluse->propertyname == "تكويد المنتجات" || $reluse->propertyname == "الصيانه" }

                        {else}
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">{$reluse->propertyname} <b class="caret"></b></a>
                        {/if}
                        <ul class="dropdown-menu">

                            <!---------------------sub rule------------------------->

                            {assign var=j value=1}
                            {foreach $subReluseData{$i} as $subReluse{$i}}




                            {if {$subReluseNum{$i}} > 0}

                            <!-----------راس المال----------------->
                            {if {$subReluse{$i}->propertyname} eq "راس المال"}
                            <li> <a href="{$subReluse{$i}->propertyurl}"> {$subReluse{$i}->propertyname}</b></a> </li>

                            <!-----------نقل قاعده البيانات------------------>
                            {elseif {$subReluse{$i}->propertyname}  eq "نقل قاعده البيانات"}
                            <li> <a href="{$subReluse{$i}->propertyurl}"> {$subReluse{$i}->propertyname}</a> </li>

                            <!-----------اعدادات المنتج----------------->
                            {elseif {$subReluse{$i}->propertyname} eq "اعدادات المنتج"}
                            <li> <a href="{$subReluse{$i}->propertyurl}"> {$subReluse{$i}->propertyname} </a> </li>

                            <!-----------إعدادات البرنامج----------------->
                            {elseif {$subReluse{$i}->propertyname} eq "إعدادات البرنامج"}
                            <li> <a href="{$subReluse{$i}->propertyurl}"> {$subReluse{$i}->propertyname} </a> </li>

                            <!-----------نسخه احتياطيه----------------->
                            {elseif {$subReluse{$i}->propertyname} eq "نسخه احتياطيه"}
                            <li> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> {$subReluse{$i}->propertyname} <b class="right-caret"></b></a>
                                <ul class="dropdown-menu sub-menu">
                                    <li><a href="{$subReluse{$i}->propertyurl}">اضافة نسخة</a></li>
                                    <li><a href="{$subReluse{$i}->propertyurl}?do=backup">تغيير قاعدة البيانات</a></li>
                                </ul>
                            </li>

                            <!-----------ارشفه----------------->
                            {elseif {$subReluse{$i}->propertyname} eq "ارشفه"}
                            <li> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> {$subReluse{$i}->propertyname} <b class="right-caret"></b></a>
                                <ul class="dropdown-menu sub-menu">
                                    <li><a href="{$subReluse{$i}->propertyurl}?do=archive">بدء سنة مالية جديدة</a></li>
                                    <li><a href="{$subReluse{$i}->propertyurl}?do=changDB">تغيير قاعدة البيانات</a></li>
                                    <li><a href="{$subReluse{$i}->propertyurl}?do=emptydata">تفريغ قاعدة البيانات</a></li>
                                    <li><a href="{$subReluse{$i}->propertyurl}?do=dbType">تغيير نظام قاعدة البيانات</a></li>
                                    <li><a href="{$subReluse{$i}->propertyurl}?do=newarchive"> بدء سنه ماليه جديده منذ فتره معينه</a></li>
                                </ul>
                            </li>
                            
                            <!-----------تقرير حركه المستخدمين---------------->

                            {elseif {$subReluse{$i}->propertyname} eq "تقرير حركه المستخدمين"}
                            <li> <a href="{$subReluse{$i}->propertyurl}"> {$subReluse{$i}->propertyname} </a> </li>
                            
                            {else}


                            {if {$subSubReluseNum{$i}{$j}} > 0}


                            <li> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> {$subReluse{$i}->propertyname} <b class="right-caret"></b></a>
                                <ul class="dropdown-menu sub-menu">
                                    {foreach $subSubReluseData{$i}{$j} as  $subSubReluse{$i}{$j}}

                                    {if {$subSubReluse{$i}{$j}->propertyname} eq "تقرير مديونيه العميل"}
                                    {else}


                                    <li><a href="#">{$subSubReluse{$i}{$j}->propertyname} <b class="right-caret"></b></a>
                                        <ul class="dropdown-menu sub-menu">
                                            <li><a href="{$subSubReluse{$i}{$j}->propertyurl}">اضافة جديد </li>
                                            <li><a href="{$subSubReluse{$i}{$j}->propertyurl}?do=show">عرض الحاليين</a></li>
                                        </ul>
                                    </li>
                                    {/if}

                                    {/foreach}
                                </ul>
                            </li>
                            {else}
                            
                            {/if}

                            {/if}



                            {/if}

                            {capture assign=j}{$j+1}{/capture}
                            {/foreach}
                        </ul>
                    </li>
                    {capture assign=i}{$i+1}{/capture}

                    {/foreach}

                    {/if}
                </ul>
            </div>

            <!-- /.navbar-collapse -->
        </nav>

        <!--div class="clearfix"></div-->
        <div class="well well-lg wall-cgpadding mgbt0 noprint">
            <ul class="list-inline mnicon">
                {foreach $alllastdata as $myalllastdata}
                <li>
                    <a href="{$myalllastdata->menuurl}">
                        <img src="{$path}/images/upload/images150_150/{$myalllastdata->urlimage}" title="{$myalllastdata->urltitle}" style="height: 42px"/>
                        <h6>{$myalllastdata->urltitle}</h6>
                    </a>
                </li>
                {/foreach}
            </ul>
        </div>


