/p078_dealerd1/p117_Scoreboard/Menu/menu.php
PHP | 71 lines | 59 code | 12 blank | 0 comment | 9 complexity | bec7e521807f450d22f74f07080edb4d MD5 | raw file
Possible License(s): GPL-2.0
- <?php if (isset($_SESSION['autologin'])) return; ?>
- <div class="menu">
- <div class="menu1">
- </div>
- <div class="menu2">
- <font face="verdana" size="2">
- <?php if (!isset($_SESSION['cPeople_ID'])) { ?>
- <a href="/p078_dealerd1/index.php">Login</a><br>
- <?php } ?>
- <a href="<?php echo WIKI_ROOT; ?>">Wiki</a><br>
- <a href="/p078_dealerd1/welcome.php">DealerDesktop</a><br>
- <a href="/p078_dealerd1/M012_Tasks/Tasks.php">Tasks</a><br>
- <a href="/p078_dealerd1/M012_Tasks/Tasks_Others_Status.php">Tasks Others</a><br>
- <?php if ($rolemgr->check("DL")) echo "<a href=\"/p078_dealerd1/p077_DealLog1/index.php\">Deal Log</a><br>"; ?>
- <?php if ($rolemgr->check("BOSS/JS")) echo "<a href=\"/p078_dealerd1/p077_DealLog2/index.php\">Deal Log 2</a><br>"; ?>
-
- <a href="/p078_dealerd1/p099_Comish/Enquiry1/EMP_Summary.php?&paid=&status=">Payroll</a><br>
- <a href="/p078_dealerd1/search.php">Search</a><br>
- <a href="/p100_phonebook/p100_Phonebook_Main.php">Phone Book</a><br>
- <?php if (isset($_SESSION['cPeople_ID'])) { ?>
- <a href="/p078_dealerd1/logout.php">Log Off</a><br>
- <?php } ?>
-
-
- <?php if ($rolemgr->check('DL/SYS/Debug2')) {
- ?>
- <form method="post" action="/p078_dealerd1/index.php">
- <input type="hidden" name="role_change" value="1">
- <?php
- foreach ($_SESSION['roles'] as $the_role=>$set) {
- ?>
-
- <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>
-
- <?php
- }
- ?>
- <input type="submit" value="Update">
- </form>
- <?php
- }
- if ($rolemgr->check('SYSTEM ADMIN/SwichUser')) {
- ?>
- <form method="post" action="/p078_dealerd1/index.php">
- User:
- <select name="switch_user_to" style="width:110px">
-
- <?php
-
- $people=cPeople::getPeople();
- foreach ($people as $id=>$person) {
- ?>
- <option value="<?php echo $id; ?>"<?php if ($id==$_SESSION['cPeople_ID']) echo ' selected'; ?>><?php echo $person; ?></option>
- <?php
- }
- unset($people,$person);
-
- ?>
- </select>
-
- <br>
- <input type="submit" value="Switch">
- </form>
-
-
- <?php
-
- } ?>
- </font>
- </div>
- </div>