%%62^620^6206D997%%admin.tpl.php 10.2 KB
<?php /* Smarty version 2.6.16, created on 2012-01-27 10:37:56
         compiled from admin.tpl */ ?>
<html>
<head>
<title>Àäìèíêà</title>
<META name="description" content="Àäìèíêà" lang="ru">
<META name="keywords" content="Àäìèíêà">
<META http-equiv=content-type content="text/html; charset=windows-1251">
<link href="<?php echo @URL; ?>
/css/admin.css" rel="stylesheet" type="text/css">
<script language="javascript" type="text/javascript" src="<?php echo @URL; ?>
js/tiny_mce/tiny_mce.js"></script>

<link rel="stylesheet" type="text/css" media="all" href="<?php echo @URL; ?>
js/calendar/calendar-system.css" title="win2k-cold-1" />
<script type="text/javascript" src="<?php echo @URL; ?>
js/calendar/calendar.js"></script>
<script type="text/javascript" src="<?php echo @URL; ?>
js/calendar/lang/cal-ru.js"></script>
<script type="text/javascript" src="<?php echo @URL; ?>
js/calendar/calendar-setup.js"></script>

<!-- if !$rules_info_one.action &&  !$rules_kuy_one.action -->
<script type="text/javascript">
<!--
<?php echo '

                function ajaxfilemanager(field_name, url, type, win) {
                        var ajaxfilemanagerurl = "';  echo @URL;  echo 'js/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php";
                        switch (type) {
                                case "image":
                                        break;
                                case "media":
                                        break;
                                case "flash":
                                        break;
                                case "file":
                                        break;
                                default:
                                        return false;
                        }
                        var fileBrowserWindow = new Array();
                        fileBrowserWindow["file"] = ajaxfilemanagerurl;
                        fileBrowserWindow["title"] = "Ajax File Manager";
                        fileBrowserWindow["width"] = "782";
                        fileBrowserWindow["height"] = "440";
                        fileBrowserWindow["close_previous"] = "no";
                        tinyMCE.openWindow(fileBrowserWindow, {
                          window : win,
                          input : field_name,
                          resizable : "yes",
                          inline : "yes",
                          editor_id : tinyMCE.getWindowArg("editor_id")
                        });

                        return false;
                }
'; ?>

//-->
 </script>


<?php echo '
<script type="text/javascript">
<!--

                tinyMCE.init({
                        mode : "exact",
                        elements : "text,text_rus,params,doc,seo,about,history,teh",
                        theme : "advanced",
                        plugins : "table,advhr,advimage,advlink,flash,paste,fullscreen,noneditable,contextmenu",
                        theme_advanced_buttons1_add_before : "newdocument,separator",
                        theme_advanced_buttons1_add : "fontselect,fontsizeselect",
                        theme_advanced_buttons2_add : "separator,forecolor,backcolor,liststyle",
                        theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,",
                        theme_advanced_buttons3_add_before : "tablecontrols,separator",
                        theme_advanced_buttons3_add : "flash,advhr,separator,fullscreen",
                        theme_advanced_toolbar_location : "top",
                        theme_advanced_toolbar_align : "left",
                        extended_valid_elements : "hr[class|width|size|noshade]",
                        file_browser_callback : "ajaxfilemanager",
                        content_css : "';  echo @URL;  echo 'main.css",
                        paste_use_dialog : false,
                        theme_advanced_resizing : true,
                        theme_advanced_resize_horizontal : true,
                        apply_source_formatting : true,
                        force_br_newlines : true,
                        force_p_newlines : false,
                        relative_urls : false
                });



//-->
 </script>
'; ?>


<!-- /if -->

<?php echo '
<script language="JavaScript">
<!--

function openWin(path) {
  myWin= open(path, "displayWindow",
    "width=650,height=400,status=yes,toolbar=no,menubar=no,scrollbars=yes");
  myWin.focus();
}

