PageRenderTime 18ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/p078_dealerd1/p117_Scoreboard/Menu/menu.php

https://bitbucket.org/rlm3/rlm3
PHP | 71 lines | 59 code | 12 blank | 0 comment | 9 complexity | bec7e521807f450d22f74f07080edb4d MD5 | raw file
 1<?php if (isset($_SESSION['autologin'])) return; ?>
 2<div class="menu">
 3	<div class="menu1">
 4	</div>
 5	<div class="menu2">
 6		<font face="verdana" size="2">
 7		<?php if (!isset($_SESSION['cPeople_ID'])) { ?>
 8		<a href="/p078_dealerd1/index.php">Login</a><br>
 9		<?php } ?>
10		<a href="<?php echo WIKI_ROOT; ?>">Wiki</a><br>
11		<a href="/p078_dealerd1/welcome.php">DealerDesktop</a><br>
12		<a href="/p078_dealerd1/M012_Tasks/Tasks.php">Tasks</a><br>
13		<a href="/p078_dealerd1/M012_Tasks/Tasks_Others_Status.php">Tasks Others</a><br>
14		<?php if ($rolemgr->check("DL")) echo "<a href=\"/p078_dealerd1/p077_DealLog1/index.php\">Deal Log</a><br>"; ?>
15		<?php if ($rolemgr->check("BOSS/JS")) echo "<a href=\"/p078_dealerd1/p077_DealLog2/index.php\">Deal Log 2</a><br>"; ?>
16		
17		<a href="/p078_dealerd1/p099_Comish/Enquiry1/EMP_Summary.php?&paid=&status=">Payroll</a><br>
18		<a href="/p078_dealerd1/search.php">Search</a><br>
19		<a href="/p100_phonebook/p100_Phonebook_Main.php">Phone Book</a><br>
20		<?php if (isset($_SESSION['cPeople_ID'])) { ?>
21		<a href="/p078_dealerd1/logout.php">Log Off</a><br>
22		<?php } ?>
23		
24		
25		<?php if ($rolemgr->check('DL/SYS/Debug2')) {
26			?>
27			<form method="post" action="/p078_dealerd1/index.php">
28			<input type="hidden" name="role_change" value="1">
29			<?php
30			foreach ($_SESSION['roles'] as $the_role=>$set) {
31				?>
32				
33				<span style="font-size:9px"><input type="checkbox" style="width:4px;height:4px;" name="<?php echo str_replace(" ",'QQQQ',$the_role); ?>" <?php if ($set) echo ' CHECKED'; ?>> <?php echo $the_role; ?></span><br>
34				
35				<?php
36			}
37			?>
38			<input type="submit" value="Update">
39			</form>
40			<?php
41		} 
42		if ($rolemgr->check('SYSTEM ADMIN/SwichUser')) {
43			?>
44			<form method="post" action="/p078_dealerd1/index.php">
45			User:
46			<select name="switch_user_to" style="width:110px">
47			
48			<?php
49			
50			$people=cPeople::getPeople();
51			foreach ($people as $id=>$person) {
52				?>
53				<option value="<?php echo $id; ?>"<?php if ($id==$_SESSION['cPeople_ID']) echo ' selected'; ?>><?php echo $person; ?></option>
54				<?php
55			}
56			unset($people,$person);
57			
58			?>
59			</select>
60			
61			<br>
62			<input type="submit" value="Switch">
63			</form>
64			
65			
66			<?php
67			
68		 } ?>
69		</font>
70	</div>
71</div>