File size: 4,973 Bytes
07c3cdd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link rel="stylesheet" href="/lib/pmdynaform/libs/bootstrap-3.1.1/css/bootstrap.min.css">
    {$meta}
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
    <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
    {$header}
  </head>
  {if ($user_logged neq '' or $tracker neq '') and $timezone_status neq 'failed'}
    <body>
      <table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0" id="pm_main_table">
        <tr>
          <td id="pm_header" valign="top" {if $user_logged neq '' or $tracker neq ''}style="border-bottom:1px solid #e7e7e7;"{/if}>
            <table width="100%" height="32" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
              <tr>
                  {if $user_logged neq '' or $tracker neq ''}
                  <td rowspan="2" style="vertical-align:top;width: 245px;"><img src="{$logo_company}" class="logo_company"/></td>
                  <td id="mainMenuBG" class="mainMenuBG" rowspan="2" valign="center" >
                      {include file="$tpl_menu"}
                      {if (count($subMenus)>0) }
                          {include file= "$tpl_submenu"}
                      {/if}
                  </td>
                  <td height="16" align="right" valign="top">
                    <div align="right" class="logout">
                      <small>
                      {if $user_logged neq ''}
                        {$msgVer}<label class="textBlue">{$userfullname} <a href="../users/myInfo">{$user}</a> | </label>
                        {if $switch_interface}
                        <label class="textBlue"><a href="../../uxs/home">{$switch_interface_label}</a> | </label>
                        {/if}
                        <a href="{$linklogout}" class="tableOption">{$logout}</a>&nbsp;&nbsp;<br/>
                        <label class="textBlack"><b>{$rolename}</b> {$workspace_label} <b><u>{$workspace}</u></b></label>&nbsp; &nbsp;
                      {else}
                          {if $tracker eq 1}
                              <a href="{$linklogout}" class="tableOption">{$logout}</a>&nbsp;&nbsp;
                          {/if}
                      {/if}
                      </small>
                    </div>
                  </td>
                  {else}
                  <td width="100%" style="padding-top: 10px">
                      <img style="display: block; margin-left: auto; margin-right: auto;" src="{$logo_company}"/>
                  </td>
                  {/if}
              </tr>
              <tr>
                <td height="16" valign="bottom" class="title">
                  <div align="right"></div>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td>
            <table width="100%" cellspacing="0" cellpadding="0" border="0" >
              <tr>
                <td {php} if (isset($_SESSION["TRACKER_JAVASCRIPT"])) { echo "id=\"trackerContainer\""; } {/php} width="100%" align="center">
                  {php}
                  global $G_TEMPLATE;
                  if ($G_TEMPLATE != '') G::LoadTemplate($G_TEMPLATE);
                  
                  if (isset($_SESSION["TRACKER_JAVASCRIPT"])) {
                      echo $_SESSION["TRACKER_JAVASCRIPT"];

                      unset($_SESSION["TRACKER_JAVASCRIPT"]);
                  } 
                  {/php}
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr height="100%">
          <td height="100%">
            <div class="Footer">
              <div class="content">{$footer}</div>
            </div>
          </td>
        </tr>
      </table>
    </body>
  {else}
    <body id="page-top" class="login" data-spy="scroll" data-target=".navbar-custom">      
      <div class="page-wrap">
        <div class="container">         
            <div class="row vertical-offset-100">
                <div class="col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3">
                      <div class="row-fluid user-row">
                                <img src="/images/logopm3login.png" class="img-responsive" alt="Conxole Admin">
                            </div>
                    <div class="panel panel-default">
                        <div class="panel-body">                           
                            {php}
                            global $G_TEMPLATE;
                            if ($G_TEMPLATE != '') G::LoadTemplate($G_TEMPLATE);
                            {/php}
                        </div>
                    </div>
                </div>
            </div>
        </div>
      </div>       
        <div class="footer-login">
          <div class="container">
            <span>
              {$footer}
            </span>
          </div>
        </div>
    </body>
  {/if}
</html>