function topic(obj){
if(obj.title.value!=\'\')return true;
else alert("Çàïîëíèòå âñå ïîëÿ!");

return false;
}

function popup_forum(treeID,topicID) {
  myWin= open("/forum_comment.php?treeID="+treeID+"&topicID="+topicID, "displayWindow",
    "width=700,height=300,status=no,toolbar=no,menubar=no");
  myWin.focus();
}


function popup_forum_edit(commentID) {
  myWin= open("/forum_comment_edit.php?commentID="+commentID, "displayWindow",
    "width=600,height=300,status=no,toolbar=no,menubar=no");
    myWin.focus();
}

   function del(url){
    if(confirm("Óäàëèòü?")){
        document.location=url;
        return true;
    }return false;
   }
// -->
</script>

'; ?>


<script><?php echo '
function check(n){
 var div = document.getElementById(\'check_box\')
 var elems = div.getElementsByTagName(\'input\');
 for(var i=0; i<elems.length; i++){
  if(elems[i].id==n)continue;
  var reg=eval(\'/\'+n+\'/\');
  if(reg.test(elems[i].id)){
   result = (elems[i].checked ? false : true);
   elems[i].checked = result;
  }
 }
 return true;
}
'; ?>
</script>
</head>

<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff">




<table cellpadding="1" cellspacing="0" border="0" background="#ffffff" width="100%" height="100%">
<tr height="100%">
<td width="230">
 <table cellpadding="0" cellspacing="0" width="100%" height="100%">
  <tr><td class="bord"></td></tr>
  <tr><td height="100%" valign="top">
    <table cellpadding="0" cellspacing="0" width="100%">
     <tr><td class="left_hot"><font color="#1273C4"><b>Ñèñòåìà àäìèíèñòðèðîâàíèÿ<br>ñàéòà</b></font></td></tr>
     <tr><td align="center"><img src="<?php echo @URL; ?>
img/admin/logo_artweb.jpg" border="0" width="189" height="118"></td></tr>
     <tr><td align="center">&nbsp;</td></tr>
     <tr><td align="center">
        Âû âîøëè êàê, <?php  echo $_SESSION['admin']['login']; ?>
        <input type="button" value="Âûõîä" class="submit_red" onClick="document.location='<?php echo @URL; ?>
admin.php?exit'">
     </td></tr>
     <tr><td align="center"><img src="<?php echo @URL; ?>
img/admin/hr1.jpg" height="3" width="189" border="0"></td></tr>
     <tr><td class="left_hot">
         <div class='adminMenu'>
 
         <?php 
            global $path; $H1Title='';
            $sql = "SELECT id, alias, name, action, `group` FROM rules WHERE parent_id=1";
            $result=mysql_query($sql) or die (mysql_error());
            if (mysql_affected_rows()!=0) {
                while ($menu=mysql_fetch_assoc($result)) {
                
                    if (in_array($_SESSION['admin']['group'], explode(":",$menu['group']))) {
                        if ($_GET['action']==$menu['action'] && $_GET['action']!='') { $active='class="activeMenu"'; } else { $active=''; }
                            echo"<li $active><a>".$menu['name']."</a></li>";
                    }
                
                    $sql2 = "SELECT alias, name, action, `group` FROM rules WHERE parent_id=".$menu['id']."";
                    $result2=mysql_query($sql2) or die (mysql_error());
                    if (mysql_affected_rows()!=0) {
                    echo"<ul>";
                        while ($submenu=mysql_fetch_assoc($result2)) {      
                        
                            if (in_array($_SESSION['admin']['group'], explode(":",$submenu['group']))) {
                                if ($_GET['action']==$submenu['action'] && $_GET['action']!='' || (isset($path[2]) &&$path[2]==$submenu['action'])) { $active='class="activeMenu"'; $H1Title=$submenu['name'];} else { $active='';}
                                
                                    $total='';
                                    if ($submenu['action']=='messages') {
                                        $sql3 = "SELECT id FROM zlo_users_message WHERE `status`=1 ";
                                        $result3=mysql_query($sql3) or die (mysql_error());
                                        $total=mysql_affected_rows();
                                        if ($total!=0) {$total="($total)";} else {$total='';}
                                    }
                                        
                                    echo"<a href='/".$submenu['alias']."'><li $active>".$submenu['name']." $total</li></a>";
                            }
                        
                        }
                    echo"</ul>";
                    }
                
               
                }
            }
         
          ?>
        </div>
     </td></tr>
    </table>
  </td></tr>
  <tr><td class="bord"></td></tr>
 </table>
</td>
<td>
 <table cellpadding="0" cellspacing="0" width="100%" height="100%">
  <tr><td class="bord" align="right"><a href="<?php echo @URL; ?>
admin.php?action=rules" id="link1">Óïðàâëåíèå ñòðàíèöàìè</a></td></tr>
  <tr><td height="100%" class="content_site" valign="top">
   <h1 class="H1Title"><?php  echo $H1Title; ?></h1>
   
   <?php  global $path; if (!isset($path[1]) || (isset($path[1]) && $path[1]!='admin.php')) {  ?>
   
		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "error.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl']), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		
	<?php  } else { 
		
			// Ïîäêëþ÷àåì ôàéëû		
            if (is_file($_SERVER['DOCUMENT_ROOT'].'/account/admin/'.$path[2].'.php')) {
                include($_SERVER['DOCUMENT_ROOT'].'/account/admin/'.$path[2].'.php');
			}
        }

	 ?>
	
	
  </td></tr>
  <tr><td class="bord"></td></tr>
 </table>
</td>
</tr>
</table>

<!--Ðàçðàáîòàíî ñòóäèåé "ÀðòÂåá" -->