~gt/sahana-agasti/relief-experiments

« back to all changes in this revision

Viewing changes to mod/cr/main.inc

  • Committer: turtle
  • Date: 2009-11-10 23:51:44 UTC
  • Revision ID: turtle@turtle-laptop-20091110235144-lvhvgwfm053jvq5q
first relief codebase

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/** Main home page of the Camp Registry a.k.a Shelter Registry a.k.a ...
 
3
 
4
* PHP version 4 and 5
 
5
*
 
6
* LICENSE: This source file is subject to LGPL license
 
7
* that is available through the world-wide-web at the following URI:
 
8
* http://www.gnu.org/copyleft/lesser.html
 
9
*
 
10
* @package  Sahana - http://sahana.sourceforge.net
 
11
* @subpackage cr
 
12
* @author   Mifan Careem <mifan@opensource.lk>
 
13
* @author   Chathra Hendehewa <chathra@opensource.lk>
 
14
 
 
15
* @copyright  Lanka Software Foundation - http://www.opensource.lk
 
16
*/
 
17
 
 
18
include_once $global['approot']."/inc/lib_modules.inc";
 
19
include_once $global['approot']."/mod/cr/main_fns.inc";
 
20
include_once $global['approot']."/inc/lib_menu.inc";
 
21
 
 
22
 
 
23
/**
 
24
 * Display main side menu for CR
 
25
 */
 
26
function shn_cr_mainmenu()
 
27
{
 
28
        global $global;
 
29
    global $conf;
 
30
    $module = $global['module'];
 
31
    shn_mod_menuopen(_t($conf['mod_cr_name']));
 
32
    shn_mod_menuitem("default",_t("Home"),$module);
 
33
    shn_sub_mod_menuopen(_t("Search"));
 
34
    shn_mod_menuitem("srch",_t("Search by name"),$module);
 
35
    shn_mod_menuitem("srch_address",_t("Search by address"),$module);
 
36
    shn_sub_mod_menuclose();
 
37
    shn_mod_menuitem("acmp",_t("Add Shelter"),$module);
 
38
    shn_mod_menuitem("ecmp",_t("Edit Shelter"),$module);
 
39
    shn_sub_mod_menuopen(_t("Reports"));
 
40
    shn_sub_mod_menuitem("arpt",_t("View All Shelters"),$module);
 
41
    shn_mod_menuitem("lrpt",_t("View By Location"),$module);
 
42
    shn_mod_menuitem("contact",_t("View Admin Details"),$module);
 
43
    if($conf['gis']){
 
44
        shn_mod_menuitem("gis_show",_t("Map by Location"),$module);
 
45
        shn_mod_menuitem("gis_infect",_t("Map by Infection"),$module);
 
46
        shn_mod_menuitem("gis_population",_t("Map by Population"),$module);
 
47
    }
 
48
    shn_sub_mod_menuclose();
 
49
    shn_mod_menuclose();
 
50
    
 
51
    // Display Sahana main menu
 
52
    include $global['approot']."/inc/handler_mainmenu.inc";
 
53
}
 
54
 
 
55
 
 
56
?>