Menu

[r3]: / html / rights_project.php  Maximize  Restore  History

Download this file

144 lines (143 with data), 8.8 kB

  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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?php
session_start();
$user_ID=$_SESSION[user_ID];
if (!$user_ID || $user_ID=='0')
{
header('location: index.php');
die('Login failed');
}
require("util.php");
$sql = new MySQL_class;
$sql->Create("generator");
$esql = new MySQL_class;
$esql->Create("generator");
if ($_GET[DatabaseID]) { $_SESSION[var_DatabaseID] = $_GET[DatabaseID]; }
if ($_GET[TableID]) { $_SESSION[var_TableID] = $_GET[TableID]; }
if ($_GET[screen]) { $_SESSION[var_screen] = $_GET[screen]; }
if ($_GET[SheetID]) { $_SESSION[var_SheetID] = $_GET[SheetID]; }
$DatabaseID=$_SESSION[var_DatabaseID];
$TableID=$_SESSION[var_TableID];
$screen=$_SESSION[var_screen];
$SheetID=$_SESSION[var_SheetID];
$part_rights=array();
function get_part($part) {
global $sql, $user_ID;
$sql->Query("SELECT user_part.part, user_part.right, count(user_rights.user) AS allowed FROM user_part
LEFT JOIN user_rights ON user_rights.user='$user_ID' AND user_rights.right=user_part.user
WHERE user_part.part=$part GROUP BY user_part.part, user_part.right");
for ($i = 0; $i < $sql->rows; $i++)
{
$sql->Fetch($i);
echo "$sql->data[part]/$sql->data[right]=$sql->data[allowed]<br>";
if ($sql->data[allowed]<>'0') {
$part_rights[$sql->data[part].'/'.$sql->data[right]]=1;
}
}
}
get_part (13); get_part (14); get_part (15); get_part (16);
?>
<html>
<head>
<link href="list.css" type="text/css" rel=stylesheet>
<meta content="text/css" http-equiv="Content-Style-Type">
<title>Screen generator Scherm: Project</title>
</head>
<script type="text/javascript" src="handlers.js" language="JavaScript">
alert ("no code");
</script>
<body>
<table class=record><tr><th>Name</th>
<td><input type=button value="hide" onClick="javascript: window.open('field_rights.php?field=437&right=hide','Field hide','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td>
</tr>
<tr><th>Title</th>
<td><input type=button value="hide" onClick="javascript: window.open('field_rights.php?field=438&right=hide','Field hide','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td>
</tr>
<tr><th>Directory</th>
<td><input type=button value="hide" onClick="javascript: window.open('field_rights.php?field=439&right=hide','Field hide','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td>
</tr>
<tr><th>Select</th>
<td><input type=button value="hide" onClick="javascript: window.open('field_rights.php?field=574&right=hide','Field hide','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td>
</tr>
</table>
<p><input type=button value="Projectgegevens wijzigen" onClick="javascript: window.open('editproject.php','','width=500,height=500,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
<br><br><br><table class=ruler><tr><td>Screens</td></tr></table>
<p class=filter>
Records: #
Pagina: #
<input type=button value="listall" onClick="javascript: window.open('part_rights.php?part=14&right=listall','Part listall','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
<input type=button value="nofilter" onClick="javascript: window.open('part_rights.php?part=14&right=nofilter','Part nofilter','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</p>
<table class=list>
<tr>
<th width=210px>Name</th>
<th width=210px>Title</th>
</tr>
<tr>
<td><input type=button value="hide" onClick="javascript: window.open('field_rights.php?field=446&right=hide','Field hide','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td>
<td><input type=button value="hide" onClick="javascript: window.open('field_rights.php?field=447&right=hide','Field hide','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td>
</tr>
<tr onMouseOver="ChangeColor(this)" onMouseOut="ChangeColorBack(this)" onClick="location='rights_screen.php'">
<td>data</td>
<td>data</td>
<tr><td><input type=button value="hide" onClick="javascript: window.open('part_rights.php?part=14&right=hide','Part hide','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td><td><input type=button value="noedit" onClick="javascript: window.open('part_rights.php?part=14&right=noedit','Part noedit','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td><td><input type=button value="noadd" onClick="javascript: window.open('part_rights.php?part=14&right=noadd','Part noadd','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td></tr></table>
<br><br><br><table class=ruler><tr><td>Tables</td></tr></table>
<p class=filter>
Records: #
Pagina: #
<input type=button value="listall" onClick="javascript: window.open('part_rights.php?part=15&right=listall','Part listall','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
<input type=button value="nofilter" onClick="javascript: window.open('part_rights.php?part=15&right=nofilter','Part nofilter','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</p>
<table class=list>
<tr>
<th width=210px>SQL name</th>
<th width=210px>Title</th>
<th width=210px>Name</th>
</tr>
<tr>
<td><input type=button value="hide" onClick="javascript: window.open('field_rights.php?field=441&right=hide','Field hide','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td>
<td><input type=button value="hide" onClick="javascript: window.open('field_rights.php?field=445&right=hide','Field hide','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td>
<td><input type=button value="hide" onClick="javascript: window.open('field_rights.php?field=444&right=hide','Field hide','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td>
</tr>
<tr onMouseOver="ChangeColor(this)" onMouseOut="ChangeColorBack(this)" onClick="location='rights_table.php'">
<td>data</td>
<td>data</td>
<td>data</td>
<tr><td><input type=button value="hide" onClick="javascript: window.open('part_rights.php?part=15&right=hide','Part hide','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td><td><input type=button value="noedit" onClick="javascript: window.open('part_rights.php?part=15&right=noedit','Part noedit','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td><td><input type=button value="noadd" onClick="javascript: window.open('part_rights.php?part=15&right=noadd','Part noadd','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td></tr></table>
<br><br><br><table class=ruler><tr><td>Sheets</td></tr></table>
<p class=filter>
Records: #
Pagina: #
<input type=button value="listall" onClick="javascript: window.open('part_rights.php?part=16&right=listall','Part listall','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
<input type=button value="nofilter" onClick="javascript: window.open('part_rights.php?part=16&right=nofilter','Part nofilter','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</p>
<table class=list>
<tr>
<th width=210px>Name</th>
</tr>
<tr>
<td><input type=button value="hide" onClick="javascript: window.open('field_rights.php?field=448&right=hide','Field hide','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td>
</tr>
<tr onMouseOver="ChangeColor(this)" onMouseOut="ChangeColorBack(this)" onClick="location='rights_sheet.php'">
<td>data</td>
<tr><td><input type=button value="hide" onClick="javascript: window.open('part_rights.php?part=16&right=hide','Part hide','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td><td><input type=button value="noedit" onClick="javascript: window.open('part_rights.php?part=16&right=noedit','Part noedit','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td><td><input type=button value="noadd" onClick="javascript: window.open('part_rights.php?part=16&right=noadd','Part noadd','width=660,height=680,location=no,menubar=no,scrollbars=yes,status=no,resizable=yes'); return false;">
</td></tr></table>
</body>
</html>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.