Location: PHPKode > scripts > Report Manger > report-manger/Programs.php
<?php
	require('config.php');
	require_once('Auth.php');
	require_once('classMySql.php');
	$Uid = $_SESSION["uid"] ;
	$mydb = new db_mysql($locaaal,$useeer,$paaass,$dataaabase);
        print "<p align=\"right\" dir=\"rtl\">شما با نام کاربری " . "<b>" . $Uid . "</b> وارد شده اید<br>";
        $value=$Uid;
        $sql = "select PN,Permission from logins where (UserId = '$value');";
        $result2=mysql_query($sql);
        $show=mysql_fetch_row($result2);
        print "گروهی که شما در فعالیت می کنید :" . "<b>" . $show[0] . "<B><br><br></p>";
	$mydb->select("`programs`","`Data`","1 AND `Id` LIKE '$Id'");
	$myar = $mydb->fetch_row();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Athur" content="Ali Hosseini" Email="hide@address.com">
<title>میز کار مدیر اجرایی - برنامه های کاربران</title>
</head>
<body>
<p dir="rtl" align="right" style="margin-right : 50 ">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<LINK rel="stylesheet" href="style/style.css" type="text/css">
</head>
<body topmargin="0" leftmargin="0" bgcolor="#C0C0C0">
<BR><BR>
<center>
  <TABLE border="1" bordercolor="#000000" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="70%" id="AutoNumber1" height="102">
    <tr>
      <TD background="images/top_01_1.gif" height="41" align="right">
      <?php
    switch ($show[1]){
        case "0";
        echo "<A href=\"sh_active.php\"><img src=\"images/top_activity.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
	      <A href=\"sh_trouble.php\"><img src=\"images/top_troubles.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
	      <A href=\"super_admin.php\"><img src=\"images/top_reports.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
              <A href=\"Super_admin_EdittingUsers.php\"><img src=\"images/eidt_user.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
              <A href=\"ChangePass.php\"><img src=\"images/chpass.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
              <A href=\"LogOut.php\"><IMG src=\"images/logout_on.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
              </TD>";
        break;
        case "1";
        echo "<A href=\"admin_Sender.php\"><img src=\"images/top_send.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
	      <A href=\"admin.php\"><img src=\"images/top_reports.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
              <A href=\"EdittingUsers.php\"><img src=\"images/eidt_user.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
              <A href=\"ChangePass.php\"><img src=\"images/chpass.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
              <A href=\"LogOut.php\"><IMG src=\"images/logout_on.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
              </TD>";
        break;
        case "2";
        echo "<A href=\"Sender.php\"><img src=\"images/top_send.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
              <A href=\"ChangePass.php\"><img src=\"images/chpass.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
              <A href=\"LogOut.php\"><IMG src=\"images/logout_on.gif\" width=\"44\" height=\"41\" border=\"0\"></A>
              </TD>";
        break;
    }
    ?>
    </tr>
    <TR>
      <TD bgcolor="#ffffff" align="right"><p style="margin-right: 10">
      <?php
      echo substr($myar[0],0,150) . "<br>";
      echo substr($myar[0],151,150) . "<br>";
      echo substr($myar[0],301,150) . "<br>";
      echo substr($myar[0],451,150) . "<br>";
      echo substr($myar[0],501,150) . "<br>";
      echo substr($myar[0],651,150) . "<br>";
      echo substr($myar[0],801,150) . "<br>";
      echo substr($myar[0],951,150) . "<br>";
      echo substr($myar[0],1101,150) . "<br>";
      echo substr($myar[0],1251,150) . "<br>";
      ?></TD>
    </TR>
    <tr>
      <TD width="80%" height="19" background="images/bottom_bg.gif">&nbsp;</TD>
    </tr>
  </TABLE>
  </center>
</body>
</html>

</p>
</body>
</html>
<?php
require('config.php');
$mydb = new db_mysql($locaaal,$useeer,$paaass,$dataaabase);
if($show[1]==1) $read="readmp";
if($show[1]==0) $read="readme";
$sql = "UPDATE data SET `$read` = '1' WHERE (Id = '$Id');";
mysql_query($sql);
?>


Return current item: Report Manger